Search in sources :

Example 1 with FeedbackQuestionTableRow

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

the class InstructorFeedbackQuestionCopyPageData method buildCopyQuestionsModalRows.

private List<FeedbackQuestionTableRow> buildCopyQuestionsModalRows(List<FeedbackQuestionAttributes> copiableQuestions) {
    List<FeedbackQuestionTableRow> copyQuestionRows = new ArrayList<>();
    for (FeedbackQuestionAttributes question : copiableQuestions) {
        String courseId = question.courseId;
        String fsName = question.feedbackSessionName;
        FeedbackQuestionDetails questionDetails = question.getQuestionDetails();
        String qnType = questionDetails.getQuestionTypeDisplayName();
        String qnText = questionDetails.getQuestionText();
        String qnId = question.getId();
        FeedbackQuestionTableRow row = new FeedbackQuestionTableRow(courseId, fsName, qnType, qnText, qnId);
        copyQuestionRows.add(row);
    }
    return copyQuestionRows;
}
Also used : FeedbackQuestionDetails(teammates.common.datatransfer.questions.FeedbackQuestionDetails) FeedbackQuestionTableRow(teammates.ui.template.FeedbackQuestionTableRow) ArrayList(java.util.ArrayList) FeedbackQuestionAttributes(teammates.common.datatransfer.attributes.FeedbackQuestionAttributes)

Aggregations

ArrayList (java.util.ArrayList)1 FeedbackQuestionAttributes (teammates.common.datatransfer.attributes.FeedbackQuestionAttributes)1 FeedbackQuestionDetails (teammates.common.datatransfer.questions.FeedbackQuestionDetails)1 FeedbackQuestionTableRow (teammates.ui.template.FeedbackQuestionTableRow)1