sdlip.examples.demo
Class BasicNode
java.lang.Object
|
+--sdlip.examples.demo.BasicNode
- Direct Known Subclasses:
- CollectionNode, ResultNode, ServerNode
- public class BasicNode
- extends java.lang.Object
- implements TreeNode
A simple default implementation for the TreeNode.
Constructor Summary
Method Summary
Methods inherited from class java.lang.Object
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Constructor Detail
BasicNode
public BasicNode()
BasicNode
public BasicNode(java.lang.String label)
Method Detail
getOpen
public boolean getOpen()
- Specified by:
- getOpen in interface TreeNode
setOpen
public void setOpen(boolean b)
- Specified by:
- setOpen in interface TreeNode
getLabel
public java.lang.String getLabel()
- Specified by:
- getLabel in interface TreeNode
addChild
public void addChild(TreeNode n)
-
removeChild
public TreeNode removeChild(TreeNode n)
- return next sibling after removed child
-
children
public java.util.Enumeration children()
- Specified by:
- children in interface TreeNode