Interface DescriptibleFormQuestionType
- All Known Implementing Classes:
AbstractFormQuestionType
,CheckBoxQuestionType
,ChoicesListQuestionType
,DateTimeQuestionType
,FileQuestionType
,MatrixQuestionType
,NumberQuestionType
,SimpleTextQuestionType
,TextAreaQuestionType
public interface DescriptibleFormQuestionType
Provide all the necessary method to add a description to a
FormQuestionType
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getDescription
(FormQuestion question) Get the question descriptiondefault ModelItem
Get a model item to include in the model return by FormQuestionType.getModeldefault ViewElement
getDescriptionViewElement
(Model model) Get a view element to include in the view returned by FormQuestionType.getView
-
Field Details
-
ATTRIBUTE_DESCRIPTION
Constant for description attribute.- See Also:
-
-
Method Details
-
getDescriptionModelItem
Get a model item to include in the model return by FormQuestionType.getModel- Returns:
- the item
-
getDescriptionViewElement
Get a view element to include in the view returned by FormQuestionType.getView- Parameters:
model
- the question type model- Returns:
- the element
-
getDescription
Get the question description- Parameters:
question
- the question- Returns:
- the description
-