Modifier and Type | Class and Description |
---|---|
(package private) static class |
FileBrowser.LocalPath
Implements a path (MyPath) in the local file system.
|
(package private) static class |
FileBrowser.RemotePath
An object that may be used to locate a file in a remote file
system.
|
(package private) static class |
FileBrowser.RootPath
A singleton class representing the root node of the tree.
|
Modifier and Type | Field and Description |
---|---|
(package private) FileBrowser.MyPath |
FileBrowser.PathCompare.left |
(package private) FileBrowser.MyPath |
FileBrowser.MyTreeNode.myPath |
(package private) FileBrowser.MyPath |
FileBrowser.TableData.path |
(package private) FileBrowser.MyPath |
FileBrowser.PathCompare.right |
(package private) FileBrowser.MyPath |
FileBrowser.selectedPath |
(package private) FileBrowser.MyPath |
FileBrowser.MyComboBox.selectedPath |
(package private) FileBrowser.MyPath |
FileBrowser.Browser.tablePath |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.ArrayList<FileBrowser.MyPath> |
FileBrowser.MyComboBox.MyComboBoxModel.comboBoxArray |
(package private) java.util.ArrayList<FileBrowser.MyPath> |
FileBrowser.Browser.history |
(package private) javax.swing.JComboBox<FileBrowser.MyPath> |
FileBrowser.Browser.selectionBox |
protected java.util.ArrayList<FileBrowser.MyPath> |
FileBrowser.MyPath.treeChildren |
Modifier and Type | Method and Description |
---|---|
(package private) static FileBrowser.MyPath |
FileBrowser.changePrefix(FileBrowser.MyPath oldPrefix,
FileBrowser.MyPath newPrefix,
FileBrowser.MyPath path)
Replaces the prefix of a path with a new prefix.
|
(package private) FileBrowser.MyPath |
FileBrowser.endEditing(FileBrowser.MyComboBox comboBox) |
FileBrowser.MyPath |
FileBrowser.MyComboBox.MyComboBoxModel.getElementAt(int index) |
(package private) static FileBrowser.MyPath |
FileBrowser.getHomeDirectoryx(java.lang.String authority)
Gets the home directory using the authority of a URI.
|
(package private) abstract FileBrowser.MyPath |
FileBrowser.MyPath.getParent()
returns a path to the parent of this path or null if there is
no parent.
|
(package private) FileBrowser.MyPath |
FileBrowser.LocalPath.getParent() |
(package private) FileBrowser.MyPath |
FileBrowser.RemotePath.getParent() |
(package private) FileBrowser.MyPath |
FileBrowser.Browser.getSelectedPath(javax.swing.tree.TreePath treePath) |
(package private) abstract FileBrowser.MyPath |
FileBrowser.MyPath.resolve(java.nio.file.Path other)
Appends other to the current path and returns it.
|
(package private) abstract FileBrowser.MyPath |
FileBrowser.MyPath.resolve(java.lang.String other)
Appends other to the current path and returns it.
|
(package private) static FileBrowser.MyPath |
FileBrowser.stringToMyPath(java.lang.String s)
Creates an appropriate subclass instance of MyPath from a
string.
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract java.util.ArrayList<FileBrowser.MyPath> |
FileBrowser.MyPath.getTreeChildren()
Gets the exposed directory children of this path.
|
(package private) java.util.ArrayList<FileBrowser.MyPath> |
FileBrowser.RootPath.getTreeChildren()
Only gets directories
|
(package private) java.util.ArrayList<FileBrowser.MyPath> |
FileBrowser.LocalPath.getTreeChildren()
Only gets directories
|
(package private) java.util.ArrayList<FileBrowser.MyPath> |
FileBrowser.RemotePath.getTreeChildren()
Only gets directories
|
Modifier and Type | Method and Description |
---|---|
void |
FileBrowser.MyComboBox.MyComboBoxModel.addElement(FileBrowser.MyPath element) |
(package private) static FileBrowser.MyPath |
FileBrowser.changePrefix(FileBrowser.MyPath oldPrefix,
FileBrowser.MyPath newPrefix,
FileBrowser.MyPath path)
Replaces the prefix of a path with a new prefix.
|
int |
FileBrowser.PathComparator.compare(FileBrowser.MyPath p1,
FileBrowser.MyPath p2) |
(package private) void |
FileBrowser.PathCompare.compareDirectories(FileBrowser.MyPath leftPath,
FileBrowser.MyPath rightPath,
java.util.ArrayList<FileBrowser.CompareTableData> table)
Make table of differences between two directory trees.
|
(package private) abstract boolean |
FileBrowser.MyPath.copyFileFrom(FileBrowser.MyPath file)
Copies a file to this.
|
(package private) boolean |
FileBrowser.RootPath.copyFileFrom(FileBrowser.MyPath file) |
(package private) boolean |
FileBrowser.LocalPath.copyFileFrom(FileBrowser.MyPath file) |
(package private) boolean |
FileBrowser.RemotePath.copyFileFrom(FileBrowser.MyPath file) |
(package private) static boolean |
FileBrowser.copyTree(FileBrowser.MyPath from,
FileBrowser.MyPath to,
int flags,
javax.swing.JLabel feedback)
Copies a file or a complete directory tree.
|
(package private) static boolean |
FileBrowser.deleteTree(FileBrowser.MyPath path,
javax.swing.JLabel feedback)
Deletes a file or an entire directory tree
|
(package private) static void |
FileBrowser.diff(FileBrowser.MyPath path1,
FileBrowser.MyPath path2)
Perform a diff between two files.
|
(package private) abstract boolean |
FileBrowser.Direction.doOperation(FileBrowser.MyPath leftPath,
FileBrowser.MyPath rightPath,
javax.swing.JLabel message)
Perform the operation indicated by the icon.
|
(package private) boolean |
FileBrowser.Direction.doTime(FileBrowser.MyPath leftPath,
FileBrowser.MyPath rightPath,
javax.swing.JLabel message)
Only update file times.
|
(package private) int |
FileBrowser.MyPath.getIndex(FileBrowser.MyPath child)
Gets the index of child in children or -1 if not found.
|
java.awt.Component |
FileBrowser.MyComboBox.MyComboBoxRenderer.getListCellRendererComponent(javax.swing.JList<? extends FileBrowser.MyPath> list,
FileBrowser.MyPath path,
int index,
boolean isSelected,
boolean cellHasFocus) |
(package private) static java.lang.String |
FileBrowser.getSuffix(FileBrowser.MyPath base,
FileBrowser.MyPath path)
Gets the part of a base path after the base path.
|
(package private) void |
FileBrowser.PathCompare.initPathCompare(FileBrowser.MyPath leftPath,
FileBrowser.MyPath rightPath) |
void |
FileBrowser.MyComboBox.MyComboBoxModel.insertElementAt(FileBrowser.MyPath element,
int index) |
(package private) static void |
FileBrowser.makeBrowser(FileBrowser.MyPath path)
Make a FileBrowser on the indicated path.
|
(package private) void |
FileBrowser.makeFileEditWindow(FileBrowser.MyPath path)
Make a file edit window for editing files.
|
(package private) abstract void |
FileBrowser.MyPath.moveFileFrom(FileBrowser.MyPath file)
Moves a file or directory from one directory to
another.
|
(package private) void |
FileBrowser.RootPath.moveFileFrom(FileBrowser.MyPath file) |
(package private) void |
FileBrowser.LocalPath.moveFileFrom(FileBrowser.MyPath file) |
(package private) void |
FileBrowser.RemotePath.moveFileFrom(FileBrowser.MyPath file) |
(package private) static boolean |
FileBrowser.moveTree(FileBrowser.MyPath from,
FileBrowser.MyPath to)
Moves a file or directory.
|
(package private) void |
FileBrowser.Browser.pushDirectoryInHistory(FileBrowser.MyPath path)
Pushes path into the file/directory stack.
|
(package private) static java.lang.String |
FileBrowser.readPath(FileBrowser.MyPath path)
Read the file at MyPath and return it as a String.
|
(package private) void |
FileBrowser.Browser.selectFromPath(FileBrowser.MyPath myPath,
boolean mark)
This method takes a Path and selects the corresponding tree
node and table entry (if not a directory).
|
(package private) static void |
FileBrowser.writePath(FileBrowser.MyPath path,
java.lang.String s)
Write the contents of a String to the file at MyPath.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
FileBrowser.MyComboBox.MyComboBoxRenderer.getListCellRendererComponent(javax.swing.JList<? extends FileBrowser.MyPath> list,
FileBrowser.MyPath path,
int index,
boolean isSelected,
boolean cellHasFocus) |
Constructor and Description |
---|
Browser(FileBrowser.MyPath path)
Initialize a FileBrowser to view the given path
|
MyComboBox(FileBrowser.MyPath path) |
MyComboBoxModel(FileBrowser.MyPath path) |
MyTreeNode(FileBrowser.MyPath myPath,
FileBrowser.MyTreeNode parent) |
PathCompare(java.lang.String title,
FileBrowser.MyPath left,
FileBrowser.MyPath right) |
TableData(FileBrowser.MyPath path)
initialize a TableData
|