Search in sources :

Example 1 with CollectTextMediaController

use of org.olat.modules.portfolio.ui.media.CollectTextMediaController in project OpenOLAT by OpenOLAT.

the class MediaCenterController method doAddTextMedia.

private void doAddTextMedia(UserRequest ureq) {
    if (textUploadCtrl != null)
        return;
    textUploadCtrl = new CollectTextMediaController(ureq, getWindowControl());
    listenTo(textUploadCtrl);
    String title = translate("add.text");
    cmc = new CloseableModalController(getWindowControl(), null, textUploadCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) CollectTextMediaController(org.olat.modules.portfolio.ui.media.CollectTextMediaController)

Example 2 with CollectTextMediaController

use of org.olat.modules.portfolio.ui.media.CollectTextMediaController in project openolat by klemens.

the class MediaCenterController method doAddTextMedia.

private void doAddTextMedia(UserRequest ureq) {
    if (textUploadCtrl != null)
        return;
    textUploadCtrl = new CollectTextMediaController(ureq, getWindowControl());
    listenTo(textUploadCtrl);
    String title = translate("add.text");
    cmc = new CloseableModalController(getWindowControl(), null, textUploadCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) CollectTextMediaController(org.olat.modules.portfolio.ui.media.CollectTextMediaController)

Aggregations

CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)2 CollectTextMediaController (org.olat.modules.portfolio.ui.media.CollectTextMediaController)2