|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.meshcms.util.DirectoryParser
org.meshcms.webui.FolderXTree
Used internally to create the JavaScript code needed by xTree to display the folder tree. xTree has been created by WebFX.
| Nested Class Summary | |
static class |
FolderXTree.DirectoryInfo
Encapsulates inclusion flag and icon for a directory. |
| Field Summary |
| Fields inherited from class org.meshcms.util.DirectoryParser |
initialDir, processStartDir, recursive |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
FolderXTree(WebSite webSite,
UserInfo userInfo,
java.io.Writer writer,
java.lang.String thumbsParam,
java.lang.String rootName)
Creates a new instance. |
|
| Method Summary | |
static FolderXTree.DirectoryInfo |
getDirectoryInfo(WebSite webSite,
UserInfo userInfo,
Path dirPath)
Returns info about a directory, based on path and permissions. |
protected boolean |
preProcess()
This method is called during the process, but before any element has been processed. |
protected boolean |
preProcessDirectory(java.io.File file,
Path path)
|
protected void |
processFile(java.io.File file,
Path path)
This method will be called for any file found while parsing the base directory. |
| Methods inherited from class org.meshcms.util.DirectoryParser |
getInitialDir, isProcessStartDir, isRecursive, isSorted, postProcess, postProcessDirectory, process, run, setInitialDir, setInitialDir, setProcessStartDir, setRecursive, setSorted |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FolderXTree(WebSite webSite,
UserInfo userInfo,
java.io.Writer writer,
java.lang.String thumbsParam,
java.lang.String rootName)
writer - used to write down the needed JavaScript code.| Method Detail |
protected boolean preProcess()
DirectoryParserThe base implementation does nothing and returns true.
preProcess in class DirectoryParser
protected void processFile(java.io.File file,
Path path)
DirectoryParser
processFile in class DirectoryParserfile - the file to be processedpath - the path of the file (relative to the base directory)
protected boolean preProcessDirectory(java.io.File file,
Path path)
preProcessDirectory in class DirectoryParser
public static FolderXTree.DirectoryInfo getDirectoryInfo(WebSite webSite,
UserInfo userInfo,
Path dirPath)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||