CodeSetTreeModel
Class FileNode

java.lang.Object
  extended by java.io.File
      extended by CodeSetTreeModel.FileNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.io.File>

public class FileNode
extends java.io.File

See Also:
Serialized Form

Field Summary
 Stats[] extStats
           
 int fileCount
           
 int myExtIndex
           
 int PRINT_COMMA_DELIM
           
 int PRINT_HTML
           
 int PRINT_TEXT
           
 Stats stats
           
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
FileNode()
           
FileNode(FileNode newparent, java.lang.String path, boolean level1, ExtensionSet exts, javax.swing.JProgressBar bar)
           
FileNode(java.lang.String rName, java.lang.String[] fsRoots, ExtensionSet exts, javax.swing.JProgressBar bar)
           
 
Method Summary
 void addBranches(java.io.File[] branches)
           
 void exclude()
           
 javax.swing.tree.TreePath findPath(java.lang.String path)
           
 FileNode getChild(int index)
           
 int getChildCount()
           
 int getChildIndex(FileNode child)
           
 int getCount()
           
 FileNode getParentNode()
           
 void include()
           
 boolean isIncluded()
           
 boolean isLeaf()
           
 boolean isLevel1()
           
 boolean isRoot()
           
 java.lang.String[] list()
           
 void recursivePrintToFile(java.io.FileWriter file, int printMode, boolean foldersOnly)
           
 void removeBranch(java.lang.String branch)
           
 void rename(java.lang.String newName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

stats

public Stats stats

extStats

public Stats[] extStats

fileCount

public int fileCount

myExtIndex

public int myExtIndex

PRINT_COMMA_DELIM

public final int PRINT_COMMA_DELIM
See Also:
Constant Field Values

PRINT_HTML

public final int PRINT_HTML
See Also:
Constant Field Values

PRINT_TEXT

public final int PRINT_TEXT
See Also:
Constant Field Values
Constructor Detail

FileNode

public FileNode()

FileNode

public FileNode(java.lang.String rName,
                java.lang.String[] fsRoots,
                ExtensionSet exts,
                javax.swing.JProgressBar bar)

FileNode

public FileNode(FileNode newparent,
                java.lang.String path,
                boolean level1,
                ExtensionSet exts,
                javax.swing.JProgressBar bar)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.io.File

list

public java.lang.String[] list()
Overrides:
list in class java.io.File

getParentNode

public FileNode getParentNode()

getChildCount

public int getChildCount()

getChildIndex

public int getChildIndex(FileNode child)

getChild

public FileNode getChild(int index)

addBranches

public void addBranches(java.io.File[] branches)

removeBranch

public void removeBranch(java.lang.String branch)

findPath

public javax.swing.tree.TreePath findPath(java.lang.String path)

getCount

public int getCount()

recursivePrintToFile

public void recursivePrintToFile(java.io.FileWriter file,
                                 int printMode,
                                 boolean foldersOnly)
                          throws java.io.IOException
Throws:
java.io.IOException

rename

public void rename(java.lang.String newName)

include

public void include()

exclude

public void exclude()

isIncluded

public boolean isIncluded()

isRoot

public boolean isRoot()

isLevel1

public boolean isLevel1()

isLeaf

public boolean isLeaf()