Search in sources :

Example 1 with ItemCols

use of org.olat.ims.qti21.ui.assessment.CorrectionAssessmentItemTableModel.ItemCols in project OpenOLAT by OpenOLAT.

the class CorrectionAssessmentItemTableSort method sort.

@Override
protected void sort(List<CorrectionAssessmentItemRow> rows) {
    int columnIndex = getColumnIndex();
    ItemCols column = ItemCols.values()[columnIndex];
    switch(column) {
        case itemType:
            Collections.sort(rows, new QuestionTypeComparator());
            break;
        case corrected:
            Collections.sort(rows, new CorrectedComparator());
            break;
        case notCorrected:
            Collections.sort(rows, new NotCorrectedComparator());
            break;
        default:
            super.sort(rows);
    }
}
Also used : ItemCols(org.olat.ims.qti21.ui.assessment.CorrectionAssessmentItemTableModel.ItemCols)

Example 2 with ItemCols

use of org.olat.ims.qti21.ui.assessment.CorrectionAssessmentItemTableModel.ItemCols in project openolat by klemens.

the class CorrectionAssessmentItemTableSort method sort.

@Override
protected void sort(List<CorrectionAssessmentItemRow> rows) {
    int columnIndex = getColumnIndex();
    ItemCols column = ItemCols.values()[columnIndex];
    switch(column) {
        case itemType:
            Collections.sort(rows, new QuestionTypeComparator());
            break;
        case corrected:
            Collections.sort(rows, new CorrectedComparator());
            break;
        case notCorrected:
            Collections.sort(rows, new NotCorrectedComparator());
            break;
        default:
            super.sort(rows);
    }
}
Also used : ItemCols(org.olat.ims.qti21.ui.assessment.CorrectionAssessmentItemTableModel.ItemCols)

Aggregations

ItemCols (org.olat.ims.qti21.ui.assessment.CorrectionAssessmentItemTableModel.ItemCols)2