Class DefaultDownloadIndicator.DownloadPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.adoptopenjdk.icedteaweb.client.parts.downloadindicator.DefaultDownloadIndicator.DownloadPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, DownloadServiceListener
Enclosing class:
DefaultDownloadIndicator

static class DefaultDownloadIndicator.DownloadPanel extends JPanel implements DownloadServiceListener
Groups the url progress in a panel.
Version:
$Revision: 1.3 $
  • Field Details

  • Constructor Details

    • DownloadPanel

      protected DownloadPanel(String downloadName)
      Create a new download panel for with the specified download name.
  • Method Details

    • addProgressPanel

      protected void addProgressPanel(URL url, String version)
      Add a ProgressPanel for a URL.
    • update

      protected void update(URL url, String version, long readSoFar, long total, int overallPercent)
      Update the download progress of a url.
    • setOverallPercent

      public void setOverallPercent(int percent)
      Sets the overall percent completed. should be called via invokeLater
    • downloadFailed

      public void downloadFailed(URL url, String version)
      Called when a download failed.
      Specified by:
      downloadFailed in interface DownloadServiceListener
    • progress

      public void progress(URL url, String version, long readSoFar, long total, int overallPercent)
      Called when a download has progressed.
      Specified by:
      progress in interface DownloadServiceListener
    • upgradingArchive

      public void upgradingArchive(URL url, String version, int patchPercent, int overallPercent)
      Called when an archive is patched.
      Specified by:
      upgradingArchive in interface DownloadServiceListener
    • validating

      public void validating(URL url, String version, long entry, long total, int overallPercent)
      Called when a download is being validated.
      Specified by:
      validating in interface DownloadServiceListener