public abstract class AbstractAction extends AbstractObservable implements Action
pcs
KEY_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 |
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 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
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()