public class BeforeLoadEvent<C> extends <any> implements CancellableEvent
Modifier and Type | Class and Description |
---|---|
static interface |
BeforeLoadEvent.BeforeLoadHandler<C>
Handler class for
BeforeLoadEvent events. |
static interface |
BeforeLoadEvent.HasBeforeLoadHandlers<C>
A widget that implements this interface is a public source of
BeforeLoadEvent events. |
Constructor and Description |
---|
BeforeLoadEvent(C loadConfig)
Creates a before load event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(BeforeLoadEvent.BeforeLoadHandler<C> handler) |
<any> |
getAssociatedType() |
C |
getLoadConfig()
Returns the load config.
|
static <any> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled()
Returns true if the event is cancelled.
|
void |
setCancelled(boolean cancel)
True to cancel the event.
|
public BeforeLoadEvent(C loadConfig)
loadConfig
- the load configuration that will be used to load the datapublic static <any> getType()
public <any> getAssociatedType()
public C getLoadConfig()
public boolean isCancelled()
CancellableEvent
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancel)
CancellableEvent
setCancelled
in interface CancellableEvent
cancel
- true to cancelprotected void dispatch(BeforeLoadEvent.BeforeLoadHandler<C> handler)
Copyright © 2018. All rights reserved.