| java.lang.Object com.methodhead.tree.Tree com.methodhead.res.FileTree
Method Summary | |
public void | build(FileManager fileManager) Builds a file tree representing the the directories managed by
fileManager. | protected FoldingTreeNode | buildNode(String path, File dir) Recursively builds nodes for path and dir and its
subdirectories. | public void | copy(String srcPath, String[] srcFiles, String destPath, String destFile) Copies any nodes specified by srcPath and srcFiles to
destPath. | public void | create(String path, String file, boolean isDir) Deletes any nodes specified by srcPath and srcFiles. | public void | delete(String srcPath, String[] srcFiles) Deletes any nodes specified by srcPath and srcFiles. | public FoldingTreeNode | find(String path) Returns the node associated with path, or null if no
such node exists. | public FoldingTreeNode | find(String path, String file) NOT UNIT TESTED Returns the node associated with path, or
null if no such node exists. | public void | move(String srcPath, String[] srcFiles, String destPath, String destFile) Moves any nodes specified by srcPath and srcFiles to
destPath. | protected FoldingTreeNode | newNode(String path) Instantiates and initializes a new node for path and
dir. | protected void | updateNode(FoldingTreeNode node, String path) Updates the label and url of node for path and
dir. |
build | public void build(FileManager fileManager)(Code) | | Builds a file tree representing the the directories managed by
fileManager.
|
copy | public void copy(String srcPath, String[] srcFiles, String destPath, String destFile)(Code) | | Copies any nodes specified by srcPath and srcFiles to
destPath. If srcFiles contains a single file name,
destFile is assumed to be its new name.
|
create | public void create(String path, String file, boolean isDir)(Code) | | Deletes any nodes specified by srcPath and srcFiles.
|
delete | public void delete(String srcPath, String[] srcFiles)(Code) | | Deletes any nodes specified by srcPath and srcFiles.
|
move | public void move(String srcPath, String[] srcFiles, String destPath, String destFile)(Code) | | Moves any nodes specified by srcPath and srcFiles to
destPath. If srcFiles contains a single file name,
destFile is assumed to be its new name.
|
|
|