| org.apache.cocoon.forms.formmodel.tree.TreeModel
All known Subclasses: org.apache.cocoon.forms.formmodel.tree.SourceTreeModel, org.apache.cocoon.forms.formmodel.tree.DefaultTreeModel,
TreeModel | public interface TreeModel (Code) | | Data model for the
Tree widget, inspired by Swing's TreeModel , with
the difference that child nodes are accessed through keys rather than indices.
version: $Id: TreeModel.java 449149 2006-09-23 03:58:05Z crossley $ |
getRoot | public Object getRoot()(Code) | | Returns the root of the tree. Returns null
only if the tree has no nodes.
the root of the tree |
isLeaf | public boolean isLeaf(Object node)(Code) | | Returns true if node is a leaf.
It is possible for this method to return false
even if node has no children.
A directory in a filesystem, for example,
may contain no files; the node representing
the directory is not a leaf, but it also has no children.
Parameters: node - a node in the tree, obtained from this data source true if node is a leaf |
|
|