Class YAHOO.widget.MenuManager
Package: | YAHOO.widget |
Class: | MenuManager |
Extends: | Object |
Defined In: | menu.js |
Singleton that manages a collection of all menus and menu items. Listens for
DOM events at the document level and dispatches the events to the
corresponding menu or menu item.
Public Properties
This class has no public properties.
Public Methods
|
addMenu(YAHOO.widget.Menu p_oMenu ) : void |
MenuManager |
Adds a menu to the collection of known menus. |
|
getMenu(String p_sId ) : YAHOO.widget.Menu |
MenuManager |
Returns a menu with the specified id. |
|
getMenus() : Array |
MenuManager |
Returns an array of all menus registered with the
menu manger. |
|
hideVisible() : void |
MenuManager |
Hides all visible, dynamically positioned menus. |
|
removeMenu(YAHOO.widget.Menu p_oMenu ) : void |
MenuManager |
Removes a menu from the collection of known menus. |
|
toString() : String |
MenuManager |
Returns a string representing the menu manager. |
Public Events
This class has no public events.
Method Details
addMenu
public function addMenu(YAHOO.widget.Menu p_oMenu
)
Adds a menu to the collection of known menus.
This method is defined by MenuManager.
getMenu
public function getMenu(String p_sId
)
Returns a menu with the specified id.
This method is defined by MenuManager.
getMenus
public function getMenus()
Returns an array of all menus registered with the
menu manger.
This method is defined by MenuManager.
hideVisible
public function hideVisible()
Hides all visible, dynamically positioned menus.
This method is defined by MenuManager.
removeMenu
public function removeMenu(YAHOO.widget.Menu p_oMenu
)
Removes a menu from the collection of known menus.
This method is defined by MenuManager.
toString
public function toString()
Returns a string representing the menu manager.
This method is defined by MenuManager.
yui-ext - Copyright © 2006 Jack Slocum. |
Yahoo! UI - Copyright © 2006 Yahoo! Inc.
All rights reserved.