|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeModel
Provides data for a TreeItem. The TreeModel is read when needed, meaning this model allows to realize a lazy loading mechanism of structured data. The J2ME Polish TreeModel is a more convenient model than the Java Swing one, as the model implementation does not need so many lookups (there is no getChild( Object parent, int index ) method that requires getChildCount( Object parent), for example).
TreeItem| Method Summary | |
|---|---|
void |
addChildren(Object parent,
ArrayList childrenList)
Returns the number of children of parent. |
Object |
getRoot()
Returns the root of the tree. |
boolean |
isLeaf(Object node)
Returns true if node is a leaf. |
| Method Detail |
|---|
Object getRoot()
void addChildren(Object parent,
ArrayList childrenList)
parent - a node in the tree, obtained from this TreeModelchildrenList - the ArrayList into which the children should be addedboolean isLeaf(Object node)
node - a node in the tree, obtained from this TreeModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||