public abstract class AbstractAction extends AbstractObservable implements Action
pcsKEY_ACTION_NAME, KEY_ENABLED, KEY_NAME| Constructor and Description |
|---|
AbstractAction(ActionManager actionManager,
GriffonController controller,
String actionName) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doExecute(Object... args) |
protected abstract void |
doInitialize() |
void |
execute(Object... args) |
ActionManager |
getActionManager() |
String |
getActionName() |
GriffonController |
getController() |
String |
getFullyQualifiedName()
Returns the fully qualified name of this action.
|
String |
getName() |
void |
initialize() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setName(String name) |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetToolkitActionpublic AbstractAction(@Nonnull ActionManager actionManager, @Nonnull GriffonController controller, @Nonnull String actionName)
@Nonnull public ActionManager getActionManager()
getActionManager in interface Action@Nonnull public GriffonController getController()
getController in interface Action@Nonnull public String getActionName()
getActionName in interface Action@Nonnull public String getFullyQualifiedName()
ActiongetFullyQualifiedName in interface Actionpublic void setEnabled(boolean enabled)
setEnabled in interface Actionprotected abstract void doExecute(Object... args)
public final void initialize()
initialize in interface Actionprotected abstract void doInitialize()