public class NoopActionManager extends Object implements ActionManager
ACTION
Constructor and Description |
---|
NoopActionManager() |
Modifier and Type | Method and Description |
---|---|
Action |
actionFor(GriffonController controller,
String actionName) |
Map<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,
Object... args)
Execute the action using registered
ActionHandler s. |
void |
invokeAction(GriffonController controller,
String actionName,
Object... args)
Execute the action using registered
ActionHandler s. |
String |
normalizeName(String actionName) |
void |
updateAction(Action action)
Update the action's properties using registered
ActionHandler s. |
void |
updateAction(GriffonController controller,
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 Map<String,Action> actionsFor(@Nonnull GriffonController controller)
actionsFor
in interface ActionManager
@Nullable public Action actionFor(@Nonnull GriffonController controller, @Nonnull String actionName)
actionFor
in interface ActionManager
public void createActions(@Nonnull GriffonController controller)
createActions
in interface ActionManager
@Nonnull public String normalizeName(@Nonnull 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 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 String actionName, 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 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