Class DummyDownloadIndicator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disposeListener​(DownloadServiceListener listener)
      Indicates that a download service listener that was obtained from the getDownloadListener method will no longer be used.
      DownloadServiceListener getListener​(java.lang.String downloadName, java.net.URL[] resources)
      Return a download service listener that displays the progress of downloading resources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DummyDownloadIndicator

        public DummyDownloadIndicator()
    • Method Detail

      • getListener

        public DownloadServiceListener getListener​(java.lang.String downloadName,
                                                   java.net.URL[] resources)
        Description copied from interface: DownloadIndicator
        Return a download service listener that displays the progress of downloading resources. Update messages may be reported for URLs that are not included initially.

        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.

        Specified by:
        getListener in interface DownloadIndicator
        Parameters:
        downloadName - name identifying the download to the user
        resources - initial urls to display, empty if none known at start
        Returns:
        dedicated listener
      • disposeListener

        public void disposeListener​(DownloadServiceListener listener)
        Description copied from interface: DownloadIndicator
        Indicates that a download service listener that was obtained from the getDownloadListener method will no longer be used. This method can be used to ensure that progress dialogs are properly removed once a particular download is finished.
        Specified by:
        disposeListener in interface DownloadIndicator
        Parameters:
        listener - the listener that is no longer in use