public class ChoiceInteractionEdit extends AssessmentItemEditorBean
BaseEditorBean.ConfirmationController
Constructor and Description |
---|
ChoiceInteractionEdit() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addChoice()
Adds a simple choice to a choice-interaction.
|
SimpleChoiceListController |
getController()
Gets the controller.
|
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.
|
boolean |
getShuffle()
Gets the shuffle value.
|
boolean |
isAddAndDeleteChoiceAllowed()
Check if question type allows adding and deleting simple choices.
|
boolean |
isCorrectAndScoreAllowed()
Check if question type allows setting a score for each answer.
|
boolean |
isOnlyOneCorrectAllowed()
Check if question type allows only one correct answer.
|
void |
setSelectedCorrect(java.lang.String correct)
Sets the selected correct answer.
|
void |
setShuffle(boolean shuffle)
Sets the shuffle value.
|
void |
validateChoice(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
Validate choice.
|
getText, getTypeName, setText
cancel, fetchEditorInput, getCanNavigateBack, getConfirmationController, getDescription, getEditorInput, getPageInit, getPermissionsURL, getTitle, isAddButtonVisible, isAllowDelete, isAllowPermissions, isAllowUpdate, isAllowView, isDirty, isEditable, isReadOnly, passEditorInput, permissions, save, setDescription, setDirty, setEditorInput, setTitle, valuesChanged
checkModelPermission, checkModelPermission, checkPortletPermission, checkPortletPermission, getToggleText, isExpanded, toggle
public SimpleChoiceListController getController()
public java.lang.String addChoice()
public boolean getShuffle()
public void setShuffle(boolean shuffle)
shuffle
- the new shuffle valuepublic java.lang.String getSelectedCorrect()
public void setSelectedCorrect(java.lang.String correct)
correct
- the new correct answerpublic boolean isAddAndDeleteChoiceAllowed()
public boolean isOnlyOneCorrectAllowed()
public boolean isCorrectAndScoreAllowed()
public java.util.List<javax.faces.model.SelectItem> getRadioCorrectItems()
public void validateChoice(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
context
- the contextcomponent
- the componentvalue
- the value