public interface NaviComponent
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addListener(Event<T> event,
Listener<T> listener)
Adds a listener to this component.
|
boolean |
handlesEvents(Event... events)
Determines whether this component can handle particular events.
|
<T> void |
removeListener(Listener<T> listener)
Removes a listener from this component.
|
boolean handlesEvents(Event... events)
events - the events to check<T> void addListener(Event<T> event, Listener<T> listener)
T - the callback type for the eventevent - an Eventlistener - the listener for that eventIllegalArgumentException - if this component cannot handle the event<T> void removeListener(Listener<T> listener)
T - the callback type for the eventlistener - the listener for that eventIllegalArgumentException - if this component cannot handle the event