public interface MathletContext extends BasicAppletContext, MathletUIContext, MathletExerciseContext
BOTTOM_CENTER_PANE, BOTTOM_LEFT_PANE, BOTTOM_NORTH_PANE, BOTTOM_PANE, BOTTOM_RIGHT_PANE, BOTTOM_SOUTH_PANE, CONTROL_PANE, TOP_PANE
Modifier and Type | Method and Description |
---|---|
void |
clearInternalFields()
Sets all internal accessible fields to
null in order to release
any consumed heap space. |
java.lang.Class |
getAppletClass()
Returns the runtime class of this mathlet.
|
javax.swing.JApplet |
getJApplet()
Returns this mathlet as a
JApplet . |
java.util.Locale |
getLocale()
Returns the locale of this mathlet context.
|
MathletRuntime |
getMathletRuntime()
Returns the runtime for this mathlet.
|
java.lang.String |
getMessage(java.lang.String key)
Returns the localized message for the given key or null
if no corresponding message is found neither in the global nor in the applet
specific messages file.
|
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] params)
Returns the localized parametrized message for the given key and parameters or
null
if no corresponding message is found neither in the global nor in the applet
specific messages file. |
java.lang.String |
getPackageName()
Returns the package name of this mathlet.
|
java.lang.String |
getParameter(java.lang.String name,
java.lang.String defaultValue)
Returns the value of the named parameter or the default value if
no such parameter was set.
|
MathletRuntimeSupport |
getRuntimeSupport()
Returns the runtime support for this mathlet context.
|
java.lang.String |
getShortName()
Returns the short class name of this mathlet (i.e. class name without package name).
|
boolean |
hasErrors()
Returns whether errors have been reported to the mathlet runtime system.
|
boolean |
isInitialized()
Returns whether this mathlet has been fully initialized.
|
void |
postInit()
This method will be called after the initialisation of the mathlet
is finished.
|
java.lang.String |
readParameter(java.lang.String name)
Reads in and returns the value of the named parameter from the HTML tag or
null if
no such parameter was set. |
void |
reportError(java.lang.Throwable error)
Reports an error to the mathlet runtime system.
|
destroy, getParameter, init, start, stop
addControl, getAppletContentPane, getAppletFrame, removeControl, setTitle, setTitle, setTitleVisible, showConfirmDialog, showDialog, showErrorDialog, showMessageDialog, showMessageDialog
getExerciseSupport, isDebugMode, isHomeworkMode, isOfflineMode, isOnlineMode, isPreviewMode
java.lang.String getParameter(java.lang.String name, java.lang.String defaultValue)
name
- name of the parameterdefaultValue
- default valueApplet.getParameter(java.lang.String)
java.lang.String readParameter(java.lang.String name)
null
if
no such parameter was set.name
- name of the parameterjava.util.Locale getLocale()
javax.swing.JApplet getJApplet()
JApplet
.MathletRuntime getMathletRuntime()
MathletRuntimeSupport getRuntimeSupport()
java.lang.Class getAppletClass()
java.lang.String getShortName()
java.lang.String getPackageName()
java.lang.String getMessage(java.lang.String key)
java.lang.String getMessage(java.lang.String key, java.lang.Object[] params)
null
if no corresponding message is found neither in the global nor in the applet
specific messages file.void reportError(java.lang.Throwable error)
boolean hasErrors()
MathletRuntimeSupport.hasErrors()
void clearInternalFields()
null
in order to release
any consumed heap space. This method should only be invoked from inside the
BasicAppletContext.destroy()
method of the applet. Note that only non-final and
non-private fields may be cleared.boolean isInitialized()
void postInit()
Further documentation and examples can be found under www.mathletfactory.de.