use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class MediaCenterController method doChooseArtefactV1.
private void doChooseArtefactV1(UserRequest ureq) {
if (importArtefactv1Ctrl != null)
return;
importArtefactv1Ctrl = new EPArtefactPoolRunController(ureq, this.getWindowControl(), true, false, true);
listenTo(importArtefactv1Ctrl);
String title = translate("import.artefactV1");
cmc = new CloseableModalController(getWindowControl(), null, importArtefactv1Ctrl.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 MediaDetailsController method doEdit.
private void doEdit(UserRequest ureq) {
if (mediaEditCtrl != null)
return;
mediaEditCtrl = handler.getEditMediaController(ureq, getWindowControl(), media);
listenTo(mediaEditCtrl);
String title = translate("edit");
cmc = new CloseableModalController(getWindowControl(), null, mediaEditCtrl.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 MyPageListController method doCreateNewPage.
protected void doCreateNewPage(UserRequest ureq) {
if (newPageCtrl != null)
return;
newPageCtrl = new PageMetadataEditController(ureq, getWindowControl(), null, true, 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 PageEditorController method doAddElement.
private void doAddElement(UserRequest ureq, EditorFragment refenceFragment, PageElementHandler handler, PageElementTarget target) {
if (addCtrl != null)
return;
if (handler instanceof InteractiveAddPageElementHandler) {
InteractiveAddPageElementHandler interactiveHandler = (InteractiveAddPageElementHandler) handler;
addCtrl = interactiveHandler.getAddPageElementController(ureq, getWindowControl());
if (addCtrl == null) {
showWarning("not.implement");
} else {
addCtrl.setUserObject(new AddElementInfos(refenceFragment, handler, target));
listenTo(addCtrl);
String title = translate("add." + handler.getType());
cmc = new CloseableModalController(getWindowControl(), null, addCtrl.getInitialComponent(), true, title, true);
listenTo(cmc);
cmc.activate();
}
} else if (handler instanceof SimpleAddPageElementHandler) {
SimpleAddPageElementHandler simpleHandler = (SimpleAddPageElementHandler) handler;
doAddPageElement(ureq, simpleHandler.createPageElement(getLocale()), refenceFragment, target);
}
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class PageRunController method doRestorePage.
private void doRestorePage(UserRequest ureq) {
restorePageCtrl = new RestorePageController(ureq, getWindowControl(), page);
listenTo(restorePageCtrl);
String title = translate("restore.page");
cmc = new CloseableModalController(getWindowControl(), null, restorePageCtrl.getInitialComponent(), true, title, true);
listenTo(cmc);
cmc.activate();
}
Aggregations