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 AppletStub
AppletStub.isActive()
public void appletResize(int width, int height)
Applet
wants to be resized.appletResize
in interface AppletStub
width
- the new requested width for the Applet
.height
- the new requested height for the Applet
.@Nonnull public AppletContext getAppletContext()
getAppletContext
in interface AppletStub
Applet
's context.public URL getCodeBase()
getDocumentBase()
.getCodeBase
in interface AppletStub
AppletStub.getCodeBase()
public URL getDocumentBase()
getClass().getResource(".")
.getDocumentBase
in interface AppletStub
AppletStub.getDocumentBase()
@Nullable public String getParameter(@Nullable String name)
getParameter
in interface AppletStub
name
- a parameter name.null
if not set.Copyright © 2014–2019 AssertJ. All rights reserved.