Class BeforeSelectionEvent<T>
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<BeforeSelectionHandler<T>>
com.google.gwt.event.logical.shared.BeforeSelectionEvent<T>
- Type Parameters:
T- the type about to be selected
Represents a before selection event.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new before selection event. -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel the before selection event.protected voiddispatch(BeforeSelectionHandler<T> handler) Should only be called byHandlerManager.static <T> BeforeSelectionEvent<T>fire(HasBeforeSelectionHandlers<T> source, T item) Fires a before selection event on all registered handlers in the handler manager.final GwtEvent.Type<BeforeSelectionHandler<T>>Returns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.getItem()Gets the item.static GwtEvent.Type<BeforeSelectionHandler<?>>getType()Gets the type associated with this event.booleanHas the selection event already been canceled?protected final voidSets the item.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, reviveMethods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
BeforeSelectionEvent
protected BeforeSelectionEvent()Creates a new before selection event.
-
-
Method Details
-
getType
Gets the type associated with this event.- Returns:
- returns the handler type
-
cancel
public void cancel()Cancel the before selection event. Classes overriding this method should still call super.cancel(). -
getAssociatedType
Description copied from class:EventReturns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.- Specified by:
getAssociatedTypein classGwtEvent<BeforeSelectionHandler<T>>- Returns:
- the type
-
getItem
Gets the item.- Returns:
- the item
-
isCanceled
public boolean isCanceled()Has the selection event already been canceled?- Returns:
- is canceled
-
setItem
Sets the item.- Parameters:
item- the item