com.extjs.gxt.ui.client.store
Class StoreEvent<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseEvent
      extended by com.extjs.gxt.ui.client.store.StoreEvent<M>
Type Parameters:
M - the model type
Direct Known Subclasses:
TreeStoreEvent

public class StoreEvent<M extends ModelData>
extends BaseEvent

A store event.


Constructor Summary
StoreEvent(Store<? extends M> store)
          Creates a new store event.
 
Method Summary
 int getIndex()
          Returns the index.
 M getModel()
          Returns the model.
 java.util.List<M> getModels()
          Returns the models.
 Record.RecordUpdate getOperation()
          Returns the operation.
 Record getRecord()
          Returns the record.
 SortInfo getSortInfo()
          Returns the store sort info.
 Store<? extends M> getStore()
          Returns the store.
 void setIndex(int index)
          Sets the index.
 void setModel(M model)
          Sets the model.
 void setModels(java.util.List<M> models)
          Sets the models.
 void setOperation(Record.RecordUpdate operation)
          Sets the operation.
 void setRecord(Record record)
          Sets the record.
 void setSortInfo(SortInfo sortInfo)
          Sets the store sort info.
 void setStore(Store<? extends M> store)
          Sets the store.
 
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

StoreEvent

public StoreEvent(Store<? extends M> store)
Creates a new store event.

Parameters:
store - the store event
Method Detail

getIndex

public int getIndex()
Returns the index.

Returns:
the index

getModel

public M getModel()
Returns the model.

Returns:
the model

getModels

public java.util.List<M> getModels()
Returns the models.

Returns:
the models

getOperation

public Record.RecordUpdate getOperation()
Returns the operation.

Returns:
the operation

getRecord

public Record getRecord()
Returns the record.

Returns:
the record

getSortInfo

public SortInfo getSortInfo()
Returns the store sort info.

Returns:
the sort info

getStore

public Store<? extends M> getStore()
Returns the store.

Returns:
the store

setIndex

public void setIndex(int index)
Sets the index.

Parameters:
index - the index

setModel

public void setModel(M model)
Sets the model.

Parameters:
model - the model

setModels

public void setModels(java.util.List<M> models)
Sets the models.

Parameters:
models - the models

setOperation

public void setOperation(Record.RecordUpdate operation)
Sets the operation.

Parameters:
operation - the operation

setRecord

public void setRecord(Record record)
Sets the record.

Parameters:
record - the record

setSortInfo

public void setSortInfo(SortInfo sortInfo)
Sets the store sort info.

Parameters:
sortInfo - the sort info

setStore

public void setStore(Store<? extends M> store)
Sets the store.

Parameters:
store - the store.