netx.jnlp

Class AppletDesc


public class AppletDesc
extends java.lang.Object

The applet-desc element.
Version:
$Revision: 1.8 $
Author:
Jon A. Maxwell (JAM) - initial author

Constructor Summary

AppletDesc(String name, String mainClass, URL documentBase, int width, int height, Map parameters)
Create an Applet descriptor.

Method Summary

void
addParameter(String name, String value)
Adds a parameter to the applet.
URL
getDocumentBase()
Returns the document base
int
getHeight()
Returns the height
String
getMainClass()
Returns the main class name
String
getName()
Returns the applet name
Map
getParameters()
Returns the applet parameters
int
getWidth()
Returns the width

Constructor Details

AppletDesc

public AppletDesc(String name,
                  String mainClass,
                  URL documentBase,
                  int width,
                  int height,
                  Map 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

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.

getDocumentBase

public URL getDocumentBase()
Returns the document base

getHeight

public int getHeight()
Returns the height

getMainClass

public String getMainClass()
Returns the main class name

getName

public String getName()
Returns the applet name

getParameters

public Map getParameters()
Returns the applet parameters

getWidth

public int getWidth()
Returns the width