public class NoopActionManager extends java.lang.Object implements ActionManager
ACTION
Constructor and Description |
---|
NoopActionManager() |
Modifier and Type | Method and Description |
---|---|
Action |
actionFor(GriffonController controller,
java.lang.String actionName) |
java.util.Map<java.lang.String,Action> |
actionsFor(GriffonController controller) |
void |
addActionHandler(ActionHandler actionHandler)
Register an
ActionHandler with this instance. |
void |
addActionInterceptor(ActionInterceptor actionInterceptor)
Deprecated.
|
void |
createActions(GriffonController controller) |
void |
invokeAction(Action action,
java.lang.Object... args)
Execute the action using registered
ActionHandler s. |
void |
invokeAction(GriffonController controller,
java.lang.String actionName,
java.lang.Object... args)
Execute the action using registered
ActionHandler s. |
java.lang.String |
normalizeName(java.lang.String actionName) |
void |
updateAction(Action action)
Update the action's properties using registered
ActionHandler s. |
void |
updateAction(GriffonController controller,
java.lang.String actionName)
Update the action's properties using registered
ActionHandler s. |
void |
updateActions()
Updates all actions currently configured.
|
void |
updateActions(GriffonController controller)
Updates all actions belonging to the supplied controller.
|
@Nonnull public java.util.Map<java.lang.String,Action> actionsFor(@Nonnull GriffonController controller)
actionsFor
in interface ActionManager
@Nullable public Action actionFor(@Nonnull GriffonController controller, @Nonnull java.lang.String actionName)
actionFor
in interface ActionManager
public void createActions(@Nonnull GriffonController controller)
createActions
in interface ActionManager
@Nonnull public java.lang.String normalizeName(@Nonnull java.lang.String actionName)
normalizeName
in interface ActionManager
public void updateActions()
ActionManager
updateActions
in interface ActionManager
public void updateActions(@Nonnull GriffonController controller)
ActionManager
updateActions
in interface ActionManager
controller
- the controller that owns the actions to be updated.public void updateAction(@Nonnull Action action)
ActionManager
ActionHandler
s.updateAction
in interface ActionManager
action
- the action to be updatedpublic void updateAction(@Nonnull GriffonController controller, @Nonnull java.lang.String actionName)
ActionManager
ActionHandler
s.updateAction
in interface ActionManager
controller
- the controller that owns the actionactionName
- the action's namepublic void invokeAction(@Nonnull GriffonController controller, @Nonnull java.lang.String actionName, java.lang.Object... args)
ActionManager
ActionHandler
s.invokeAction
in interface ActionManager
controller
- the controller that owns the actionactionName
- the action's nameargs
- additional arguments to be sent to the actionpublic void invokeAction(@Nonnull Action action, @Nonnull java.lang.Object... args)
ActionManager
ActionHandler
s.invokeAction
in interface ActionManager
action
- the action to be invokedargs
- additional arguments to be sent to the actionpublic void addActionHandler(@Nonnull ActionHandler actionHandler)
ActionManager
ActionHandler
with this instance.addActionHandler
in interface ActionManager
actionHandler
- the handler to be added to this ActionManager@Deprecated public void addActionInterceptor(@Nonnull ActionInterceptor actionInterceptor)
ActionManager
ActionInterceptor
with this instance.addActionInterceptor
in interface ActionManager
actionInterceptor
- the interceptor to be added to this ActionManager