ewe.data
Interface TreeNode

All Known Subinterfaces:
MutableTreeNode
All Known Implementing Classes:
LiveTreeNode, MutableTreeNodeObject

public interface TreeNode


Method Summary
 boolean canExpand()
          Returns whether this node is expandable.
 boolean collapse()
          Tell it that it can release its children.
 boolean expand()
          Tell it to expand (ie gather its children).
 TreeNode getChild(int index)
          Get the child at the specified index.
 int getChildCount()
          Get the number of children that this object has.
 Iterator getChildren()
          Get an Iterator for the children.
 TreeNode getParent()
          Get the parent of this object.
 int indexOfChild(TreeNode child)
          Return the index of the specified child.
 boolean isLeaf()
          Returns whether this is a node or leaf.
 

Method Detail

getParent

public TreeNode getParent()
Get the parent of this object.


getChild

public TreeNode getChild(int index)
Get the child at the specified index.


getChildCount

public int getChildCount()
Get the number of children that this object has.


getChildren

public Iterator getChildren()
Get an Iterator for the children.


indexOfChild

public int indexOfChild(TreeNode child)
Return the index of the specified child. This will return -1 if the parameter is not a child of this TreeNode.


canExpand

public boolean canExpand()
Returns whether this node is expandable.


expand

public boolean expand()
Tell it to expand (ie gather its children).


collapse

public boolean collapse()
Tell it that it can release its children.


isLeaf

public boolean isLeaf()
Returns whether this is a node or leaf.