⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webbrowser.html

📁 java GUI编程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 HTTP headers to send to the server.
<P>
<DD><DL>
</DL>
</DD>
<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.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/init/JdicInitException.html" title="class in org.jdesktop.jdic.init">JdicInitException</A></CODE><DT><B>Since:</B></DT>  <DD>0.9.2</DD></DL>
</DD>
</DL>
<HR>

<A NAME="back()"><!-- --></A><H3>
back</H3>
<PRE>
public void <B>back</B>()</PRE>
<DL>
<DD>Navigates backward one item in the history list.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#back()">back</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="forward()"><!-- --></A><H3>
forward</H3>
<PRE>
public void <B>forward</B>()</PRE>
<DL>
<DD>Navigates forward one item in the history list.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#forward()">forward</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<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 loaded in the WebBrowser component.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#refresh()">refresh</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="stop()"><!-- --></A><H3>
stop</H3>
<PRE>
public void <B>stop</B>()</PRE>
<DL>
<DD>Stops any page loading and rendering activities.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#stop()">stop</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="print()"><!-- --></A><H3>
print</H3>
<PRE>
public void <B>print</B>()</PRE>
<DL>
<DD>Prints the currently loaded document. <p> This is a convenience method to use <code>executeScript</code> to print the currently loaded document: <code> <pre>      	    WebBrowser webBrowser = new WebBrowser();           ......    webBrowser.executeScript(&quot;window.print();&quot;);	            </pre> </code>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Since:</B></DT>  <DD>0.9.2</DD><DT><B>See Also:</B><DD><A HREF="../../../../org/jdesktop/jdic/browser/WebBrowser.html#executeScript(java.lang.String)"><CODE>executeScript(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setContent(java.lang.String)"><!-- --></A><H3>
setContent</H3>
<PRE>
public void <B>setContent</B>(java.lang.String&nbsp;htmlContent)</PRE>
<DL>
<DD>Sets new HTML content.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#setContent(java.lang.String)">setContent</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>htmlContent</CODE> - the HTML content to set.<DT><B>Since:</B></DT>  <DD>0.9</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, loaded in a browser.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#getContent()">getContent</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the HTML content of a document, loaded in a browser.<DT><B>Since:</B></DT>  <DD>0.9</DD></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&nbsp;javaScript)</PRE>
<DL>
<DD>Executes the specified JavaScript code on the currently loaded document. This should not be called until after a <code>documentCompleted</code> event fired in <code>WebBrowserListener</code>. <p> For example, execute JavaScript to show an alert dialog: <code> <pre>   // Show a JavaScript alert dialog.     WebBrowser webBrowser = new WebBrowser(); webBrowser.executeScript(&quot;alert('Using executeScript')&quot;); </pre> </code>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#executeScript(java.lang.String)">executeScript</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the result of JavaScript execution, if there is any.<DT><B>Since:</B></DT>  <DD>0.9</DD><DT><B>See Also:</B><DD><A HREF="../../../../org/jdesktop/jdic/browser/WebBrowserListener.html#documentCompleted(org.jdesktop.jdic.browser.WebBrowserEvent)"><CODE>WebBrowserListener.documentCompleted(org.jdesktop.jdic.browser.WebBrowserEvent)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setDebug(boolean)"><!-- --></A><H3>
setDebug</H3>
<PRE>
public static void <B>setDebug</B>(boolean&nbsp;b)</PRE>
<DL>
<DD>Enables or disables debug message output. Debug message out is disabled initially by default. Calls it via reflection when necessary.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - if <code>true</true>, debug message output is enabled;           otherwise debug message output is disabled.</DL>
</DD>
</DL>
<HR>

<A NAME="getBrowserBinary()"><!-- --></A><H3>
getBrowserBinary</H3>
<PRE>
public static java.lang.String <B>getBrowserBinary</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>As of release 0.9 of JDIC. This method was unnecessarily             exposed and will be removed in a future release.</I>
<P>
<DD>Returns the name of the embedded browser's native binary, which runs as a standalone native process.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isInitialized()"><!-- --></A><H3>
isInitialized</H3>
<PRE>
public boolean <B>isInitialized</B>()</PRE>
<DL>
<DD>Checks whether this <code>WebBrowser</code> object is initialized successfully.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#isInitialized()">isInitialized</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if the <code>WebBrowser</code> object is         initialized successfully; otherwise, <code>false</code>.</DL>
</DD>
</DL>
<HR>

<A NAME="isBackEnabled()"><!-- --></A><H3>
isBackEnabled</H3>
<PRE>
public boolean <B>isBackEnabled</B>()</PRE>
<DL>
<DD>Checks whether this <code>WebBrowser</code> object's back command is enabled.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#isBackEnabled()">isBackEnabled</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if the WebBrowser can navigate to the         previous session history item, and <code>false</code>         otherwise.<DT><B>See Also:</B><DD><A HREF="../../../../org/jdesktop/jdic/browser/WebBrowser.html#back()"><CODE>back()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isForwardEnabled()"><!-- --></A><H3>
isForwardEnabled</H3>
<PRE>
public boolean <B>isForwardEnabled</B>()</PRE>
<DL>
<DD>Checks whether this <code>WebBrowser</code> object's forward command is enabled.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#isForwardEnabled()">isForwardEnabled</A></CODE> in interface <CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html" title="interface in org.jdesktop.jdic.browser">IWebBrowser</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if the WebBrowser can navigate to the next         session history item, and <code>false</code> otherwise.<DT><B>See Also:</B><DD><A HREF="../../../../org/jdesktop/jdic/browser/WebBrowser.html#forward()"><CODE>forward()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="willOpenURL(java.net.URL)"><!-- --></A><H3>
willOpenURL</H3>
<PRE>
protected boolean <B>willOpenURL</B>(java.net.URL&nbsp;url)</PRE>
<DL>
<DD>Called before a navigation occurs. <p> A subclass can override this method to blo

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -