public interface Handler
Modifier and Type | Method and Description |
---|---|
void |
add(Handler child) |
java.util.Iterator<Handler> |
children() |
void |
handle(Event e)
Handle the event in this instance.
|
void |
onUnhandled(Event e) |
void handle(Event e)
Event.dispatch(Handler)
. The method must invoke a concrete onXxx
method for the given event, or invoke it's onUnhandled(Event)
method if the EventType
of the event is not recognized by the
handler.
Note: The handler is not supposed to invoke the
handle(Event)
method on it's children()
, that is the
responsibility of the Event.dispatch(Handler)
e
- The event to handleBaseHandler
void onUnhandled(Event e)
void add(Handler child)
java.util.Iterator<Handler> children()