Method Summary
|
public static Object |
containsFocus(Object element)
-
Tests whether the specified element contains the keyboard focus.
|
public static Object |
focusElement(HTMLElement element)
-
Sets focus to element
|
public static Object |
focusElementDelayed(Object element, Object timeout)
-
Focuses the element after a timeout.
|
private static Object |
_focusElementDelayedCallback(Object element)
|
private static Object |
_focusElementImpl(Object element)
|
public static HTMLElement |
focusFirstDocumentTabStop()
-
Sets focus to the first focusable element inside the document.
|
public static HTMLElement |
focusFirstTabStop(HTMLElement element)
-
sets focus to the first focusable element inside element this can also be the element itself
|
public static HTMLElement |
focusLastTabStop(HTMLElement element)
-
sets focus to the last focusable element inside element this can also be the element itself
|
public static HTMLElement |
focusNextTabStop(HTMLElement element, Object contextElement, Object startOutside)
-
sets focus to the next focusable element after element inside contextElement if no contextElement is given the ownerdocument of element will be the context when element is the last focusable element inside the context the first focusable element inside the context will be focused When optional parameter startOutside is true the next tabstop won't be in element
|
public static HTMLElement |
focusPreviousTabStop(HTMLElement element, Object contextElement, Object startOutside)
-
sets focus to the previous focusable element before element inside contextElement if no contextElement is given the ownerdocument of element will be the context when element is the first focusable element inside the context the last focusable element inside the context will be focused When optional parameter startOutside is true the next tabstop won't be in element
|
public static Object |
getFirstTabStop(HTMLElement element, Boolean isExclusive)
-
returns the first focusable element inside element when optional parameter isExclusive equals true this method will not return element itself
|
public static Object |
getLastTabStop(HTMLElement element, Boolean isExclusive)
-
returns the last focusable element inside element when optional parameter isExclusive equals true this method will not return element itself
|
public static Object |
getNextTabStop(Object element, Object contextElement, Object startOutside)
-
returns the next focusable element after element inside contextElement if no contextElement is given the ownerdocument of element will be the context when element is the last focusable element inside the context the method will return undefined when optional parameter startOutside is true the next tabstop won't be in element
|
public static Object |
getPreviousTabStop(Object element, Object contextElement)
-
returns the previous focusable element before element inside contextElement if no contextElement is given the ownerdocument of element will be the context when element is the first focusable element inside the context the method will return undefined
|
public static Object |
isConnectedAndVisible(Object el)
-
Tests whether the element and its ancestors are connected to the document and visible.
|
public static Object |
isFocusable(Object el, Object context)
-
isFocusable determines whether the HTML element el is focusable.
|
public static Boolean |
isFocusChangePending()
-
Tests whether a focus change is pending.
|
public static Object |
isTabStop(Object el)
-
isTabStop determines whether the HTML element el is a tab-stop in the current state of the page.
|