public abstract class ExtendedAbstractAction extends AbstractAction
changeSupport, enabled
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 and Description |
---|
ExtendedAbstractAction()
Constructs an instance of this class with the default path prefix
/resources/symbols/ . |
ExtendedAbstractAction(String pathPrefix)
Constructs an instance of this class with the specified path prefix.
|
Modifier and Type | Method and Description |
---|---|
String |
getPathPrefix() |
protected void |
loadSymbols(String name)
Loads the small and large icon for this action from /resources/symbols/ in the
the JAR file.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionPerformed
public ExtendedAbstractAction()
/resources/symbols/
.public ExtendedAbstractAction(String pathPrefix)
public String getPathPrefix()
protected void loadSymbols(String name)
name
- the prefix of the file name of the image files