Search in sources :

Example 1 with LectureBlockAndRollCallRow

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

the class LectureBlockRollCallStatusCellRenderer method render.

@Override
public void render(Renderer renderer, StringOutput target, Object cellValue, int row, FlexiTableComponent source, URLBuilder ubu, Translator trans) {
    if (cellValue instanceof LectureBlockAndRollCallRow) {
        LectureBlockAndRollCallRow rollCallRow = (LectureBlockAndRollCallRow) cellValue;
        render(target, rollCallRow.getRow());
    } else if (cellValue instanceof LectureBlockAndRollCall) {
        render(target, (LectureBlockAndRollCall) cellValue);
    }
}
Also used : LectureBlockAndRollCall(org.olat.modules.lecture.model.LectureBlockAndRollCall) LectureBlockAndRollCallRow(org.olat.modules.lecture.ui.LectureBlockAndRollCallRow)

Example 2 with LectureBlockAndRollCallRow

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

the class LectureBlockRollCallStatusCellRenderer method render.

@Override
public void render(Renderer renderer, StringOutput target, Object cellValue, int row, FlexiTableComponent source, URLBuilder ubu, Translator trans) {
    if (cellValue instanceof LectureBlockAndRollCallRow) {
        LectureBlockAndRollCallRow rollCallRow = (LectureBlockAndRollCallRow) cellValue;
        render(target, rollCallRow.getRow());
    } else if (cellValue instanceof LectureBlockAndRollCall) {
        render(target, (LectureBlockAndRollCall) cellValue);
    }
}
Also used : LectureBlockAndRollCall(org.olat.modules.lecture.model.LectureBlockAndRollCall) LectureBlockAndRollCallRow(org.olat.modules.lecture.ui.LectureBlockAndRollCallRow)

Aggregations

LectureBlockAndRollCall (org.olat.modules.lecture.model.LectureBlockAndRollCall)2 LectureBlockAndRollCallRow (org.olat.modules.lecture.ui.LectureBlockAndRollCallRow)2