|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileSystemView
uk.ac.rdg.resc.jstyx.client.StyxFileSystemView
public class StyxFileSystemView
A FileSystemView for a Styx filesystem that can be used by a JFileChooser to select files on a remote Styx server
| Constructor Summary | |
|---|---|
StyxFileSystemView(StyxConnection conn)
Creates a new instance of StyxFileSystemView to view the contents of the Styx server on the given StyxConnection. |
|
| Method Summary | |
|---|---|
java.io.File |
createFileObject(java.io.File dir,
java.lang.String filename)
|
java.io.File |
createFileObject(java.lang.String path)
|
protected java.io.File |
createFileSystemRoot(java.io.File f)
|
java.io.File |
createNewFolder(java.io.File containingDir)
Creates a new folder with a default folder name |
java.io.File |
getChild(java.io.File parent,
java.lang.String fileName)
|
java.io.File |
getDefaultDirectory()
Simply calls getHomeDirectory(); |
java.io.File[] |
getFiles(java.io.File dir,
boolean useFileHiding)
gets the list of files in the given directory |
static javax.swing.filechooser.FileSystemView |
getFileSystemView()
|
java.io.File |
getHomeDirectory()
|
java.io.File |
getParentDirectory(java.io.File f)
|
java.io.File[] |
getRoots()
Gets the root of the remote Styx server, as a (single-membered) array of FileWrappers that wraps the CStyxFile that represents the root of the server |
java.lang.String |
getSystemDisplayName(java.io.File f)
Always returns the name of the file (not the full path) |
boolean |
isComputerNode(java.io.File f)
|
boolean |
isDrive(java.io.File f)
|
boolean |
isFileSystem(java.io.File f)
Always returns false (all files are "real" files) |
boolean |
isFileSystemRoot(java.io.File dir)
|
boolean |
isFloppyDrive(java.io.File f)
|
boolean |
isHiddenFile(java.io.File f)
Always returns false |
boolean |
isParent(java.io.File folder,
java.io.File file)
|
boolean |
isRoot(java.io.File f)
|
java.lang.Boolean |
isTraversable(java.io.File f)
|
static void |
main(java.lang.String[] args)
Test function for StyxFileSystemView |
| Methods inherited from class javax.swing.filechooser.FileSystemView |
|---|
getSystemIcon, getSystemTypeDescription |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyxFileSystemView(StyxConnection conn)
| Method Detail |
|---|
public static javax.swing.filechooser.FileSystemView getFileSystemView()
public boolean isRoot(java.io.File f)
isRoot in class javax.swing.filechooser.FileSystemViewpublic boolean isFileSystemRoot(java.io.File dir)
isFileSystemRoot in class javax.swing.filechooser.FileSystemViewpublic java.io.File getHomeDirectory()
getHomeDirectory in class javax.swing.filechooser.FileSystemViewpublic java.io.File getDefaultDirectory()
getDefaultDirectory in class javax.swing.filechooser.FileSystemView
public java.io.File[] getFiles(java.io.File dir,
boolean useFileHiding)
getFiles in class javax.swing.filechooser.FileSystemViewpublic java.io.File getParentDirectory(java.io.File f)
getParentDirectory in class javax.swing.filechooser.FileSystemViewpublic java.io.File[] getRoots()
getRoots in class javax.swing.filechooser.FileSystemViewpublic java.io.File createNewFolder(java.io.File containingDir)
createNewFolder in class javax.swing.filechooser.FileSystemView
public java.io.File createFileObject(java.io.File dir,
java.lang.String filename)
createFileObject in class javax.swing.filechooser.FileSystemViewpublic java.io.File createFileObject(java.lang.String path)
createFileObject in class javax.swing.filechooser.FileSystemView
public java.io.File getChild(java.io.File parent,
java.lang.String fileName)
getChild in class javax.swing.filechooser.FileSystemView
public boolean isParent(java.io.File folder,
java.io.File file)
isParent in class javax.swing.filechooser.FileSystemViewpublic boolean isFileSystem(java.io.File f)
isFileSystem in class javax.swing.filechooser.FileSystemViewpublic java.lang.String getSystemDisplayName(java.io.File f)
getSystemDisplayName in class javax.swing.filechooser.FileSystemViewpublic boolean isHiddenFile(java.io.File f)
isHiddenFile in class javax.swing.filechooser.FileSystemViewpublic boolean isDrive(java.io.File f)
isDrive in class javax.swing.filechooser.FileSystemViewpublic boolean isFloppyDrive(java.io.File f)
isFloppyDrive in class javax.swing.filechooser.FileSystemViewpublic boolean isComputerNode(java.io.File f)
isComputerNode in class javax.swing.filechooser.FileSystemViewpublic java.lang.Boolean isTraversable(java.io.File f)
isTraversable in class javax.swing.filechooser.FileSystemViewprotected java.io.File createFileSystemRoot(java.io.File f)
createFileSystemRoot in class javax.swing.filechooser.FileSystemViewpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||