@OpenApiAll public class MDStateAction extends NMStateAction implements com.nomagic.magicdraw.actions.ShortcutSchemaAction
ActionsGroupController for checking enabled/disable state of assigned relative actions group(if it has some group).DISTINGUISH, GROUPED, STATEACTION_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 |
|---|
MDStateAction(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.
|
MDStateAction(java.lang.String id,
java.lang.String name,
javax.swing.KeyStroke stroke,
java.lang.String group)
Creates the action with given id, name, key stroke, group.
|
MDStateAction(java.lang.String id,
java.lang.String name,
javax.swing.KeyStroke stroke,
java.lang.String group,
boolean useShortcutSchema)
Creates the action with given id, name, key stroke, group.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Executes action.
|
boolean |
isUseShortcutSchema() |
void |
updateState()
If action has assigned relative group, takes enable flag value from this group and sets to itself.
|
accept, getState, isDistinguish, isGrouped, setDistinguish, setGrouped, setStateaddAction, addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, clone, compareTo, createMenuItem, equals, firePropertyChange, forEach, forEachIncludingSelf, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removeAction, removeIf, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setDescription, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, shallowClone, toStringpublic MDStateAction(@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 MDStateAction(@CheckForNull
java.lang.String id,
@CheckForNull
java.lang.String name,
@CheckForNull
javax.swing.KeyStroke stroke,
@CheckForNull
java.lang.String group,
boolean useShortcutSchema)
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.useShortcutSchema - use shortcuts schemapublic MDStateAction(@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 void actionPerformed(@CheckForNull
java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class NMStateActione - event caused execution.public void updateState()
updateState in class NMActionpublic boolean isUseShortcutSchema()
isUseShortcutSchema in interface com.nomagic.magicdraw.actions.ShortcutSchemaAction