public interface ActionManager
| 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.
use
addActionHandler instead. |
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.
|
static final String ACTION
@Nullable Action actionFor(@Nonnull GriffonController controller, @Nonnull String actionName)
void createActions(@Nonnull GriffonController controller)
void updateActions()
void updateActions(@Nonnull GriffonController controller)
controller - the controller that owns the actions to be updated.void updateAction(@Nonnull Action action)
ActionHandlers.action - the action to be updatedvoid updateAction(@Nonnull GriffonController controller, @Nonnull String actionName)
ActionHandlers.controller - the controller that owns the actionactionName - the action's namevoid invokeAction(@Nonnull GriffonController controller, @Nonnull String actionName, Object... args)
ActionHandlers.controller - the controller that owns the actionactionName - the action's nameargs - additional arguments to be sent to the actionvoid invokeAction(@Nonnull Action action, @Nonnull Object... args)
ActionHandlers.action - the action to be invokedargs - additional arguments to be sent to the actionvoid addActionHandler(@Nonnull ActionHandler actionHandler)
ActionHandler with this instance.actionHandler - the handler to be added to this ActionManager@Deprecated void addActionInterceptor(@Nonnull ActionInterceptor actionInterceptor)
addActionHandler instead.ActionInterceptor with this instance.actionInterceptor - the interceptor to be added to this ActionManager