public class BeforeAddEvent extends <any> implements CancellableEvent
Modifier and Type | Class and Description |
---|---|
static interface |
BeforeAddEvent.BeforeAddHandler
Handler for
BeforeAddEvent events. |
static interface |
BeforeAddEvent.HasBeforeAddHandlers
A widget that implements this interface is a public source of
BeforeAddEvent events. |
Constructor and Description |
---|
BeforeAddEvent(Widget widget,
int index) |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(BeforeAddEvent.BeforeAddHandler handler) |
<any> |
getAssociatedType() |
int |
getIndex()
Returns the insert index of the widget to be added.
|
Container |
getSource() |
static <any> |
getType()
Gets the type associated with this event.
|
Widget |
getWidget()
Returns the widget to be added.
|
boolean |
isCancelled()
Returns true if the event is cancelled.
|
void |
setCancelled(boolean cancelled)
True to cancel the event.
|
public static <any> getType()
public <any> getAssociatedType()
public int getIndex()
public Container getSource()
public Widget getWidget()
public boolean isCancelled()
CancellableEvent
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancelled)
CancellableEvent
setCancelled
in interface CancellableEvent
cancelled
- true to cancelprotected void dispatch(BeforeAddEvent.BeforeAddHandler handler)
Copyright © 2018. All rights reserved.