public abstract class BetterAction extends AbstractAction
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 |
|---|
BetterAction(String name) |
BetterAction(String name,
Icon icon) |
| Modifier and Type | Method and Description |
|---|---|
KeyStroke |
getAcceleratorKey() |
String |
getName() |
boolean |
isSelected() |
void |
setAcceleratorKey(KeyStroke acceleratorKey) |
void |
setSelected(boolean selected) |
void |
setShortDescription(String shortDescription) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionPerformedpublic BetterAction(String name)
public final String getName()
public final void setShortDescription(String shortDescription)
public final void setAcceleratorKey(KeyStroke acceleratorKey)
public final KeyStroke getAcceleratorKey()
public final void setSelected(boolean selected)
public final boolean isSelected()