|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TMNode
The TMNode interface should be implemented by object that are node of the tree that want to be displayed in the TreeMap.
If you have already a tree structure, just implements this interface in node of the tree.
Method Summary | |
---|---|
java.util.Enumeration |
children()
Returns the children of this node in an Enumeration. |
boolean |
isLeaf()
Checks if this node is a leaf or not. |
void |
setUpdater(TMUpdater updater)
Called by the TMUpdater constructor. |
Method Detail |
---|
java.util.Enumeration children()
null
.
All objects contained in the Enumeration
should implements TMNode.
boolean isLeaf()
true
if this node is a leaf;
false
otherwisevoid setUpdater(TMUpdater updater)
As this method is called by the constructor of TMUpdater, don't call methods of TMUpdater in this method.
updater
- the TMUpdater to be called when something has changed
|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |