Spreadsheet Toolkit

corpus.doodle
Class Context

java.lang.Object
  |
  +--corpus.doodle.Context
All Implemented Interfaces:
java.applet.AppletContext

public class Context
extends java.lang.Object
implements java.applet.AppletContext

The Context class provides a mechanism to control the environment in which the program is running. Typically, this environment is maintained by a Web browser. For this program, a Web browser environment is being simulated.


Constructor Summary
Context()
           
 
Method Summary
 java.applet.Applet getApplet(java.lang.String name)
          Fetch the Applet (identified by name) from the current HTML document.
 java.util.Enumeration getApplets()
          Return an enumeration to all Applets located on the current HTML page.
 java.applet.AudioClip getAudioClip(java.net.URL url)
          Load the file located by the url argument.
 java.awt.Image getImage(java.net.URL url)
          Prepare to load the image located by the url argument.
 java.io.InputStream getStream(java.lang.String key)
          The following three methods are required by SDK 1.4.
 java.util.Iterator getStreamKeys()
           
 void setStream(java.lang.String key, java.io.InputStream stream)
           
 void showDocument(java.net.URL url)
          Show the HTML document, located by the url argument, in the current Web browser window.
 void showDocument(java.net.URL url, java.lang.String frame)
          Show the HTML document, located by the url argument, in the Web browser window, identified by the frame argument.
 void showStatus(java.lang.String message)
          Show a status message, identified by the message argument, in the Web browser's status bar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

public Context()
Method Detail

getAudioClip

public java.applet.AudioClip getAudioClip(java.net.URL url)
Load the file located by the url argument. The Applet class contains a pair of getAudioClip methods that call this method.

Specified by:
getAudioClip in interface java.applet.AppletContext

getImage

public java.awt.Image getImage(java.net.URL url)
Prepare to load the image located by the url argument. The image is loaded when needed (by one of Graphics' drawImage methods). The Applet class contains a pair of getImage methods that call this method.

Specified by:
getImage in interface java.applet.AppletContext

getApplet

public java.applet.Applet getApplet(java.lang.String name)
Fetch the Applet (identified by name) from the current HTML document.

Specified by:
getApplet in interface java.applet.AppletContext

getApplets

public java.util.Enumeration getApplets()
Return an enumeration to all Applets located on the current HTML page.

Specified by:
getApplets in interface java.applet.AppletContext

showDocument

public void showDocument(java.net.URL url)
Show the HTML document, located by the url argument, in the current Web browser window.

Specified by:
showDocument in interface java.applet.AppletContext

showDocument

public void showDocument(java.net.URL url,
                         java.lang.String frame)
Show the HTML document, located by the url argument, in the Web browser window, identified by the frame argument.

Specified by:
showDocument in interface java.applet.AppletContext

showStatus

public void showStatus(java.lang.String message)
Show a status message, identified by the message argument, in the Web browser's status bar. The Applet class contains a showStatus method that calls this method.

Specified by:
showStatus in interface java.applet.AppletContext

getStream

public java.io.InputStream getStream(java.lang.String key)
The following three methods are required by SDK 1.4. To learn about those methods, please refer to the SDK 1.4 documentation.

Specified by:
getStream in interface java.applet.AppletContext

getStreamKeys

public java.util.Iterator getStreamKeys()
Specified by:
getStreamKeys in interface java.applet.AppletContext

setStream

public void setStream(java.lang.String key,
                      java.io.InputStream stream)
Specified by:
setStream in interface java.applet.AppletContext

Spreadsheet Toolkit

Project Home Page