Interface Download

All Superinterfaces:
Observable<DownloadEvent>

public interface Download extends Observable<DownloadEvent>
A download activity.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels this download.
    boolean
    Indicates whether this download is paused.
    void
    Pauses this download.
    void
    Resumes this download.
    Returns the download state.
    Returns the download target.

    Methods inherited from interface com.teamdev.jxbrowser.event.Observable

    on
  • Method Details

    • target

      DownloadTarget target()
      Returns the download target.
    • state

      DownloadState state()
      Returns the download state.
    • isPaused

      boolean isPaused()
      Indicates whether this download is paused. Use this method to find out whether download is paused or not.
      Returns:
      true if this download is paused
    • pause

      void pause()
      Pauses this download. Will have no effect when the download is already paused.
    • resume

      void resume()
      Resumes this download. Will have no effect when the download is not paused.
    • cancel

      void cancel()
      Cancels this download. Will have no effect when the download is already cancelled.