Packages This Package Prev Next Index
public interface java.applet.AppletContext { // Methods public abstract Applet getApplet(String name); §3.2.1 public abstract Enumeration getApplets(); §3.2.2 public abstract AudioClip getAudioClip(URL url); §3.2.3 public abstract Image getImage(URL url); §3.2.4 public abstract void showDocument(URL url); §3.2.5 public abstract void §3.2.6 showDocument(URL url, String target); public abstract void showStatus(String status); §3.2.7 }This interface corresponds to an applet's environment: the document containing the applet and the other applets in the same document.
The methods in this interface can be used by an applet to obtain information about its environment.
public abstract Applet getApplet(String name)
name
-
an applet name
public abstract Enumeration getApplets()
public abstract AudioClip getAudioClip(URL url)
url
-
an absolute URL giving the location of the audio clip
public abstract Image getImage(URL url)
url
-
an absolute URL giving the location of the image.
public abstract void showDocument(URL url)
url
-
an absolute URL giving the location of the document
public abstract void showDocument(URL url, String target)
"_self" |
show in the current frame
|
---|---|
"_parent" |
show in the parent frame
|
"_top" |
show in the top-most frame
|
"_blank" |
show in a new unnamed top-level window
|
name |
show in a new top-level window named name
|
url
-
an absolute URL giving the location of the document
target
-
a String indicating where to display the page
public abstract void showStatus(String status)
status
-
a string to display in the status window
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)