public final <T extends Event> void addEventFilter (EventType<T> eventType, EventHandler<? super T> eventFilter)

Registers an event filter to this node. The filter is called when the node receives an Event of the specified type during the capturing phase of event delivery.

Parameters:
<T>    the specific event class of the filter
eventType    the type of the events to receive by the filter
eventFilter    the filter to register

Exceptions:
NullPointerException    if the event type or filter is null