|
JDIC API V2006 Release 0308 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.jdic.browser.BrowserEngineManager
public class BrowserEngineManager
Factory pattern used to maitain instances of IBrowserEngine
.
Field Summary | |
---|---|
static java.lang.String |
IE
|
static java.lang.String |
MOZILLA
|
Method Summary | |
---|---|
protected boolean |
checkEnginesWhenAdded()
This method is called when the BrowserManager instance is created. |
IBrowserEngine |
getActiveEngine()
Get the active engine.Use the engine set by setActiveEngine else
use the system default engine. |
java.util.Map |
getEngines()
Used to find out which BrowserEngines have been registered AND are available on the current system. |
protected void |
initExitingEngines()
Registers the engines that are available by default. |
static BrowserEngineManager |
instance()
Returns the singleton instance of the currently active BrowserManager. |
boolean |
registerBrowserEngine(java.lang.String engineName,
IBrowserEngine engine)
Adds a BrowserEngine to the list of BrowserConnectors that BrowserEngineManager uses to create new Browser instances. |
boolean |
removeBrowserEngine(java.lang.String engineName)
Removes a BrowserEngine to the list of BrowserConnectors that BrowserEngineManager uses to create new Browser instances. |
protected void |
selectEngine()
This code iterates over the currently registered BrowserEngines and decides which Engine will be used for instantiating Browser
This method is only called once. |
boolean |
setActiveEngine(java.lang.String engineName)
Set an active engine throgh enginename.TODO:if mozilla isn't the system default under win, can't set it as the active engine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String MOZILLA
public static java.lang.String IE
Method Detail |
---|
protected void initExitingEngines()
public static BrowserEngineManager instance()
public java.util.Map getEngines()
BrowserEngine
instances representing all
BrowserEngines that are available. Never returns null.public boolean registerBrowserEngine(java.lang.String engineName, IBrowserEngine engine)
BrowserEngineManager
uses to create new Browser instances.
BrowserEngine
- The BrowserEngine to be registered.
public boolean removeBrowserEngine(java.lang.String engineName)
BrowserEngineManager
uses to create new Browser instances.
BrowserEngine
- The BrowserEngine to be removed.
protected void selectEngine() throws JdicInitException
Browser
This method is only called once.
JdicInitException
protected boolean checkEnginesWhenAdded()
public boolean setActiveEngine(java.lang.String engineName)
public IBrowserEngine getActiveEngine()
setActiveEngine
else
use the system default engine.
JdicInitException
|
JDIC API V2006 Release 0308 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, working code examples, license terms and bug report information.
Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.