public static class GeneiousAction.SubMenu extends GeneiousAction
GeneiousAction.Divider, GeneiousAction.SubMenu, GeneiousAction.ToggleActionDESC, ICON, NAMEchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
GeneiousAction.SubMenu(GeneiousActionOptions actionOptions,
List<GeneiousAction> subMenuActions) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
addSubMenuActionsChangedListener(SimpleListener listener)
Add a simple listener to this action which will be fired when the actions in the submenu/popup-menu are changed.
|
Icons |
getPopupIcons()
Get the icons which should be used for this action when it is displayed as a toolbar button.
|
List<GeneiousAction> |
getSubMenuActions()
Get the actions that appear in the submen/popup-menu, in the same order they will appear in the menu.
|
void |
removeSubMenuActionsChangedListener(SimpleListener listener)
Remove a SubMenuActionsChangedListener
|
void |
setPopupIcons(Icons popupIcons)
Set the icons which should be used for this action when it is displayed as a toolbar button.
|
void |
setSubMenuActions(List<GeneiousAction> subMenuActions)
Set the list of actions which will appear in the submenu/popup-menu.
|
asMenuItem, asToolbarButton, equals, getActionsInMainMenuOrder, getActionsInPopupMenuOrder, getActionsInToolbarOrder, getCategory, getDescription, getIcon16, getIcon24, getIcon32, getIdentifier, getMainMenuLocation, getName, getOptions, getShortcut, hashCode, isEnabled, isInMainToolbar, isInPopupMenu, isProOnly, setDescription, setEnabled, setIcons, setInMainToolbar, setInMainToolbar, setInPopupMenu, setInPopupMenu, setMainMenuLocation, setMainMenuLocation, setName, setProOnly, setShortcutKey, toStringaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListenerpublic GeneiousAction.SubMenu(GeneiousActionOptions actionOptions, List<GeneiousAction> subMenuActions)
actionOptions - GeneiousActionOptions that will determine the properties of the actionsubMenuActions - List of GeneiousActions that will appear in the submenu/popup-menu. Actions will appear
in the menu in the same order as they are in this list.public void actionPerformed(ActionEvent e)
public List<GeneiousAction> getSubMenuActions()
public Icons getPopupIcons()
public void setPopupIcons(Icons popupIcons)
popupIcons - Icons which should be used for this action when it is displayed as a toolbar button.public void setSubMenuActions(List<GeneiousAction> subMenuActions)
subMenuActions - the list of actions which will appear in the submenu/popup-menu.public void addSubMenuActionsChangedListener(SimpleListener listener)
listener - SimpleListener which will be fired when the actions in the submenu/popup-menu are changed.removeSubMenuActionsChangedListener(org.virion.jam.util.SimpleListener)public void removeSubMenuActionsChangedListener(SimpleListener listener)
listener - to remove from the action.addSubMenuActionsChangedListener(org.virion.jam.util.SimpleListener)