public class AppletDesc
extends java.lang.Object
Constructor and Description |
---|
AppletDesc(java.lang.String name,
java.lang.String mainClass,
java.net.URL documentBase,
int width,
int height,
java.util.Map<java.lang.String,java.lang.String> parameters)
Create an Applet descriptor.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(java.lang.String name,
java.lang.String value)
Adds a parameter to the applet.
|
java.net.URL |
getDocumentBase()
Returns the document base
|
int |
getHeight()
Returns the height
|
java.lang.String |
getMainClass()
Returns the main class name in the dot-separated form (eg: foo.bar.Baz)
|
java.lang.String |
getName()
Returns the applet name
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Returns the applet parameters
|
int |
getWidth()
Returns the width
|
public AppletDesc(java.lang.String name, java.lang.String mainClass, java.net.URL documentBase, int width, int height, java.util.Map<java.lang.String,java.lang.String> parameters)
name
- the applet namemainClass
- the main class name and packagedocumentBase
- the document basewidth
- the widthheight
- the heightparameters
- the parameterspublic java.lang.String getName()
public java.lang.String getMainClass()
public java.net.URL getDocumentBase()
public int getWidth()
public int getHeight()
public java.util.Map<java.lang.String,java.lang.String> getParameters()
public void addParameter(java.lang.String name, java.lang.String value)