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 StringACTION_PROPERTYstatic StringALTstatic StringCTRLstatic StringSHIFTstatic StringTAG_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 voidactionPerformed(ActionEvent e)ConditionalActionHandlergetConditionalActionHandler()IcongetIcon()StringgetId()StringgetName()booleanisEnabled()booleanisSelected()protected KeyStrokeparseAccelerator(String strAccelerator)voidsetConditionalActionHandler(ConditionalActionHandler actionHandler)voidsetIcon(Icon icon)voidstateChanged(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:
actionPerformedin interfaceActionListener
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceAction- Overrides:
isEnabledin 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:
stateChangedin interfaceChangeListener
-
-