|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjectdraw.ControllerStub
class ControllerStub
A class the implements the AppletStub interface designed to function as the applet stub for Controller's run as applications or under control of IDEs like BlueJ and DrJava.
Constructor Summary | |
---|---|
ControllerStub(Applet controller,
Frame window)
Create a new controller stub given a controller and the frame in which it will be displayed |
Method Summary | |
---|---|
void |
activate()
Initiate execution of the controller served by this stub by invoking its init and start methods. |
void |
appletResize(int width,
int height)
Resize the frame used to display this controller |
void |
deactivate()
Deactivate the associated controller |
AppletContext |
getAppletContext()
Access the applet context for this stub's controller |
URL |
getCodeBase()
Determine the URL for the source of code and other resources for the associated controller |
URL |
getDocumentBase()
Determine the URL for the source of code and other resources for the associated controller |
String |
getParameter(String name)
Return emtpy string in response to any request for parameter values since this stub does not handle parameters. |
boolean |
isActive()
Determine whether the associated controller is still active |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControllerStub(Applet controller, Frame window)
controller
- the controller this stub will servewindow
- the frame in which the controller is displayedMethod Detail |
---|
public void activate()
public void appletResize(int width, int height)
appletResize
in interface AppletStub
width
- new frame width in pixelsheight
- new frame height in pixelspublic void deactivate()
public AppletContext getAppletContext()
getAppletContext
in interface AppletStub
public URL getCodeBase()
getCodeBase
in interface AppletStub
public URL getDocumentBase()
getDocumentBase
in interface AppletStub
public String getParameter(String name)
getParameter
in interface AppletStub
public boolean isActive()
isActive
in interface AppletStub
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |