JDIC API V2006 Release 0308

org.jdesktop.jdic.browser
类 InternetExplorerEngine

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

public class InternetExplorerEngine
extends java.lang.Object
implements IBrowserEngine

Handles the communication with Internet Explorer.


构造函数摘要
InternetExplorerEngine()
           
 
方法摘要
 java.lang.String getBrowserBinary()
           
 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()
          IE omited the file protocol
protected  java.lang.String getNspr4dllPath()
          已过时。  
 void initialize()
          Initialize engine.
 boolean isDefaultBrowser(java.lang.String browserPath)
          Checks whether IE is the default Browser.
 boolean isEngineAvailable()
          Checks whether the associated Engine is available on the current system.
 boolean isInitialized()
          check if the browser engine has been intialized.
protected  boolean prepareVariables()
           
 void setEnginePath(java.lang.String fullPath)
          Not suppored under win for IE
protected  void setEnv()
          Pre-append the "ielib" directory to PATH, which includes the bundled,IeEmbed.exe dependent library nspr4.dll.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造函数详细信息

InternetExplorerEngine

public InternetExplorerEngine()
方法详细信息

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 IE is the default Browser.

指定者:
接口 IBrowserEngine 中的 isDefaultBrowser
参数:
browserPath - default browser path taken from the OS or whereever
返回:
true if this BrowserEngine represents the default browser, false otherwise or if browserPath is null

prepareVariables

protected boolean prepareVariables()
返回:

setEnv

protected void setEnv()
Pre-append the "ielib" directory to PATH, which includes the bundled,IeEmbed.exe dependent library nspr4.dll. If nspr4.dll doesn't under curr folder,user can: 1. set it through setLibPath method 2. set it directlly in the path


getBrowserBinary

public java.lang.String getBrowserBinary()

getNspr4dllPath

protected java.lang.String getNspr4dllPath()
已过时。 

返回:
Returns the nspr4dllPath.

initialize

public void initialize()
                throws JdicInitException
从接口 IBrowserEngine 复制的描述
Initialize engine.

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

getEmbeddedBinaryName

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

setEnginePath

public void setEnginePath(java.lang.String fullPath)
Not suppored under win for IE

指定者:
接口 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()
IE omited the file protocol

指定者:
接口 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.