@OpenApiAll public class DefaultBrowserStateAction extends MDStateAction implements BrowserAction
DISTINGUISH, GROUPED, STATE
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
Constructor and Description |
---|
DefaultBrowserStateAction(java.lang.String actionID,
java.lang.String actionName,
javax.swing.KeyStroke stroke,
java.lang.String group)
Constructs new action.
|
Modifier and Type | Method and Description |
---|---|
Tree |
getTree()
Return tree of this action.
|
void |
setTree(Tree tree)
Set tree for this action.
|
actionPerformed, updateState
accept, getState, isDistinguish, isGrouped, setDistinguish, setGrouped, setState
addAction, addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, clone, compareTo, createMenuItem, equals, firePropertyChange, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getLargeOrSmallIcon, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, hashCode, isIDGenerated, removeAction, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setDescription, setGroup, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, shallowClone, toString
public DefaultBrowserStateAction(java.lang.String actionID, java.lang.String actionName, @CheckForNull javax.swing.KeyStroke stroke, java.lang.String group)
actionID
- the action ID.actionName
- the action name.stroke
- the action stroke.group
- the action group.public void setTree(Tree tree)
setTree
in interface BrowserAction
tree
- the browser for this action.public Tree getTree()