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

📄 webbrowser.html

📁 java GUI编程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
         should be disposed by the developer directly calling         <code>dispose()</code> when it is no longer needed.<DT><B>See Also:</B><DD><A HREF="../../../../org/jdesktop/jdic/browser/WebBrowser.html#removeNotify()"><CODE>removeNotify()</CODE></A>, <A HREF="../../../../org/jdesktop/jdic/browser/WebBrowser.html#addNotify()"><CODE>addNotify()</CODE></A>, <A HREF="../../../../org/jdesktop/jdic/browser/WebBrowser.html#dispose()"><CODE>dispose()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setJSclose(boolean)"><!-- --></A><H3>
setJSclose</H3>
<PRE>
public void <B>setJSclose</B>(boolean&nbsp;isJSClose)</PRE>
<DL>
<DD>The method usually mustn't to maintain ,unless if impletement windowClose, while doesn't invoke dispose to close it under linux or sunSo,  need to set isJSClose false.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isJSClose</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="setBounds(int, int, int, int)"><!-- --></A><H3>
setBounds</H3>
<PRE>
public void <B>setBounds</B>(int&nbsp;x,                      int&nbsp;y,                      int&nbsp;width,                      int&nbsp;height)</PRE>
<DL>
<DD>Moves and resizes this component. The new location of the top-left corner is specified by <code>x</code> and <code>y</code>, and the new size is specified by <code>width</code> and <code>height</code>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - -            the new x-coordinate of this component<DD><CODE>y</CODE> - -            the new y-coordinate of this component<DD><CODE>width</CODE> - -            the new width of this component<DD><CODE>height</CODE> - -            the new height of this component</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>&nbsp;e)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#dispatchWebBrowserEvent(org.jdesktop.jdic.browser.WebBrowserEvent)">dispatchWebBrowserEvent</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>e</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="addWebBrowserListener(org.jdesktop.jdic.browser.WebBrowserListener)"><!-- --></A><H3>
addWebBrowserListener</H3>
<PRE>
public void <B>addWebBrowserListener</B>(<A HREF="../../../../org/jdesktop/jdic/browser/WebBrowserListener.html" title="interface in org.jdesktop.jdic.browser">WebBrowserListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Adds a <code>WebBrowserEvent</code> listener to the listener list. If listener is null, no exception is thrown and no action is performed.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#addWebBrowserListener(org.jdesktop.jdic.browser.WebBrowserListener)">addWebBrowserListener</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>listener</CODE> - the WebBrowser event listener.</DL>
</DD>
</DL>
<HR>

<A NAME="removeWebBrowserListener(org.jdesktop.jdic.browser.WebBrowserListener)"><!-- --></A><H3>
removeWebBrowserListener</H3>
<PRE>
public void <B>removeWebBrowserListener</B>(<A HREF="../../../../org/jdesktop/jdic/browser/WebBrowserListener.html" title="interface in org.jdesktop.jdic.browser">WebBrowserListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Removes a <code>WebBrowserEvent</code> listener from the listener list. If listener is null, no exception is thrown and no action is performed. If the listener is not in the listener list, no listener is removed.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#removeWebBrowserListener(org.jdesktop.jdic.browser.WebBrowserListener)">removeWebBrowserListener</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>listener</CODE> - the WebBrowser event listener.</DL>
</DD>
</DL>
<HR>

<A NAME="getWebBrowserListeners()"><!-- --></A><H3>
getWebBrowserListeners</H3>
<PRE>
public <A HREF="../../../../org/jdesktop/jdic/browser/WebBrowserListener.html" title="interface in org.jdesktop.jdic.browser">WebBrowserListener</A>[] <B>getWebBrowserListeners</B>()</PRE>
<DL>
<DD>Returns an array of all the registered WebBrowser listeners.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>all of this component's <code>WebBrowserListener</code> s or an         empty array if no component listeners are currently registered.<DT><B>Since:</B></DT>  <DD>0.9</DD></DL>
</DD>
</DL>
<HR>

<A NAME="getURL()"><!-- --></A><H3>
getURL</H3>
<PRE>
public java.net.URL <B>getURL</B>()</PRE>
<DL>
<DD>Returns the URL of the resource that is currently being loaded.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#getURL()">getURL</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 current URL being loaded, or <code>null</code> if no URL is         currentlloadayed or the WebBrowser is not yet initialized.</DL>
</DD>
</DL>
<HR>

<A NAME="setURL()"><!-- --></A><H3>
setURL</H3>
<PRE>
public void <B>setURL</B>()</PRE>
<DL>
<DD>Sets the loaded page to be a blank page.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#setURL()">setURL</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="setURL(java.net.URL)"><!-- --></A><H3>
setURL</H3>
<PRE>
public void <B>setURL</B>(java.net.URL&nbsp;url)</PRE>
<DL>
<DD>Navigates to a resource identified by a URL.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#setURL(java.net.URL)">setURL</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>url</CODE> - the URL to navigate to.</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&nbsp;url,                   java.lang.String&nbsp;postData)</PRE>
<DL>
<DD>Navigates to a resource identified by a URL, with the HTTP POST data to send to the server.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#setURL(java.net.URL, java.lang.String)">setURL</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>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></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&nbsp;url,                   java.lang.String&nbsp;postData,                   java.lang.String&nbsp;headers)</PRE>
<DL>
<DD>Navigates to a resource identified by a URL, with the HTTP POST data and HTTP headers to send to the server.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/browser/IWebBrowser.html#setURL(java.net.URL, java.lang.String, java.lang.String)">setURL</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>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="toFileUrl(java.net.URL)"><!-- --></A><H3>
toFileUrl</H3>
<PRE>
public static java.net.URL <B>toFileUrl</B>(java.net.URL&nbsp;location)                              throws java.io.IOException</PRE>
<DL>
<DD>Takes a URL that points to a resource within a JAR, unzips it onto the filesystem, and returns a file: url to it
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>location</CODE> - points to a resource within a JAR<DT><B>Returns:</B><DD>file: URL to the specified jar: URL resource<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="syncSetURL(java.net.URL)"><!-- --></A><H3>
syncSetURL</H3>
<PRE>
public void <B>syncSetURL</B>(java.net.URL&nbsp;url)                throws <A HREF="../../../../org/jdesktop/jdic/init/JdicInitException.html" title="class in org.jdesktop.jdic.init">JdicInitException</A></PRE>
<DL>
<DD>Synchronously navigates to a resource identified by a URL.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL to navigate to.<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="syncSetURL(java.net.URL, java.lang.String)"><!-- --></A><H3>
syncSetURL</H3>
<PRE>
public void <B>syncSetURL</B>(java.net.URL&nbsp;url,                       java.lang.String&nbsp;postData)                throws <A HREF="../../../../org/jdesktop/jdic/init/JdicInitException.html" title="class in org.jdesktop.jdic.init">JdicInitException</A></PRE>
<DL>
<DD>Synchronously navigates to a resource identified by a URL, with the HTTP POST data 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><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="syncSetURL(java.net.URL, java.lang.String, java.lang.String)"><!-- --></A><H3>
syncSetURL</H3>
<PRE>
public void <B>syncSetURL</B>(java.net.URL&nbsp;url,                       java.lang.String&nbsp;postData,                       java.lang.String&nbsp;headers)                throws <A HREF="../../../../org/jdesktop/jdic/init/JdicInitException.html" title="class in org.jdesktop.jdic.init">JdicInitException</A></PRE>
<DL>
<DD>Synchronously navigates to a resource identified by a URL, with the HTTP POST data and

⌨️ 快捷键说明

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