@OpenApiAll public class MDActionsCategory extends ActionsCategory
ActionsGroupController
for checking
enabled/disable state of assigned relative actions group(if it has some
group).ACTIONS_PROPERTY, ADDED_ACTION_PROPERTY, CHANGE_ACTIONS_PROPERTY, MAX_CATEGORY_ACTIONS, REMOVED_ACTION_PROPERTY, USE_AS_SEPARATOR_IN_UI
ACTION_SHORTCUTS, BELONGS_TO_SEPARATE_GROUP_IN_UI, DO_NO_SHOW_ACTION_NAME_IN_UI, GENERATED_ID_PREFIX, GROUP, ID, LARGE_ICON, MENU_SHORTCUT_MASK, TINY_ICON
Constructor and Description |
---|
MDActionsCategory(java.lang.String id,
java.lang.String name)
Constructs the action with given id, name, mnemonic key and group.
|
MDActionsCategory(java.lang.String id,
java.lang.String name,
int mnemonic)
Constructs the action with given id, name, mnemonic key and group.
|
MDActionsCategory(java.lang.String id,
java.lang.String name,
int mnemonic,
java.lang.String group)
Constructs the action with given id, name, mnemonic key and group.
|
MDActionsCategory(java.lang.String id,
java.lang.String name,
javax.swing.KeyStroke stroke,
java.lang.String group)
Constructs the action with given id, name, keystroke and group.
|
Modifier and Type | Method and Description |
---|---|
void |
updateState()
If action has assigned relative group, takes enable flag value from this group and sets to itself.
|
accept, actionPerformed, addAction, addAction, addActions, breakActions, breakActions, breakActions, breakeActions, clone, getAction, getActions, getActionsRecursively, getCategories, isDisplayHeader, isEmpty, isNested, isUseActionForDisable, removeAction, setActions, setDisplayHeader, setNested, setUseActionForDisable, shallowClone, size, sort
addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, compareTo, createMenuItem, equals, firePropertyChange, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setDescription, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, toString
public MDActionsCategory(@CheckForNull java.lang.String id, @CheckForNull java.lang.String name, @CheckForNull javax.swing.KeyStroke stroke, @CheckForNull java.lang.String group)
id
- the id of the action.name
- the name of the action.stroke
- the KeyStroke of the actiongroup
- the name of the related commands group.public MDActionsCategory(@CheckForNull java.lang.String id, @CheckForNull java.lang.String name, int mnemonic, @CheckForNull java.lang.String group)
id
- the id of the action.name
- the name of the action.mnemonic
- the mnemonic key of the actiongroup
- the name of the related commands group.public MDActionsCategory(@CheckForNull java.lang.String id, @CheckForNull java.lang.String name, int mnemonic)
id
- the id of the action.name
- the name of the action.mnemonic
- mnemonic charpublic MDActionsCategory(@CheckForNull java.lang.String id, @CheckForNull java.lang.String name)
id
- the id of the action.name
- the name of the action.public void updateState()
updateState
in class NMAction