|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.data.TreeModelReader<D>
public class TreeModelReader<D extends java.util.List<? extends ModelData>>
A DataReader that simply returns the children of the passed
TreeModel.
| Field Summary | |
|---|---|
protected java.lang.String |
childrenProperty
|
| Constructor Summary | |
|---|---|
TreeModelReader()
Creates a tree model reader. |
|
TreeModelReader(java.lang.String childrenProperty)
Creates a new tree model reader. |
|
| Method Summary | |
|---|---|
protected java.util.List<? extends ModelData> |
getChildren(ModelData parent)
Returns the children for the given parent. |
java.lang.String |
getChildrenProperty()
Returns the property name that contains the model's children. |
D |
read(java.lang.Object loadConfig,
java.lang.Object data)
Reads the raw data and returns the typed data. |
void |
setChildrenProperty(java.lang.String childrenProperty)
Sets the property name that contains the children for the parent model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String childrenProperty
| Constructor Detail |
|---|
public TreeModelReader()
public TreeModelReader(java.lang.String childrenProperty)
childrenProperty - the children property name| Method Detail |
|---|
public D read(java.lang.Object loadConfig,
java.lang.Object data)
DataReader
read in interface DataReader<D extends java.util.List<? extends ModelData>>data - the data to read
protected java.util.List<? extends ModelData> getChildren(ModelData parent)
parent - the parent model
public java.lang.String getChildrenProperty()
public void setChildrenProperty(java.lang.String childrenProperty)
childrenProperty - the property name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||