com.sun.lwuit.tree
Interface TreeModel


public interface TreeModel

Arranges tree node objects, a node can essentially be anything


Method Summary
 java.util.Vector getChildren(java.lang.Object parent)
          Returns the child objects representing the given parent, null should return the root objects
 boolean isLeaf(java.lang.Object node)
          Is the node a leaf or a folder
 

Method Detail

getChildren

java.util.Vector getChildren(java.lang.Object parent)
Returns the child objects representing the given parent, null should return the root objects

Parameters:
parent - the parent object whose children should be returned, null would return the tree roots
Returns:
the children of the given node within the tree

isLeaf

boolean isLeaf(java.lang.Object node)
Is the node a leaf or a folder

Parameters:
node - a node within the tree
Returns:
true if the node is a leaf that can't be expanded