use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController 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.CloseableCalloutWindowController in project openolat by klemens.
the class QuestionListController method doShare.
protected void doShare(UserRequest ureq) {
String title = translate("filter.view");
removeAsListenerAndDispose(shareTargetCtrl);
shareTargetCtrl = new ShareTargetController(ureq, getWindowControl(), getSecurityCallback());
listenTo(shareTargetCtrl);
removeAsListenerAndDispose(calloutCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), shareTargetCtrl.getInitialComponent(), shareItem, title, true, null);
listenTo(calloutCtrl);
calloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.
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 klemens.
the class QuestionListController method doChooseTestFormat.
private void doChooseTestFormat(UserRequest ureq, Set<ExportFormatOptions> exportFormatOptions) {
removeAsListenerAndDispose(createTestTargetCtrl);
createTestTargetCtrl = new CreateTestTargetController(ureq, getWindowControl(), exportFormatOptions);
listenTo(createTestTargetCtrl);
removeAsListenerAndDispose(calloutCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), createTestTargetCtrl.getInitialComponent(), createTest, null, true, null);
listenTo(calloutCtrl);
calloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.
the class RepositorySearchController method doOpenInfos.
private void doOpenInfos(UserRequest ureq, RepositoryEntry repositoryEntry, int rowId) {
removeAsListenerAndDispose(calloutCtrl);
removeAsListenerAndDispose(infosCtrl);
infosCtrl = new RepositoryEntrySmallDetailsController(ureq, getWindowControl(), repositoryEntry);
listenTo(infosCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), infosCtrl.getInitialComponent(), "ore" + rowId + "ref", null, true, null);
listenTo(calloutCtrl);
calloutCtrl.activate();
}
Aggregations