public interface AnswerField extends QuizzesField
QuizzesComponentBuilder
.Modifier and Type | Method and Description |
---|---|
void |
getAnswerFieldComponent(AnswerFieldComponentListener listener)
Get the underlying answer field component asynchronously, which can be either a MathType formula editor
or a Wiris Graph graph editor.
|
AnswerFieldType |
getFieldType()
Get the current type of this answer field.
|
void |
reuseComponent(java.lang.Object component) |
void |
setEditorInitialParams(java.util.Properties parameters)
Set initial parameters of the underlying MathType.
|
addQuizzesFieldListener, getValue, setReadOnly, setValue
getElement
AnswerFieldType getFieldType()
void setEditorInitialParams(java.util.Properties parameters)
QuizzesComponentBuilder.newAnswerField(com.wiris.quizzes.api.QuestionInstance, com.wiris.quizzes.api.Slot)
or anyway before any direct or indirect
call to QuizzesComponent.getElement()
. If this field type is not
AnswerFieldType.INLINE_MATH_EDITOR
nor
AnswerFieldType.POPUP_MATH_EDITOR
, this
function has no effect.parameters
- A key-value map of MathType parameters. See
http://www.wiris.com/editor/docs/reference/parameters for a list of all
allowed parameters. In JavaScript, this is a regular JavaScript object.java.lang.Exception
- if the underlying MathType is already initialized.void getAnswerFieldComponent(AnswerFieldComponentListener listener)
AnswerFieldType.INLINE_MATH_EDITOR
or
AnswerFieldType.INLINE_GRAPH_EDITOR
.listener
- An implementation of the callback interface.void reuseComponent(java.lang.Object component)
Copyright © 2021 Maths for More S.L. All Rights Reserved.