Package net.sourceforge.jnlp
Class AppletDesc
- java.lang.Object
-
- net.sourceforge.jnlp.AppletDesc
-
- All Implemented Interfaces:
LaunchDesc
public class AppletDesc extends java.lang.Object implements LaunchDesc
The applet-desc element.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(java.lang.String name, java.lang.String value)
Adds a parameter to the applet.java.net.URL
getDocumentBase()
int
getHeight()
java.lang.String
getMainClass()
java.lang.String
getName()
java.util.Map<java.lang.String,java.lang.String>
getParameters()
int
getWidth()
-
-
-
Constructor Detail
-
AppletDesc
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)
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 Detail
-
getName
public java.lang.String getName()
- Returns:
- the applet name
-
getMainClass
public java.lang.String getMainClass()
- Specified by:
getMainClass
in interfaceLaunchDesc
- Returns:
- the main class name in the dot-separated form (eg: foo.bar.Baz)
-
getDocumentBase
public java.net.URL getDocumentBase()
- Returns:
- the document base
-
getWidth
public int getWidth()
- Returns:
- the width
-
getHeight
public int getHeight()
- Returns:
- the height
-
getParameters
public java.util.Map<java.lang.String,java.lang.String> getParameters()
- Returns:
- the applet parameters
-
addParameter
public void addParameter(java.lang.String name, java.lang.String value)
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
-
-