java.applet
public interface AppletContext
Since: 1.0
UNKNOWN: updated to 1.5
Method Summary | |
---|---|
Applet | getApplet(String name)
Returns the applet in the document for this object that has the
specified name.
|
Enumeration<Applet> | getApplets()
Returns a list of all the applets in the document for this object.
|
AudioClip | getAudioClip(URL url)
Returns an audio clip from the specified URL.
|
Image | getImage(URL url)
Returns an image from the specified URL. |
InputStream | getStream(String key)
Return the stream associated with a given key in this applet context, or
null if nothing is associated. |
Iterator<String> | getStreamKeys()
Iterate over all keys that have associated streams. |
void | setStream(String key, InputStream stream)
Associate a stream to a key for this applet context, possibly replacing
the old value. |
void | showDocument(URL url)
Displays the web page pointed to by the specified URL in the window
for this object. |
void | showDocument(URL url, String target)
Displays the web page pointed to be the sepcified URL in the window
with the specified name. |
void | showStatus(String message)
Displays the specified message in the status window if that window
exists.
|
Parameters: name the applet name
Returns: the requested applet, or null
if not found
Returns: a list of all the applets
Parameters: url the URL of the audio clip
Returns: the retrieved audio clip
Throws: NullPointerException if url is null
Parameters: url the absolute URL of the image
Returns: the retrieved image
Throws: NullPointerException if url is null
Parameters: key the key to look up
Returns: the associated stream, or null
Since: 1.4
Returns: an iterator over the association keys
Since: 1.4
Parameters: key the key to associate with stream the stream value to tie to the key, or null to remove
Throws: IOException if the stream is too large
Since: 1.4
Parameters: url the URL of the web page to load; unspecified on an error
Parameters: url the URL of the web page to load target the target window
Parameters: message the status message, may be null