_afterActiveDescendantChange
protected
void
_afterActiveDescendantChange
(
event
)
afterChange event handler for the
"activeDescendant" attribute.
- Parameters:
-
event <Object>
Object representing the change event.
_attachKeyHandler
protected
void
_attachKeyHandler
(
)
Attaches the "key" event handlers used to support the "keys"
attribute.
_detachEventHandlers
protected
void
_detachEventHandlers
(
)
Detaches all event handlers used by the Focus Manager.
_detachKeyHandler
protected
void
_detachKeyHandler
(
)
Detaches the "key" event handlers used to support the "keys"
attribute.
_fireClick
protected
void
_fireClick
(
)
Fires the click event if the enter key is pressed while
focused on an HTML element that is not natively clickable.
_focusNext
protected
void
_focusNext
(
event
,
activeDescendant
)
Keydown event handler that moves focus to the next
enabled descendant.
- Parameters:
-
event <Object>
Object representing the DOM event. -
activeDescendant <Number>
Number representing the index of the next descendant to be focused
_focusPrevious
protected
void
_focusPrevious
(
event
,
activeDescendant
)
Keydown event handler that moves focus to the previous
enabled descendant.
- Parameters:
-
event <Object>
Object representing the DOM event. -
activeDescendant <Number>
Number representing the index of the next descendant to be focused.
_initDescendants
protected
void
_initDescendants
(
)
Sets the
tabIndex
attribute of all of the
descendants to -1, except the active descendant, whose
tabIndex
attribute is set to 0.
_isDescendant
protected
Boolean
_isDescendant
(
node
)
Determines if the specified Node instance is a descendant
managed by the Focus Manager.
- Parameters:
-
node <Node>
Node instance to be checked.
- Returns:
Boolean
- Boolean indicating if the specified Node instance is a descendant managed by the Focus Manager.
_onDocFocus
protected
void
_onDocFocus
(
event
)
"focus" event handler for the owner document of the
Focus Manager's Node.
- Parameters:
-
event <Object>
Object representing the DOM event.
_onDocMouseDown
protected
void
_onDocMouseDown
(
event
)
"mousedown" event handler for the owner document of the
Focus Manager's Node.
- Parameters:
-
event <Object>
Object representing the DOM event.
_preventScroll
protected
void
_preventScroll
(
)
Prevents the viewport from scolling when the user presses
the up, down, left, or right key.
_removeFocusClass
protected
void
_removeFocusClass
(
)
Removes the class name representing focus (as specified by
the "focusClass" attribute) from the Node instance to which it is
currently applied.
focus
void
focus
(
index
)
Focuses the active descendant and sets the
focused
attribute to true.
- Parameters:
-
index <Number>
Optional. Number representing the index of the descendant to be set as the active descendant. -
index <Node>
Optional. Node instance representing the descendant to be set as the active descendant.
refresh
void
refresh
(
)
Refreshes the Focus Manager's descendants by re-executing the
CSS selector query specified by the
descendants
attribute.