📄 applet.html
字号:
getLocale</H3><PRE>public <A HREF="../../java/util/Locale.html">Locale</A> <B>getLocale</B>()</PRE><DL><DD>Gets the Locale for the applet, if it has been set. If no Locale has been set, then the default Locale is returned.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#getLocale()">getLocale</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Locale for the applet<DT><B>Since: </B><DD>JDK1.1</DD></DL></DD></DL><HR><A NAME="getParameterInfo()"><!-- --></A><H3>getParameterInfo</H3><PRE>public <A HREF="../../java/lang/String.html">String</A>[][] <B>getParameterInfo</B>()</PRE><DL><DD>Returns information about the parameters than are understood by this applet. An applet should override this method to return an array of <code>Strings</code> describing these parameters. <p> Each element of the array should be a set of three <code>Strings</code> containing the name, the type, and a description. For example: <p><blockquote><pre> String pinfo[][] = { {"fps", "1-10", "frames per second"}, {"repeat", "boolean", "repeat image loop"}, {"imgs", "url", "images directory"} }; </pre></blockquote> <p> The implementation of this method provided by the <code>Applet</code> class returns <code>null</code>.<DD><DL><DT><B>Returns:</B><DD>an array describing the parameters this applet looks for.</DL></DD></DL><HR><A NAME="play(java.net.URL)"><!-- --></A><H3>play</H3><PRE>public void <B>play</B>(<A HREF="../../java/net/URL.html">URL</A> url)</PRE><DL><DD>Plays the audio clip at the specified absolute URL. Nothing happens if the audio clip cannot be found.<DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - an absolute URL giving the location of the audio clip.</DL></DD></DL><HR><A NAME="play(java.net.URL, java.lang.String)"><!-- --></A><H3>play</H3><PRE>public void <B>play</B>(<A HREF="../../java/net/URL.html">URL</A> url, <A HREF="../../java/lang/String.html">String</A> name)</PRE><DL><DD>Plays the audio clip given the URL and a specifier that is relative to it. Nothing happens if the audio clip cannot be found.<DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - an absolute URL giving the base location of the audio clip.<DD><CODE>name</CODE> - the location of the audio clip, relative to the <code>url</code> argument.</DL></DD></DL><HR><A NAME="init()"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>()</PRE><DL><DD>Called by the browser or applet viewer to inform this applet that it has been loaded into the system. It is always called before the first time that the <code>start</code> method is called. <p> A subclass of <code>Applet</code> should override this method if it has initialization to perform. For example, an applet with threads would use the <code>init</code> method to create the threads and the <code>destroy</code> method to kill them. <p> The implementation of this method provided by the <code>Applet</code> class does nothing.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/applet/Applet.html#destroy()"><CODE>destroy()</CODE></A>, <A HREF="../../java/applet/Applet.html#start()"><CODE>start()</CODE></A>, <A HREF="../../java/applet/Applet.html#stop()"><CODE>stop()</CODE></A></DL></DD></DL><HR><A NAME="start()"><!-- --></A><H3>start</H3><PRE>public void <B>start</B>()</PRE><DL><DD>Called by the browser or applet viewer to inform this applet that it should start its execution. It is called after the <code>init</code> method and each time the applet is revisited in a Web page. <p> A subclass of <code>Applet</code> should override this method if it has any operation that it wants to perform each time the Web page containing it is visited. For example, an applet with animation might want to use the <code>start</code> method to resume animation, and the <code>stop</code> method to suspend the animation. <p> The implementation of this method provided by the <code>Applet</code> class does nothing.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/applet/Applet.html#destroy()"><CODE>destroy()</CODE></A>, <A HREF="../../java/applet/Applet.html#init()"><CODE>init()</CODE></A>, <A HREF="../../java/applet/Applet.html#stop()"><CODE>stop()</CODE></A></DL></DD></DL><HR><A NAME="stop()"><!-- --></A><H3>stop</H3><PRE>public void <B>stop</B>()</PRE><DL><DD>Called by the browser or applet viewer to inform this applet that it should stop its execution. It is called when the Web page that contains this applet has been replaced by another page, and also just before the applet is to be destroyed. <p> A subclass of <code>Applet</code> should override this method if it has any operation that it wants to perform each time the Web page containing it is no longer visible. For example, an applet with animation might want to use the <code>start</code> method to resume animation, and the <code>stop</code> method to suspend the animation. <p> The implementation of this method provided by the <code>Applet</code> class does nothing.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/applet/Applet.html#destroy()"><CODE>destroy()</CODE></A>, <A HREF="../../java/applet/Applet.html#init()"><CODE>init()</CODE></A></DL></DD></DL><HR><A NAME="destroy()"><!-- --></A><H3>destroy</H3><PRE>public void <B>destroy</B>()</PRE><DL><DD>Called by the browser or applet viewer to inform this applet that it is being reclaimed and that it should destroy any resources that it has allocated. The <code>stop</code> method will always be called before <code>destroy</code>. <p> A subclass of <code>Applet</code> should override this method if it has any operation that it wants to perform before it is destroyed. For example, an applet with threads would use the <code>init</code> method to create the threads and the <code>destroy</code> method to kill them. <p> The implementation of this method provided by the <code>Applet</code> class does nothing.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/applet/Applet.html#init()"><CODE>init()</CODE></A>, <A HREF="../../java/applet/Applet.html#start()"><CODE>start()</CODE></A>, <A HREF="../../java/applet/Applet.html#stop()"><CODE>stop()</CODE></A></DL></DD></DL><HR><A NAME="getAccessibleContext()"><!-- --></A><H3>getAccessibleContext</H3><PRE>public <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A> <B>getAccessibleContext</B>()</PRE><DL><DD>Gets the AccessibleContext associated with this Applet. For applets, the AccessibleContext takes the form of an AccessibleApplet. A new AccessibleApplet instance is created if necessary.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Panel.html#getAccessibleContext()">getAccessibleContext</A></CODE> in class <CODE><A HREF="../../java/awt/Panel.html">Panel</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an AccessibleApplet that serves as the AccessibleContext of this Applet</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> </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/Applet.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../java/applet/Applet.AccessibleApplet.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> <A HREF="Applet.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#fields_inherited_from_class_java.awt.Component">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -