📄 iwebbrowser.html
字号:
<A NAME="isSynchronize()"><!-- --></A><H3>
isSynchronize</H3>
<PRE>
public boolean <B>isSynchronize</B>()</PRE>
<DL>
<DD>If the webbrowser works under synchronize model
<P>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="asComponent()"><!-- --></A><H3>
asComponent</H3>
<PRE>
public java.awt.Component <B>asComponent</B>()</PRE>
<DL>
<DD>Returns the component to which the Browser paints. This method is needed to add a Browser to
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The component on which the Browser paints.</DL>
</DD>
</DL>
<HR>
<A NAME="getURL()"><!-- --></A><H3>
getURL</H3>
<PRE>
public java.net.URL <B>getURL</B>()</PRE>
<DL>
<DD>Retrieves the URL that is currently being displayed.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the current URL being display, or <code>null</code> if the WebBrowser object is not ready with initialization of itself.</DL>
</DD>
</DL>
<HR>
<A NAME="setURL()"><!-- --></A><H3>
setURL</H3>
<PRE>
public void <B>setURL</B>()</PRE>
<DL>
<DD>Sets the document to be a blank page.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setURL(java.net.URL)"><!-- --></A><H3>
setURL</H3>
<PRE>
public void <B>setURL</B>(java.net.URL url)</PRE>
<DL>
<DD>Navigates to a resource identified by an URL using HTTP GET method.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL to navigate.</DL>
</DD>
</DL>
<HR>
<A NAME="setURL(java.net.URL, java.lang.String)"><!-- --></A><H3>
setURL</H3>
<PRE>
public void <B>setURL</B>(java.net.URL url, java.lang.String postData)</PRE>
<DL>
<DD>Navigates to a resource identified by an URL using HTTP POST method.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL to navigate.<DD><CODE>postData</CODE> - Data to send to the server during the HTTP POST transaction.</DL>
</DD>
</DL>
<HR>
<A NAME="setURL(java.net.URL, java.lang.String, java.lang.String)"><!-- --></A><H3>
setURL</H3>
<PRE>
public void <B>setURL</B>(java.net.URL url, java.lang.String postData, java.lang.String headers)</PRE>
<DL>
<DD>HTTP headers to send to the server.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL to navigate to.<DD><CODE>postData</CODE> - the post data to send with the HTTP POST transaction. For example, <code>"username=myid&password=mypasswd" </code><DD><CODE>headers</CODE> - the HTTP headers to send with the HTTP POST transaction.For ex,<code>"content-type:text/html\r\ncontent-length:10"</code><DT><B>Since:</B></DT> <DD>0.9.2</DD></DL>
</DD>
</DL>
<HR>
<A NAME="getContent()"><!-- --></A><H3>
getContent</H3>
<PRE>
public java.lang.String <B>getContent</B>()</PRE>
<DL>
<DD>Returns the HTML content of a document, opened in a browser.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the HTML content of a document, opened in a browser.</DL>
</DD>
</DL>
<HR>
<A NAME="setContent(java.lang.String)"><!-- --></A><H3>
setContent</H3>
<PRE>
public void <B>setContent</B>(java.lang.String htmlContent)</PRE>
<DL>
<DD>Sets new HTML content.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>htmlContent</CODE> - the HTML content to set.</DL>
</DD>
</DL>
<HR>
<A NAME="executeScript(java.lang.String)"><!-- --></A><H3>
executeScript</H3>
<PRE>
public java.lang.String <B>executeScript</B>(java.lang.String javaScript)</PRE>
<DL>
<DD>Executes specified JavaScript code in a currently opened document. This should not be called until after a documentComplete event is fired in <code>WebBrowserListener</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the result of JavaScript execution, if there is any.</DL>
</DD>
</DL>
<HR>
<A NAME="back()"><!-- --></A><H3>
back</H3>
<PRE>
public void <B>back</B>()</PRE>
<DL>
<DD>Navigates to the previous session history item.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="forward()"><!-- --></A><H3>
forward</H3>
<PRE>
public void <B>forward</B>()</PRE>
<DL>
<DD>Navigates to the next session history item.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="refresh()"><!-- --></A><H3>
refresh</H3>
<PRE>
public void <B>refresh</B>()</PRE>
<DL>
<DD>Reloads the URL that is currently being displayed in the WebBrowser component.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="stop()"><!-- --></A><H3>
stop</H3>
<PRE>
public void <B>stop</B>()</PRE>
<DL>
<DD>Stops loading of the current URL.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getBrowserEngine()"><!-- --></A><H3>
getBrowserEngine</H3>
<PRE>
public <A HREF="../../../../org/jdesktop/jdic/browser/IBrowserEngine.html" title="interface in org.jdesktop.jdic.browser">IBrowserEngine</A> <B>getBrowserEngine</B>()</PRE>
<DL>
<DD>The BrowserEngine that was responsible for creating the browser instance. Use the BrowserEngine to get information about the Embedded Browser Component that is used for browsing.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The <code>BrowserEngine</code> that was responsible for creating this browser instance.</DL>
</DD>
</DL>
<HR>
<A NAME="isBackEnabled()"><!-- --></A><H3>
isBackEnabled</H3>
<PRE>
public boolean <B>isBackEnabled</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isForwardEnabled()"><!-- --></A><H3>
isForwardEnabled</H3>
<PRE>
public boolean <B>isForwardEnabled</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isInitialized()"><!-- --></A><H3>
isInitialized</H3>
<PRE>
public boolean <B>isInitialized</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getInstanceNum()"><!-- --></A><H3>
getInstanceNum</H3>
<PRE>
public int <B>getInstanceNum</B>()</PRE>
<DL>
<DD>A IWebBrowser must have a ticket to identify itself, here is the instance num.For a IWebBrowser instance, a native browser instance will be created to deal with its requests, this instance num will be used get according native browser instance.
<P>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="getNativeWindow()"><!-- --></A><H3>
getNativeWindow</H3>
<PRE>
public int <B>getNativeWindow</B>()</PRE>
<DL>
<DD>Get the windows' handler of native window
<P>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="dispatchWebBrowserEvent(org.jdesktop.jdic.browser.WebBrowserEvent)"><!-- --></A><H3>
dispatchWebBrowserEvent</H3>
<PRE>
public void <B>dispatchWebBrowserEvent</B>(<A HREF="../../../../org/jdesktop/jdic/browser/WebBrowserEvent.html" title="class in org.jdesktop.jdic.browser">WebBrowserEvent</A> event)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>event</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="setInitFailureMessage(java.lang.String)"><!-- --></A><H3>
setInitFailureMessage</H3>
<PRE>
public void <B>setInitFailureMessage</B>(java.lang.String msg)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getInitFailureMessage()"><!-- --></A><H3>
getInitFailureMessage</H3>
<PRE>
public java.lang.String <B>getInitFailureMessage</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setInitialized(boolean)"><!-- --></A><H3>
setInitialized</H3>
<PRE>
public void <B>setInitialized</B>(boolean b)</PRE>
<DL>
<DD>Set if the IWebBrowser has been initialized.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - </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/IWebBrowser.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">
<A HREF="../../../../org/jdesktop/jdic/browser/IBrowserEngine.html" title="interface in org.jdesktop.jdic.browser"><B>PREV CLASS</B></A>
<A HREF="../../../../org/jdesktop/jdic/browser/WebBrowserListener.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="IWebBrowser.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -