public interface ActionManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION |
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.
use
addActionHandler instead. |
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.
|
static final java.lang.String ACTION
@Nonnull java.util.Map<java.lang.String,Action> actionsFor(@Nonnull GriffonController controller)
@Nullable Action actionFor(@Nonnull GriffonController controller, @Nonnull java.lang.String actionName)
void createActions(@Nonnull GriffonController controller)
@Nonnull java.lang.String normalizeName(@Nonnull java.lang.String actionName)
void updateActions()
void updateActions(@Nonnull GriffonController controller)
controller
- the controller that owns the actions to be updated.void updateAction(@Nonnull Action action)
ActionHandler
s.action
- the action to be updatedvoid updateAction(@Nonnull GriffonController controller, @Nonnull java.lang.String actionName)
ActionHandler
s.controller
- the controller that owns the actionactionName
- the action's namevoid invokeAction(@Nonnull GriffonController controller, @Nonnull java.lang.String actionName, java.lang.Object... args)
ActionHandler
s.controller
- the controller that owns the actionactionName
- the action's nameargs
- additional arguments to be sent to the actionvoid invokeAction(@Nonnull Action action, @Nonnull java.lang.Object... args)
ActionHandler
s.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