S-PLUS Connect/Java v1.0

com.insightful.splus.client
Class ServerFileSystemView

java.lang.Object
  extended by javax.swing.filechooser.FileSystemView
      extended by com.insightful.splus.client.ServerFileSystemView

public class ServerFileSystemView
extends FileSystemView

Object representing the file system on the server.
This supports viewing the server file system in a JFileChooser displayed on a client in client/server mode. It performs file system queries on the server via S-PLUS commands.


Constructor Summary
ServerFileSystemView()
          Create the ServerFileSystemView.
ServerFileSystemView(ClientUtilities utils)
          Create the ServerFileSystemView.
 
Method Summary
 ServerFile[] clientSideFileInfoQuery(String dirName, boolean useFileHiding)
           
 ServerFile[] clientSideFileInfoQuery(String fileOrDir, boolean lookInDir, boolean useFileHiding)
           
 File createFileObject(File dir, String filename)
          Create a ServerFile.
 File createFileObject(String path)
          Create a ServerFile.
protected  File createFileSystemRoot(File f)
           
 File createNewFolder(File containingDir)
          Create a directory on the server.
 File getChild(File parent, String fileName)
           
 File getDefaultDirectory()
           
 File[] getFiles(File dir, boolean useFileHiding)
          Get an array of ServerFile objects for the files in a directory.
 File getHomeDirectory()
           
 File getParentDirectory(File dir)
           
 File[] getRoots()
           
 String getSystemDisplayName(File f)
           
 Icon getSystemIcon(File f)
           
 String getSystemTypeDescription(File f)
           
 boolean isComputerNode(File dir)
           
 boolean isDrive(File dir)
           
 boolean isFileSystem(File f)
           
 boolean isFileSystemRoot(File f)
           
 boolean isFloppyDrive(File f)
           
 boolean isHiddenFile(File f)
           
 boolean isParent(File folder, File file)
           
 boolean isRoot(File f)
           
 Boolean isTraversable(File f)
           
static String[] serverSideFileInfoQuery(String fileOrDir, boolean lookInDir, boolean useFileHiding)
           
 
Methods inherited from class javax.swing.filechooser.FileSystemView
getFileSystemView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerFileSystemView

public ServerFileSystemView()
Create the ServerFileSystemView.


ServerFileSystemView

public ServerFileSystemView(ClientUtilities utils)
Create the ServerFileSystemView.

Method Detail

createFileObject

public File createFileObject(String path)
Create a ServerFile.

Overrides:
createFileObject in class FileSystemView

createFileObject

public File createFileObject(File dir,
                             String filename)
Create a ServerFile.

Overrides:
createFileObject in class FileSystemView

createNewFolder

public File createNewFolder(File containingDir)
                     throws IOException
Create a directory on the server.

Specified by:
createNewFolder in class FileSystemView
Throws:
IOException

getFiles

public File[] getFiles(File dir,
                       boolean useFileHiding)
Get an array of ServerFile objects for the files in a directory.

Overrides:
getFiles in class FileSystemView

getHomeDirectory

public File getHomeDirectory()
Overrides:
getHomeDirectory in class FileSystemView

getParentDirectory

public File getParentDirectory(File dir)
Overrides:
getParentDirectory in class FileSystemView

getRoots

public File[] getRoots()
Overrides:
getRoots in class FileSystemView

isHiddenFile

public boolean isHiddenFile(File f)
Overrides:
isHiddenFile in class FileSystemView

isRoot

public boolean isRoot(File f)
Overrides:
isRoot in class FileSystemView

createFileSystemRoot

protected File createFileSystemRoot(File f)
Overrides:
createFileSystemRoot in class FileSystemView

getChild

public File getChild(File parent,
                     String fileName)
Overrides:
getChild in class FileSystemView

getDefaultDirectory

public File getDefaultDirectory()
Overrides:
getDefaultDirectory in class FileSystemView

getSystemDisplayName

public String getSystemDisplayName(File f)
Overrides:
getSystemDisplayName in class FileSystemView

getSystemIcon

public Icon getSystemIcon(File f)
Overrides:
getSystemIcon in class FileSystemView

getSystemTypeDescription

public String getSystemTypeDescription(File f)
Overrides:
getSystemTypeDescription in class FileSystemView

isComputerNode

public boolean isComputerNode(File dir)
Overrides:
isComputerNode in class FileSystemView

isDrive

public boolean isDrive(File dir)
Overrides:
isDrive in class FileSystemView

isFileSystem

public boolean isFileSystem(File f)
Overrides:
isFileSystem in class FileSystemView

isFileSystemRoot

public boolean isFileSystemRoot(File f)
Overrides:
isFileSystemRoot in class FileSystemView

isFloppyDrive

public boolean isFloppyDrive(File f)
Overrides:
isFloppyDrive in class FileSystemView

isParent

public boolean isParent(File folder,
                        File file)
Overrides:
isParent in class FileSystemView

isTraversable

public Boolean isTraversable(File f)
Overrides:
isTraversable in class FileSystemView

clientSideFileInfoQuery

public ServerFile[] clientSideFileInfoQuery(String dirName,
                                            boolean useFileHiding)

clientSideFileInfoQuery

public ServerFile[] clientSideFileInfoQuery(String fileOrDir,
                                            boolean lookInDir,
                                            boolean useFileHiding)

serverSideFileInfoQuery

public static String[] serverSideFileInfoQuery(String fileOrDir,
                                               boolean lookInDir,
                                               boolean useFileHiding)

S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.