Search in sources :

Example 1 with CalloutSettings

use of org.olat.core.gui.control.generic.closablewrapper.CalloutSettings in project OpenOLAT by OpenOLAT.

the class MediaCenterController method doOpenNewMediaCallout.

private void doOpenNewMediaCallout(UserRequest ureq, FormLink link) {
    removeAsListenerAndDispose(newMediasCtrl);
    removeAsListenerAndDispose(newMediasCalloutCtrl);
    newMediasCtrl = new NewMediasController(ureq, getWindowControl());
    listenTo(newMediasCtrl);
    newMediasCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), newMediasCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "", new CalloutSettings(false));
    listenTo(newMediasCalloutCtrl);
    newMediasCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) CalloutSettings(org.olat.core.gui.control.generic.closablewrapper.CalloutSettings)

Example 2 with CalloutSettings

use of org.olat.core.gui.control.generic.closablewrapper.CalloutSettings in project OpenOLAT by OpenOLAT.

the class PageEditorController method openAddElementCallout.

private void openAddElementCallout(UserRequest ureq, Link link, EditorFragment referenceFragment, PageElementTarget target) {
    addElementsCtrl = new AddElementsController(ureq, getWindowControl(), provider, referenceFragment, target);
    listenTo(addElementsCtrl);
    CalloutSettings calloutSettings;
    if (target == PageElementTarget.above) {
        calloutSettings = new CalloutSettings(true, CalloutOrientation.top);
    } else {
        calloutSettings = new CalloutSettings(false);
    }
    addCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), addElementsCtrl.getInitialComponent(), link.getDispatchID(), "", true, "", calloutSettings);
    listenTo(addCalloutCtrl);
    addCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) CalloutSettings(org.olat.core.gui.control.generic.closablewrapper.CalloutSettings)

Example 3 with CalloutSettings

use of org.olat.core.gui.control.generic.closablewrapper.CalloutSettings in project openolat by klemens.

the class MediaCenterController method doOpenNewMediaCallout.

private void doOpenNewMediaCallout(UserRequest ureq, FormLink link) {
    removeAsListenerAndDispose(newMediasCtrl);
    removeAsListenerAndDispose(newMediasCalloutCtrl);
    newMediasCtrl = new NewMediasController(ureq, getWindowControl());
    listenTo(newMediasCtrl);
    newMediasCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), newMediasCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "", new CalloutSettings(false));
    listenTo(newMediasCalloutCtrl);
    newMediasCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) CalloutSettings(org.olat.core.gui.control.generic.closablewrapper.CalloutSettings)

Example 4 with CalloutSettings

use of org.olat.core.gui.control.generic.closablewrapper.CalloutSettings in project openolat by klemens.

the class PageEditorController method openAddElementCallout.

private void openAddElementCallout(UserRequest ureq, Link link, EditorFragment referenceFragment, PageElementTarget target) {
    addElementsCtrl = new AddElementsController(ureq, getWindowControl(), provider, referenceFragment, target);
    listenTo(addElementsCtrl);
    CalloutSettings calloutSettings;
    if (target == PageElementTarget.above) {
        calloutSettings = new CalloutSettings(true, CalloutOrientation.top);
    } else {
        calloutSettings = new CalloutSettings(false);
    }
    addCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), addElementsCtrl.getInitialComponent(), link.getDispatchID(), "", true, "", calloutSettings);
    listenTo(addCalloutCtrl);
    addCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) CalloutSettings(org.olat.core.gui.control.generic.closablewrapper.CalloutSettings)

Aggregations

CalloutSettings (org.olat.core.gui.control.generic.closablewrapper.CalloutSettings)4 CloseableCalloutWindowController (org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)4