|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjectdraw.ControllerContext
class ControllerContext
An implementation of AppletContext designed to support Controller objects run as applications or under the control of development environments that support direct instantiation of objects better than running applets (i.e. BlueJ and DrJava).
Constructor Summary | |
---|---|
ControllerContext(Applet controller)
Create a new Controller Context for the specified controller |
Method Summary | |
---|---|
Applet |
getApplet(String name)
Always returns null on the assumption that this context only manages a single controller |
Enumeration |
getApplets()
Produce an enumeration that will provide access to the singleton collection of controllers managed by this context |
AudioClip |
getAudioClip(URL url)
Access an audio file |
Image |
getImage(URL url)
access an image file |
InputStream |
getStream(String key)
Null implementation of unsupported getStream method |
Iterator |
getStreamKeys()
Null implemenation of unsupported getStreamKeys method |
void |
setStream(String key,
InputStream stream)
Null implementation of unsupported setStream method |
void |
showDocument(URL url)
Unsupported. |
void |
showDocument(URL url,
String target)
Unsupported. |
void |
showStatus(String status)
Display a message in the applet status area |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControllerContext(Applet controller)
controller
- the controller to serve. This parameter is typed
as an Applet since this is the closest ancestor of both the
Controller and AWTController classes.Method Detail |
---|
public Applet getApplet(String name)
getApplet
in interface AppletContext
public Enumeration getApplets()
getApplets
in interface AppletContext
public AudioClip getAudioClip(URL url)
getAudioClip
in interface AppletContext
url
- the address of the desired audio filepublic Image getImage(URL url)
getImage
in interface AppletContext
url
- the address of the desired image filepublic InputStream getStream(String key)
getStream
in interface AppletContext
key
- ignored
public Iterator getStreamKeys()
getStreamKeys
in interface AppletContext
public void setStream(String key, InputStream stream)
setStream
in interface AppletContext
key
- ignoredstream
- ignoredpublic void showDocument(URL url)
showDocument
in interface AppletContext
url
- address of desired document.public void showDocument(URL url, String target)
showDocument
in interface AppletContext
url
- address of desired document.target
- ignoredpublic void showStatus(String status)
showStatus
in interface AppletContext
status
- the message to be displayed
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |