public interface QuizzesComponentBuilder
Quizzes
object.
This class builds the user interface components to integrate Wiris Quizzes
within the question forms and allow some configuration of them.Modifier and Type | Method and Description |
---|---|
MathViewer |
getMathViewer()
Create a
MathViewer instance in order to display MathML. |
AnswerFeedback |
newAnswerFeedback(QuestionInstance instance,
Slot slot,
AuthorAnswer authorAnswer)
Create a
QuizzesComponent with the feedback for an student's
response based on the instance assertion checks. |
AnswerField |
newAnswerField(QuestionInstance instance,
Slot slot)
Create a
QuizzesField for the student answer input field corresponding to a given Slot . |
AuthoringField |
newAuthoringField(Question question,
Slot slot,
AuthorAnswer authorAnswer)
Create a
QuizzesField that allows the user to define the grading criteria of a given AuthorAnswer . |
AuxiliaryCasField |
newAuxiliaryCasField(QuestionInstance instance,
Slot slot)
Create a CalcMe app component related to the student answer corresponding to a given
Slot . |
EmbeddedAnswersEditor |
newEmbeddedAnswersEditor(Question question,
QuestionInstance instance)
Create an
EmbeddedAnswersEditor object. |
void |
replaceFields(Question question,
QuestionInstance instance,
java.lang.Object element)
Filters HTML replacing each placeholder element by the Wiris Quizzes
JavaScript component.
|
void |
setLanguage(java.lang.String lang)
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(QuestionInstance instance, Slot slot, AuthorAnswer authorAnswer)
QuizzesComponent
with the feedback for an student's
response based on the instance assertion checks.instance
- The QuestionInstance
element with assertion checks that will be used to produce the feedback.slot
- The slot
that corresponds to the student's answer being graded.authorAnswer
- The author answer
that contains the criteria used to grade
the student's answer.AnswerField newAnswerField(QuestionInstance instance, Slot slot)
QuizzesField
for the student answer input field corresponding to a given Slot
.instance
- The QuestionInstance
element that will be updated through this field.slot
- The slot
that corresponds to this answer field.AuthoringField newAuthoringField(Question question, Slot slot, AuthorAnswer authorAnswer)
QuizzesField
that allows the user to define the grading criteria of a given AuthorAnswer
.question
- The initial question
object that contains the initial data
to which the authoring field will be initialized. It will be updated through this field.slot
- The slot
that corresponds to this author answer. It will be updated through this field.authorAnswer
- The author answer
whose criteria will be defined by using this
authoring field. It will be updated through this field.EmbeddedAnswersEditor newEmbeddedAnswersEditor(Question question, QuestionInstance instance)
EmbeddedAnswersEditor
object.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 newAuxiliaryCasField(QuestionInstance instance, Slot slot)
Slot
.
This is a Computer Algebra System where the student may do auxiliary computations or explain what they has doneinstance
- The question instance object that will be updated through
the user interaction with this field. It may
contain also the last value.slot
- The slot
that corresponds to this auxiliary CAS field.MathViewer getMathViewer()
MathViewer
instance in order to display MathML.void replaceFields(Question question, QuestionInstance instance, java.lang.Object element)
instance
- The question
to be used with filtered fields. If
set to null it will be searched within elements.instance
- The question instance
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.