|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TMModelNode
The TMModelNode interface should be implemented by object that are model of nodes of the tree that want to be displayed in the TreeMap. It's the equivalent of theTreeModel, but for the TreeMap.
If you have already a tree structure, just implements this interface in the model of the tree.
Method Summary | |
---|---|
java.util.Enumeration |
children(java.lang.Object node)
Returns the children of the given node in an Enumeration. |
java.lang.Object |
getRoot()
Returns the root of the tree. |
boolean |
isLeaf(java.lang.Object node)
Checks if the given node is a leaf or not. |
void |
setUpdater(TMModelUpdater updater)
Called by the TMModelUpdater constructor. |
Method Detail |
---|
java.lang.Object getRoot()
null
.
java.util.Enumeration children(java.lang.Object node)
null
.
boolean isLeaf(java.lang.Object node)
true
if the given node is a leaf;
false
otherwisevoid setUpdater(TMModelUpdater updater)
As this method is called by the constructor of TMModelUpdater, don't call methods of TMModelUpdater in this method.
updater
- TMModelUpdater 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 |