com.arsdigita.bebop.tree
Class DefaultTreeNode

java.lang.Object
  extended bycom.arsdigita.bebop.tree.DefaultTreeNode
All Implemented Interfaces:
TreeNode

public class DefaultTreeNode
extends Object
implements TreeNode

The basic implementation of the TreeNode interface.

Version:
$Id: //core-platform/dev/src/com/arsdigita/bebop/tree/DefaultTreeNode.java#8 $
Author:
David Lutterkort, Stanislav Freidin, Tri Tran

Field Summary
static String versionId
           
 
Constructor Summary
DefaultTreeNode()
           
DefaultTreeNode(Object key, Object element)
           
 
Method Summary
 Object getElement()
          Get the element of the tree node.
 Object getKey()
          Obtain a unique ID representing the node
 
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

DefaultTreeNode

public DefaultTreeNode()

DefaultTreeNode

public DefaultTreeNode(Object key,
                       Object element)
Method Detail

getKey

public Object getKey()
Obtain a unique ID representing the node

Specified by:
getKey in interface TreeNode
Returns:
the unique string id of the node (primary key)

getElement

public Object getElement()
Get the element of the tree node. The concrete type of the object returned is specific to each implementation of the TreeModel and should be documented there.

Specified by:
getElement in interface TreeNode
Returns:
the element for the tree node


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC