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.
_afterActiveDescendantChangeevent
menuNav
"activeDescendantChange" event handler for menu's Focus Manager.
event
Object
Object representing the Attribute change event.
menuNav
NodeMenuNav
Object representing the NodeMenuNav instance.
_clearActiveItemClears the menu's active descendent.
_focusItemitem
Focuses the specified menuitem or menu label.
item
Node
Node instance representing a menuitem or menu label.
_hideAndFocusLabelHides all of the submenus of the root menu and focuses the label of the topmost submenu
_hideMenumenu
activateAndFocusLabel
Hides the specified menu.
_initFocusManagerInitializes and updates the Focus Manager so that is is always managing descendants of the active menu.
_isRootmenu
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.
_onActiveDescendantChangeevent
menuNav
"activeDescendantChange" event handler for menu's Focus Manager.
event
Object
Object representing the Attribute change event.
menuNav
NodeMenuNav
Object representing the NodeMenuNav instance.
_onDocFocusevent
"focus" event handler for the owner document of the MenuNav.
event
Object
Object representing the DOM event.
_onDocMouseDownevent
"mousedown" event handler for the owner document of the menu.
event
Object
Object representing the DOM event.
_onHorizontalMenuKeyDownevent
"keydown" event handler for horizontal menus.
event
Object
Object representing the DOM event.
_onKeyDownevent
"keydown" event handler for the menu.
event
Object
Object representing the DOM event.
_onKeyPressevent
"keypress" event handler for the menu.
event
Object
Object representing the DOM event.
_onMenuItemMouseOutmenuItem
event
"mouseout" event handler for a menuitem.
_onMenuItemMouseOvermenuItem
event
"mouseover" event handler for a menuitem.
_onMenuLabelMouseOutmenuLabel
event
"mouseout" event handler for a menu label.
_onMenuLabelMouseOvermenuLabel
event
"mouseover" event handler for a menu label.
_onMenuMouseOutmenu
event
"mouseout" event handler for a menu.
_onMenuMouseOvermenu
event
"mouseover" event handler for a menu.
_onMouseMoveevent
"mousemove" event handler for the menu.
event
Object
Object representing the DOM event.
_onMouseOutevent
"mouseout" event handler for the menu.
event
Object
Object representing the DOM event.
_onMouseOverevent
"mouseover" event handler for the menu.
event
Object
Object representing the DOM event.
_onVerticalMenuKeyDownevent
"keydown" event handler for vertical menus.
event
Object
Object representing the DOM event.
_setActiveItemitem
Sets the specified menuitem or menu label as the menu's active descendent.
item
Node
Node instance representing a menuitem or menu label.
_showMenumenu
Shows the specified menu.
menu
Node
Node instance representing a menu.
_activeItemNode instance representing the menu's active descendent: the menuitem or menu label the user is currently interacting with.
Default: null
_activeMenuNode instance representing the menu that is the parent of the menu's active descendent.
Default: null
_blockMouseEventBoolean indicating whether or not to handle the "mouseover" event.
Default: false
_currentMouseXNumber representing the current x coordinate of the mouse inside the menu.
Default: 0
_firstItemNode instance representing the first item (menuitem or menu label) in the root menu of a menu.
Default: null
SHIM_TEMPLATEString 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_TITLEString 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"
mouseOutHideDelayNumber 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
useARIABoolean 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