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

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

public class SelectionEvent<M extends ModelData>
extends BaseEvent

Selection event type. A selection event is fired when the selection state of a individual model changes. A SelectionChangedEvent is fired when the overall selection state of a component changes.

Note: For a given event, only the fields which are appropriate will be filled in. The appropriate fields for each event are documented by the event source.

See Also:
SelectionChangedEvent

Constructor Summary
SelectionEvent(java.lang.Object source, M model)
           
 
Method Summary
 int getIndex()
          Returns the index.
 M getModel()
          Returns the model.
 void setIndex(int index)
          Sets the index.
 void setModel(M model)
          Sets the model.
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseEvent
getSource, getType, isCancelled, setCancelled, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionEvent

public SelectionEvent(java.lang.Object source,
                      M model)
Method Detail

getModel

public M getModel()
Returns the model.

Returns:
the model

setModel

public void setModel(M model)
Sets the model.

Parameters:
model - the model

getIndex

public int getIndex()
Returns the index.

Returns:
the index

setIndex

public void setIndex(int index)
Sets the index.

Parameters:
index -