use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project OpenOLAT by OpenOLAT.
the class TaxonomyLevelCompetenceController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (addCompetencesButton == source) {
doAddCompetence(ureq);
} else if (removeCompetencesButton == source) {
doConfirmRemoveCompetences(ureq);
} else if (tableEl == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
if ("select".equals(cmd)) {
TaxonomyLevelCompetenceRow row = tableModel.getObject(se.getIndex());
doSelectTaxonomyLevelCompetence(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 PaypalTransactionsController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (source == backLink) {
if (detailsController != null) {
flc.remove(detailsController.getInitialComponent());
removeAsListenerAndDispose(detailsController);
}
addSearchToHistory(ureq);
} else if (source == tableEl) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
PaypalTransaction row = dataModel.getObject(se.getIndex());
if (CMD_SELECT.equals(se.getCommand())) {
doSelectTransaction(ureq, row);
}
} else if (event instanceof FlexiTableSearchEvent) {
FlexiTableSearchEvent se = (FlexiTableSearchEvent) event;
doSearch(ureq, se.getSearch());
}
}
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 OrdersAdminController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (source == tableEl) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
OrderTableItem row = dataModel.getObject(se.getIndex());
if (CMD_SELECT.equals(se.getCommand())) {
doSelectOrder(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 CatalogSettingsController 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();
CatalogEntry row = model.getObject(se.getIndex());
if ("remove".equals(cmd)) {
doRemove(row);
}
}
}
}
use of org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent in project OpenOLAT by OpenOLAT.
the class CertificateAndEfficiencyStatementListController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (tableEl == source) {
if (event instanceof SelectionEvent) {
SelectionEvent te = (SelectionEvent) event;
String cmd = te.getCommand();
CertificateAndEfficiencyStatement statement = tableModel.getObject(te.getIndex());
if (CMD_LAUNCH_COURSE.equals(cmd)) {
doLaunchCourse(ureq, statement.getResourceKey());
} else if (CMD_DELETE.equals(cmd)) {
doConfirmDelete(ureq, statement);
} else if (CMD_SHOW.equals(cmd)) {
doShowStatement(ureq, statement);
} else if (CMD_ARTEFACT.equals(cmd)) {
doCollectArtefact(ureq, statement.getDisplayName(), statement.getEfficiencyStatementKey());
} else if (CMD_MEDIA.equals(cmd)) {
doCollectMedia(ureq, statement.getDisplayName(), statement.getEfficiencyStatementKey());
}
}
} else if (coachingToolButton == source) {
doLaunchCoachingTool(ureq);
}
super.formInnerEvent(ureq, source, event);
}
Aggregations