Interface java.applet.AppletContext
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.applet.AppletContext

public interface AppletContext
extends Object
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.

Method Index

 o getApplet(String)
Gets an applet by name.
 o getApplets()
Enumerates the applets in this context.
 o getAudioClip(URL)
Gets an audio clip.
 o getImage(URL)
Gets an image.
 o showDocument(URL)
Shows a new document.
 o showDocument(URL, String)
Show a new document in a target window or frame.
 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 method takes an array of URLs, each of which will be tried until the image 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()
Enumerates 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)
Shows a new document. This may be ignored by the applet context.
 o showDocument
  public abstract void showDocument(URL url,
                                    String target)
Show a new document in a target window or frame. This may be ignored by the applet context. This method accepts the target strings: _self show in current frame _parent show in parent frame _top show in top-most frame _blank show in new unnamed top-level window show in new top-level window named
 o showStatus
  public abstract void showStatus(String status)
Show a status string.

All Packages  Class Hierarchy  This Package  Previous  Next  Index