Interface java.applet.AppletContext
All Packages    This Package    Previous    Next

Interface java.applet.AppletContext

public interface AppletContext
extends Object
Applet context. This interface corresponds to an Applet's environment. It can be used by an applet to obtain information from the applet's environment, which is usually the browser or the applet viewer.
Version:
1.11, 09/01/95
Author:
Arthur van Hoff

Method Index

 o getApplet(String)
Gets an applet by name.
 o getApplets()
Enumerate the applets in this context.
 o getAudioClip(URL)
Gets an audio clip.
 o getImage(URL)
Gets an image.
 o showDocument(URL)
Show a new document.
 o showStatus(String)
Show a status string.

Methods

 o getAudioClip
  public abstract AudioClip getAudioClip(URL url)
Gets an audio clip.

 o getImage

  public abstract Image getImage(URL url)
Gets an image. This usually involves downloading it over the net. However, the environment may decide to cache images. This methods takes an array of URLs, each of which will be tried until the images is found.

 o getApplet

  public abstract Applet getApplet(String name)
Gets an applet by name.
Returns:
null if the applet does not exist.

 o getApplets

  public abstract Enumeration getApplets()
Enumerate the applets in this context. Only applets that are accessible will be returned. This list always includes the applet itself.

 o showDocument

  public abstract void showDocument(URL url)
Show a new document. This may be ignored by the applet context.

 o showStatus

  public abstract void showStatus(String status)
Show a status string.


All Packages    This Package    Previous    Next