Search in sources :

Example 1 with ParticipantCols

use of org.olat.modules.lecture.ui.ParticipantLectureBlocksDataModel.ParticipantCols in project OpenOLAT by OpenOLAT.

the class ParticipantLecturesSortDelegate method sort.

@Override
protected void sort(List<LectureBlockStatistics> rows) {
    int columnIndex = getColumnIndex();
    ParticipantCols column = ParticipantCols.values()[columnIndex];
    switch(column) {
        case lectureBlock:
            Collections.sort(rows, new PresentComparator());
            break;
        default:
            {
                super.sort(rows);
            }
    }
}
Also used : ParticipantCols(org.olat.modules.lecture.ui.ParticipantLectureBlocksDataModel.ParticipantCols)

Example 2 with ParticipantCols

use of org.olat.modules.lecture.ui.ParticipantLectureBlocksDataModel.ParticipantCols in project OpenOLAT by OpenOLAT.

the class ParticipantLectureBlocksSortDelegate method sort.

@Override
protected void sort(List<LectureBlockAndRollCallRow> rows) {
    int columnIndex = getColumnIndex();
    ParticipantCols column = ParticipantCols.values()[columnIndex];
    switch(column) {
        case lectureBlock:
            Collections.sort(rows, new AttendedLecturesComparator());
            break;
        default:
            {
                super.sort(rows);
            }
    }
}
Also used : ParticipantCols(org.olat.modules.lecture.ui.ParticipantLectureBlocksDataModel.ParticipantCols)

Example 3 with ParticipantCols

use of org.olat.modules.lecture.ui.ParticipantLectureBlocksDataModel.ParticipantCols in project openolat by klemens.

the class ParticipantLectureBlocksSortDelegate method sort.

@Override
protected void sort(List<LectureBlockAndRollCallRow> rows) {
    int columnIndex = getColumnIndex();
    ParticipantCols column = ParticipantCols.values()[columnIndex];
    switch(column) {
        case lectureBlock:
            Collections.sort(rows, new AttendedLecturesComparator());
            break;
        default:
            {
                super.sort(rows);
            }
    }
}
Also used : ParticipantCols(org.olat.modules.lecture.ui.ParticipantLectureBlocksDataModel.ParticipantCols)

Example 4 with ParticipantCols

use of org.olat.modules.lecture.ui.ParticipantLectureBlocksDataModel.ParticipantCols in project openolat by klemens.

the class ParticipantLecturesSortDelegate method sort.

@Override
protected void sort(List<LectureBlockStatistics> rows) {
    int columnIndex = getColumnIndex();
    ParticipantCols column = ParticipantCols.values()[columnIndex];
    switch(column) {
        case lectureBlock:
            Collections.sort(rows, new PresentComparator());
            break;
        default:
            {
                super.sort(rows);
            }
    }
}
Also used : ParticipantCols(org.olat.modules.lecture.ui.ParticipantLectureBlocksDataModel.ParticipantCols)

Aggregations

ParticipantCols (org.olat.modules.lecture.ui.ParticipantLectureBlocksDataModel.ParticipantCols)4