|
TreeMap Java Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttreemap.demo.TMFileModelNode
public class TMFileModelNode
The TMFileModelNode implements an example of TMModelNode encapsulating Files.
| Constructor Summary | |
|---|---|
TMFileModelNode(java.io.File root)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Enumeration |
children(java.lang.Object node)
Returns the children of this node in an Enumeration. |
java.lang.Object |
getRoot()
Returns the root of the tree. |
boolean |
isLeaf(java.lang.Object node)
Returns true if this node is not a directory. |
void |
setUpdater(TMModelUpdater updater)
Sets the updater for this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TMFileModelNode(java.io.File root)
root - the File root of this tree| Method Detail |
|---|
public java.lang.Object getRoot()
null.
getRoot in interface TMModelNodepublic java.util.Enumeration children(java.lang.Object node)
children in interface TMModelNodepublic boolean isLeaf(java.lang.Object node)
isLeaf in interface TMModelNodefalse if this node is a directory;
true otherwisepublic void setUpdater(TMModelUpdater updater)
setUpdater in interface TMModelNodeupdater - the updater for this node
|
TreeMap Java Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||