public class DefaultDownloadIndicator extends java.lang.Object implements DownloadIndicator
| Constructor and Description |
|---|
DefaultDownloadIndicator() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.JDialog |
createDownloadIndicatorWindow(boolean undecorated) |
void |
disposeListener(DownloadServiceListener listener)
Remove a download service listener that was obtained by
calling the getDownloadListener method from the shared
download info window.
|
int |
getInitialDelay()
Return a time in milliseconds to wait for a download to
complete before obtaining a listener for the download.
|
DownloadServiceListener |
getListener(ApplicationInstance app,
java.lang.String downloadName,
java.net.URL[] resources)
Return a download service listener that displays the progress
in a shared download info window.
|
int |
getUpdateRate()
Return the desired time in milliseconds between updates.
|
public int getUpdateRate()
DownloadIndicatorgetUpdateRate in interface DownloadIndicatorpublic int getInitialDelay()
DownloadIndicatorgetInitialDelay in interface DownloadIndicatorpublic DownloadServiceListener getListener(ApplicationInstance app, java.lang.String downloadName, java.net.URL[] resources)
getListener in interface DownloadIndicatorapp - the downloading application, or null if N/AdownloadName - name identifying the download to the userresources - initial urls to display (not required)public static javax.swing.JDialog createDownloadIndicatorWindow(boolean undecorated)
throws java.awt.HeadlessException
java.awt.HeadlessExceptionpublic void disposeListener(DownloadServiceListener listener)
disposeListener in interface DownloadIndicatorlistener - the listener that is no longer in use