com.arsdigita.bebop.tree
Class DefaultTreeModel

java.lang.Object
  extended bycom.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

Field Summary
static String versionId
           
 
Constructor Summary
DefaultTreeModel()
           
 
Method Summary
 Iterator getChildren(TreeNode n, PageState data)
          Check whether a given node has children
 TreeNode getRoot(PageState data)
          Obtain the root node of the tree
 boolean hasChildren(TreeNode n, PageState data)
          Check whether the node has children
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

DefaultTreeModel

public DefaultTreeModel()
Method Detail

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