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.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BasicNode
public BasicNode()
BasicNode
public BasicNode(java.lang.String label)
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