|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TreeModel
A Model that supports parent and children. Change events bubble to parent elements.
| Field Summary |
|---|
| Fields inherited from interface com.extjs.gxt.ui.client.data.ChangeEventSource |
|---|
Add, Remove, Update |
| Method Summary | |
|---|---|
void |
add(ModelData child)
Adds a child to the model. |
ModelData |
getChild(int index)
Returns the child at the given index. |
int |
getChildCount()
Returns the child count. |
java.util.List<ModelData> |
getChildren()
Returns the model's children. |
TreeModel |
getParent()
Returns the model's parent. |
int |
indexOf(ModelData child)
Returns the index of the child. |
void |
insert(ModelData child,
int index)
Inserts a child. |
boolean |
isLeaf()
Returns true if the model is a leaf and has children. |
void |
remove(ModelData child)
Removes a child. |
void |
removeAll()
Removes all the children. |
void |
setParent(TreeModel parent)
Sets the model's parent. |
| Methods inherited from interface com.extjs.gxt.ui.client.data.ModelData |
|---|
get, getProperties, getPropertyNames, remove, set |
| Methods inherited from interface com.extjs.gxt.ui.client.data.ChangeEventSource |
|---|
addChangeListener, notify, removeChangeListener, removeChangeListeners, setSilent |
| Method Detail |
|---|
void add(ModelData child)
child - the model to addModelData getChild(int index)
index - the index
int getChildCount()
java.util.List<ModelData> getChildren()
TreeModel getParent()
int indexOf(ModelData child)
child - the child
void insert(ModelData child,
int index)
child - the child to addindex - the insert locationboolean isLeaf()
void remove(ModelData child)
child - the child to removevoid removeAll()
void setParent(TreeModel parent)
parent - the new parent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||