public class InlineChoiceInteractionItem
extends java.lang.Object
Constructor and Description |
---|
InlineChoiceInteractionItem(org.tencompetence.services.xml.qti.elements.InlineChoiceInteraction inlineChoiceInteraction,
java.lang.String answer,
org.tencompetence.generated.model.AssessmentItem editorInput)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChoice(javax.faces.event.ActionEvent event)
Adds an inline choice to an inline choice-interaction.
|
java.lang.String |
getAnswer()
Gets the answer.
|
InlineChoiceListController |
getController()
Gets the controller.
|
org.tencompetence.services.xml.qti.elements.InlineChoiceInteraction |
getInlineChoiceInteraction()
Gets the inline choice interaction.
|
java.lang.String |
getPosition()
Gets the position of the interaction.
|
java.util.List<javax.faces.model.SelectItem> |
getRadioCorrectItems()
Gets the list of correct items to populate the radio buttons control.
|
java.lang.String |
getSelectedCorrect()
Gets the selected correct answer.
|
void |
setSelectedCorrect(java.lang.String correct)
Sets the selected correct answer.
|
public InlineChoiceInteractionItem(org.tencompetence.services.xml.qti.elements.InlineChoiceInteraction inlineChoiceInteraction, java.lang.String answer, org.tencompetence.generated.model.AssessmentItem editorInput)
inlineChoiceInteraction
- the inline choice interactionanswer
- the answereditorInput
- the assessment itempublic InlineChoiceListController getController()
public org.tencompetence.services.xml.qti.elements.InlineChoiceInteraction getInlineChoiceInteraction()
public java.lang.String getPosition()
public java.lang.String getAnswer()
public java.util.List<javax.faces.model.SelectItem> getRadioCorrectItems()
public java.lang.String getSelectedCorrect()
public void setSelectedCorrect(java.lang.String correct)
correct
- the new correct answerpublic void addChoice(javax.faces.event.ActionEvent event)
event
- ActionEvent