|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A DownloadIndicator creates DownloadServiceListeners that are notified of resources being transferred and their progress.
Method Summary | |
void |
disposeListener(javax.jnlp.DownloadServiceListener listener)
Indicates that a download service listener that was obtained from the getDownloadListener method will no longer be used. |
int |
getInitialDelay()
Return a time in milliseconds to wait for a download to complete before obtaining a listener for the download. |
javax.jnlp.DownloadServiceListener |
getListener(ApplicationInstance app,
java.lang.String downloadName,
java.net.URL[] resources)
Return a download service listener that displays the progress of downloading resources. |
int |
getUpdateRate()
Return the desired time in milliseconds between updates. |
Method Detail |
public javax.jnlp.DownloadServiceListener getListener(ApplicationInstance app, java.lang.String downloadName, java.net.URL[] resources)
Progress messages are sent as if the DownloadServiceListener were listening to a DownloadService request. The listener will receive progress messages from time to time during the download.
app
- JNLP application downloading the files, or null if not applicabledownloadName
- name identifying the download to the userresources
- initial urls to display, empty if none known at startpublic void disposeListener(javax.jnlp.DownloadServiceListener listener)
listener
- the listener that is no longer in usepublic int getUpdateRate()
public int getInitialDelay()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |