com.extjs.gxt.ui.client.data
Class ChangeEvent

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.ChangeEvent
Direct Known Subclasses:
PropertyChangeEvent

public class ChangeEvent
extends java.lang.Object

Instances of this class are sent as a result of model changes.

See Also:
ChangeEventSource

Field Summary
 int index
          The location for inserts.
 Model item
          The item being added or removed.
 Model parent
          The parent model.
 Model source
          The model that fired the event.
 int type
          The change type.
 
Constructor Summary
ChangeEvent(int type, Model source)
          Creates a new instance.
ChangeEvent(int type, Model source, Model item)
          Creates a new instance.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public int type
The change type.

See Also:
ChangeEventSource.Add, ChangeEventSource.Remove, ChangeEventSource.Update

source

public Model source
The model that fired the event.


item

public Model item
The item being added or removed.


parent

public Model parent
The parent model.


index

public int index
The location for inserts.

Constructor Detail

ChangeEvent

public ChangeEvent(int type,
                   Model source)
Creates a new instance.

Parameters:
type - the change type
source - the object that was changed

ChangeEvent

public ChangeEvent(int type,
                   Model source,
                   Model item)
Creates a new instance.

Parameters:
type - the change type
source - the object that has changed
item - the item that was added or removed