
T - the type being selectedpublic class SelectionEvent<T> extends GwtEvent<SelectionHandler<T>>
GwtEvent.Type<H>| Modifier | Constructor and Description | 
|---|---|
protected  | 
SelectionEvent(T selectedItem)
Creates a new selection event. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
dispatch(SelectionHandler<T> handler)
Should only be called by  
HandlerManager. | 
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. 
 | 
GwtEvent.Type<SelectionHandler<T>> | 
getAssociatedType()
Returns the  
Event.Type used to register this event, allowing an
 EventBus to find handlers of the appropriate class. | 
T | 
getSelectedItem()
Gets the selected item. 
 | 
static GwtEvent.Type<SelectionHandler<?>> | 
getType()
Gets the type associated with this event. 
 | 
assertLive, getSource, isLive, kill, reviveprotected SelectionEvent(T selectedItem)
selectedItem - selected itempublic static <T> void fire(HasSelectionHandlers<T> source, T selectedItem)
T - the selected item typesource - the source of the handlersselectedItem - the selected itempublic static GwtEvent.Type<SelectionHandler<?>> getType()
public final GwtEvent.Type<SelectionHandler<T>> getAssociatedType()
com.google.web.bindery.event.shared.EventEvent.Type used to register this event, allowing an
 EventBus to find handlers of the appropriate class.getAssociatedType in class GwtEvent<SelectionHandler<T>>public T getSelectedItem()
protected void dispatch(SelectionHandler<T> handler)
GwtEventHandlerManager. In other words, do not use
 or call.dispatch in class GwtEvent<SelectionHandler<T>>handler - handlerEventBus.dispatchEvent(Event, Object)Copyright © 2018. All rights reserved.