Applet Parameters

Parameters are a fundamental part of the applet technology. They allow to transfer data from the embedding website to the applet context. Parameters have a name and a value.

Most Important Parameters

The following table lists the most important parameters for Mumie mathlets:

Name Type Default Value Description
lang string --- language parameter
title string --- mathlet title
appletWidth integer 600 width of mathlet frame
appletHeight integer 600 height of mathlet frame
embeddingMode string applet embedding mode
buttonText string --- embedded button text
extensions string --- list of extension names

and for exercise applets:

Name Type Default Value Description
homeworkMode string --- homework mode
inputDatasheet string --- input datasheet
outputDatasheet string --- output datasheet
correctorClass string --- fully qualified corrector class

See Runtime Properties in the chapter extensions for a complete list of all parameters.

InputHelp Parameters

Parameters to activate the [[InputHelp|]]

Name Type Default Value Description
enableInputHelp boolean false enables globally the input help for a mathlet when set to true; false will disable the input help
embedInputHelp boolean true embeds the input help directly into the mathlet when set to true (default value); false will cause the input hints to be shown in a distinct window *
globalInputHints string --- defines a list of input hints used for symbolic visualisations for every MM-Object seperated with comma(",")
globalFunctionInputHints string --- defines a list of input hints used for all functions in a mathlet seperated with comma(",")
  • the input help will be disabled if the option embedInputHelp is set to false and the embedding mode is set to applet (inline mode) due to focus issues with the Java plugin.
    h2. Retrieving Parameters
Inside a mathlet class the following two methods exist for retrieving parameters:
  • String getParameter(String name): returns the value of the parameter with the given name or null if no such parameter exists
  • String getParameter(String name, String defaultValue): returns the value of the parameter with the given name or defaultValue if no such parameter exists
In contexts outside a mathlet class, parameters may be retrieved using the static mathlet runtime:
  • MathletRuntime.getRuntime().getParameter(String name)
  • MathletRuntime.getRuntime().getParameter(String name, String defaultValue)

Add picture from clipboard (Maximum size: 500 MB)