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 RemoteFileInfo
public void removeDownloadingListener(FileDownloadingListener listener)
removeDownloadingListener
in interface RemoteFileInfo
public void restartDownloading()
restartDownloading
in interface RemoteFileInfo
public void startDownloading()
startDownloading
in interface RemoteFileInfo
public void finished(FileType fileType)
finished
in interface RemoteContentProvider.DownloadingCallback
public boolean isCancelled()
isCancelled
in interface RemoteContentProvider.DownloadingCallback
public java.lang.String getErrorMessage()
getErrorMessage
in interface RemoteFileInfo
public void errorOccurred(java.lang.String errorMessage, boolean cancelled)
errorOccurred
in interface RemoteContentProvider.DownloadingCallback
public void setProgressFraction(double fraction)
setProgressFraction
in interface RemoteContentProvider.DownloadingCallback
public void setProgressText(java.lang.String text, boolean indeterminate)
setProgressText
in interface RemoteContentProvider.DownloadingCallback
public VirtualFile getLocalFile()
getLocalFile
in interface RemoteFileInfo
public java.lang.String toString()
toString
in class java.lang.Object
public RemoteFileState getState()
getState
in interface RemoteFileInfo
public void cancelDownloading()
cancelDownloading
in interface RemoteFileInfo
public void refresh(java.lang.Runnable postRunnable)
public Promise<VirtualFile> download()