com.google.gwt.event.logical.shared
Class SelectionEvent<I>

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<SelectionHandler<I>>
      extended by com.google.gwt.event.logical.shared.SelectionEvent<I>
Type Parameters:
I - the type being selected

public class SelectionEvent<I>
extends GwtEvent<SelectionHandler<I>>

Represents a selection event.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Method Summary
static
<I> void
fire(HasSelectionHandlers<I> source, I 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<I>> getAssociatedType()
          Returns the type used to register this event.
 I getSelectedItem()
          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
getSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

fire

public static <I> void fire(HasSelectionHandlers<I> source,
                            I selectedItem)
Fires a selection event on all registered handlers in the handler manager.If no such handlers exist, this method will do nothing.

Type Parameters:
I - the selected item type
Parameters:
source - the source of the handlers
selectedItem - the selected item

getType

public static GwtEvent.Type<SelectionHandler<?>> getType()
Gets the type associated with this event.

Returns:
returns the handler type

getAssociatedType

public final GwtEvent.Type<SelectionHandler<I>> getAssociatedType()
Description copied from class: GwtEvent
Returns the type used to register this event. Used by handler manager to dispatch events to the correct handlers.

Specified by:
getAssociatedType in class GwtEvent<SelectionHandler<I>>
Returns:
the type

getSelectedItem

public I getSelectedItem()
Gets the selected item.

Returns:
the selected item