com.teamdev.jxbrowser
Class WebBrowserFactory

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

public class WebBrowserFactory
extends java.lang.Object

A factory to create embedded browsers based on Mozilla.


Method Summary
 WebBrowser createBrowser()
          Creates a browser instance.
 WindowCreator getDefaultWindowCreator()
          Returns default window creator.
static WebBrowserFactory getInstance()
          Returns an instance of this factory.
 void setDefaultWindowCreator(WindowCreator defaultWindowCreator)
          Sets the window creator that is used by all browser instances that do not provide their own window creator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WebBrowserFactory getInstance()
Returns an instance of this factory.


createBrowser

public WebBrowser createBrowser()
Creates a browser instance.


getDefaultWindowCreator

public WindowCreator getDefaultWindowCreator()
Returns default window creator. This object is used when the window creator has not been set in the browser.

Returns:
default window creator object.

setDefaultWindowCreator

public void setDefaultWindowCreator(WindowCreator defaultWindowCreator)
Sets the window creator that is used by all browser instances that do not provide their own window creator.

Parameters:
defaultWindowCreator - window creator instance