Class DefaultDownloadIndicator

java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.downloadindicator.DefaultDownloadIndicator
All Implemented Interfaces:
DownloadIndicator

public class DefaultDownloadIndicator extends Object implements DownloadIndicator
Show the progress of downloads.
Version:
$Revision: 1.3 $
  • Field Details

    • LOG

      private static final Logger LOG
    • downloading

      private static final String downloading
    • complete

      private static final String complete
    • CLOSE_DELAY

      private static final int CLOSE_DELAY
      time to wait after completing but before window closes
      See Also:
    • dialog

      private static JDialog dialog
      the display window
    • dialogMutex

      private static final Object dialogMutex
    • vertical

      private static final GridBagConstraints vertical
      shared constraint
    • verticalNoClean

      private static final GridBagConstraints verticalNoClean
    • verticalIndent

      private static final GridBagConstraints verticalIndent
  • Constructor Details

    • DefaultDownloadIndicator

      public DefaultDownloadIndicator()
  • Method Details

    • getListener

      public DownloadServiceListener getListener(String downloadName, URL[] resources)
      Return a download service listener that displays the progress in a shared download info window.
      Specified by:
      getListener in interface DownloadIndicator
      Parameters:
      downloadName - name identifying the download to the user
      resources - initial urls to display (not required)
      Returns:
      download service listener attached to this app. instance
    • createDownloadIndicatorWindow

      private static JDialog createDownloadIndicatorWindow(boolean undecorated) throws HeadlessException
      Throws:
      HeadlessException
    • placeFrameToLowerRight

      private static void placeFrameToLowerRight() throws HeadlessException
      This places indicator to lower right corner of active monitor.
      Throws:
      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:
      disposeListener in interface DownloadIndicator
      Parameters:
      listener - the listener that is no longer in use