use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project openolat by klemens.
the class ParticipantLectureBlocksController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (tableEl == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
LectureBlockAndRollCallRow row = tableModel.getObject(se.getIndex());
if ("appeal".equals(cmd)) {
doAppeal(ureq, row.getRow());
}
}
} else if (openCourseButton == source) {
doOpenCourse(ureq);
} else if (source instanceof FormLink) {
FormLink link = (FormLink) source;
if ("appeal".equals(link.getCmd())) {
LectureBlockAndRollCallRow row = (LectureBlockAndRollCallRow) link.getUserObject();
doAppeal(ureq, row.getRow());
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project openolat by klemens.
the class ParticipantLecturesOverviewController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (source == tableEl) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
LectureBlockStatistics row = tableModel.getObject(se.getIndex());
if ("details".equals(cmd)) {
doSelect(ureq, row);
} else if ("open.course".equals(cmd)) {
doOpenCourse(ureq, row);
}
}
} else if (logButton == source) {
doExportLog(ureq);
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project openolat by klemens.
the class ParticipantListRepositoryController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (source == tableEl) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
if ("edit".equals(cmd)) {
ParticipantRow row = tableModel.getObject(se.getIndex());
doEdit(ureq, row);
}
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project openolat by klemens.
the class GoToOrganizerListAdminController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (addOrganizerButton == source) {
doAddOrganizer(ureq);
} else if (tableEl == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
if ("renew".equals(se.getCommand())) {
GoToOrganizer organizer = tableModel.getObject(se.getIndex());
doRenewOrganizer(ureq, organizer);
} else if ("remove".equals(se.getCommand())) {
GoToOrganizer organizer = tableModel.getObject(se.getIndex());
doConfirmRemove(ureq, organizer);
} else if ("owner".equals(se.getCommand())) {
GoToOrganizer organizer = tableModel.getObject(se.getIndex());
doOpenOwner(ureq, organizer);
}
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project openolat by klemens.
the class TeacherRollCallController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (source == tableEl) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
TeacherRollCallRow row = tableModel.getObject(se.getIndex());
if ("all".equals(cmd)) {
doCheckAllRow(row);
}
}
} else if (source instanceof MultipleSelectionElement) {
MultipleSelectionElement check = (MultipleSelectionElement) source;
TeacherRollCallRow row = (TeacherRollCallRow) check.getUserObject();
if (row.getAuthorizedAbsence() == check) {
doAuthorizedAbsence(row, check);
if (check.isAtLeastSelected(1)) {
doCalloutReasonAbsence(ureq, check.getFormDispatchId() + "_C_0", row);
}
} else {
doCheckRow(row, check);
}
} else if (reopenButton == source) {
doReopen(ureq);
} else if (closeLectureBlocksButton == source) {
if (validateFormLogic(ureq)) {
saveLectureBlocks();
doConfirmCloseLectureBlock(ureq);
}
} else if (cancelLectureBlockButton == source) {
saveLectureBlocks();
doConfirmCancelLectureBlock(ureq);
} else if (source instanceof FormLink) {
FormLink link = (FormLink) source;
String cmd = link.getCmd();
if (cmd != null && cmd.startsWith("abs_reason_")) {
TeacherRollCallRow row = (TeacherRollCallRow) link.getUserObject();
doCalloutReasonAbsence(ureq, link.getFormDispatchId(), row);
}
}
super.formInnerEvent(ureq, source, event);
}
Aggregations