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

Variable Index

 o _startVector
 o _stopVector

Constructor Index

 o Applet(Applet)
Creates an applet object associated with the specified AWT applet object.

Method Index

 o addStartListener(StartListener)
 o addStopListener(StopListener)
 o createAWTComponent(Component)
 o getActive()
Determines whether the applet is active.
 o getAppletContext()
Retrieves the applet context.
 o getAppletInfo()
Retrieves information about the applet.
 o getAudioClip(URL)
Retrieves an audio clip associated with the applet.
 o getAudioClip(URL, String)
Retrieves an audio clip associated with the applet.
 o getCodeBase()
Retrieves the URL of the applet itself.
 o getDocumentBase()
Retrieves the URL of the document which references the applet.
 o getImage(URL)
Retrieves the image at the specified URL.
 o getImage(URL, String)
Retrieves an audio clip associated with the applet.
 o getParameter(String)
 o getParameterInfo()
 o getStartListeners()
 o getStopListeners()
 o handleStart(StartEvent)
 o handleStop(StopEvent)
 o play(URL)
 o play(URL, String)
 o removeStartListener(StartListener)
 o removeStopListener(StopListener)
 o setStub(AppletStub)
 o showStatus(String)
 o start()
 o stop()

Variables

 o _startVector
  protected EventListenerVector _startVector
 o _stopVector
  protected EventListenerVector _stopVector

Constructors

 o 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.

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o getCodeBase
  public URL getCodeBase()
Retrieves the URL of the applet itself.
Returns:
The URL of the applet.
See Also:
getDocumentBase
 o 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
 o 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.
 o 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.
 o getParameter
  public String getParameter(String name)
 o getParameterInfo
  public String[][] getParameterInfo()
 o setStub
  public void setStub(AppletStub stub)
 o play
  public void play(URL url)
 o play
  public void play(URL url,
                   String name)
 o showStatus
  public void showStatus(String status)
 o addStartListener
  public synchronized void addStartListener(StartListener l)
 o getStartListeners
  public synchronized EventListenerVector getStartListeners()
 o handleStart
  public synchronized void handleStart(StartEvent data)
 o removeStartListener
  public synchronized void removeStartListener(StartListener l)
 o addStopListener
  public synchronized void addStopListener(StopListener l)
 o getStopListeners
  public synchronized EventListenerVector getStopListeners()
 o handleStop
  public synchronized void handleStop(StopEvent data)
 o removeStopListener
  public synchronized void removeStopListener(StopListener l)
 o start
  public void start()
 o stop
  public void stop()
 o createAWTComponent
  protected Component createAWTComponent(Component parent)
Overrides:
createAWTComponent in class Panel

All Packages  Class Hierarchy  This Package  Previous  Next  Index