Class DefaultDownloadIndicator
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.client.parts.downloadindicator.DefaultDownloadIndicator
-
- All Implemented Interfaces:
DownloadIndicator
public class DefaultDownloadIndicator extends java.lang.Object implements DownloadIndicator
Show the progress of downloads.- Version:
- $Revision: 1.3 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classDefaultDownloadIndicator.DownloadPanelGroups the url progress in a panel.(package private) static classDefaultDownloadIndicator.FutureResult<V>(package private) static classDefaultDownloadIndicator.ProgressPanelA progress bar with the URL next to it.
-
Field Summary
Fields Modifier and Type Field Description private static intCLOSE_DELAYtime to wait after completing but before window closesprivate static java.lang.Stringcompleteprivate static javax.swing.JDialogdialogthe display windowprivate static java.lang.ObjectdialogMutexprivate static java.lang.Stringdownloadingprivate static LoggerLOGprivate static java.awt.GridBagConstraintsverticalshared constraintprivate static java.awt.GridBagConstraintsverticalIndentprivate static java.awt.GridBagConstraintsverticalNoClean
-
Constructor Summary
Constructors Constructor Description DefaultDownloadIndicator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static javax.swing.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.DownloadServiceListenergetListener(java.lang.String downloadName, java.net.URL[] resources)Return a download service listener that displays the progress in a shared download info window.private static voidplaceFrameToLowerRight()This places indicator to lower right corner of active monitor.
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
downloading
private static final java.lang.String downloading
-
complete
private static final java.lang.String complete
-
CLOSE_DELAY
private static final int CLOSE_DELAY
time to wait after completing but before window closes- See Also:
- Constant Field Values
-
dialog
private static javax.swing.JDialog dialog
the display window
-
dialogMutex
private static final java.lang.Object dialogMutex
-
vertical
private static final java.awt.GridBagConstraints vertical
shared constraint
-
verticalNoClean
private static final java.awt.GridBagConstraints verticalNoClean
-
verticalIndent
private static final java.awt.GridBagConstraints verticalIndent
-
-
Method Detail
-
getListener
public DownloadServiceListener getListener(java.lang.String downloadName, java.net.URL[] resources)
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
private static javax.swing.JDialog createDownloadIndicatorWindow(boolean undecorated) throws java.awt.HeadlessException- Throws:
java.awt.HeadlessException
-
placeFrameToLowerRight
private static void placeFrameToLowerRight() throws java.awt.HeadlessExceptionThis places indicator to lower right corner of active monitor.- Throws:
java.awt.HeadlessException
-
disposeListener
public void disposeListener(DownloadServiceListener listener)
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
-
-