Class AppletDesc

java.lang.Object
net.sourceforge.jnlp.AppletDesc
All Implemented Interfaces:
LaunchDesc

public class AppletDesc extends Object implements LaunchDesc
The applet-desc element.
  • 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 name
      mainClass - the main class name and package
      documentBase - the document base
      width - the width
      height - the height
      parameters - the parameters
  • Method Details

    • getName

      public String getName()
      Returns:
      the applet name
    • getMainClass

      public String getMainClass()
      Specified by:
      getMainClass in interface LaunchDesc
      Returns:
      the main class name in the dot-separated form (eg: foo.bar.Baz)
    • getDocumentBase

      public URL getDocumentBase()
      Returns:
      the document base
    • getWidth

      public int getWidth()
      Returns:
      the width
    • getHeight

      public int getHeight()
      Returns:
      the height
    • getParameters

      public Map<String,String> getParameters()
      Returns:
      the applet parameters
    • addParameter

      public void addParameter(String name, 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 value
      value - value to be added