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() |
URL |
getCodeBase()
Not implemented.
|
URL |
getDocumentBase()
Not implemented.
|
String |
getParameter(String name)
Returns the value of the named parameter in the "applet" HTML tag.
|
boolean |
isActive()
Not implemented.
|
public BasicAppletStub(@Nonnull Window viewer, @Nonnull AppletContext context, @Nonnull Map<String,String> parameters)
BasicAppletStub.viewer - the window to host the Applet.context - the Applet enviroment.parameters - the parameters included in an "applet" HTML tag.NullPointerException - if viewer, context or parameters are null.public BasicAppletStub(@Nonnull Window viewer, @Nonnull AppletContext context)
BasicAppletStub.viewer - the window to host the Applet.context - the Applet environment.NullPointerException - if viewer or context are null.public boolean isActive()
true.isActive in interface AppletStubAppletStub.isActive()public void appletResize(int width,
int height)
Applet wants to be resized.appletResize in interface AppletStubwidth - the new requested width for the Applet.height - the new requested height for the Applet.@Nonnull public AppletContext getAppletContext()
getAppletContext in interface AppletStubApplet's context.public URL getCodeBase()
getDocumentBase().getCodeBase in interface AppletStubAppletStub.getCodeBase()public URL getDocumentBase()
getClass().getResource(".").getDocumentBase in interface AppletStubAppletStub.getDocumentBase()@Nullable public String getParameter(@Nullable String name)
getParameter in interface AppletStubname - a parameter name.null if not set.Copyright © 2014 AssertJ. All rights reserved.