|
Kafenio.editor 0.8.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.xeinfach.kafenio.util.TreeSpider
* Description: TreeSpider Utility class for traversing, scanning & describing directory/file structures * * @author Howard Kistler
| Constructor Summary | |
TreeSpider()
constructs a new TreeSpider Object using the given values. |
|
TreeSpider(java.lang.String origin)
constructs a new TreeSpider Object using the given values |
|
TreeSpider(java.lang.String origin,
boolean caseSensitive)
constructs a new TreeSpider Object using the given values |
|
TreeSpider(java.lang.String origin,
boolean caseSensitive,
int mDepth)
constructs a new TreeSpider Object using the given values |
|
TreeSpider(java.lang.String origin,
int mDepth)
constructs a new TreeSpider Object using the given values |
|
TreeSpider(java.lang.String origin,
java.util.Vector exts,
boolean caseSensitive)
constructs a new TreeSpider Object using the given values |
|
TreeSpider(java.lang.String origin,
java.util.Vector exts,
boolean caseSensitive,
int mDepth)
constructs a new TreeSpider Object using the given values |
|
| Method Summary | |
java.util.Hashtable |
collectListing()
* Returns a directory-style listing of the file tree * @return Returns a directory-style listing of the file tree |
boolean |
doScreenExtensions()
|
java.util.Vector |
fetchMassListing()
* Returns an unsorted listing of the file tree * @return Returns an unsorted listing of the file tree |
javax.swing.tree.DefaultTreeModel |
fetchTree()
* Returns a DefaultTreeModel built from the preset root file * @return Returns a DefaultTreeModel built from the preset root file |
javax.swing.tree.DefaultTreeModel |
fetchTree(java.io.File newRootFile)
* Returns a DefaultTreeModel built from the specified root file * @param newRootFile new root file * @return Returns a DefaultTreeModel built from the specified root file |
boolean |
getDisplayMode()
|
java.util.Vector |
getExtensions()
|
java.util.Vector |
getFiles()
|
int |
getMaxDepth()
|
java.io.File |
getRootFile()
|
static void |
main(java.lang.String[] args)
Class'es main() method |
void |
setDisplayMode(boolean mode)
sets the display mode |
void |
setExtensions(java.util.Vector vc)
set file extensions * @param vc list of file extensions |
void |
setFileNamesOnly(boolean b)
|
void |
setFiles(java.util.Vector vc)
sets the list of files * @param vc list of files as vector. |
void |
setMaxDepth(int i)
sets the max allowed folder depth * @param i maximum depth |
void |
setRootFile(java.io.File f)
sets the root file |
void |
setScreenExtensions(boolean b)
set to true if file extensions should be screened, false otherwise |
boolean |
showFileNamesOnly()
|
java.util.Vector |
sortFileListing()
* Returns an index-style listing of the file tree of file names only * @return Returns an index-style listing of the file tree of file names only |
java.util.Vector |
sortMassListing()
Returns an index-style listing of the file tree of complete file names and paths * @return Returns an index-style listing of the file tree of complete file names and paths |
static void |
unitTest(java.lang.String dir)
* Unit test method for testing the code with example settings * @param dir directory for unit testing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeSpider(java.lang.String origin,
java.util.Vector exts,
boolean caseSensitive,
int mDepth)
public TreeSpider(java.lang.String origin,
java.util.Vector exts,
boolean caseSensitive)
public TreeSpider(java.lang.String origin,
boolean caseSensitive,
int mDepth)
public TreeSpider(java.lang.String origin,
boolean caseSensitive)
public TreeSpider(java.lang.String origin,
int mDepth)
public TreeSpider(java.lang.String origin)
public TreeSpider()
| Method Detail |
public java.io.File getRootFile()
public void setRootFile(java.io.File f)
public java.util.Vector getFiles()
public void setFiles(java.util.Vector vc)
public int getMaxDepth()
public void setMaxDepth(int i)
public boolean doScreenExtensions()
public void setScreenExtensions(boolean b)
public boolean showFileNamesOnly()
public void setFileNamesOnly(boolean b)
b - sets if only filenames should be shown.public boolean getDisplayMode()
public void setDisplayMode(boolean mode)
public java.util.Vector getExtensions()
public void setExtensions(java.util.Vector vc)
public javax.swing.tree.DefaultTreeModel fetchTree(java.io.File newRootFile)
public javax.swing.tree.DefaultTreeModel fetchTree()
public java.util.Vector fetchMassListing()
public java.util.Vector sortMassListing()
public java.util.Vector sortFileListing()
public java.util.Hashtable collectListing()
public static void unitTest(java.lang.String dir)
public static void main(java.lang.String[] args)
|
Kafenio.editor 0.8.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||