jaxcent.yui
Class TreeNode

java.lang.Object
  extended byjaxcent.yui.TreeNode

public class TreeNode
extends java.lang.Object

Objects of class TreeNode correspond to nodes of a YUI Tree.


Method Summary
 TreeNode addDateNode(java.util.Date date)
          Add a non-editable date node as a child of this node.
 TreeNode addEditableDateNode(java.util.Date date)
          Add an editable date node as a child of this node.
 TreeNode addEditableTextNode(java.lang.String text)
          Add an editable text node as a child of this node.
 TreeNode addTextNode(java.lang.String text)
          Add a non-editable text node as a child of this node.
 void collapse()
          Collapse the node.
 void delete()
          Remove the node and all its children from the tree.
 void expand()
          Expand the node.
 java.lang.String getNodeLabel()
          Return the current lable of this node.
 java.lang.Object getUserData()
          Return any user data attached to node.
 boolean isDateNode()
          Is this a date node?
 boolean isEditableNode()
          Is this an editable node?
 boolean isTextNode()
          Is this a text node?
 void setUserData(java.lang.Object userData)
          Attach user data to node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addTextNode

public TreeNode addTextNode(java.lang.String text)
                     throws jaxcent.Jaxception
Add a non-editable text node as a child of this node.

Throws:
jaxcent.Jaxception

addEditableTextNode

public TreeNode addEditableTextNode(java.lang.String text)
                             throws jaxcent.Jaxception
Add an editable text node as a child of this node.

Throws:
jaxcent.Jaxception

addDateNode

public TreeNode addDateNode(java.util.Date date)
                     throws jaxcent.Jaxception
Add a non-editable date node as a child of this node.

Throws:
jaxcent.Jaxception

addEditableDateNode

public TreeNode addEditableDateNode(java.util.Date date)
                             throws jaxcent.Jaxception
Add an editable date node as a child of this node.

Throws:
jaxcent.Jaxception

getNodeLabel

public java.lang.String getNodeLabel()
                              throws jaxcent.Jaxception
Return the current lable of this node.

Throws:
jaxcent.Jaxception

delete

public void delete()
            throws jaxcent.Jaxception
Remove the node and all its children from the tree.

Throws:
jaxcent.Jaxception

expand

public void expand()
            throws jaxcent.Jaxception
Expand the node.

Throws:
jaxcent.Jaxception

collapse

public void collapse()
              throws jaxcent.Jaxception
Collapse the node.

Throws:
jaxcent.Jaxception

isEditableNode

public boolean isEditableNode()
Is this an editable node?


isTextNode

public boolean isTextNode()
Is this a text node?


isDateNode

public boolean isDateNode()
Is this a date node?


setUserData

public void setUserData(java.lang.Object userData)
Attach user data to node.


getUserData

public java.lang.Object getUserData()
Return any user data attached to node.