com.arsdigita.bebop.tree
Class DefaultTreeModel
java.lang.Object
com.arsdigita.bebop.tree.DefaultTreeModel
- All Implemented Interfaces:
- TreeModel
- public class DefaultTreeModel
- extends Object
- implements TreeModel
The basic
implementation of the TreeModel interface.
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/bebop/tree/DefaultTreeModel.java#10 $
- Author:
- David Lutterkort, Stanislav Freidin, Tri Tran
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
DefaultTreeModel
public DefaultTreeModel()
getRoot
public final TreeNode getRoot(PageState data)
- Obtain the root node of the tree
- Specified by:
getRoot
in interface TreeModel
hasChildren
public final boolean hasChildren(TreeNode n,
PageState data)
- Check whether the node has children
- Specified by:
hasChildren
in interface TreeModel
- Returns:
- true if this node has children (not leaf)
getChildren
public Iterator getChildren(TreeNode n,
PageState data)
- Check whether a given node has children
- Specified by:
getChildren
in interface TreeModel
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC