T - the type about to be selectedpublic class BeforeSelectionEvent<T> extends GwtEvent<BeforeSelectionHandler<T>>
GwtEvent.Type<H>| Modifier | Constructor and Description | 
|---|---|
| protected  | BeforeSelectionEvent()Creates a new before selection event. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cancel()Cancel the before selection event. | 
| protected void | dispatch(BeforeSelectionHandler<T> handler)Should only be called by  HandlerManager. | 
| static <T> BeforeSelectionEvent<T> | fire(HasBeforeSelectionHandlers<T> source,
    T item)Fires a before selection event on all registered handlers in the handler
 manager. | 
| GwtEvent.Type<BeforeSelectionHandler<T>> | getAssociatedType()Returns the  Event.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class. | 
| T | getItem()Gets the item. | 
| static GwtEvent.Type<BeforeSelectionHandler<?>> | getType()Gets the type associated with this event. | 
| boolean | isCanceled()Has the selection event already been canceled? | 
| protected void | setItem(T item)Sets the item. | 
assertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringprotected BeforeSelectionEvent()
public static <T> BeforeSelectionEvent<T> fire(HasBeforeSelectionHandlers<T> source, T item)
T - the item typesource - the source of the handlersitem - the itempublic static GwtEvent.Type<BeforeSelectionHandler<?>> getType()
public void cancel()
public final GwtEvent.Type<BeforeSelectionHandler<T>> getAssociatedType()
EventEvent.Type used to register this event, allowing an
 EventBus to find handlers of the appropriate class.getAssociatedType in class GwtEvent<BeforeSelectionHandler<T>>public T getItem()
public boolean isCanceled()
protected void dispatch(BeforeSelectionHandler<T> handler)
GwtEventHandlerManager. In other words, do not use
 or call.dispatch in class GwtEvent<BeforeSelectionHandler<T>>handler - handlerEventBus.dispatchEvent(Event, Object)protected final void setItem(T item)
item - the item