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 AppletStub
AppletStub.isActive()
public void appletResize(int width, int height)
appletResize
in interface AppletStub
width
- the new requested width for the applet.height
- the new requested height for the applet.public AppletContext getAppletContext()
getAppletContext
in interface AppletStub
public URL getCodeBase()
getClass().getResource(".")
.getCodeBase
in interface AppletStub
AppletStub.getCodeBase()
public URL getDocumentBase()
getClass().getResource(".")
.getDocumentBase
in interface AppletStub
AppletStub.getDocumentBase()
public String getParameter(String name)
getParameter
in interface AppletStub
name
- a parameter name.null
if not set.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.