ibrowserengine.html
来自「java GUI编程」· HTML 代码 · 共 444 行 · 第 1/2 页
HTML
444 行
<A NAME="getBrowserName()"><!-- --></A><H3>
getBrowserName</H3>
<PRE>
public java.lang.String <B>getBrowserName</B>()</PRE>
<DL>
<DD>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.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The standardized name of the embedded browser engine. May not be null or empty.</DL>
</DD>
</DL>
<HR>
<A NAME="isEngineAvailable()"><!-- --></A><H3>
isEngineAvailable</H3>
<PRE>
public boolean <B>isEngineAvailable</B>()</PRE>
<DL>
<DD>Checks whether the associated Engine is available on the current system. This is a prerequisite for creating <code>Browser</code> instances on the current system. This method should not yet reserve resources required for actually launching the browser: The BrowserManager may decide to invoke the browser window from a different engine.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if an engine is available, false if no engine is available, the engine is not found or can not be accessed.</DL>
</DD>
</DL>
<HR>
<A NAME="isDefaultBrowser(java.lang.String)"><!-- --></A><H3>
isDefaultBrowser</H3>
<PRE>
public boolean <B>isDefaultBrowser</B>(java.lang.String browserPath)</PRE>
<DL>
<DD>Checks whether the default BrowserPath indicates that this browser is set as the default browser on the current system.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>browserPath</CODE> - taken from the OS or whereever<DT><B>Returns:</B><DD>true if this BrowserEngine represents the default browser, true otherwise</DL>
</DD>
</DL>
<HR>
<A NAME="getEmbeddedBinaryName()"><!-- --></A><H3>
getEmbeddedBinaryName</H3>
<PRE>
public java.lang.String <B>getEmbeddedBinaryName</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>embeded name of current browser.</DL>
</DD>
</DL>
<HR>
<A NAME="setEnginePath(java.lang.String)"><!-- --></A><H3>
setEnginePath</H3>
<PRE>
public void <B>setEnginePath</B>(java.lang.String fullPath)</PRE>
<DL>
<DD>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 <code>BrowserEngineManger</code>'s setActiveEngine() method.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="initialize()"><!-- --></A><H3>
initialize</H3>
<PRE>
public void <B>initialize</B>() throws <A HREF="../../../../org/jdesktop/jdic/init/JdicInitException.html" title="class in org.jdesktop.jdic.init">JdicInitException</A></PRE>
<DL>
<DD>Initialize engine.
<P>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/init/JdicInitException.html" title="class in org.jdesktop.jdic.init">JdicInitException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getCharsetName()"><!-- --></A><H3>
getCharsetName</H3>
<PRE>
public java.lang.String <B>getCharsetName</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>browser's default charset used to de/encode messages.</DL>
</DD>
</DL>
<HR>
<A NAME="getFileProtocolURLPrefix()"><!-- --></A><H3>
getFileProtocolURLPrefix</H3>
<PRE>
public java.lang.String <B>getFileProtocolURLPrefix</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>browser's file protocol prefix (eg. "file:/")</DL>
</DD>
</DL>
<HR>
<A NAME="isInitialized()"><!-- --></A><H3>
isInitialized</H3>
<PRE>
public boolean <B>isInitialized</B>()</PRE>
<DL>
<DD>check if the browser engine has been intialized. It needs only be initialized once.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>if initialized return true else return false</DL>
</DD>
</DL>
<HR>
<A NAME="getWebBrowser()"><!-- --></A><H3>
getWebBrowser</H3>
<PRE>
public <A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A> <B>getWebBrowser</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>a WebBrowser instance</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/IBrowserEngine.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
JDIC API V2006 Release 0308</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="IBrowserEngine.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<font size=-1>For more information and documentation on JDIC, see <a href=https://jdic.dev.java.net>JDIC website</a>. <p>That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, working code examples, license terms and bug report information. <p>Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href= https://jdic.dev.java.net/source/browse/jdic/src/COPYING>license terms</a>. </font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?