public abstract class AbstractAction extends AbstractObservable implements Action
pcs
KEY_ACTION_NAME, KEY_ENABLED, KEY_NAME
Constructor and Description |
---|
AbstractAction(ActionManager actionManager,
GriffonController controller,
ActionMetadata actionMetadata) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doExecute(java.lang.Object... args) |
protected abstract void |
doInitialize() |
void |
execute(java.lang.Object... args) |
ActionManager |
getActionManager() |
ActionMetadata |
getActionMetadata()
Returns the metadata of this action.
|
java.lang.String |
getActionName() |
GriffonController |
getController() |
java.lang.String |
getFullyQualifiedName()
Returns the fully qualified name of this action.
|
java.lang.String |
getName() |
void |
initialize() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setName(java.lang.String name) |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getToolkitAction
public AbstractAction(@Nonnull ActionManager actionManager, @Nonnull GriffonController controller, @Nonnull ActionMetadata actionMetadata)
@Nonnull public ActionMetadata getActionMetadata()
Action
getActionMetadata
in interface Action
@Nonnull public ActionManager getActionManager()
getActionManager
in interface Action
@Nonnull public GriffonController getController()
getController
in interface Action
@Nonnull public java.lang.String getActionName()
getActionName
in interface Action
@Nonnull public java.lang.String getFullyQualifiedName()
Action
getFullyQualifiedName
in interface Action
public void setEnabled(boolean enabled)
setEnabled
in interface Action
public void setName(@Nullable java.lang.String name)
public final void execute(java.lang.Object... args)
protected abstract void doExecute(java.lang.Object... args)
public final void initialize()
initialize
in interface Action
protected abstract void doInitialize()