|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.data.MutableTreeNodeObject
| Field Summary | |
protected Vector |
children
The children of this Node. |
protected TreeNode |
parent
The parent of this Node. |
| Constructor Summary | |
MutableTreeNodeObject()
|
|
| Method Summary | |
void |
addChild(MutableTreeNode ch)
Add a child to this TreeNode at the end of the child list. |
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. |
void |
insertChild(MutableTreeNode ch,
int index)
Insert a child at the specified index. |
boolean |
isLeaf()
Returns whether this is a node or leaf. |
void |
removeChild(MutableTreeNode ch)
Remove a child from this TreeNode. |
void |
setParent(TreeNode p)
Set the parent of this TreeNode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
protected TreeNode parent
protected Vector children
| Constructor Detail |
public MutableTreeNodeObject()
| Method Detail |
public TreeNode getChild(int index)
TreeNode
getChild in interface TreeNodepublic Iterator getChildren()
TreeNode
getChildren in interface TreeNodepublic int getChildCount()
TreeNode
getChildCount in interface TreeNodepublic TreeNode getParent()
TreeNode
getParent in interface TreeNodepublic void setParent(TreeNode p)
MutableTreeNode
setParent in interface MutableTreeNodepublic void removeChild(MutableTreeNode ch)
MutableTreeNode
removeChild in interface MutableTreeNodepublic void addChild(MutableTreeNode ch)
MutableTreeNode
addChild in interface MutableTreeNode
public void insertChild(MutableTreeNode ch,
int index)
MutableTreeNode
insertChild in interface MutableTreeNodepublic int indexOfChild(TreeNode child)
TreeNode
indexOfChild in interface TreeNodepublic boolean canExpand()
TreeNode
canExpand in interface TreeNodepublic boolean expand()
TreeNode
expand in interface TreeNodepublic boolean isLeaf()
TreeNode
isLeaf in interface TreeNodepublic boolean collapse()
TreeNode
collapse in interface TreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||