1 @deftypemethod AppletContext {public AudioClip} getAudioClip (java.net.URL@w{ }@var{url})
2 Returns an audio clip from the specified URL.
4 @deftypemethod AppletContext {public Image} getImage (java.net.URL@w{ }@var{url})
5 Returns an image from the specified URL. Note that the image is not
6 actually retrieved until the applet attempts to display it, so this
7 method returns immediately.
9 @deftypemethod AppletContext {public Applet} getApplet (java.lang.String@w{ }@var{name})
10 Returns the applet in the document for this object that has the
13 @deftypemethod AppletContext {public Enumeration} getApplets ()
14 Returns a list of all the applets in the document for this object.
16 @deftypemethod AppletContext {public void} showDocument (java.net.URL@w{ }@var{url})
17 Displays the web page pointed to by the specified URL in the window
18 for this object. This page replaces the document that is currently
21 @deftypemethod AppletContext {public void} showDocument (java.net.URL@w{ }@var{url}, java.lang.String@w{ }@var{target})
22 Displays the web page pointed to be the sepcified URL in the window
23 with the specified name. The standard names "_top", "_blank",
24 "_parent", and "_self" are allowed.
26 @deftypemethod AppletContext {public void} showStatus (java.lang.String@w{ }@var{message})
27 Displays the specified message in the status window if that window
30 @deftypemethod Applet {public URL} getDocumentBase ()
31 Returns the URL of the document this applet is embedded in.
33 @deftypemethod Applet {public URL} getCodeBase ()
34 Returns the URL of the code base for this applet.
36 @deftypemethod Applet {public String} getParameter (java.lang.String@w{ }@var{name})
37 Returns the value of the specified parameter that was specified in
38 the <APPLET> tag for this applet.
40 @deftypemethod Applet {public AppletContext} getAppletContext ()
41 Returns the applet context for this applet.
43 @deftypemethod Applet {public boolean} isActive ()
44 Tests whether or not this applet is currently active.
46 @deftypemethod Applet {public void} resize (int@w{ }@var{width}, int@w{ }@var{height})
47 Requests that the applet window for this applet be resized.
49 @deftypemethod Applet {public void} resize (java.awt.Dimension@w{ }@var{dim})
50 Requests that the applet window for this applet be resized.
52 @deftypemethod Applet {public AudioClip} getAudioClip (java.net.URL@w{ }@var{url})
53 Returns an audio clip from the specified URL.
55 @deftypemethod Applet {public AudioClip} getAudioClip (java.net.URL@w{ }@var{url}, java.lang.String@w{ }@var{name})
56 Returns an audio clip from the specified URL and name
58 @deftypemethod Applet {public void} play (java.net.URL@w{ }@var{url})
59 Loads and plays the audio clip pointed to by the specified URL.
61 @deftypemethod Applet {public void} play (java.net.URL@w{ }@var{url}, java.lang.String@w{ }@var{name})
62 Loads and plays the audio clip pointed to by the specified URL.
64 @deftypemethod Applet {public Image} getImage (java.net.URL@w{ }@var{url})
65 Returns an image from the specified URL. Note that the image is not
66 actually retrieved until the applet attempts to display it, so this
67 method returns immediately.
69 @deftypemethod Applet {public Image} getImage (java.net.URL@w{ }@var{url}, java.lang.String@w{ }@var{name})
70 Returns an image from the specified URL. Note that the image is not
71 actually retrieved until the applet attempts to display it, so this
72 method returns immediately.
74 @deftypemethod Applet {public Locale} getLocale ()
75 Returns the locale for this applet, if it has been set. If no applet
76 specific locale has been set, the default locale is returned.
78 @deftypemethod Applet {public String} getAppletInfo ()
79 Returns a descriptive string with applet defined information. The
80 implementation in this class returns @code{null}. Applets who
81 wish to return this information should override.
83 @deftypemethod Applet {public String} getParameterInfo ()
84 Returns a list of parameters this applet supports. Each element of
85 the array is a list of three strings with the name of the parameter,
86 the data type or valid values, and a description. This method is
87 optional and the default implementation returns @code{null}.
89 @deftypemethod Applet {public void} init ()
90 This method is called when the applet is first loaded. The default
91 implementation does nothing. Applets that wish to do one time
92 initialization should override.
94 @deftypemethod Applet {public void} destroy ()
95 This method is called when the applet is being unloaded. The default
96 implementation does nothing. Applets that need to clean up resources
97 on exit should override.
99 @deftypemethod Applet {public void} start ()
100 This method is called when the applet should start running. This is
101 normally each time a web page containing it is loaded. The default
102 implemention does nothing. Subclasses should override.
104 @deftypemethod Applet {public void} stop ()
105 This method is called when the applet should stop running. This is
106 normally when the next web page is loaded. The default implementation
109 @deftypemethod Applet {public final void} setStub (java.applet.AppletStub@w{ }@var{stub})
110 The browser calls this method to set the applet's stub, which is the
111 low level interface to the browser.
113 @deftypemethod AppletStub {public URL} getDocumentBase ()
114 Returns the URL of the document this applet is embedded in.
116 @deftypemethod AppletStub {public URL} getCodeBase ()
117 Returns the URL of the code base for this applet.
119 @deftypemethod AppletStub {public String} getParameter (java.lang.String@w{ }@var{name})
120 Returns the value of the specified parameter that was specified in
121 the <APPLET> tag for this applet.
123 @deftypemethod AppletStub {public AppletContext} getAppletContext ()
124 Returns the applet context for this applet.
126 @deftypemethod AppletStub {public boolean} isActive ()
127 Tests whether or not this applet is currently active.
129 @deftypemethod AppletStub {public void} appletResize (int@w{ }@var{width}, int@w{ }@var{height})
130 Requests that the applet window for this applet be resized.
132 @deftypemethod AudioClip {public void} play ()
133 Plays the audio clip starting from the beginning.
135 @deftypemethod AudioClip {public void} stop ()
136 Stops playing this audio clip. There is no mechanism for restarting
137 at the point where the clip is stopped.
139 @deftypemethod AudioClip {public void} loop ()
140 Plays this audio clip in a continuous loop.