public class RemoteFileInfoImpl extends java.lang.Object implements RemoteContentProvider.DownloadingCallback, RemoteFileInfo
| Constructor and Description | 
|---|
RemoteFileInfoImpl(Url url,
                  RemoteFileManagerImpl manager)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addDownloadingListener(FileDownloadingListener listener)  | 
void | 
cancelDownloading()  | 
Promise<VirtualFile> | 
download()  | 
void | 
errorOccurred(java.lang.String errorMessage,
             boolean cancelled)  | 
void | 
finished(FileType fileType)  | 
java.lang.String | 
getErrorMessage()  | 
VirtualFile | 
getLocalFile()  | 
RemoteFileState | 
getState()  | 
boolean | 
isCancelled()  | 
void | 
refresh(java.lang.Runnable postRunnable)  | 
void | 
removeDownloadingListener(FileDownloadingListener listener)  | 
void | 
restartDownloading()  | 
void | 
setProgressFraction(double fraction)  | 
void | 
setProgressText(java.lang.String text,
               boolean indeterminate)  | 
void | 
startDownloading()  | 
java.lang.String | 
toString()  | 
public RemoteFileInfoImpl(Url url, RemoteFileManagerImpl manager)
public void addDownloadingListener(FileDownloadingListener listener)
addDownloadingListener in interface RemoteFileInfopublic void removeDownloadingListener(FileDownloadingListener listener)
removeDownloadingListener in interface RemoteFileInfopublic void restartDownloading()
restartDownloading in interface RemoteFileInfopublic void startDownloading()
startDownloading in interface RemoteFileInfopublic void finished(FileType fileType)
finished in interface RemoteContentProvider.DownloadingCallbackpublic boolean isCancelled()
isCancelled in interface RemoteContentProvider.DownloadingCallbackpublic java.lang.String getErrorMessage()
getErrorMessage in interface RemoteFileInfopublic void errorOccurred(java.lang.String errorMessage,
                          boolean cancelled)
errorOccurred in interface RemoteContentProvider.DownloadingCallbackpublic void setProgressFraction(double fraction)
setProgressFraction in interface RemoteContentProvider.DownloadingCallbackpublic void setProgressText(java.lang.String text,
                            boolean indeterminate)
setProgressText in interface RemoteContentProvider.DownloadingCallbackpublic VirtualFile getLocalFile()
getLocalFile in interface RemoteFileInfopublic java.lang.String toString()
toString in class java.lang.Objectpublic RemoteFileState getState()
getState in interface RemoteFileInfopublic void cancelDownloading()
cancelDownloading in interface RemoteFileInfopublic void refresh(java.lang.Runnable postRunnable)
public Promise<VirtualFile> download()