Class SelectionEvent<T>
java.lang.Object
com.google.web.bindery.event.shared.Event<SelectionHandler<T>>
com.google.gwt.event.shared.GwtEvent<SelectionHandler<T>>
com.google.gwt.event.logical.shared.SelectionEvent<T>
- Type Parameters:
T
- the type being selected
Represents a selection event.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
ModifierConstructorDescriptionprotected
SelectionEvent
(T selectedItem) Creates a new selection event. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(SelectionHandler<T> handler) Should only be called byHandlerManager
.static <T> void
fire
(HasSelectionHandlers<T> source, T selectedItem) Fires a selection event on all registered handlers in the handler manager.If no such handlers exist, this method will do nothing.final GwtEvent.Type
<SelectionHandler<T>> Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.Gets the selected item.static GwtEvent.Type
<SelectionHandler<?>> getType()
Gets the type associated with this event.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
-
SelectionEvent
Creates a new selection event.- Parameters:
selectedItem
- selected item
-
-
Method Details
-
getType
Gets the type associated with this event.- Returns:
- returns the handler type
-
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<SelectionHandler<T>>
- Returns:
- the type
-
getSelectedItem
Gets the selected item.- Returns:
- the selected item