|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.http.HTTPUploadDownloadListenerSupport
wt.clients.util.http.HTTPUploadDownloadView.HTTPUploadDownloadController
Field Summary | |
private DownloadProgressDialog |
downloadProgressDialog
|
Constructor Summary | |
(package private) |
HTTPUploadDownloadView.HTTPUploadDownloadController()
|
Method Summary | |
void |
confirmFileOverwrite(String path,
int index)
Confirm file overwrite. |
void |
fileOperationProgress(int thisFile,
int totalFiles,
int count)
Notification of file transfer progress if file quantity is available. |
void |
fileOperationProgress(int thisFile,
int totalFiles,
long count)
Notification of file transfer progress if file quantity is available. |
void |
fileOperationProgress(String path,
int fileIndex,
int count)
Notification of file transfer progress if filepath is available. |
void |
fileOperationProgress(String path,
int fileIndex,
long count)
Notification of file transfer progress if filepath is available. |
void |
fileOperationStatusChange(String path,
int index,
int status)
Notification of individual upload/download status change. |
void |
fileOperationTypeUnknown(URL url,
String filePath,
int fileIndex)
Callback invoked on listener when the HTTPUploadDownload processes a file for which the operation type is unknown. |
void |
invalidFile(String path,
int index,
int operationType,
String reason)
Callback to inform listener that an invalid file download was requested. |
void |
invalidFile(String filePath,
int fileIndex,
int operationType,
String messageKey,
Object[] params)
The file at fileIndex is invalid. |
void |
locateFile(String path,
int index,
int operationType)
Callback to inform listener that a file is needed. |
void |
openApplication(String path,
int fileIndex)
Call back invoked when HTTPUploadDownload has encountered a file which should be opened in an application. |
void |
openURL(URL url,
int fileIndex)
Call back invoked when HTTPUploadDownload has encountered a url which should be opened. |
Methods inherited from class wt.clients.util.http.HTTPUploadDownloadListenerSupport |
operationFinished, operationStatusChange, propertyChange |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private DownloadProgressDialog downloadProgressDialog
Constructor Detail |
HTTPUploadDownloadView.HTTPUploadDownloadController()
Method Detail |
public void fileOperationStatusChange(String path, int index, int status)
fileOperationStatusChange
in interface HTTPUploadDownloadListener
fileOperationStatusChange
in class HTTPUploadDownloadListenerSupport
public void fileOperationProgress(String path, int fileIndex, int count)
HTTPUploadDownloadListenerSupport
fileOperationProgress
in interface HTTPUploadDownloadListener
fileOperationProgress
in class HTTPUploadDownloadListenerSupport
public void fileOperationProgress(String path, int fileIndex, long count)
HTTPUploadDownloadListenerSupport
fileOperationProgress
in interface HTTPUploadDownloadListener
fileOperationProgress
in class HTTPUploadDownloadListenerSupport
public void fileOperationProgress(int thisFile, int totalFiles, int count)
HTTPUploadDownloadListenerSupport
fileOperationProgress
in interface HTTPUploadDownloadListener
fileOperationProgress
in class HTTPUploadDownloadListenerSupport
public void fileOperationProgress(int thisFile, int totalFiles, long count)
HTTPUploadDownloadListenerSupport
fileOperationProgress
in interface HTTPUploadDownloadListener
fileOperationProgress
in class HTTPUploadDownloadListenerSupport
public void confirmFileOverwrite(String path, int index)
HTTPUploadDownloadListenerSupport
confirmFileOverwrite
in interface HTTPUploadDownloadListener
confirmFileOverwrite
in class HTTPUploadDownloadListenerSupport
public void locateFile(String path, int index, int operationType)
downloadPathNotSet()
method.
locateFile
in interface HTTPUploadDownloadListener
locateFile
in class HTTPUploadDownloadListenerSupport
path
- the local file path.index
- the index of the file entry.operationType
- operation type OPERATION_TYPE_UPLOAD or OPERATION_TYPE_DOWNLOAD.public void invalidFile(String path, int index, int operationType, String reason)
downloadPathNotSet()
method.
invalidFile
in interface HTTPUploadDownloadListener
invalidFile
in class HTTPUploadDownloadListenerSupport
path
- the local file path.index
- the index of the file entry.operationType
- operation type OPERATION_TYPE_UPLOAD or OPERATION_TYPE_DOWNLOAD.reason
- the reason the file is invalid.public void invalidFile(String filePath, int fileIndex, int operationType, String messageKey, Object[] params)
invalidFile
in interface HTTPUploadDownloadListener
invalidFile
in class HTTPUploadDownloadListenerSupport
filePath
- the local file path.fileIndex
- the index of the file entry.operationType
- operation type OPERATION_TYPE_UPLOAD or OPERATION_TYPE_DOWNLOAD.messageKey
- the resource bundle key to the reason messageparams
- the text inserts for the reason messagepublic void fileOperationTypeUnknown(URL url, String filePath, int fileIndex)
HTTPUploadDownload.setFileOPerationType
specifying one these two values.
fileOperationTypeUnknown
in interface HTTPUploadDownloadListener
fileOperationTypeUnknown
in class HTTPUploadDownloadListenerSupport
public void openURL(URL url, int fileIndex)
HTTPUploadDownloadListenerSupport
openURL
in interface HTTPUploadDownloadListener
openURL
in class HTTPUploadDownloadListenerSupport
public void openApplication(String path, int fileIndex)
openApplication
in interface HTTPUploadDownloadListener
openApplication
in class HTTPUploadDownloadListenerSupport
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |