|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.data.ChangeEvent
public class ChangeEvent
Instances of this class are sent as a result of model changes.
ChangeEventSource| Constructor Summary | |
|---|---|
ChangeEvent(int type,
Model source)
Creates a new instance. |
|
ChangeEvent(int type,
Model source,
Model item)
Creates a new instance. |
|
| Method Summary | |
|---|---|
int |
getIndex()
Returns the index. |
ModelData |
getItem()
Returns the item being added or removed. |
Model |
getParent()
Returns the parent. |
Model |
getSource()
Returns the source model. |
int |
getType()
Returns the type. |
void |
setIndex(int index)
Sets the index. |
void |
setItem(ModelData item)
Sets the item being added or removed. |
void |
setParent(Model parent)
Sets the parent. |
void |
setSource(Model source)
Sets the source model. |
void |
setType(int type)
Sets the type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeEvent(int type,
Model source)
type - the change typesource - the object that was changed
public ChangeEvent(int type,
Model source,
Model item)
type - the change typesource - the object that has changeditem - the item that was added or removed| Method Detail |
|---|
public int getType()
ChangeEventSource.Add,
ChangeEventSource.Remove,
ChangeEventSource.Updatepublic void setType(int type)
type - the typepublic Model getSource()
public void setSource(Model source)
source - the sourcepublic ModelData getItem()
public void setItem(ModelData item)
item - the itempublic Model getParent()
public void setParent(Model parent)
parent - the parentpublic int getIndex()
public void setIndex(int index)
index - the index
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||