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 ConditionalActionHandlerstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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 TypeMethodDescriptionvoidgetIcon()getId()getName()booleanbooleanprotected KeyStrokeparseAccelerator(String strAccelerator) voidsetConditionalActionHandler(ConditionalActionHandler actionHandler) voidvoidMethods 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:
actionPerformedin interfaceActionListener
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceAction- Overrides:
isEnabledin classAbstractAction
-
isSelected
public boolean isSelected() -
getName
-
getIcon
-
setIcon
-
getConditionalActionHandler
-
setConditionalActionHandler
-
parseAccelerator
-
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-