|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcon.data.TreeNode
public class TreeNode
This is a node of a homogenous tree data structure.
| Constructor Summary | |
|---|---|
protected |
TreeNode()
Create a new TreeNode with no parent. |
protected |
TreeNode(TreeNode parent)
Create a new TreeNode with parent. |
| Method Summary | |
|---|---|
void |
addChild(TreeNode newChild)
Add a child to this node. |
java.util.ArrayList |
getChildren()
The children of this node. |
TreeNode |
getParent()
The parent node of this one; null if this is the root node. |
void |
remove()
Removes current node from tree; children are assigned to parent. |
void |
removeChild(TreeNode victim)
Remove a child. |
void |
reparent(TreeNode newParent)
ArrayList the parent node of this node. |
void |
setChildren(java.util.ArrayList newChildren)
The children of this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TreeNode(TreeNode parent)
protected TreeNode()
| Method Detail |
|---|
public TreeNode getParent()
public void reparent(TreeNode newParent)
public java.util.ArrayList getChildren()
public void setChildren(java.util.ArrayList newChildren)
public void addChild(TreeNode newChild)
public void removeChild(TreeNode victim)
public void remove()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||