|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlhmc.files.FileManager
public class FileManager
FileManager uses the SortedTreeNode class to keep que current directory (with filtred files) in order.
Constructor Summary | |
---|---|
FileManager(java.net.URL[] files)
Constructs the file manager from a URL array. |
Method Summary | |
---|---|
void |
changeTreeNode(java.net.URL[] files)
Changes to a new URL array and the tree node. |
java.net.URL |
getFileAt(int index)
Gets the URL at the certain position of the tree. |
java.lang.String |
getFileNameAt(int index)
Gets the file path of a node at index position. |
int |
getNodesNumber()
Gets the number of nodes of the sorted tree. |
int |
getUrlType()
Gets the url type, it can be File or SmbFile |
boolean |
isDirectoryNode(int index)
Returns true if at the index position there is a directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileManager(java.net.URL[] files)
files
- The array of URLs to create the tree with.Method Detail |
---|
public int getUrlType()
public void changeTreeNode(java.net.URL[] files)
files
- The new array of URLs to create the tree with.public boolean isDirectoryNode(int index)
index
- The index position of a node.
public int getNodesNumber()
public java.lang.String getFileNameAt(int index)
index
- The index position of a node.
public java.net.URL getFileAt(int index)
index
- The position of the URL in the tree.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |