JDIC API V2006 Release 0308

org.jdesktop.jdic.browser
类 MozillaEngine

java.lang.Object
  继承者 org.jdesktop.jdic.browser.MozillaEngine
所有已实现的接口:
IBrowserEngine

public class MozillaEngine
extends java.lang.Object
implements IBrowserEngine

Handles the communication with Mozilla's Gecko Runtime Engine (GRE).


构造函数摘要
MozillaEngine()
           
 
方法摘要
 java.lang.String getBrowserName()
          Returns the standardadized name of the embedded browser engine.
 java.lang.String getCharsetName()
           
 java.lang.String getEmbeddedBinaryName()
           
 java.lang.String getFileProtocolURLPrefix()
          Mozilla will not omit this prefix
 void initialize()
          Set according path items and grant executable permission to bin file.
 boolean isDefaultBrowser(java.lang.String browserPath)
          Checks whether mozilla is default Browser on the current system.
 boolean isEngineAvailable()
          Checks whether the associated Engine is available on the current system.
 boolean isInitialized()
          check if the browser engine has been intialized.
protected  void preapareEnvVariables()
          get and set env variables For xpcom under win,it maybe under mozilla path or under gre path.
 void setEnginePath(java.lang.String fullPath)
          Set browser's full path(folder and exe name).
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造函数详细信息

MozillaEngine

public MozillaEngine()
方法详细信息

initialize

public void initialize()
                throws JdicInitException
Set according path items and grant executable permission to bin file.

指定者:
接口 IBrowserEngine 中的 initialize
抛出:
JdicInitException

getBrowserName

public java.lang.String getBrowserName()
从接口 IBrowserEngine 复制的描述
Returns the standardadized name of the embedded browser engine. The name identifies the browser type but not the browser version. This name should be the same for all browser engines that embed the same browser, independent of platform. Names should be such that they can be presented in an English user dialog for choosing their favorite embedded engine. They may have spaces but they may not be internationalized. Examples for the standardized names are: Internet Explorer, Mozilla.

指定者:
接口 IBrowserEngine 中的 getBrowserName
返回:
The standardized name of the embedded browser engine. May not be null or empty.

isEngineAvailable

public boolean isEngineAvailable()
Checks whether the associated Engine is available on the current system. This is a prerequisite for creating Browser instances on the current system.

指定者:
接口 IBrowserEngine 中的 isEngineAvailable
返回:
true if an engine is available, false if no engine is available, the engine is not found or can not be accessed.

isDefaultBrowser

public boolean isDefaultBrowser(java.lang.String browserPath)
Checks whether mozilla is default Browser on the current system.

指定者:
接口 IBrowserEngine 中的 isDefaultBrowser
参数:
browserPath - taken from the OS or whereever
返回:
if default browser return ture else return false

preapareEnvVariables

protected void preapareEnvVariables()
                             throws JdicInitException
get and set env variables For xpcom under win,it maybe under mozilla path or under gre path. It can be set by: 1. setEnginePath() 2.MOZILLA_FIVE_PATH 3.

抛出:
JdicInitException

getEmbeddedBinaryName

public java.lang.String getEmbeddedBinaryName()
指定者:
接口 IBrowserEngine 中的 getEmbeddedBinaryName
返回:
embeded name of current browser.

setEnginePath

public void setEnginePath(java.lang.String fullPath)
从接口 IBrowserEngine 复制的描述
Set browser's full path(folder and exe name). When active brower isn't set as the default browser, will have to use this method to specify the path of it. It's often used after BrowserEngineManger's setActiveEngine() method.

指定者:
接口 IBrowserEngine 中的 setEnginePath

getCharsetName

public java.lang.String getCharsetName()
指定者:
接口 IBrowserEngine 中的 getCharsetName
返回:
browser's default charset used to de/encode messages.

getFileProtocolURLPrefix

public java.lang.String getFileProtocolURLPrefix()
Mozilla will not omit this prefix

指定者:
接口 IBrowserEngine 中的 getFileProtocolURLPrefix
返回:
browser's file protocol prefix (eg. "file:/")

isInitialized

public boolean isInitialized()
从接口 IBrowserEngine 复制的描述
check if the browser engine has been intialized. It needs only be initialized once.

指定者:
接口 IBrowserEngine 中的 isInitialized
返回:
if initialized return true else return false

JDIC API V2006 Release 0308

For more information and documentation on JDIC, see JDIC website.

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.