Interface IllustrableFormQuestionType
- All Known Implementing Classes:
AbstractFormQuestionType
,CheckBoxQuestionType
,ChoicesListQuestionType
,DateTimeQuestionType
,FileQuestionType
,MatrixQuestionType
,NumberQuestionType
,SimpleTextQuestionType
,TextAreaQuestionType
public interface IllustrableFormQuestionType
Provide all the necessary method to add an illustration to a question type
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault File
getIllustration
(FormQuestion question) Get the question illustrationdefault String
getIllustrationAlternative
(FormQuestion question) Get the alternative of illustrationProvide a list of model items that must be included in the model items return by the method FormQuestionType.getModeldefault SimpleViewItemGroup
getIllustrationTab
(Model model) Get the view's common illustration tab
-
Field Details
-
ATTRIBUTE_PICTURE
Constant for picture data attribute.- See Also:
-
ATTRIBUTE_PICTURE_ALTERNATIVE
Constant for picture alternative attribute.- See Also:
-
-
Method Details
-
getIllustrationModelItems
Provide a list of model items that must be included in the model items return by the method FormQuestionType.getModel- Returns:
- a list of model items
-
getIllustrationTab
Get the view's common illustration tab- Parameters:
model
- the model of the question type- Returns:
- the illustration tab as SimpleViewItemGroup
-
getIllustration
Get the question illustration- Parameters:
question
- the question- Returns:
- the illustration
-
getIllustrationAlternative
Get the alternative of illustration- Parameters:
question
- the question- Returns:
- the alternative of illustration
-