|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ITreeNode s 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()
ITreeNode
ITreeNode
s the receiver
contains.
getChildCount
in interface ITreeNode
public ITreeNode getParent()
ITreeNode
ITreeNode
of the receiver.
getParent
in interface ITreeNode
public boolean getAllowsChildren()
ITreeNode
getAllowsChildren
in interface ITreeNode
public boolean isLeaf()
ITreeNode
isLeaf
in interface ITreeNode
public Collection children()
public void insert(IMutableTreeNode child)
public void remove(IMutableTreeNode node)
IMutableTreeNode
node
from the receiver. setParent
will be messaged on node
.
remove
in interface IMutableTreeNode
public void removeFromParent()
IMutableTreeNode
removeFromParent
in interface IMutableTreeNode
public void setParent(IMutableTreeNode newParent)
IMutableTreeNode
newParent
.
setParent
in interface IMutableTreeNode
public void insert(Collection colChildren)
IMutableTreeNode
children
to the receiver.
Child
will be messaged with setParent
.
insert
in interface IMutableTreeNode
public boolean containsChild(ITreeNode node)
ITreeNode
containsChild
in interface ITreeNode
ITreeNode.containsChild(ITreeNode)
public Collection getChildren()
ITreeNode
Collection
of children.
getChildren
in interface ITreeNode
ITreeNode.getChildren()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |