JavaScript API Reference for Oracle ADF Faces
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.3) E80085-01 |
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||
org.ecmascript.object.Object | +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfFocusUtils
public class AdfFocusUtils extends Object
Field Summary |
|
|---|---|
public static Object |
|
Fields inherited from org.ecmascript.object.Object |
constructor, prototype |
Constructor Summary |
|
|---|---|
public |
|
Method Summary |
|
|---|---|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
private static Object |
|
private static Object |
|
public static HTMLElement |
|
public static HTMLElement |
|
public static HTMLElement |
|
public static HTMLElement |
|
public static HTMLElement |
|
public static HTMLElement |
|
public static HTMLElement |
|
public static HTMLElement |
|
public static Object |
|
public static HTMLElement |
|
public static HTMLElement |
|
public static Object |
|
public static HTMLElement |
|
public static Object |
|
public static HTMLElement |
|
public static Object |
|
public static Object |
|
private static Object |
|
public static Object |
|
public static String |
|
private static Object |
|
public static Boolean |
|
public static Object |
|
public static String |
|
private static Object |
|
private static Object |
|
public static Object |
|
public static HTMLElement |
|
public static HTMLElement |
|
private static Object |
|
Field Detail |
|---|
public static Object DESCENDANT_FOCUSABLE
Constructor Detail |
|---|
public AdfFocusUtils()
Method Detail |
|---|
public static Object acceptFocusableNode(Object el,
Object context)el |
- | the element to check |
context |
- | optional context object for caching the results of isConnectedAndVisible() calls |
Object - one of the following: AdfDomUtils.FILTER_SKIP : no, I am not focusable, but one of my children could be focusable AdfDomUtils.FILTER_REJECT : no, I am not focusable, and none of my children could be possibly focusable AdfDomUtils.FILTER_ACCEPT : yes, I am focusablepublic static Object calculateCachedValue(Object el,
Object context,
String expando)el |
||
context |
- | cache containing values to check against |
expando |
- | the name of the expando object |
Object - cached isConnectedAndVisible value for the provided element.public static Object containsFocus(Object element)element |
Objectpublic static Object focusElement(HTMLElement element)element |
- | the DOM element to focus. |
Objectpublic static Object focusElementDelayed(Object element,
Object timeout)element |
||
timeout |
Objectprivate static Object _focusElementDelayedCallback(Object element)element |
Objectprivate static Object _focusElementImpl(Object element)element |
Objectpublic static HTMLElement focusFirstDocumentTabStop()HTMLElement - The DOM element actually focused on, if anypublic static HTMLElement focusFirstTabStop(HTMLElement element,
Boolean isExclusive)element |
- | DOM element to attempt to start to attempt focusing from |
isExclusive |
- | Whether to include element in the allowed tab stops
Default value = false
|
HTMLElement - The DOM element actually focused on, if anypublic static HTMLElement focusLastTabStop(HTMLElement element,
Boolean isExclusive)element |
- | DOM element of subtree to attempt to focus on the last focusable element of. |
isExclusive |
- | Whether to include element in the allowed tab stops
Default value = false
|
HTMLElement - The DOM element actually focused on, if anypublic static HTMLElement focusNextActiveDescendant(HTMLElement contextElement,
HTMLElement currentActiveDescendant,
Boolean wrap)contextElement |
- | The search is constrained to the subtree within this element. Cannot be null. |
currentActiveDescendant |
- | element that is the current active descendant. Cannot be null. |
wrap |
- | if true then wrap when focus moves past last child |
HTMLElement - The element that is the new active descendant. May be null if none found.public static HTMLElement focusNextTabStop(HTMLElement element,
Object contextElement,
Object startOutside)element |
- | DOM element to attempt to start to attempt focusing on the next element of |
contextElement |
||
startOutside |
HTMLElement - The DOM element actually focused on, if anypublic static HTMLElement focusPreviousActiveDescendant(HTMLElement contextElement,
HTMLElement currentActiveDescendant,
Boolean wrap)contextElement |
- | The search is constrained to the subtree within this element. Cannot be null. |
currentActiveDescendant |
- | element that is the current active descendant. Cannot be null. |
wrap |
- | if true then wrap when focus moves past first child |
HTMLElement - The element that is the new active descendant. May be null if none found.public static HTMLElement focusPreviousTabStop(HTMLElement element,
Object contextElement,
Object startOutside)element |
- | DOM element of subtree to attempt to focus on the previous focusable element of. |
contextElement |
||
startOutside |
HTMLElement - The DOM element actually focused on, if anypublic static HTMLElement getFirstFocusableDescendant(HTMLElement element,
Object context)element |
- | element to begin searching from. Cannot be null. |
context |
- | optional context for the filter function, contains: {Boolean} includeVisibilityHidden - If true, also searches through nonvisible (visibility = hidden) subtrees. Default is false. {Boolean} includeDisplayNone - If true, also searches through nonvisible (display = none) subtrees. Defalut is false. {Boolean} includeDisabled - If true, returns potentially focusable disabled items. Default is false. |
HTMLElement - first focusable descendant. May be null if none found.public static Object getFirstTabStop(HTMLElement element,
Boolean isExclusive)element |
- | element to begin searching for tabstops from |
isExclusive |
- | Whether to include element in the allowed tab stops
Default value = false
|
Objectpublic static HTMLElement getFirstUnmarkedTabstop(HTMLElement element)element |
- | element to begin searching from. Cannot be null. |
HTMLElement - The first unmarked tabstop if one is found, null otherwise.public static HTMLElement getLastFocusableDescendant(HTMLElement element,
Object context)element |
- | element to begin searching from. Cannot be null. |
context |
- | optional context for the filter function, contains: {Boolean} includeVisibilityHidden - If true, also searches through nonvisible (visibility = hidden) subtrees. Default is false. {Boolean} includeDisplayNone - If true, also searches through nonvisible (display = none) subtrees. Defalut is false. {Boolean} includeDisabled - If true, returns potentially focusable disabled items. Default is false. |
HTMLElement - first focusable descendant. May be null if none found.public static Object getLastTabStop(HTMLElement element,
Boolean isExclusive)element |
- | element to begin searching for last tabstops from |
isExclusive |
- | Whether to include element in the allowed tab stops
Default value = false
|
Objectpublic static HTMLElement getNextFocusableDescendant(HTMLElement contextElement,
HTMLElement element,
Object context)contextElement |
- | The search is constrained to the subtree within this element. Cannot be null. |
element |
- | element to begin searching from. Cannot be null. |
context |
- | optional context for the filter function, contains: {Boolean} includeVisibilityHidden - If true, also searches through nonvisible (visibility = hidden) subtrees. Default is false. {Boolean} includeDisplayNone - If true, also searches through nonvisible (display = none) subtrees. Defalut is false. {Boolean} includeDisabled - If true, returns potentially focusable disabled items. Default is false. |
HTMLElement - next focusable descendant. May be null if none found.public static Object getNextTabStop(Object element,
Object contextElement,
Object startOutside)element |
||
contextElement |
||
startOutside |
Objectpublic static HTMLElement getPreviousFocusableDescendant(HTMLElement contextElement,
HTMLElement element,
Object context)contextElement |
- | The search is constrained to the subtree within this element. Cannot be null. |
element |
- | element to begin searching from. Cannot be null. |
context |
- | optional context for the filter function, contains: {Boolean} includeVisibilityHidden - If true, also searches through nonvisible (visibility = hidden) subtrees. Default is false. {Boolean} includeDisplayNone - If true, also searches through nonvisible (display = none) subtrees. Defalut is false. {Boolean} includeDisabled - If true, returns potentially focusable disabled items. Default is false. |
HTMLElement - previous focusable descendant. May be null if none found.public static Object getPreviousTabStop(Object element,
Object contextElement)element |
||
contextElement |
Objectpublic static Object isConnectedAndVisible(Object el,
Object context)el |
||
context |
- | cache containing values to check against |
Object - true if el is connected and visible.private static Object _isDisplayNone(Object el,
CSSStyleDeclaration currentStyle)el |
||
currentStyle |
- | the current style that can be optionally passed in
Default value = null
|
Object - true if el is display nonepublic static Object isFocusable(Object el,
Object context)el |
- | the element to check |
context |
- | optional context object for caching the results of isConnectedAndVisible() calls |
Object - true if el is focuasble.public static String isFocusableDescendant(HTMLElement element,
Object context)element |
- | the element to check |
context |
- | optional context for the filter function, contains: {Boolean} includeVisibilityHidden - If true, also searches through nonvisible (visibility = hidden) subtrees. Default is false. {Boolean} includeDisplayNone - If true, also searches through nonvisible (display = none) subtrees. Defalut is false. {Boolean} includeDisabled - If true, returns potentially focusable disabled items. Default is false. |
String - AdfDomUtils filter result: FILTER_SKIP, FILTER_REJECT, or FILTER_ACCEPTprivate static Object _isFocusableType(Object el)el |
Object - true if el is of focusable type.public static Boolean isFocusChangePending()Boolean - True if a delayed call to domElement.focus() is pending, false otherwise.public static Object isTabStop(Object el)el |
Object - true if el is a tabstoppublic static String isUnmarkedTabstop(HTMLElement element)element |
- | the element to check |
String - AdfDomUtils filter result: FILTER_SKIP, FILTER_REJECT, or FILTER_ACCEPTprivate static Object _isVisibilityHidden(Object el,
CSSStyleDeclaration currentStyle)el |
||
currentStyle |
- | the current style that can be optionally passed in
Default value = null
|
Object - true if el is visible.private static Object _isVisible(Object el,
CSSStyleDeclaration currentStyle)el |
||
currentStyle |
- | the current style that can be optionally passed in
Default value = null
|
Object - true if el is visible.public static Object setCacheValue(Object el,
Object context,
String expando,
value value)el |
||
context |
- | cache containing values to check against |
expando |
- | name of the expando object |
value |
- | isConnectedAndVisible value |
Object - true if el is connected and visible.public static HTMLElement setFirstActiveDescendant(HTMLElement contextElement,
Object context)contextElement |
- | The search is constrained to the subtree within this element. Cannot be null. |
context |
- | optional context for the filter function, contains: {Boolean} includeVisibilityHidden - If true, also searches through nonvisible (visibility = hidden) subtrees. Default is false. {Boolean} includeDisplayNone - If true, also searches through nonvisible (display = none) subtrees. Defalut is false. {Boolean} includeDisabled - If true, returns potentially focusable disabled items. Default is false. |
HTMLElement - The element that is the new active descendant. May be null if none found.public static HTMLElement setupCompositeWidget(HTMLElement contextElement)contextElement |
- | The search is constrained to the subtree within this element. Cannot be null. |
HTMLElement - The element that is the new active descendant. May be null if none found.private static Object _setupContext(Object context)context |
- | The context object to share results among invocations of expensive calls. |
Object
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.3) E80085-01 |
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||