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(Object... args) |
protected abstract void |
doInitialize() |
void |
execute(Object... args) |
ActionManager |
getActionManager() |
ActionMetadata |
getActionMetadata()
Returns the metadata of this action.
|
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, 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 String getActionName()
getActionName
in interface Action
@Nonnull public String getFullyQualifiedName()
Action
getFullyQualifiedName
in interface Action
public void setEnabled(boolean enabled)
setEnabled
in interface Action
protected abstract void doExecute(Object... args)
public final void initialize()
initialize
in interface Action
protected abstract void doInitialize()