com.teamdev.jxbrowser
Interface DownloadManager


public interface DownloadManager

Interface to service that can manage download jobs. A default instance of DownloadManager is available from DownloadManagerFactory.

 DownloadManager manager = DownloadManagerFactory.getInstance().getDownloadManager(browser);
 URL downloadManagerDistrib = new URL("http://www.teamdev.com/downloads/jxbrowser/jxbrowser-1.0.eap2-all.zip");
 manager.addDownload(downloadManagerDistrib);
 

NOTE:This is a convenience class that provides a convenient way to track downloads in a browser-like UI application. Depending on the application needs a custom download manager or another method to track file downloads can be used instead, skipping usage of this facility altogether.

See Also:
DownloadManagerFactory, WebBrowser

Method Summary
 void addDownload(java.net.URL url)
          Add a URL to download file from.
 void showDownloadManagerWindow()
          Show the Download Manager window.
 

Method Detail

addDownload

void addDownload(java.net.URL url)
Add a URL to download file from. This method prompts for the save location and then starts a downloads job that is tracked by manager's UI.

Parameters:
url - location of a file to download.

showDownloadManagerWindow

void showDownloadManagerWindow()
Show the Download Manager window.