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);
}
}
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);
}
}
Aggregations