| com.openedit.webui.tree.WebTreeModel
All known Subclasses: org.openedit.store.links.CatalogWebTreeModel, com.openedit.webui.tree.DefaultWebTreeModel,
WebTreeModel | public interface WebTreeModel (Code) | | This is the model for a
WebTree .
author: Eric Galluzzo |
getChild | public Object getChild(Object parent, int index)(Code) | | Returns the child of parent at index index in the parent's child
array. parent must be a node previously obtained from this data source. This
should not return null if index is a valid index for
parent (that is index >= 0 && index <
getChildCount(parent) ).
Parameters: parent - A node in the tree, obtained from this data source The child of parent at index index |
getChildCount | public int getChildCount(Object parent)(Code) | | Returns the number of children of parent . Returns 0 if the node is a leaf or
if it has no children. parent must be a node previously obtained from this
data source.
Parameters: parent - A node in the tree, obtained from this data source The number of children of the node parent |
getChildrenInRows | public List getChildrenInRows(Object inParent, int inColCount)(Code) | | |
getId | public String getId(Object inNode)(Code) | | Returns a unique ID for the given node. This ID should be unique
throughout the tree.
Parameters: inNode - The node The node's ID |
getIndexOfChild | public int getIndexOfChild(Object parent, Object child)(Code) | | Returns the index of child in parent . If parent is
null or child is null , returns -1.
Parameters: parent - A node in the tree, obtained from this data source Parameters: child - The node we are interested in The index of the child in the parent, or -1 if either child orparent is null |
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 |
|
|