Package docking.menu
Class MenuGroupMap
java.lang.Object
docking.menu.MenuGroupMap
Maps menuPaths to groups
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMenuGroup
(String[] menuPath) Returns the group for the given menu pathgetMenuSubGroup
(String[] menuPath) Returns the menu subgroup string for the given menu path.void
setMenuGroup
(String[] menuPath, String group, String menuSubGroup) Sets the group for the given menuPath
-
Constructor Details
-
MenuGroupMap
public MenuGroupMap()
-
-
Method Details
-
setMenuGroup
Sets the group for the given menuPath- Parameters:
menuPath
- the menuPath for which to assign a groupgroup
- the name of the group for the action with the given menu pathmenuSubGroup
- the name used for sorting items in the samegroup
. If this value isMenuData.NO_SUBGROUP
, then sorting is based upon the name of the menu item.
-
getMenuGroup
Returns the group for the given menu path- Parameters:
menuPath
- the menu path for which to find its group- Returns:
- the menu group
-
getMenuSubGroup
Returns the menu subgroup string for the given menu path. This string is used to perform sorting of menu items that exist in the same group.- Parameters:
menuPath
- the menu path for which to find its group- Returns:
- the menu sub-group
-