Class chap4.ch4_fig13
All Packages Class Hierarchy This Package Previous Next Index
Class chap4.ch4_fig13
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----chap4.ch4_fig13
- public class ch4_fig13
- extends Applet
A simple app that plays tunes at the four different stops
along the applet execution trail - init, start, stop, and
destroy. The parameters:
- StartClip - The URL of an audio clip to play when Applet.start is
called.
- StopClip - The URL of an audio clip to play when Applet.stop is
called.
- DestroyClip - The URL of an audio clip to play when Applet.destroy is
called.
- InitClip - The URL of an audio clip to play when Applet.init is
called.
-
destroy()
- Play the destroy clip.
-
getAppletInfo()
- Tell anyone who might inquire what we are.
-
getParameterInfo()
- Tell anyone who might inquire how to use this applet.
-
init()
- Connect to the URLs specified by the StartClip and EndClip
parameters in the applet tag.
-
start()
- Whenever a user visits our page, the browser calls this.
-
stop()
- Whenever the user leaves our page, this gets called.
start
public void start()
- Whenever a user visits our page, the browser calls this.
This is an override of an Applet method..
- Overrides:
- start in class Applet
stop
public void stop()
- Whenever the user leaves our page, this gets called.
Another override of an Applet method.
- Overrides:
- stop in class Applet
getAppletInfo
public String getAppletInfo()
- Tell anyone who might inquire what we are.
- Returns:
- A string describing this applet.
- Overrides:
- getAppletInfo in class Applet
getParameterInfo
public String[][] getParameterInfo()
- Tell anyone who might inquire how to use this applet.
- Returns:
- A 2d string array describing the arguments to this
applet.
- Overrides:
- getParameterInfo in class Applet
destroy
public void destroy()
- Play the destroy clip.
- Overrides:
- destroy in class Applet
init
public void init()
- Connect to the URLs specified by the StartClip and EndClip
parameters in the applet tag.
- Overrides:
- init in class Applet
All Packages Class Hierarchy This Package Previous Next Index