The NodeMenuNav class is a plugin for a Node instance. The class is used via
the plug
method of Node and
should not be instantiated directly.
_afterActiveDescendantChange
event
menuNav
"activeDescendantChange" event handler for menu's Focus Manager.
event
Object
Object representing the Attribute change event.
menuNav
NodeMenuNav
Object representing the NodeMenuNav instance.
_clearActiveItem
Clears the menu's active descendent.
_focusItem
item
Focuses the specified menuitem or menu label.
item
Node
Node instance representing a menuitem or menu label.
_hideAndFocusLabel
Hides all of the submenus of the root menu and focuses the label of the topmost submenu
_hideMenu
menu
activateAndFocusLabel
Hides the specified menu.
_initFocusManager
Initializes and updates the Focus Manager so that is is always managing descendants of the active menu.
_isRoot
menu
Returns a boolean indicating if the specified menu is the root menu in the menu.
menu
Node
Node instance representing a menu.
Boolean indicating if the specified menu is the root menu in the menu.
_onActiveDescendantChange
event
menuNav
"activeDescendantChange" event handler for menu's Focus Manager.
event
Object
Object representing the Attribute change event.
menuNav
NodeMenuNav
Object representing the NodeMenuNav instance.
_onDocFocus
event
"focus" event handler for the owner document of the MenuNav.
event
Object
Object representing the DOM event.
_onDocMouseDown
event
"mousedown" event handler for the owner document of the menu.
event
Object
Object representing the DOM event.
_onHorizontalMenuKeyDown
event
"keydown" event handler for horizontal menus.
event
Object
Object representing the DOM event.
_onKeyDown
event
"keydown" event handler for the menu.
event
Object
Object representing the DOM event.
_onKeyPress
event
"keypress" event handler for the menu.
event
Object
Object representing the DOM event.
_onMenuItemMouseOut
menuItem
event
"mouseout" event handler for a menuitem.
_onMenuItemMouseOver
menuItem
event
"mouseover" event handler for a menuitem.
_onMenuLabelMouseOut
menuLabel
event
"mouseout" event handler for a menu label.
_onMenuLabelMouseOver
menuLabel
event
"mouseover" event handler for a menu label.
_onMenuMouseOut
menu
event
"mouseout" event handler for a menu.
_onMenuMouseOver
menu
event
"mouseover" event handler for a menu.
_onMouseMove
event
"mousemove" event handler for the menu.
event
Object
Object representing the DOM event.
_onMouseOut
event
"mouseout" event handler for the menu.
event
Object
Object representing the DOM event.
_onMouseOver
event
"mouseover" event handler for the menu.
event
Object
Object representing the DOM event.
_onVerticalMenuKeyDown
event
"keydown" event handler for vertical menus.
event
Object
Object representing the DOM event.
_setActiveItem
item
Sets the specified menuitem or menu label as the menu's active descendent.
item
Node
Node instance representing a menuitem or menu label.
_showMenu
menu
Shows the specified menu.
menu
Node
Node instance representing a menu.
_activeItem
Node instance representing the menu's active descendent: the menuitem or menu label the user is currently interacting with.
Default: null
_activeMenu
Node instance representing the menu that is the parent of the menu's active descendent.
Default: null
_blockMouseEvent
Boolean indicating whether or not to handle the "mouseover" event.
Default: false
_currentMouseX
Number representing the current x coordinate of the mouse inside the menu.
Default: 0
_firstItem
Node instance representing the first item (menuitem or menu label) in the root menu of a menu.
Default: null
SHIM_TEMPLATE
String representing the HTML used to create the
<iframe>
shim used to prevent
<select>
elements from poking through menus in IE 6.
Default: "<iframe frameborder="0" tabindex="-1" class="yui-shim" title="Menu Stacking Shim" src="javascript:false;"></iframe>"
SHIM_TEMPLATE_TITLE
String representing the value for the title
attribute for the shim used to prevent <select>
elements
from poking through menus in IE 6.
Default: "Menu Stacking Shim"
mouseOutHideDelay
Number indicating the time (in milliseconds) that should expire before a submenu is hidden when the user mouses out of it.
Default: 750
mouseOutHideDelayChange
Fires when the value for the configuration attribute mouseOutHideDelay
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
useARIA
Boolean indicating if use of the WAI-ARIA Roles and States should be enabled for the menu.
Default: true
useARIAChange
Fires when the value for the configuration attribute useARIA
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade