Package org.pepsoft.util.swing
Class BetterAction
java.lang.Object
javax.swing.AbstractAction
org.pepsoft.util.swing.BetterAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- See Also:
-
Field Summary
Fields 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 TypeMethodDescriptionfinal KeyStrokefinal StringgetName()final booleanfinal voidsetAcceleratorKey(KeyStroke acceleratorKey) final voidsetSelected(boolean selected) final voidsetShortDescription(String shortDescription) Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.ActionListener
actionPerformed
-
Constructor Details
-
BetterAction
-
BetterAction
-
-
Method Details
-
getName
-
setShortDescription
-
setAcceleratorKey
-
getAcceleratorKey
-
setSelected
public final void setSelected(boolean selected) -
isSelected
public final boolean isSelected()
-