Package docking.action
Class MenuData
java.lang.Object
docking.action.MenuData
- Direct Known Subclasses:
MenuBarData
,PopupMenuData
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected void
firePropertyChanged
(MenuData oldData) Returns the group for the menu item created by this data.Returns the icon assigned to this action's menu.String[]
Returns the menu path.Returns the subgroup string.int
Returns the group for the parent menu of the menu item created by this data.void
void
setMenuGroup
(String newGroup) void
setMenuItemName
(String newMenuItemName) void
setMenuPath
(String[] newPath) void
setMenuSubGroup
(String newSubGroup) void
setMnemonic
(Character newMnemonic) void
setParentMenuGroup
(String newParentMenuGroup) See the description ingetParentMenuGroup()
-
Field Details
-
NO_MNEMONIC
public static final int NO_MNEMONIC- See Also:
-
NO_SUBGROUP
-
-
Constructor Details
-
MenuData
-
MenuData
-
MenuData
-
MenuData
-
MenuData
-
MenuData
-
-
Method Details
-
cloneData
-
firePropertyChanged
-
getMenuPath
Returns the menu path.- Returns:
- an array of strings where each string is an element of a higher level menu.
-
getMenuPathAsString
-
getMnemonic
public int getMnemonic() -
getMenuIcon
Returns the icon assigned to this action's menu. Null indicates that this action does not have a menu icon- Returns:
- the icon
-
getMenuGroup
Returns the group for the menu item created by this data. This value determines which section inside of the tool's popup menu the menu item will be placed. If you need to control the ordering within a section, then provide a value forsetMenuSubGroup(String)
.- Returns:
- the group
-
getMenuSubGroup
Returns the subgroup string. This string is used to sort items within atoolbar group
. This value is not required. If not specified, then the value will effectively place this item at the end of its specified group.- Returns:
- the sub-group
-
getParentMenuGroup
Returns the group for the parent menu of the menu item created by this data. That is, this value is effectively the same asgetMenuGroup()
, but for the parent menu item of this data's item. Setting this value is only valid if thegetMenuPath()
has a length greater than 1.- Returns:
- the parent group
-
setIcon
-
setMenuGroup
-
setMenuSubGroup
-
setParentMenuGroup
See the description ingetParentMenuGroup()
- Parameters:
newParentMenuGroup
- the parent group
-
setMenuPath
-
setMnemonic
-
setMenuItemName
-
getMenuItemName
-