Class BeforeSelectionEvent<T>
java.lang.Object
com.google.web.bindery.event.shared.Event<BeforeSelectionHandler<T>>
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
ModifierConstructorDescriptionprotected
Creates a new before selection event. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancel the before selection event.protected void
dispatch
(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.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.getItem()
Gets the item.static GwtEvent.Type
<BeforeSelectionHandler<?>> getType()
Gets the type associated with this event.boolean
Has the selection event already been canceled?protected final void
Sets the item.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
Methods 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:Event
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.- Specified by:
getAssociatedType
in 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