public interface AnswerFeedback extends QuizzesComponent
QuizzesComponentBuilder.| Modifier and Type | Method and Description |
|---|---|
void |
removeEmbedded(AnswerField component)
Remove the embedded feedback from a component.
|
void |
setAnswerWeight(double fraction)
Set the weight of the chosen correct answer.
|
void |
setEmbedded(AnswerField component)
Makes this answer feedback a floating panel sticked to the given
component.
|
void |
showAssertionsFeedback(boolean visible)
Whether to show the feedback for individual assertions.
|
void |
showCorrectAnswerFeedback(boolean visible)
Whether to show the line indicating the correct answer.
|
void |
showFieldDecorationFeedback(boolean visible)
Whether to decorate embedded answer component.
|
getElementvoid setEmbedded(AnswerField component)
component - The component where to attach this object.void removeEmbedded(AnswerField component)
component - The component from where to detach the feedback.void showCorrectAnswerFeedback(boolean visible)
void showAssertionsFeedback(boolean visible)
void showFieldDecorationFeedback(boolean visible)
void setAnswerWeight(double fraction)
weight - between 0.0 (incorrect) and 1.0 (correct). In fact all values between the two bounds have the same
effect on decoration.Copyright © 2021 Maths for More S.L. All Rights Reserved.