Package editor.actions
Class GenericAction
java.lang.Object
javax.swing.AbstractAction
editor.actions.GenericAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,ChangeListener
- Direct Known Subclasses:
CommonMenus.MuteBreakpointsActionHandler
,ToolContainer.CloseTabAction
,ToolContainer.DisplayTabsAction
,ToolContainer.MaximizeAction
,ToolContainer.MinimizeAction
,ToolContainer.RestoreAction
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConditionalActionHandler
static final String
static final String
static final String
static final String
static final String
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getIcon()
getId()
getName()
boolean
boolean
protected KeyStroke
parseAccelerator
(String strAccelerator) void
setConditionalActionHandler
(ConditionalActionHandler actionHandler) void
void
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
ACTION_PROPERTY
- See Also:
-
CTRL
- See Also:
-
ALT
- See Also:
-
SHIFT
- See Also:
-
TAG_CONTEXTS
- See Also:
-
_actionHandler
-
-
Constructor Details
-
GenericAction
public GenericAction() -
GenericAction
-
-
Method Details
-
getId
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceAction
- Overrides:
isEnabled
in classAbstractAction
-
isSelected
public boolean isSelected() -
getName
-
getIcon
-
setIcon
-
getConditionalActionHandler
-
setConditionalActionHandler
-
parseAccelerator
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-