Class powersoft.jcm.ui.Applet
All Packages Class Hierarchy This Package Previous Next Index
Class powersoft.jcm.ui.Applet
java.lang.Object
|
+----powersoft.jcm.ui.Component
|
+----powersoft.jcm.ui.Container
|
+----powersoft.jcm.ui.Panel
|
+----powersoft.jcm.ui.Applet
- public class Applet
- extends Panel
Encapsulates an applet. An applet is executed within either an applet
viewer or a java enabled brower.
- See Also:
- Panel
-
_startVector
-
-
_stopVector
-
-
Applet(Applet)
- Creates an applet object associated with the specified AWT
applet object.
-
addStartListener(StartListener)
-
-
addStopListener(StopListener)
-
-
createAWTComponent(Component)
-
-
getActive()
- Determines whether the applet is active.
-
getAppletContext()
- Retrieves the applet context.
-
getAppletInfo()
- Retrieves information about the applet.
-
getAudioClip(URL)
- Retrieves an audio clip associated with the applet.
-
getAudioClip(URL, String)
- Retrieves an audio clip associated with the applet.
-
getCodeBase()
- Retrieves the URL of the applet itself.
-
getDocumentBase()
- Retrieves the URL of the document which references the applet.
-
getImage(URL)
- Retrieves the image at the specified URL.
-
getImage(URL, String)
- Retrieves an audio clip associated with the applet.
-
getParameter(String)
-
-
getParameterInfo()
-
-
getStartListeners()
-
-
getStopListeners()
-
-
handleStart(StartEvent)
-
-
handleStop(StopEvent)
-
-
play(URL)
-
-
play(URL, String)
-
-
removeStartListener(StartListener)
-
-
removeStopListener(StopListener)
-
-
setStub(AppletStub)
-
-
showStatus(String)
-
-
start()
-
-
stop()
-
_startVector
protected EventListenerVector _startVector
_stopVector
protected EventListenerVector _stopVector
Applet
public Applet(Applet applet)
- Creates an applet object associated with the specified AWT
applet object.
- Parameters:
- applet - Specifies the AWT Applet associated with this
applet object.
getActive
public boolean getActive()
- Determines whether the applet is active.
Notes:
The applet becomes active just before it is started. It is started
when its document is visited.
- Returns:
-
true
if the applet is active; false
otherwise.
getAppletContext
public AppletContext getAppletContext()
- Retrieves the applet context.
Notes:
The applet context allows the applet to control aspects of the
environment in which it executes.
- Returns:
- The applets's applet context.
getAppletInfo
public String getAppletInfo()
- Retrieves information about the applet.
Notes:
The information retrieved consists of the name of the applet's author,
its version number and copyright information.
- Returns:
- A string containing information about the applet.
getAudioClip
public AudioClip getAudioClip(URL url)
- Retrieves an audio clip associated with the applet.
Notes:
The audio clip is located at the specified URL.
- Parameters:
- url - Specifies the URL of the audio clip.
getAudioClip
public AudioClip getAudioClip(URL url,
String name)
- Retrieves an audio clip associated with the applet.
Notes:
The audio clip is located at the specified URL and identified by
the specified name.
- Parameters:
- url - Specifies the URL of the audio clip.
- name - Specifies the name of the URL.
getCodeBase
public URL getCodeBase()
- Retrieves the URL of the applet itself.
- Returns:
- The URL of the applet.
- See Also:
- getDocumentBase
getDocumentBase
public URL getDocumentBase()
- Retrieves the URL of the document which references the applet.
- Returns:
- The URL of the document containing the reference to the applet.
- See Also:
- getCodeBase
getImage
public Image getImage(URL url)
- Retrieves the image at the specified URL.
- Parameters:
- url - Specifies the URL of the image.
- Returns:
- The image located at
url
.
getImage
public Image getImage(URL url,
String name)
- Retrieves an audio clip associated with the applet.
Notes:
The audio clip is assumed to be located at the specified URL.
- Parameters:
- url - Specifies the URL of the audio clip.
- name - Specifies the name of the URL.
getParameter
public String getParameter(String name)
getParameterInfo
public String[][] getParameterInfo()
setStub
public void setStub(AppletStub stub)
play
public void play(URL url)
play
public void play(URL url,
String name)
showStatus
public void showStatus(String status)
addStartListener
public synchronized void addStartListener(StartListener l)
getStartListeners
public synchronized EventListenerVector getStartListeners()
handleStart
public synchronized void handleStart(StartEvent data)
removeStartListener
public synchronized void removeStartListener(StartListener l)
addStopListener
public synchronized void addStopListener(StopListener l)
getStopListeners
public synchronized EventListenerVector getStopListeners()
handleStop
public synchronized void handleStop(StopEvent data)
removeStopListener
public synchronized void removeStopListener(StopListener l)
start
public void start()
stop
public void stop()
createAWTComponent
protected Component createAWTComponent(Component parent)
- Overrides:
- createAWTComponent in class Panel
All Packages Class Hierarchy This Package Previous Next Index