Search in sources :

Example 1 with QuestionTable

use of teammates.ui.template.QuestionTable in project teammates by TEAMMATES.

the class InstructorSearchPageData method createQuestionTables.

private List<QuestionTable> createQuestionTables(String fsName, FeedbackResponseCommentSearchResultBundle frcSearchResultBundle) {
    List<QuestionTable> questionTables = new ArrayList<>();
    List<FeedbackQuestionAttributes> questionList = frcSearchResultBundle.questions.get(fsName);
    for (FeedbackQuestionAttributes question : questionList) {
        int questionNumber = question.questionNumber;
        String questionText = question.getQuestionDetails().getQuestionText();
        String additionalInfo = question.getQuestionDetails().getQuestionAdditionalInfoHtml(questionNumber, "");
        questionTables.add(new QuestionTable(questionNumber, questionText, additionalInfo, createResponseRows(question, frcSearchResultBundle)));
    }
    return questionTables;
}
Also used : ArrayList(java.util.ArrayList) QuestionTable(teammates.ui.template.QuestionTable) FeedbackQuestionAttributes(teammates.common.datatransfer.attributes.FeedbackQuestionAttributes)

Aggregations

ArrayList (java.util.ArrayList)1 FeedbackQuestionAttributes (teammates.common.datatransfer.attributes.FeedbackQuestionAttributes)1 QuestionTable (teammates.ui.template.QuestionTable)1