ch.randelshofer.tree.demo
Class ManyEyesNode
java.lang.Object
ch.randelshofer.tree.demo.ManyEyesNode
- All Implemented Interfaces:
- TreeNode
- Direct Known Subclasses:
- ManyEyesCompositeNode
public class ManyEyesNode
- extends java.lang.Object
- implements TreeNode
ManyEyesNode.
- Version:
- 1.0 2009-02-07 Created.
- Author:
- Werner Randelshofer, Staldenmattweg 2, CH-6405 Immensee
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected ManyEyesCompositeNode parent
ManyEyesNode
public ManyEyesNode(java.lang.String[] values)
getValues
public java.lang.String[] getValues()
getParent
public ManyEyesCompositeNode getParent()
setName
public void setName(java.lang.String newValue)
getName
public java.lang.String getName()
children
public java.util.List<TreeNode> children()
- Description copied from interface:
TreeNode
- Returns the children of this node
in a List.
If this object does not have children,
it returns an empty List.
- Specified by:
children in interface TreeNode
- Returns:
- the children of this node
getAllowsChildren
public boolean getAllowsChildren()
- Description copied from interface:
TreeNode
- Returns true, if this node can not have children.
This is used to make a distinction between composite nodes which have
no children, and leaf nodes which can have no children.
- Specified by:
getAllowsChildren in interface TreeNode
getWeight
public long getWeight()
setWeight
public void setWeight(long newValue)