public class BasicAppletStub extends Object implements AppletStub
AppletStub.| Constructor and Description |
|---|
BasicAppletStub(Window viewer,
AppletContext context)
Creates a new
BasicAppletStub. |
BasicAppletStub(Window viewer,
AppletContext context,
Map<String,String> parameters)
Creates a new
BasicAppletStub. |
| Modifier and Type | Method and Description |
|---|---|
void |
appletResize(int width,
int height)
Resizes this stub's viewer when the applet wants to be resized.
|
AppletContext |
getAppletContext()
Returns the applet's context.
|
URL |
getCodeBase()
Not implemented.
|
URL |
getDocumentBase()
Not implemented.
|
String |
getParameter(String name)
Returns the value of the named parameter in the HTML tag.
|
boolean |
isActive()
Not implemented.
|
public BasicAppletStub(Window viewer, AppletContext context, Map<String,String> parameters)
BasicAppletStub.viewer - the window to host the applet.context - the applet context.parameters - the parameters included in an applet HTML tag.NullPointerException - if viewer is null.NullPointerException - if context is null.NullPointerException - if parameters is null.public BasicAppletStub(Window viewer, AppletContext context)
BasicAppletStub.viewer - the window to host the applet.context - the applet context.NullPointerException - if viewer is null.NullPointerException - if context is null.public boolean isActive()
true.isActive in interface AppletStubAppletStub.isActive()public void appletResize(int width,
int height)
appletResize in interface AppletStubwidth - the new requested width for the applet.height - the new requested height for the applet.public AppletContext getAppletContext()
getAppletContext in interface AppletStubpublic URL getCodeBase()
getClass().getResource(".").getCodeBase in interface AppletStubAppletStub.getCodeBase()public URL getDocumentBase()
getClass().getResource(".").getDocumentBase in interface AppletStubAppletStub.getDocumentBase()public String getParameter(String name)
getParameter in interface AppletStubname - a parameter name.null if not set.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.