use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project openolat by klemens.
the class AssessmentModeListController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (addLink == source) {
doAdd(ureq);
} else if (deleteLink == source) {
Set<Integer> index = tableEl.getMultiSelectedIndex();
if (index == null || index.isEmpty()) {
showWarning("error.atleastone");
} else {
List<AssessmentMode> rows = new ArrayList<AssessmentMode>(index.size());
for (Integer i : index) {
rows.add(model.getObject(i.intValue()));
}
doConfirmDelete(ureq, rows);
}
} else if (tableEl == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
AssessmentMode row = model.getObject(se.getIndex());
if ("edit".equals(cmd)) {
doEdit(ureq, row);
} else if ("start".equals(cmd)) {
doConfirmStart(ureq, row);
} else if ("stop".equals(cmd)) {
doConfirmStop(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 SelectCourseNodeStepForm method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (tableEl == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
int index = se.getIndex();
Node node = tableModel.getObject(index);
addToRunContext("courseNode", node.getNode());
fireEvent(ureq, StepsEvent.ACTIVATE_NEXT);
}
}
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 GroupController 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();
EfficiencyStatementEntry selectedRow = model.getObject(se.getIndex());
if ("select".equals(cmd)) {
selectDetails(ureq, selectedRow);
}
}
}
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 UserListController 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();
StudentStatEntry selectedRow = model.getObject(se.getIndex());
if ("select".equals(cmd)) {
selectStudent(ureq, selectedRow);
}
}
}
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 CourseController 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();
EfficiencyStatementEntry selectedRow = model.getObject(se.getIndex());
if ("select".equals(cmd)) {
doSelectDetails(ureq, selectedRow);
}
}
} else if (source == openCourse) {
doOpenCourse(ureq);
}
super.formInnerEvent(ureq, source, event);
}
Aggregations