|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectti.chimera.fs.FileSystemTreeModel.FileSystemNode
Because the AbstractFileSystem.children() can be expensive, we cache the results in the FileSystemNode.
Method Summary | |
boolean |
equals(java.lang.Object obj)
Two nodes are determined to be equal if they represent the same file. |
FileSystemTreeModel.FileSystemNode |
getChild(int idx)
Get the child at the specified index (0..getChildCount()-1) |
int |
getChildCount()
Get the number of children |
oscript.fs.AbstractFile |
getFile()
Get the file represented by this node. |
FileSystemTreeModel.FileSystemNode |
getParent()
Access this node's parent. |
int |
hashCode()
|
long |
lastModified()
Get the modification time of the file. |
long |
length()
Get the length of the file. |
boolean |
pending()
Return true if we are still waiting on the worker thread to
know the children of this node, or any parent of this node. |
java.lang.String |
toString()
Cast to string, which is useful if a default-cell-renderer is used. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public FileSystemTreeModel.FileSystemNode getParent()
public oscript.fs.AbstractFile getFile()
public boolean pending()
true
if we are still waiting on the worker thread to
know the children of this node, or any parent of this node.
public long length()
getFile().length()
, to
avoid potentially expensive filesystem access from the AWT thread. If
this method returns -1
, that means that the length is not
known yet. In this case, a tree event will be fired once it is known.
public long lastModified()
getFile().lastModified()
,
to avoid potentially expensive filesystem access from the AWT thread. If
this method returns -1
, that means that the modification
time is not known yet. In this case, a tree event will be fired once it
is known.
public int getChildCount()
public FileSystemTreeModel.FileSystemNode getChild(int idx)
idx
- the child index
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |