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
ActionHandlers. |
void |
invokeAction(GriffonController controller,
String actionName,
Object... args)
Execute the action using registered
ActionHandlers. |
String |
normalizeName(String actionName) |
void |
updateAction(Action action)
Update the action's properties using registered
ActionHandlers. |
void |
updateAction(GriffonController controller,
String actionName)
Update the action's properties using registered
ActionHandlers. |
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 ActionManagerpublic void createActions(@Nonnull GriffonController controller)
createActions in interface ActionManager@Nonnull public String normalizeName(@Nonnull String actionName)
normalizeName in interface ActionManagerpublic void updateActions()
ActionManagerupdateActions in interface ActionManagerpublic void updateActions(@Nonnull GriffonController controller)
ActionManagerupdateActions in interface ActionManagercontroller - the controller that owns the actions to be updated.public void updateAction(@Nonnull Action action)
ActionManagerActionHandlers.updateAction in interface ActionManageraction - the action to be updatedpublic void updateAction(@Nonnull GriffonController controller, @Nonnull String actionName)
ActionManagerActionHandlers.updateAction in interface ActionManagercontroller - the controller that owns the actionactionName - the action's namepublic void invokeAction(@Nonnull GriffonController controller, @Nonnull String actionName, Object... args)
ActionManagerActionHandlers.invokeAction in interface ActionManagercontroller - 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)
ActionManagerActionHandlers.invokeAction in interface ActionManageraction - the action to be invokedargs - additional arguments to be sent to the actionpublic void addActionHandler(@Nonnull ActionHandler actionHandler)
ActionManagerActionHandler with this instance.addActionHandler in interface ActionManageractionHandler - the handler to be added to this ActionManager@Deprecated public void addActionInterceptor(@Nonnull ActionInterceptor actionInterceptor)
ActionManagerActionInterceptor with this instance.addActionInterceptor in interface ActionManageractionInterceptor - the interceptor to be added to this ActionManager