com.extjs.gxt.ui.client.event
Class SelectionChangedEvent<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseEvent
      extended by com.extjs.gxt.ui.client.event.SelectionChangedEvent<M>
Type Parameters:
M - the data type

public class SelectionChangedEvent<M extends ModelData>
extends BaseEvent

Selection event type.

 

Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.event.BaseEvent
doit, source, type
 
Constructor Summary
SelectionChangedEvent(SelectionProvider provider, java.util.List<M> selection)
          Creates a new selection event.
SelectionChangedEvent(SelectionProvider provider, M selection)
          Creates a new selection event.
 
Method Summary
 M getSelectedItem()
          Returns the first selected item.
 java.util.List<M> getSelection()
          Returns the selection.
 SelectionProvider getSelectionProvider()
          Returns the selection provider.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionChangedEvent

public SelectionChangedEvent(SelectionProvider provider,
                             java.util.List<M> selection)
Creates a new selection event.

Parameters:
provider - the selection provider
selection - the selection

SelectionChangedEvent

public SelectionChangedEvent(SelectionProvider provider,
                             M selection)
Creates a new selection event.

Parameters:
provider - the selection provider
selection - the selection
Method Detail

getSelectedItem

public M getSelectedItem()
Returns the first selected item.

Returns:
the selected item

getSelection

public java.util.List<M> getSelection()
Returns the selection.

Returns:
the selection

getSelectionProvider

public SelectionProvider getSelectionProvider()
Returns the selection provider.

Returns:
the provider