|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tapestry.contrib.tree.simple.TreeNode
public class TreeNode
| Field Summary | |
|---|---|
protected IMutableTreeNode |
m_objParentNode
|
protected Set |
m_setChildren
|
| Constructor Summary | |
|---|---|
TreeNode()
Constructor for TreeNode. |
|
TreeNode(IMutableTreeNode parentNode)
|
|
| Method Summary | |
|---|---|
Collection |
children()
|
boolean |
containsChild(ITreeNode node)
Returns the true if current node contains received children, otherwise return false; |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
int |
getChildCount()
Returns the number of children ITreeNodes the receiver
contains. |
Collection |
getChildren()
Returns the Collection of children. |
ITreeNode |
getParent()
Returns the parent ITreeNode of the receiver. |
void |
insert(Collection colChildren)
Adds collection of children to the receiver. |
void |
insert(IMutableTreeNode child)
|
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
void |
remove(IMutableTreeNode node)
Removes node from the receiver. |
void |
removeFromParent()
Removes the receiver from its parent. |
void |
setParent(IMutableTreeNode newParent)
Sets the parent of the receiver to newParent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Set m_setChildren
protected IMutableTreeNode m_objParentNode
| Constructor Detail |
|---|
public TreeNode()
public TreeNode(IMutableTreeNode parentNode)
| Method Detail |
|---|
public int getChildCount()
ITreeNodeITreeNodes the receiver
contains.
getChildCount in interface ITreeNodepublic ITreeNode getParent()
ITreeNodeITreeNode of the receiver.
getParent in interface ITreeNodepublic boolean getAllowsChildren()
ITreeNode
getAllowsChildren in interface ITreeNodepublic boolean isLeaf()
ITreeNode
isLeaf in interface ITreeNodepublic Collection children()
public void insert(IMutableTreeNode child)
public void remove(IMutableTreeNode node)
IMutableTreeNodenode from the receiver. setParent
will be messaged on node.
remove in interface IMutableTreeNodepublic void removeFromParent()
IMutableTreeNode
removeFromParent in interface IMutableTreeNodepublic void setParent(IMutableTreeNode newParent)
IMutableTreeNodenewParent.
setParent in interface IMutableTreeNodepublic void insert(Collection colChildren)
IMutableTreeNodechildren to the receiver.
Child will be messaged with setParent.
insert in interface IMutableTreeNodepublic boolean containsChild(ITreeNode node)
ITreeNode
containsChild in interface ITreeNodeITreeNode.containsChild(ITreeNode)public Collection getChildren()
ITreeNodeCollection of children.
getChildren in interface ITreeNodeITreeNode.getChildren()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||