allensoft.gui
Class FileSystemTreeModel.FileNode
java.lang.Object
|
+--allensoft.gui.FileSystemTreeModel.FileNode
- Direct Known Subclasses:
- FileSystemTreeModel.DefaultFileNode, FileSystemTreeModel.GroupFileNode
- Enclosing class:
- FileSystemTreeModel
- public abstract static class FileSystemTreeModel.FileNode
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileSystemTreeModel.FileNode
public FileSystemTreeModel.FileNode(java.io.File file,
FileSystemTreeModel.FileNode parent,
java.lang.String sName)
FileSystemTreeModel.FileNode
public FileSystemTreeModel.FileNode(java.io.File file,
FileSystemTreeModel.FileNode parent)
getModel
public FileSystemTreeModel getModel()
getPath
public FileSystemTreeModel.FileNode[] getPath()
- Gets the path to this file node.
getPathToFile
public FileSystemTreeModel.FileNode[] getPathToFile(java.io.File file)
- Gets the path to the specified file or null if the file is not below this file node.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getFile
public java.io.File getFile()
getParent
public FileSystemTreeModel.FileNode getParent()
isLeaf
public boolean isLeaf()
getChildCount
public abstract int getChildCount()
getChild
public abstract FileSystemTreeModel.FileNode getChild(int nIndex)
getIndexOfChild
public abstract int getIndexOfChild(FileSystemTreeModel.FileNode child)
reloadChildren
public void reloadChildren()