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


Constructor Summary
FileSystemTreeModel.FileNode(java.io.File file, FileSystemTreeModel.FileNode parent)
           
FileSystemTreeModel.FileNode(java.io.File file, FileSystemTreeModel.FileNode parent, java.lang.String sName)
           
 
Method Summary
abstract  FileSystemTreeModel.FileNode getChild(int nIndex)
           
abstract  int getChildCount()
           
 java.io.File getFile()
           
abstract  int getIndexOfChild(FileSystemTreeModel.FileNode child)
           
 FileSystemTreeModel getModel()
           
 FileSystemTreeModel.FileNode getParent()
           
 FileSystemTreeModel.FileNode[] getPath()
          Gets the path to this file node.
 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.
 boolean isLeaf()
           
 void reloadChildren()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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()