|
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 treeMethod Detail |
---|
public java.lang.Object getRoot()
null
.
getRoot
in interface TMModelNode
public java.util.Enumeration children(java.lang.Object node)
children
in interface TMModelNode
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface TMModelNode
false
if this node is a directory;
true
otherwisepublic void setUpdater(TMModelUpdater updater)
setUpdater
in interface TMModelNode
updater
- the updater for this node
|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |