public final class DelegateEvents extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Handleable> |
setAllowed(T event,
boolean allowed)
Set an event as handled as
Event.Result.ALLOW if allowed is
true, otherwise do nothing. |
static <T extends DelegateEvent> |
setSilent(T event)
Set an event to be silent.
|
static <T extends DelegateEvent> |
setSilent(T event,
boolean silent)
Set an event to be silent.
|
public static <T extends DelegateEvent> T setSilent(T event)
T - the type of eventevent - the eventpublic static <T extends DelegateEvent> T setSilent(T event, boolean silent)
T - the type of eventevent - the eventsilent - true to set silentpublic static <T extends Handleable> T setAllowed(T event, boolean allowed)
Event.Result.ALLOW if allowed is
true, otherwise do nothing.T - the type of eventevent - the eventCopyright © 2015. All Rights Reserved.