public class GenericAction extends AbstractAction implements ChangeListener
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_PROPERTY |
static String |
ALT |
static String |
CTRL |
static String |
SHIFT |
static String |
TAG_CONTEXTS |
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
GenericAction() |
GenericAction(String strId,
String strName,
String icon,
char cMnemonic,
KeyStroke accel,
String strShortDesc,
String strLongDesc) |
| Modifier and Type | Method and 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) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabledpublic static final String ACTION_PROPERTY
public static final String CTRL
public static final String ALT
public static final String SHIFT
public static final String TAG_CONTEXTS
public String getId()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic boolean isEnabled()
isEnabled in interface ActionisEnabled in class AbstractActionpublic boolean isSelected()
public String getName()
public Icon getIcon()
public void setIcon(Icon icon)
public ConditionalActionHandler getConditionalActionHandler()
public void setConditionalActionHandler(ConditionalActionHandler actionHandler)
public void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerCopyright © 2016. All rights reserved.