org.sgx.j2s.aui.tree
Class TreeNode

Package class diagram package TreeNode
java.lang.Object
  extended by org.sgx.j2s.js.NativeWrapper
      extended by org.sgx.j2s.yui3.yui.YUINativeWrapper
          extended by org.sgx.j2s.yui3.yui.event.EventTarget
              extended by org.sgx.j2s.yui3.yui.Attribute
                  extended by org.sgx.j2s.yui3.yui.Base
                      extended by org.sgx.j2s.yui3.yui.widget.Widget
                          extended by org.sgx.j2s.aui.tree.TreeData
                              extended by org.sgx.j2s.aui.tree.TreeNode

public class TreeNode
extends TreeData


Field Summary
 
Fields inherited from class org.sgx.j2s.yui3.yui.YUINativeWrapper
Y
 
Fields inherited from class org.sgx.j2s.js.NativeWrapper
_data, _EMPTYPARAMS
 
Constructor Summary
TreeNode()
           
 
Method Summary
 void collapse()
          Collapse the current TreeNode.
 boolean contains(TreeNode node)
          Check if the current TreeNode contains the passed node.
 void expand()
          Expand the current TreeNode.
 int getDepth()
          Get the depth of the current TreeNode.
 boolean isLeaf()
          Whether the current TreeNode is a leaf or not.
 boolean isSelected()
          Whether the current TreeNode is selected or not.
 void toggle()
          Toggle the current TreeNode, collapsed or expanded.
 
Methods inherited from class org.sgx.j2s.aui.tree.TreeData
appendChild, bubbleEvent, collapseAll, createNode, eachChildren, eachParent, empty, expandAll, getChildren, getEventOutputMap, getNodeByChild, getNodeById, hasChildNodes, indexOf, insert, insertAfter, insertBefore, isRegistered, item, refreshIndex, registerNode, removeChild, selectAll, unregisterNode, unselectAll, updateIndex, updateReferences
 
Methods inherited from class org.sgx.j2s.yui3.yui.widget.Widget
blur, disable, enable, focus, getByNode, getClassName, getDefaultLocale, getSkinName, getString, getStrings, hide, render, show
 
Methods inherited from class org.sgx.j2s.yui3.yui.Attribute
addAttr, addAttrs, attrAdded, get, getAttrs, modifyAttr, removeAttr, reset, set, setAttrs
 
Methods inherited from class org.sgx.j2s.yui3.yui.event.EventTarget
after, before, detach, detachAll, fire, getEvent, on, once, publish
 
Methods inherited from class org.sgx.j2s.yui3.yui.YUINativeWrapper
_load
 
Methods inherited from class org.sgx.j2s.js.NativeWrapper
_call, _get, _getData, create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNode

public TreeNode()
Method Detail

collapse

public void collapse()
Collapse the current TreeNode.


contains

public boolean contains(TreeNode node)
Check if the current TreeNode contains the passed node.

Returns:

expand

public void expand()
Expand the current TreeNode.


getDepth

public int getDepth()
Get the depth of the current TreeNode.


isLeaf

public boolean isLeaf()
Whether the current TreeNode is a leaf or not.


isSelected

public boolean isSelected()
Whether the current TreeNode is selected or not.


toggle

public void toggle()
Toggle the current TreeNode, collapsed or expanded.