com.gwtext.client.data
Class Tree

java.lang.Object
  extended by com.gwtext.client.core.JsObject
      extended by com.gwtext.client.data.Tree

public class Tree
extends JsObject

Represents a tree data structure and bubbles all the events for its nodes. The nodes in the tree have most standard DOM functionality.


Field Summary
 
Fields inherited from class com.gwtext.client.core.JsObject
jsObj
 
Constructor Summary
Tree()
          Create a new Tree instance.
 
Method Summary
 void addNodeListener(TreeListener listener)
          Add a Tree listener.
 Node getNodeById(java.lang.String id)
          Gets a node in this tree by its id.
 Node getRootNode()
          Returns the root node.
 void setRootNode(Node node)
          Set the root node.
 
Methods inherited from class com.gwtext.client.core.JsObject
getJsObj, getProperties, isCreated, setJsObj
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tree

public Tree()
Create a new Tree instance.

Method Detail

getNodeById

public Node getNodeById(java.lang.String id)
Gets a node in this tree by its id.

Parameters:
id - the mode ID
Returns:
the node, or null if not found

getRootNode

public Node getRootNode()
Returns the root node.

Returns:
the root node

setRootNode

public void setRootNode(Node node)
Set the root node.

Parameters:
node - the root node

addNodeListener

public void addNodeListener(TreeListener listener)
Add a Tree listener.

Parameters:
listener - the listener