|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webrenderer.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.
| Field Summary | |
static java.lang.String |
coreComponentsLocation
|
static java.lang.String |
oldCoreComponentsLocation
|
static int |
PLATFORM_LINUX
|
static int |
PLATFORM_OSX
|
static int |
PLATFORM_OTHER
|
static int |
PLATFORM_SOLARIS
|
static int |
PLATFORM_WINDOWS
|
static java.lang.String |
webRendererLocation
|
| Method Summary | |
static void |
blockMouseInput(boolean bVal)
Controls the blocking of mouse input events (Windows only). |
static void |
destroyBrowser(IBrowserCanvas browser)
Destroy an IBrowserCanvas instance. |
static java.lang.String |
getHomeDirectory()
Get the workspace directory for WebRenderer. |
static java.lang.String |
getIEVersion()
Get the Internet Explorer version. |
static java.lang.String |
getLibraryPath()
Get the path from which native Mozilla libraries are loaded. |
static java.lang.String |
getOSLocation()
|
static int |
getPlatform()
Return the internal platform identifier. |
static java.lang.String |
getWebrendererVersion()
Get a String identifying the version of WebRenderer. |
static boolean |
refreshProfile()
Trigger a refresh of the Mozilla profile contents. |
static void |
setAllowKeyboardInput(boolean bVal)
Enables or disabled keyboard input into all IBrowserCanvas (Windows only). |
static void |
setAppletProxyAuthentication(java.lang.String username,
java.lang.String password)
|
static void |
setAppletProxyBypass(java.lang.String bypasses)
|
static void |
setAppletProxySettings(java.lang.String proxyHost,
java.lang.String proxyPort)
|
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)
|
static void |
setLibraryPath(java.lang.String Path)
Sets the path where the WebRenderer 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 native library and the core components. |
static void |
setProfilePath(java.io.File profilePath)
Set the mozilla profile directory for WebRenderer. |
static void |
setWebRendererDirectoryName(java.lang.String newName)
The changes the name of the webrenderer components directory. |
static IIEBrowserCanvas |
spawnInternetExplorer()
Spawn a new instance of an Internet Explorer canvas (Windows platform only). |
static IMozillaBrowserCanvas |
spawnMozilla()
Spawn a new instance of a Mozilla canvas. |
static ISafariBrowserCanvas |
spawnSafari()
Spawn a new instance of a Safari canvas (OSX only). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String webRendererLocation
public static final java.lang.String coreComponentsLocation
public static java.lang.String oldCoreComponentsLocation
public static final int PLATFORM_WINDOWS
public static final int PLATFORM_LINUX
public static final int PLATFORM_OSX
public static final int PLATFORM_SOLARIS
public static final int PLATFORM_OTHER
| Method Detail |
public static java.lang.String getOSLocation()
public static int getPlatform()
public static boolean refreshProfile()
public static java.lang.String getWebrendererVersion()
public static java.lang.String getIEVersion()
"Not Available" (Linux) or null (OSX).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()
#getDllPath()
public static IMozillaBrowserCanvas spawnMozilla()
public static void setLicenseData(java.lang.String username,
java.lang.String serial)
username - username (up to 8 characters).serial - registration key.public static IIEBrowserCanvas spawnInternetExplorer()
IIEBrowserCanvas for Windows or null for Linux and OSXpublic static void setLibraryPath(java.lang.String Path)
Path - path from project location to the library files.#setDllPath(String)public static void setLibraryPath(java.io.File directory)
public static void setMozillaPath(java.io.File directory)
public static ISafariBrowserCanvas spawnSafari()
public static void destroyBrowser(IBrowserCanvas browser)
IBrowserCanvas instance.
browser - browser to destroy.public static void blockMouseInput(boolean bVal)
IBrowserCanvas, including scrollbars.
bVal - true to block all mouse events, false to turn them back onpublic static void setAllowKeyboardInput(boolean bVal)
bVal - true enable keyboard input.
false disable keyboard input.public static void setCorecomponentsExtractOn(java.lang.String filename)
filename - The name of the file in the corecomponents to look for.public static boolean setHomeDirectory(java.lang.String newDirectory)
newDirectory -
getHomeDirectory(),
setLicenseData(String, String),
spawnMozilla(),
spawnSafari(),
spawnInternetExplorer()public static boolean setHomeDirectory(java.io.File newDirectory)
newDirectory -
getHomeDirectory(),
setHomeDirectory( String )public static java.lang.String getHomeDirectory()
setHomeDirectory(String)public static void setProfilePath(java.io.File profilePath)
profilePath - directory to store the profile in.public static void setWebRendererDirectoryName(java.lang.String newName)
newName - new name for the ".webrenderer" directory
public static void setAppletProxySettings(java.lang.String proxyHost,
java.lang.String proxyPort)
public static void setAppletProxyBypass(java.lang.String bypasses)
public static void setAppletProxyAuthentication(java.lang.String username,
java.lang.String password)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||