| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
java.io.File |
getFile() |
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() |
public FileNode(java.io.File file)
file - the File encapsulated in this nodepublic 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 nodepublic FileNode(ProgressObserver p, int depth, java.io.File file, java.io.File onlyChild)
file - the File encapsulated in this nodepublic long getLastModified()
protected void addChild(FileNode child)
child - the HSBFileNodeto add as a childpublic java.util.List<TreeNode> children()
public 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.io.File getFile()
public java.lang.String getToolTipText()
public void dump(int depth)
public int getDescendantCount()
public java.lang.String toString()
toString in class java.lang.Object