T
- the type about to be closedpublic class BeforeCloseEvent<T> extends <any> implements CancellableEvent
Modifier and Type | Class and Description |
---|---|
static interface |
BeforeCloseEvent.BeforeCloseHandler<T>
Handler class for
BeforeCloseEvent events. |
static interface |
BeforeCloseEvent.HasBeforeCloseHandlers<T>
A widget that implements this interface is a public source of
BeforeCloseEvent events. |
Constructor and Description |
---|
BeforeCloseEvent(T item) |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(BeforeCloseEvent.BeforeCloseHandler<T> handler) |
<any> |
getAssociatedType() |
T |
getItem() |
Component |
getSource() |
static <any> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled()
Returns true if the event is cancelled.
|
void |
setCancelled(boolean cancelled)
True to cancel the event.
|
public BeforeCloseEvent(T item)
public static <any> getType()
public T getItem()
public <any> getAssociatedType()
public Component getSource()
public boolean isCancelled()
CancellableEvent
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancelled)
CancellableEvent
setCancelled
in interface CancellableEvent
cancelled
- true to cancelprotected void dispatch(BeforeCloseEvent.BeforeCloseHandler<T> handler)
Copyright © 2018. All rights reserved.