Packageorg.aswing.tree
Interfacepublic interface TreeNode
SubinterfacesMutableTreeNode

Defines the requirements for an object that can be used as a tree node in a JTree.

See also

org.aswing.tree.MutableTreeNode
org.aswing.tree.DefaultMutableTreeNode
org.aswing.JTree


Public Methods
 MethodDefined by
  
children():Array
Returns the children of the receiver as an Enumeration.
TreeNode
  
Returns true if the receiver allows children.
TreeNode
  
getChildAt(childIndex:int):TreeNode
Returns the child TreeNode at index childIndex.
TreeNode
  
Returns the number of children TreeNodes the receiver contains.
TreeNode
  
getIndex(node:TreeNode):int
Returns the index of node in the receivers children.
TreeNode
  
Returns the parent TreeNode of the receiver.
TreeNode
  
isLeaf():Boolean
Returns true if the receiver is a leaf.
TreeNode
Method detail
children()method
public function children():Array

Returns the children of the receiver as an Enumeration.

Returns
Array
getAllowsChildren()method 
public function getAllowsChildren():Boolean

Returns true if the receiver allows children.

Returns
Boolean
getChildAt()method 
public function getChildAt(childIndex:int):TreeNode

Returns the child TreeNode at index childIndex.

Parameters
childIndex:int

Returns
TreeNode
getChildCount()method 
public function getChildCount():int

Returns the number of children TreeNodes the receiver contains.

Returns
int
getIndex()method 
public function getIndex(node:TreeNode):int

Returns the index of node in the receivers children. If the receiver does not contain node, -1 will be returned.

Parameters
node:TreeNode

Returns
int
getParent()method 
public function getParent():TreeNode

Returns the parent TreeNode of the receiver.

Returns
TreeNode
isLeaf()method 
public function isLeaf():Boolean

Returns true if the receiver is a leaf.

Returns
Boolean