netx.jnlp.cache

Class DefaultDownloadIndicator

Implemented Interfaces:
DownloadIndicator

public class DefaultDownloadIndicator
extends java.lang.Object
implements DownloadIndicator

Show the progress of downloads.
Version:
$Revision: 1.3 $
Author:
Jon A. Maxwell (JAM) - initial author

Nested Class Summary

(package private) static class
DefaultDownloadIndicator.DownloadPanel
Groups the url progress in a panel.
(package private) static class
DefaultDownloadIndicator.ProgressPanel
A progress bar with the URL next to it.

Field Summary

(package private) static GridBagConstraints
vertical
shared constraint
(package private) static GridBagConstraints
verticalIndent

Method Summary

void
disposeListener(javax.jnlp.DownloadServiceListener listener)
Remove a download service listener that was obtained by calling the getDownloadListener method from the shared download info window.
int
getInitialDelay()
Return the initial delay before obtaining a listener.
javax.jnlp.DownloadServiceListener
getListener(ApplicationInstance app, String downloadName, resources[] )
Return a download service listener that displays the progress in a shared download info window.
int
getUpdateRate()
Return the update rate.

Field Details

vertical

(package private) static GridBagConstraints vertical
shared constraint

verticalIndent

(package private) static GridBagConstraints verticalIndent

Method Details

disposeListener

public void disposeListener(javax.jnlp.DownloadServiceListener listener)
Remove a download service listener that was obtained by calling the getDownloadListener method from the shared download info window.
Specified by:
disposeListener in interface DownloadIndicator

getInitialDelay

public int getInitialDelay()
Return the initial delay before obtaining a listener.
Specified by:
getInitialDelay in interface DownloadIndicator

getListener

public javax.jnlp.DownloadServiceListener getListener(ApplicationInstance app,
                                                      String downloadName,
                                                      resources[] )
Return a download service listener that displays the progress in a shared download info window.
Specified by:
getListener in interface DownloadIndicator
Parameters:
app - the downloading application, or null if N/A
downloadName - name identifying the download to the user

getUpdateRate

public int getUpdateRate()
Return the update rate.
Specified by:
getUpdateRate in interface DownloadIndicator