QuizzesComponentBuilder
instead.@Deprecated
public interface QuizzesUIBuilder
Modifier and Type | Method and Description |
---|---|
MathViewer |
getMathViewer()
Deprecated.
Create a MathViewer instance in order to display MathML.
|
AnswerFeedback |
newAnswerFeedback(Question question,
QuestionInstance instance,
int correctAnswer,
int studentAnswer)
Deprecated.
Create a
QuizzesComponent with the feedback for the index-th student
response based on the instance assertion checks. |
AnswerField |
newAnswerField(Question question,
QuestionInstance instance,
int index)
Deprecated.
Create a
QuizzesField for the index-th student answer input field. |
AuthoringField |
newAuthoringField(Question question,
QuestionInstance instance,
int correctAnswer,
int userAnswer)
Deprecated.
Create a QuizzesField for the index-th correct answer input field.
|
AuxiliaryCasField |
newAuxiliarCasField(Question question,
QuestionInstance instance,
int index)
Deprecated.
Create a CalcMe app component related to the index-th user answer.
|
EmbeddedAnswersEditor |
newEmbeddedAnswersEditor(Question question,
QuestionInstance instance)
Deprecated.
Create an EmbeddedAnswersEditor object.
|
void |
replaceFields(Question question,
QuestionInstance instance,
java.lang.Object element)
Deprecated.
Filters HTML replacing each placeholder element by the Wiris Quizzes
JavaScript component.
|
void |
setLanguage(java.lang.String lang)
Deprecated.
Set the language to be used in Wiris Quizzes UI components.
|
void setLanguage(java.lang.String lang)
lang
- The string language in ISO.AnswerFeedback newAnswerFeedback(Question question, QuestionInstance instance, int correctAnswer, int studentAnswer)
QuizzesComponent
with the feedback for the index-th student
response based on the instance assertion checks.question
- The Question
object
with the definition of the question.instance
- The QuestionInstance
element with assertion checks that will be used to produce the feedback.correctAnswer
- The correct answer response number, starting from 0.studentAnswer
- The student answer response number, starting from 0.AnswerField newAnswerField(Question question, QuestionInstance instance, int index)
QuizzesField
for the index-th student answer input field.question
- The Question
object with the
definition of the question. It will determine the form and behavior of the field.instance
- The QuestionInstance
element that will be updated through this field.index
- The student answer response number, starting from 0.AuthoringField newAuthoringField(Question question, QuestionInstance instance, int correctAnswer, int userAnswer)
question
- The question object with the initial definition of the
question. It will be updated through the user interaction with this field.instance
- The initial question instance object used in the preview tab.correctAnswer
- The correct answer index, starting from 0, that this
authoring field defines. Optional and default to zero.userAnswer
- The user answer index, starting from 0, that this authoring
field refers to. Optional and default to zero.EmbeddedAnswersEditor newEmbeddedAnswersEditor(Question question, QuestionInstance instance)
question
- The question object with the initial definition of the
question. It will be updated through the user interaction with this field.instance
- The initial question instance object used in the preview tab.AuxiliaryCasField newAuxiliarCasField(Question question, QuestionInstance instance, int index)
question
- The question object. It may have the initial content of
this field.instance
- The question insance object that will be updated through
the user interaction with this field. It may
contain also the last value.MathViewer getMathViewer()
void replaceFields(Question question, QuestionInstance instance, java.lang.Object element)
question
- The Question to be used with filtered fields. If set to
null it will be searched within elements.instance
- The QuestionInstance to be used with filtered fields. If
set to null it will be searched within elements.element
- The root element where to filter. If set to null the
document element will be taken.Copyright © 2021 Maths for More S.L. All Rights Reserved.