Package net.sourceforge.jnlp
Class AppletDesc
java.lang.Object
net.sourceforge.jnlp.AppletDesc
- All Implemented Interfaces:
LaunchDesc
The applet-desc element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(String name, String value) Adds a parameter to the applet.int
getName()
int
getWidth()
-
Constructor Details
-
AppletDesc
public AppletDesc(String name, String mainClass, URL documentBase, int width, int height, Map<String, String> parameters) Create an Applet descriptor.- Parameters:
name
- the applet namemainClass
- the main class name and packagedocumentBase
- the document basewidth
- the widthheight
- the heightparameters
- the parameters
-
-
Method Details
-
getName
- Returns:
- the applet name
-
getMainClass
- Specified by:
getMainClass
in interfaceLaunchDesc
- Returns:
- the main class name in the dot-separated form (eg: foo.bar.Baz)
-
getDocumentBase
- Returns:
- the document base
-
getWidth
public int getWidth()- Returns:
- the width
-
getHeight
public int getHeight()- Returns:
- the height
-
getParameters
- Returns:
- the applet parameters
-
addParameter
Adds a parameter to the applet. If the parameter already exists then it is overwritten with the new value. Adding a parameter will have no effect on already-running applets launched from this JNLP file.- Parameters:
name
- key of valuevalue
- value to be added
-