use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class TableOfContentController method doConfirmDeleteBinder.
private void doConfirmDeleteBinder(UserRequest ureq) {
if (moveBinderToTrashCtrl != null)
return;
BinderStatistics stats = portfolioService.getBinderStatistics(binder);
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 TableOfContentController method doCreateNewEntry.
private void doCreateNewEntry(UserRequest ureq) {
if (newPageCtrl != null)
return;
newPageCtrl = new PageMetadataEditController(ureq, getWindowControl(), binder, false, null, true);
listenTo(newPageCtrl);
String title = translate("create.new.page");
cmc = new CloseableModalController(getWindowControl(), null, newPageCtrl.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 doEditSection.
private void doEditSection(UserRequest ureq, SectionRow sectionRow) {
if (editSectionCtrl != null)
return;
editSectionCtrl = new SectionEditController(ureq, getWindowControl(), sectionRow.getSection(), secCallback);
editSectionCtrl.setUserObject(sectionRow);
listenTo(editSectionCtrl);
String title = translate("section.edit");
cmc = new CloseableModalController(getWindowControl(), null, editSectionCtrl.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 doConfirmMoveToTrashBinder.
private void doConfirmMoveToTrashBinder(UserRequest ureq) {
if (moveBinderToTrashCtrl != null)
return;
BinderStatistics stats = portfolioService.getBinderStatistics(binder);
moveBinderToTrashCtrl = new ConfirmMoveBinderToTrashController(ureq, getWindowControl(), stats);
listenTo(moveBinderToTrashCtrl);
String title = translate("delete.binder");
cmc = new CloseableModalController(getWindowControl(), null, moveBinderToTrashCtrl.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 EditorMainController method doOpenNodeTypeChooser.
private void doOpenNodeTypeChooser(UserRequest ureq) {
removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(chooseNodeTypeCtr);
menuTree.getSelectedNode();
TreeNode tn = menuTree.getSelectedNode();
CourseEditorTreeNode cetn = tn == null ? null : cetm.getCourseEditorNodeById(tn.getIdent());
chooseNodeTypeCtr = new ChooseNodeController(ureq, getWindowControl(), ores, cetn);
listenTo(chooseNodeTypeCtr);
cmc = new CloseableModalController(getWindowControl(), translate("close"), chooseNodeTypeCtr.getInitialComponent(), true, translate("header.insertnodes"));
listenTo(cmc);
cmc.activate();
}
Aggregations