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 TypeMethodDescriptionvoidappletResize(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.booleanisActive()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- ifviewerisnull.NullPointerException- ifcontextisnull.NullPointerException- ifparametersisnull.
-
BasicAppletStub
Creates a newBasicAppletStub.- Parameters:
viewer- the window to host the applet.context- the applet context.- Throws:
NullPointerException- ifviewerisnull.NullPointerException- ifcontextisnull.
-
-
Method Details
-
isActive
public boolean isActive()Not implemented. Returnstrue.- Specified by:
isActivein 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:
appletResizein 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:
getAppletContextin interfaceAppletStub- Returns:
- the applet's context.
-
getCodeBase
Not implemented. ReturnsgetClass().getResource(".").- Specified by:
getCodeBasein interfaceAppletStub- See Also:
-
getDocumentBase
Not implemented. ReturnsgetClass().getResource(".").- Specified by:
getDocumentBasein interfaceAppletStub- See Also:
-
getParameter
Returns the value of the named parameter in the HTML tag.- Specified by:
getParameterin interfaceAppletStub- Parameters:
name- a parameter name.- Returns:
- the value of the named parameter, or
nullif not set.
-