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

📄 appletcontext.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAudioClip(java.net.URL)"><!-- --></A><H3>getAudioClip</H3><PRE>public <A HREF="../../java/applet/AudioClip.html">AudioClip</A> <B>getAudioClip</B>(<A HREF="../../java/net/URL.html">URL</A>&nbsp;url)</PRE><DL><DD>Creates an audio clip.<DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - an absolute URL giving the location of the audio clip.<DT><B>Returns:</B><DD>the audio clip at the specified URL.</DL></DD></DL><HR><A NAME="getImage(java.net.URL)"><!-- --></A><H3>getImage</H3><PRE>public <A HREF="../../java/awt/Image.html">Image</A> <B>getImage</B>(<A HREF="../../java/net/URL.html">URL</A>&nbsp;url)</PRE><DL><DD>Returns an <code>Image</code> object that can then be painted on the screen. The <code>url</code> argument<code> </code>that is passed as an argument must specify an absolute URL. <p> This method always returns immediately, whether or not the image exists. When the applet attempts to draw the image on the screen, the data will be loaded. The graphics primitives that draw the image will incrementally paint on the screen.<DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - an absolute URL giving the location of the image.<DT><B>Returns:</B><DD>the image at the specified URL.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Image.html"><CODE>Image</CODE></A></DL></DD></DL><HR><A NAME="getApplet(java.lang.String)"><!-- --></A><H3>getApplet</H3><PRE>public <A HREF="../../java/applet/Applet.html">Applet</A> <B>getApplet</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;name)</PRE><DL><DD>Finds and returns the applet in the document represented by this applet context with the given name. The name can be set in the HTML tag by setting the <code>name</code> attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - an applet name.<DT><B>Returns:</B><DD>the applet with the given name, or <code>null</code> if          not found.</DL></DD></DL><HR><A NAME="getApplets()"><!-- --></A><H3>getApplets</H3><PRE>public <A HREF="../../java/util/Enumeration.html">Enumeration</A> <B>getApplets</B>()</PRE><DL><DD>Finds all the applets in the document represented by this applet context.<DD><DL><DT><B>Returns:</B><DD>an enumeration of all applets in the document represented by          this applet context.</DL></DD></DL><HR><A NAME="showDocument(java.net.URL)"><!-- --></A><H3>showDocument</H3><PRE>public void <B>showDocument</B>(<A HREF="../../java/net/URL.html">URL</A>&nbsp;url)</PRE><DL><DD>Replaces the Web page currently being viewed with the given URL. This method may be ignored by applet contexts that are not browsers.<DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - an absolute URL giving the location of the document.</DL></DD></DL><HR><A NAME="showDocument(java.net.URL, java.lang.String)"><!-- --></A><H3>showDocument</H3><PRE>public void <B>showDocument</B>(<A HREF="../../java/net/URL.html">URL</A>&nbsp;url,                         <A HREF="../../java/lang/String.html">String</A>&nbsp;target)</PRE><DL><DD>Requests that the browser or applet viewer show the Web page indicated by the <code>url</code> argument. The <code>target</code> argument indicates in which HTML frame the document is to be displayed. The target argument is interpreted as follows: <p> <center><table border="3"> <tr><td><code>"_self"</code>  <td>Show in the window and frame that                                   contain the applet.</tr> <tr><td><code>"_parent"</code><td>Show in the applet's parent frame. If                                   the applet's frame has no parent frame,                                   acts the same as "_self".</tr> <tr><td><code>"_top"</code>   <td>Show in the top-level frame of the applet's                                   window. If the applet's frame is the                                   top-level frame, acts the same as "_self".</tr> <tr><td><code>"_blank"</code> <td>Show in a new, unnamed                                   top-level window.</tr> <tr><td><i>name</i><td>Show in the frame or window named <i>name</i>. If                        a target named <i>name</i> does not already exist, a                        new top-level window with the specified name is created,                        and the document is shown there.</tr> </table> </center> <p> An applet viewer or browser is free to ignore <code>showDocument</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - an absolute URL giving the location of the document.<DD><CODE>target</CODE> - a <code>String</code> indicating where to display                   the page.</DL></DD></DL><HR><A NAME="showStatus(java.lang.String)"><!-- --></A><H3>showStatus</H3><PRE>public void <B>showStatus</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;status)</PRE><DL><DD>Requests that the argument string be displayed in the "status window". Many browsers and applet viewers provide such a window, where the application can inform users of its current state.<DD><DL><DT><B>Parameters:</B><DD><CODE>status</CODE> - a string to display in the status window.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AppletContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../java/applet/AppletStub.html"><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>  &nbsp;&nbsp;<A HREF="AppletContext.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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