use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class AbstractPageListController method doEditAssignment.
protected void doEditAssignment(UserRequest ureq, PortfolioElementRow row) {
if (editAssignmentCtrl != null)
return;
Assignment assignment = row.getAssignment();
editAssignmentCtrl = new AssignmentEditController(ureq, getWindowControl(), assignment);
listenTo(editAssignmentCtrl);
String title = translate("edit.assignment");
cmc = new CloseableModalController(getWindowControl(), null, editAssignmentCtrl.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 BinderListController method doNewBinder.
private void doNewBinder(UserRequest ureq) {
if (newBinderCtrl != null)
return;
newBinderCtrl = new BinderMetadataEditController(ureq, getWindowControl(), null);
listenTo(newBinderCtrl);
String title = translate("create.new.binder");
cmc = new CloseableModalController(getWindowControl(), null, newBinderCtrl.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 BinderListController method doNewBinderFromCourse.
private void doNewBinderFromCourse(UserRequest ureq) {
if (searchCourseTemplateCtrl != null)
return;
removeAsListenerAndDispose(searchCourseTemplateCtrl);
searchCourseTemplateCtrl = new CourseTemplateSearchController(ureq, getWindowControl());
listenTo(searchCourseTemplateCtrl);
String title = translate("create.empty.binder.from.template");
cmc = new CloseableModalController(getWindowControl(), title, searchCourseTemplateCtrl.getInitialComponent(), true, title);
listenTo(cmc);
cmc.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class BinderDeliveryOptionsController method doConfirmDeleteOption.
private void doConfirmDeleteOption(UserRequest ureq) {
if (deleteOptionCtrl != null)
return;
deleteOptionCtrl = new ConfirmDeleteOptionController(ureq, getWindowControl());
listenTo(deleteOptionCtrl);
String title = translate("create.new.binder");
deleteOptionCmcCtrl = new CloseableModalController(getWindowControl(), null, deleteOptionCtrl.getInitialComponent(), true, title, true);
listenTo(deleteOptionCmcCtrl);
deleteOptionCmcCtrl.activate();
}
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) {
if (newAssignmentCtrl != null)
return;
newAssignmentCtrl = new AssignmentEditController(ureq, getWindowControl(), binder);
listenTo(newAssignmentCtrl);
String title = translate("create.new.assignment");
cmc = new CloseableModalController(getWindowControl(), null, newAssignmentCtrl.getInitialComponent(), true, title, true);
listenTo(cmc);
cmc.activate();
}
Aggregations