wt.clients.util.http
Class BrowseHTTPUploadDownload

java.lang.Object
  extended bywt.clients.util.http.BrowseHTTPUploadDownload

public final class BrowseHTTPUploadDownload
extends Object

An UploadDownload view used to browse for an individual file.

Supported API:false

Extendable:false


Field Summary
private  String defaultPath
           
private  WTPreferences downloadPreferences
           
private  FileAccess fileAccess
           
private  int fileIndex
           
private  Frame frame
           
private  String PREF_KEY_WORKSPACEPATH
           
private  HTTPUploadDownload uploadDownload
           
 
Constructor Summary
BrowseHTTPUploadDownload(Frame frame, HTTPUploadDownload uploadDownload)
           
BrowseHTTPUploadDownload(Frame frame, HTTPUploadDownload uploadDownload, int fileIndex)
           
 
Method Summary
 String createValidDefaultPath(String path)
           
 String getDefaultPath()
           
private  WTPreferences getDownloadPreferences()
           
private  FileAccess getFileAccess()
           
private  String getPreferenceValue(String key, String defaultValue)
           
 boolean isDirectory(String path)
           
private  WTPreferences retrievePreferences(String node)
           
 void setDefaultPath(String newPath)
           
 void show(boolean blocking)
          Browse local file system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

private Frame frame

uploadDownload

private HTTPUploadDownload uploadDownload

fileIndex

private int fileIndex

PREF_KEY_WORKSPACEPATH

private String PREF_KEY_WORKSPACEPATH

fileAccess

private FileAccess fileAccess

downloadPreferences

private WTPreferences downloadPreferences

defaultPath

private String defaultPath
Constructor Detail

BrowseHTTPUploadDownload

public BrowseHTTPUploadDownload(Frame frame,
                                HTTPUploadDownload uploadDownload)

BrowseHTTPUploadDownload

public BrowseHTTPUploadDownload(Frame frame,
                                HTTPUploadDownload uploadDownload,
                                int fileIndex)
Method Detail

show

public void show(boolean blocking)
Browse local file system. The file name that is located will be used for the pending upload or download. The result of this browse will become the first or primary file.


getFileAccess

private FileAccess getFileAccess()

createValidDefaultPath

public String createValidDefaultPath(String path)

getPreferenceValue

private String getPreferenceValue(String key,
                                  String defaultValue)

getDownloadPreferences

private WTPreferences getDownloadPreferences()

retrievePreferences

private WTPreferences retrievePreferences(String node)

isDirectory

public boolean isDirectory(String path)

getDefaultPath

public String getDefaultPath()

setDefaultPath

public void setDefaultPath(String newPath)