use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project OpenOLAT by OpenOLAT.
the class CheckListAssessmentController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (table == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
if ("edit".equals(cmd) || "view".equals(cmd)) {
CheckListAssessmentRow row = model.getObject(se.getIndex());
doOpenEdit(ureq, row);
} else if (UserConstants.FIRSTNAME.equals(cmd) || UserConstants.LASTNAME.equals(cmd)) {
CheckListAssessmentRow row = model.getObject(se.getIndex());
doOpenIdentity(ureq, row);
}
}
} else if (pdfExportButton == source) {
doExportPDF(ureq);
} else if (checkedPdfExportButton == source) {
doCheckedExportPDF(ureq);
} else if (editButton == source) {
saveButton.setVisible(true);
cancelButton.setVisible(true);
editButton.setVisible(false);
doEdit();
} else if (boxAssessmentButton == source) {
doOpenBoxAssessment(ureq);
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project OpenOLAT by OpenOLAT.
the class CheckListBoxListEditController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (addLink == source) {
Checkbox checkbox = new Checkbox();
checkbox.setCheckboxId(UUID.randomUUID().toString());
doOpenEdit(ureq, checkbox, true, translate("add.checkbox"));
} else if (boxTable == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
if ("edit".equals(cmd)) {
CheckboxConfigRow row = model.getObject(se.getIndex());
doOpenEdit(ureq, row.getCheckbox(), false, translate("edit.checkbox"));
} else if ("up".equals(cmd)) {
doUp(ureq, se.getIndex());
} else if ("down".equals(cmd)) {
doDown(ureq, se.getIndex());
}
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project OpenOLAT by OpenOLAT.
the class GTASampleSolutionsEditController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (addSolutionLink == source) {
doAddSolution(ureq);
} else if (createSolutionLink == source) {
doCreateSolution(ureq);
} else if (solutionTable == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
SolutionRow row = solutionModel.getObject(se.getIndex());
if ("edit".equals(se.getCommand())) {
doEdit(ureq, row.getSolution());
} else if ("delete".equals(se.getCommand())) {
doDelete(ureq, row);
}
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project OpenOLAT by OpenOLAT.
the class AdvanceOrderController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (source == tableEl) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
if (CMD_DELETE.equals(se.getCommand())) {
AdvanceOrderRow row = dataModel.getObject(se.getIndex());
doConfirmDelete(ureq, row);
}
}
}
}
use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project OpenOLAT by OpenOLAT.
the class SelectForumStepForm 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();
CourseNode node = tableModel.getObject(index);
addToRunContext(SendMailStepForm.FORUM, node);
fireEvent(ureq, StepsEvent.ACTIVATE_NEXT);
}
}
super.formInnerEvent(ureq, source, event);
}
Aggregations