public final class EventStackHelper extends Object
EventStack.| Modifier and Type | Method and Description |
|---|---|
static <L extends Listener,E extends Event<?,L>> |
checkPrevent(EventStack eventStack,
E event,
BiConsumer<L,E> bc,
ExceptionCallback ec)
Checks whether the given Event should be prevented according to the given
event stack.
|
public static <L extends Listener,E extends Event<?,L>> boolean checkPrevent(EventStack eventStack, E event, BiConsumer<L,E> bc, ExceptionCallback ec)
isPrevented
property is set to true and a new SuppressedEvent is
added to the preventing event.L - Type of the listener.E - Type of the event.eventStack - The event stack.event - The Event to check whether it is prevented.bc - Function to delegate the event to the specific callback method
of the listener.ec - Callback to be notified when any of the listeners throws an
exception.Copyright © 2014–2015. All rights reserved.