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();
}
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();
}
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();
}
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();
}
Aggregations