use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController 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.CloseableCalloutWindowController 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.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class QuestionListController method doList.
protected void doList(UserRequest ureq) {
String title = translate("filter.view");
removeAsListenerAndDispose(listTargetCtrl);
listTargetCtrl = new CollectionTargetController(ureq, getWindowControl(), itemCollection != null);
listenTo(listTargetCtrl);
removeAsListenerAndDispose(calloutCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), listTargetCtrl.getInitialComponent(), list, title, true, null);
listenTo(calloutCtrl);
calloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class AuthorListController method doOpenReferences.
private void doOpenReferences(UserRequest ureq, AuthoringEntryRow row, FormLink link) {
removeAsListenerAndDispose(toolsCtrl);
removeAsListenerAndDispose(toolsCalloutCtrl);
RepositoryEntry entry = repositoryService.loadByKey(row.getKey());
if (entry == null) {
tableEl.reloadData();
showWarning("repositoryentry.not.existing");
} else {
referencesCtrl = new ReferencesController(ureq, getWindowControl(), entry);
listenTo(referencesCtrl);
toolsCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), referencesCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
listenTo(toolsCalloutCtrl);
toolsCalloutCtrl.activate();
}
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class AuthorDeletedListController method doOpenTools.
private void doOpenTools(UserRequest ureq, AuthoringEntryRow row, FormLink link) {
removeAsListenerAndDispose(dToolsCtrl);
removeAsListenerAndDispose(toolsCalloutCtrl);
RepositoryEntry entry = repositoryService.loadByKey(row.getKey());
if (entry == null) {
tableEl.reloadData();
showWarning("repositoryentry.not.existing");
} else {
dToolsCtrl = new DToolsController(ureq, getWindowControl(), row, entry);
listenTo(dToolsCtrl);
toolsCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), dToolsCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
listenTo(toolsCalloutCtrl);
toolsCalloutCtrl.activate();
}
}
Aggregations