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
public class GenericAction extends AbstractAction implements ChangeListener
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_PROPERTY
static String
ALT
static String
CTRL
static String
SHIFT
static String
TAG_CONTEXTS
-
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 Constructor Description GenericAction()
GenericAction(String strId, String strName, String icon, char cMnemonic, KeyStroke accel, String strShortDesc, String strLongDesc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
ConditionalActionHandler
getConditionalActionHandler()
Icon
getIcon()
String
getId()
String
getName()
boolean
isEnabled()
boolean
isSelected()
protected KeyStroke
parseAccelerator(String strAccelerator)
void
setConditionalActionHandler(ConditionalActionHandler actionHandler)
void
setIcon(Icon icon)
void
stateChanged(ChangeEvent e)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
ACTION_PROPERTY
public static final String ACTION_PROPERTY
- See Also:
- Constant Field Values
-
CTRL
public static final String CTRL
- See Also:
- Constant Field Values
-
ALT
public static final String ALT
- See Also:
- Constant Field Values
-
SHIFT
public static final String SHIFT
- See Also:
- Constant Field Values
-
TAG_CONTEXTS
public static final String TAG_CONTEXTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceAction
- Overrides:
isEnabled
in classAbstractAction
-
isSelected
public boolean isSelected()
-
getName
public String getName()
-
getIcon
public Icon getIcon()
-
setIcon
public void setIcon(Icon icon)
-
getConditionalActionHandler
public ConditionalActionHandler getConditionalActionHandler()
-
setConditionalActionHandler
public void setConditionalActionHandler(ConditionalActionHandler actionHandler)
-
stateChanged
public void stateChanged(ChangeEvent e)
- Specified by:
stateChanged
in interfaceChangeListener
-
-