use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class BinderPageListController method doCreateNewAssignment.
private void doCreateNewAssignment(UserRequest ureq, Section section) {
if (newAssignmentCtrl != null)
return;
newAssignmentCtrl = new AssignmentEditController(ureq, getWindowControl(), section);
listenTo(newAssignmentCtrl);
String title = translate("create.new.assignment");
cmc = new CloseableModalController(getWindowControl(), null, newAssignmentCtrl.getInitialComponent(), true, title, true);
listenTo(cmc);
cmc.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class BinderPageListController method doCreateNewSection.
private void doCreateNewSection(UserRequest ureq) {
if (newSectionCtrl != null)
return;
newSectionCtrl = new SectionEditController(ureq, getWindowControl(), binder, secCallback);
listenTo(newSectionCtrl);
String title = translate("create.new.section");
cmc = new CloseableModalController(getWindowControl(), null, newSectionCtrl.getInitialComponent(), true, title, true);
listenTo(cmc);
cmc.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class DeletedBinderController method doConfirmDelete.
private void doConfirmDelete(UserRequest ureq) {
if (deleteBinderCtrl != null)
return;
List<BinderRow> rows = getSelectedRows();
if (rows.isEmpty()) {
showWarning("binder.atleastone");
} else {
List<BinderStatistics> stats = new ArrayList<>(rows.size());
for (BinderRow row : rows) {
stats.add(row.getStatistics());
}
deleteBinderCtrl = new ConfirmDeleteBinderController(ureq, getWindowControl(), stats);
listenTo(deleteBinderCtrl);
String title = translate("delete.binder");
cmc = new CloseableModalController(getWindowControl(), null, deleteBinderCtrl.getInitialComponent(), true, title, true);
listenTo(cmc);
cmc.activate();
}
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class PublishController method doAddInvitation.
private void doAddInvitation(UserRequest ureq, String email) {
if (addInvitationCtrl != null)
return;
addInvitationCtrl = new InvitationEditRightsController(ureq, getWindowControl(), binder, email);
listenTo(addInvitationCtrl);
String title = translate("add.invitation");
cmc = new CloseableModalController(getWindowControl(), null, addInvitationCtrl.getInitialComponent(), true, title, true);
listenTo(cmc);
cmc.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class TableOfContentController method doOverrideDatesSection.
private void doOverrideDatesSection(UserRequest ureq, SectionRow sectionRow) {
if (editSectionDatesCtrl != null)
return;
editSectionDatesCtrl = new SectionDatesEditController(ureq, getWindowControl(), sectionRow.getSection());
editSectionDatesCtrl.setUserObject(sectionRow);
listenTo(editSectionDatesCtrl);
String title = translate("override.dates.section");
cmc = new CloseableModalController(getWindowControl(), null, editSectionDatesCtrl.getInitialComponent(), true, title, true);
listenTo(cmc);
cmc.activate();
}
Aggregations