CodeSetTreeModel
Class FileNode
java.lang.Object
java.io.File
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
| Fields inherited from class java.io.File |
pathSeparator, pathSeparatorChar, separator, separatorChar |
| 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 |
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
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)
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()