Package org.fest.swing.applet
Class BasicAppletStub
java.lang.Object
org.fest.swing.applet.BasicAppletStub
- All Implemented Interfaces:
AppletStub
Understands a basic (and limited) implementation of
AppletStub
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicAppletStub
(Window viewer, AppletContext context) Creates a newBasicAppletStub
.BasicAppletStub
(Window viewer, AppletContext context, Map<String, String> parameters) Creates a newBasicAppletStub
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appletResize
(int width, int height) Resizes this stub's viewer when the applet wants to be resized.Returns the applet's context.Not implemented.Not implemented.getParameter
(String name) Returns the value of the named parameter in the HTML tag.boolean
isActive()
Not implemented.
-
Field Details
-
viewer
-
context
-
parameters
-
-
Constructor Details
-
BasicAppletStub
Creates a newBasicAppletStub
.- Parameters:
viewer
- the window to host the applet.context
- the applet context.parameters
- the parameters included in an applet HTML tag.- Throws:
NullPointerException
- ifviewer
isnull
.NullPointerException
- ifcontext
isnull
.NullPointerException
- ifparameters
isnull
.
-
BasicAppletStub
Creates a newBasicAppletStub
.- Parameters:
viewer
- the window to host the applet.context
- the applet context.- Throws:
NullPointerException
- ifviewer
isnull
.NullPointerException
- ifcontext
isnull
.
-
-
Method Details
-
isActive
public boolean isActive()Not implemented. Returnstrue
.- Specified by:
isActive
in interfaceAppletStub
- See Also:
-
appletResize
public void appletResize(int width, int height) Resizes this stub's viewer when the applet wants to be resized.- Specified by:
appletResize
in interfaceAppletStub
- Parameters:
width
- the new requested width for the applet.height
- the new requested height for the applet.
-
getAppletContext
Returns the applet's context.- Specified by:
getAppletContext
in interfaceAppletStub
- Returns:
- the applet's context.
-
getCodeBase
Not implemented. ReturnsgetClass().getResource(".")
.- Specified by:
getCodeBase
in interfaceAppletStub
- See Also:
-
getDocumentBase
Not implemented. ReturnsgetClass().getResource(".")
.- Specified by:
getDocumentBase
in interfaceAppletStub
- See Also:
-
getParameter
Returns the value of the named parameter in the HTML tag.- Specified by:
getParameter
in interfaceAppletStub
- Parameters:
name
- a parameter name.- Returns:
- the value of the named parameter, or
null
if not set.
-