Class DefaultDownloadIndicator
java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.downloadindicator.DefaultDownloadIndicator
- All Implemented Interfaces:
DownloadIndicator
Show the progress of downloads.
- Version:
- $Revision: 1.3 $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classGroups the url progress in a panel.(package private) static class(package private) static classA progress bar with the URL next to it. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final inttime to wait after completing but before window closesprivate static final Stringprivate static JDialogthe display windowprivate static final Objectprivate static final Stringprivate static final Loggerprivate static final GridBagConstraintsshared constraintprivate static final GridBagConstraintsprivate static final GridBagConstraints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static JDialogcreateDownloadIndicatorWindow(boolean undecorated) voiddisposeListener(DownloadServiceListener listener) Remove a download service listener that was obtained by calling the getDownloadListener method from the shared download info window.getListener(String downloadName, URL[] resources) Return a download service listener that displays the progress in a shared download info window.private static voidThis places indicator to lower right corner of active monitor.
-
Field Details
-
LOG
-
downloading
-
complete
-
CLOSE_DELAY
private static final int CLOSE_DELAYtime to wait after completing but before window closes- See Also:
-
dialog
the display window -
dialogMutex
-
vertical
shared constraint -
verticalNoClean
-
verticalIndent
-
-
Constructor Details
-
DefaultDownloadIndicator
public DefaultDownloadIndicator()
-
-
Method Details
-
getListener
Return a download service listener that displays the progress in a shared download info window.- Specified by:
getListenerin interfaceDownloadIndicator- Parameters:
downloadName- name identifying the download to the userresources- initial urls to display (not required)- Returns:
- download service listener attached to this app. instance
-
createDownloadIndicatorWindow
- Throws:
HeadlessException
-
placeFrameToLowerRight
This places indicator to lower right corner of active monitor.- Throws:
HeadlessException
-
disposeListener
Remove a download service listener that was obtained by calling the getDownloadListener method from the shared download info window.- Specified by:
disposeListenerin interfaceDownloadIndicator- Parameters:
listener- the listener that is no longer in use
-