| Modifier and Type | Method and Description |
|---|---|
| public default < the event class of the filter E extends Event> void | addEventFilter(EventType<E>
the type of the events received by the filter eventType, EventHandler<? super E> the event filter eventFilter)Registers an event filter for this target. |
| public default < the event class of the handler E extends Event> void | addEventHandler(EventType<E>
the type of the events received by the handler eventType, EventHandler<? super E> the event handler eventHandler)Registers an event handler for this target. |
| public EventDispatchChain | Returns: the resulting event dispatch chain for this targetthe initial chain to build from tail)Construct an event dispatch chain for this target. |
| public default < the event class of the filter E extends Event> void | removeEventFilter(EventType<E>
the event type from which to unregister eventType, EventHandler<? super E> the event filter eventFilter)Unregisters a previously registered event filter from this target. |
| public default < the event class of the handler E extends Event> void | removeEventHandler(EventType<E>
the event type from which to unregister eventType, EventHandler<? super E> the event handler eventHandler)Unregisters a previously registered event handler from this target. |
| addEventFilter | back to summary |
|---|---|
| public default <E extends Event> void addEventFilter(EventType<E> eventType, EventHandler<? super E> eventFilter) Registers an event filter for this target.
The filter is called when the target receives an Implementation Specification The default implementation of this method throws
| |
| addEventHandler | back to summary |
|---|---|
| public default <E extends Event> void addEventHandler(EventType<E> eventType, EventHandler<? super E> eventHandler) Registers an event handler for this target.
The handler is called when the target receives an Implementation Specification The default implementation of this method throws
| |
| buildEventDispatchChain | back to summary |
|---|---|
| public EventDispatchChain buildEventDispatchChain(EventDispatchChain tail) Construct an event dispatch chain for this target. The event dispatch
chain contains event dispatchers which might be interested in processing
of events targeted at this In the case the event target is part of some hierarchy, the chain for it is usually built from event dispatchers collected from the root of the hierarchy to the event target. The event dispatch chain is constructed by modifications to the provided initial event dispatch chain. The returned chain should have the initial chain at its end so the dispatchers should be prepended to the initial chain. The caller shouldn't assume that the initial chain remains unchanged nor that the returned value will reference a different chain.
| |
| removeEventFilter | back to summary |
|---|---|
| public default <E extends Event> void removeEventFilter(EventType<E> eventType, EventHandler<? super E> eventFilter) Unregisters a previously registered event filter from this target.
Since it is possible to register a single Implementation Specification The default implementation of this method throws
| |
| removeEventHandler | back to summary |
|---|---|
| public default <E extends Event> void removeEventHandler(EventType<E> eventType, EventHandler<? super E> eventHandler) Unregisters a previously registered event handler from this target.
Since it is possible to register a single Implementation Specification The default implementation of this method throws
| |