|
Treeviz 0.37 2010-10-17 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.tree.demo.FileNode
public class FileNode
The FileNode implements an example of HTNode encapsulating a File.
| Constructor Summary | |
|---|---|
FileNode(java.io.File file)
Constructor. |
|
FileNode(java.io.File file,
java.io.File onlyChild)
|
|
FileNode(ProgressObserver p,
int depth,
java.io.File file)
Constructor. |
|
FileNode(ProgressObserver p,
int depth,
java.io.File file,
java.io.File onlyChild)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addChild(FileNode child)
Add child to the node. |
java.util.List<TreeNode> |
children()
Returns the children of this node in an Enumeration. |
void |
dump(int depth)
|
boolean |
getAllowsChildren()
Returns true if this node is not a directory. |
int |
getDescendantCount()
|
long |
getFileSize()
|
long |
getLastModified()
|
java.lang.String |
getName()
Returns the name of the file. |
java.lang.String |
getToolTipText()
|
long |
getUnweightedSize()
|
float |
getWeight()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileNode(java.io.File file)
file - the File encapsulated in this node
public FileNode(java.io.File file,
java.io.File onlyChild)
public FileNode(ProgressObserver p,
int depth,
java.io.File file)
file - the File encapsulated in this node
public FileNode(ProgressObserver p,
int depth,
java.io.File file,
java.io.File onlyChild)
file - the File encapsulated in this node| Method Detail |
|---|
public long getLastModified()
protected void addChild(FileNode child)
child - the HSBFileNodeto add as a childpublic java.util.List<TreeNode> children()
children in interface TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodefalse if this node is a directory;
true otherwisepublic java.lang.String getName()
public long getFileSize()
public long getUnweightedSize()
public float getWeight()
public java.lang.String getToolTipText()
public void dump(int depth)
public int getDescendantCount()
public java.lang.String toString()
toString in class java.lang.Object
|
Copyright 2007-2008 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||