public class ActionController extends Object implements Externalizable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ActionController.ActionResultProcessor |
| Constructor and Description |
|---|
ActionController() |
| Modifier and Type | Method and Description |
|---|---|
List<Action> |
getListenersForEvent(String event) |
void |
readExternal(DataInputStream inStream,
PrototypeFactory pf) |
void |
registerEventListener(List<String> eventList,
Action action)
Register an action to be triggered by the specified event(s).
|
void |
registerEventListener(String event,
Action action)
Deprecated.
|
void |
triggerActionsFromEvent(String event,
FormDef model) |
void |
triggerActionsFromEvent(String event,
FormDef model,
TreeReference contextForAction,
ActionController.ActionResultProcessor resultProcessor) |
void |
writeExternal(DataOutputStream outStream) |
public void registerEventListener(String event, Action action)
registerEventListener(List, Action)event - the event name defined in Actionaction - the action to associate with the events.public void registerEventListener(List<String> eventList, Action action)
eventList - list of event names defined in Action. All names must be valid.action - the action to associate with each of the events.public void triggerActionsFromEvent(String event, FormDef model, TreeReference contextForAction, ActionController.ActionResultProcessor resultProcessor)
public void readExternal(DataInputStream inStream, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream outStream) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2020. All rights reserved.