|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webrenderer.se.BrowserFactory
public class BrowserFactory
BrowserFactory is used to generate new
IBrowserCanvas implementations. It follows the factory design
pattern, allowing it to spawn off specific implementations. Each
implementation implements IBrowserCanvas at a minimum, but
probably has browser-specific interfaces as well.
If a browser is not available for the platform (for example, a certain
browser not installed), then attempting to spawn such a browser will return
null.
| Constructor Summary | |
|---|---|
protected |
BrowserFactory()
Protected constructor for BrowserFactory. |
| Method Summary | |
|---|---|
static void |
addFontSearchDirectory(java.io.File fontDir)
Add a directory to the font search path. |
static void |
destroyBrowser(IBrowserCanvas browser)
Destroy an IBrowserCanvas instance. |
static java.lang.String |
getHomeDirectory()
Get the workspace directory for WebRenderer. |
static java.lang.String |
getLibraryPath()
Get the path from which native Mozilla libraries are loaded. |
static java.lang.String |
getWebrendererVersion()
Get a String identifying the version of WebRenderer Server Edition. |
static void |
setCorecomponentsExtractOn(java.lang.String filename)
Sets extraction of corcomponents based on a custom file within. |
static boolean |
setHomeDirectory(java.io.File newDirectory)
Set the workspace root directory for WebRenderer. |
static boolean |
setHomeDirectory(java.lang.String newDirectory)
Set the workspace root directory for WebRenderer. |
static void |
setLibraryPath(java.io.File directory)
Sets the path from where the Webrenderer Server Edition library files are loaded. |
static void |
setLibraryPath(java.lang.String Path)
Sets the path where the WebRenderer Server Edition library files are located. |
static void |
setLicenseData(java.lang.String username,
java.lang.String serial)
Set registration/license key. |
static void |
setMozillaPath(java.io.File directory)
|
static void |
setMozillaPath(java.lang.String path)
Setting the Mozilla Path is used to change the directory that contains the webrenderer Server Edition native library and the core components. |
static boolean |
shutdownMozilla()
Shutdown Mozilla. |
static IMozillaBrowserCanvas |
spawnMozilla()
Spawns a new instance of WebRenderer Server Edition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BrowserFactory()
protected.
| Method Detail |
|---|
public static java.lang.String getWebrendererVersion()
public static void setMozillaPath(java.lang.String path)
You must call this before any other calls are made as they may need to load the native libraries.
path - relative path from current directory to libraries.public static java.lang.String getLibraryPath()
public static void setLicenseData(java.lang.String username,
java.lang.String serial)
username - username (up to 8 characters).serial - registration key.public static void setLibraryPath(java.lang.String Path)
Path - path from project location to the library files.setLibraryPath(File)public static void setLibraryPath(java.io.File directory)
directory - Path from project location to the library files.setLibraryPath(String)public static void setMozillaPath(java.io.File directory)
directory - public static void destroyBrowser(IBrowserCanvas browser)
IBrowserCanvas instance.
browser - browser to destroy.public static void setCorecomponentsExtractOn(java.lang.String filename)
filename - The name of the file in the corecomponents to look for.public static IMozillaBrowserCanvas spawnMozilla()
public static boolean setHomeDirectory(java.lang.String newDirectory)
newDirectory -
getHomeDirectory(),
setLicenseData(String, String)public static boolean setHomeDirectory(java.io.File newDirectory)
newDirectory -
getHomeDirectory(),
setHomeDirectory( String )public static void addFontSearchDirectory(java.io.File fontDir)
The following fonts are supported...
fontDir - directory containing fonts.public static java.lang.String getHomeDirectory()
setHomeDirectory(String)public static boolean shutdownMozilla()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||