|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.applet.BasicAppletStub
public class BasicAppletStub
Understands a basic (and limited) implementation of
.
AppletStub
Constructor Summary | |
---|---|
BasicAppletStub(Window viewer,
AppletContext context)
Creates a new BasicAppletStub . |
|
BasicAppletStub(Window viewer,
AppletContext context,
Map<String,String> parameters)
Creates a new BasicAppletStub . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |