Questionnaire Item View Holder Delegate
Delegate for QuestionnaireItemViewHolder.
This interface provides an abstraction of the operations that need to be implemented for a type of view in the questionnaire.
There is a 1:1 relationship between this and QuestionnaireItemViewHolder. In other words, there is a unique QuestionnaireItemViewHolderDelegate for each QuestionnaireItemViewHolder. This is critical for the correctness of the recycler view.
Functions
Binds a QuestionnaireItemViewItem to the view.
Displays validation messages on the view.
Run the QuestionnaireResponseItemValidator.validate function.
Initializes the view in QuestionnaireItemViewHolder. Any listeners to record user input should be set in this function.
Runs validation to display the correct message and calls the questionnaireResponseChangedCallback
Sets view read only if isReadOnly is true.