public class EventAction
extends java.lang.Object
EventActionHandlers can
be registered for handling actions triggered as a result of the event having
been recorded.
The handlers are registered through
add(EventActionHandler) and they can be evaluated by calling
run(). The evaluation happens locally, as such it is instantaneous.
| Modifier and Type | Method and Description |
|---|---|
EventAction |
add(EventActionHandler<?> handler)
Register a handler to handle the parametrised action.
|
void |
run()
Evaluates the registered handlers against the event and triggers
associated for the event.
|
public EventAction add(EventActionHandler<?> handler)
handler - the handler to registerEventAction instancepublic void run()