Interface java.applet.AppletContext
All Packages Class Hierarchy This Package Previous Next Index
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.
-
getApplet(String)
- Gets an applet by name.
-
getApplets()
- Enumerate the applets in this context.
-
getAudioClip(URL)
- Gets an audio clip.
-
getImage(URL)
- Gets an image.
-
showDocument(URL)
- Show a new document.
-
showDocument(URL, String)
- Show a new document in a target window or frame.
-
showStatus(String)
- Show a status string.
getAudioClip
public abstract AudioClip getAudioClip(URL url)
- Gets an audio clip.
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.
getApplet
public abstract Applet getApplet(String name)
- Gets an applet by name.
- Returns:
- null if the applet does not exist.
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.
showDocument
public abstract void showDocument(URL url)
- Show a new document. This may be ignored by
the applet context.
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
showStatus
public abstract void showStatus(String status)
- Show a status string.
All Packages Class Hierarchy This Package Previous Next Index