com.teamdev.jxbrowser
Class DownloadManagerFactory

java.lang.Object
  extended by com.teamdev.jxbrowser.DownloadManagerFactory

public class DownloadManagerFactory
extends java.lang.Object

DownloadManagerFactory provides access to the singleton instance of default Mozilla DownloadManager.

This implementation delegates most of its work to services implementing nsIDownloadManager and nsIDownloadManagerUI.


Constructor Summary
protected DownloadManagerFactory()
           
 
Method Summary
 DownloadManager getDownloadManager(WebBrowser browser)
          Create the instance of mozilla DownloadManager.
static DownloadManagerFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadManagerFactory

protected DownloadManagerFactory()
Method Detail

getInstance

public static DownloadManagerFactory getInstance()

getDownloadManager

public DownloadManager getDownloadManager(WebBrowser browser)
Create the instance of mozilla DownloadManager.

Parameters:
browser - a browser instance to become the download manager's parent. It is recommended to use focused WebBrowser component.
Returns:
instance of DownloadManager that provides access to the default download manager implementation in Mozilla.