Package docking.menu
Class MenuManager
java.lang.Object
docking.menu.MenuManager
Class to manage a hierarchy of menus.
-
Constructor Summary
ConstructorsChangeConstructorDescriptionMenuManager(String name, int mnemonicKey, String group, boolean usePopupPath, MenuHandler menuHandler, MenuGroupMap menuGroupMap) Constructs a new MenuManager -
Method Summary
ChangeModifier and TypeMethodDescriptionvoidaddAction(DockingActionIf action) Adds an action to this menu.voiddispose()getGroup()getMenu()Returns a Menu hierarchy of all the actionsReturns a JPopupMenu for the action hierarchybooleanisEmpty()Tests if this menu is empty.voidmenuGroupChanged(String[] theMenuPath, int i, String localGroup) Notification that a menu item has changed groups.booleanremoveAction(DockingActionIf action) toString()REMOVEDchargetMnemonicKey(String str) RemovedREMOVEDStringstripMnemonicAmp(String text) Removed
-
Constructor Details
-
Method Details
-
addAction
Adds an action to this menu. Can create subMenus depending on the menuPath of the action- Parameters:
action- the action to be added
-
getAction
-
isEmpty
public boolean isEmpty()Tests if this menu is empty. -
getMenu
Returns a Menu hierarchy of all the actions- Returns:
- the menu
-
getMenuItem
- See Also:
-
getGroup
- See Also:
-
getSubGroup
-
dispose
public void dispose() -
getPopupMenu
Returns a JPopupMenu for the action hierarchy- Returns:
- the popup menu
-
removeAction
-
toString
-
getMenuHandler
-
getMenuItemText
-