public abstract class BaseAction 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 |
---|
BaseAction()
Creates a new base action.
|
Modifier and Type | Method and Description |
---|---|
protected void |
defineProperties()
Defines the action's properties.
|
protected abstract String |
getName()
Returns the action's name.
|
protected boolean |
requiresFile()
Returns whether the action requires the active workbook to be
stored in a file in order to be enabled.
|
protected boolean |
requiresModification()
Returns whether the action requires the active workbook to be
modified in order to be enabled.
|
protected void |
showErrorDialog(Object message)
Shows the user an error message.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionPerformed
public BaseAction()
protected abstract String getName()
protected void defineProperties()
protected boolean requiresModification()
protected boolean requiresFile()
protected void showErrorDialog(Object message)