use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class FileArtefactDetailsController method popupUploadCallout.
private void popupUploadCallout(UserRequest ureq) {
removeAsListenerAndDispose(fileUploadCtrl);
fileUploadCtrl = new EPCreateFileArtefactStepForm00(ureq, getWindowControl(), fArtefact);
listenTo(fileUploadCtrl);
removeAsListenerAndDispose(calloutCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), fileUploadCtrl.getInitialComponent(), uploadLink, fArtefact.getTitle(), true, null);
calloutCtrl.addDisposableChildController(fileUploadCtrl);
listenTo(calloutCtrl);
calloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class PortfolioFilterController method popupTagsCallout.
private void popupTagsCallout(UserRequest ureq) {
String title = translate("filter.tag");
removeAsListenerAndDispose(moreTagsCtlr);
moreTagsCtlr = new EPArtefactTagSelectionController(ureq, getWindowControl(), selectedTagsList);
listenTo(moreTagsCtlr);
removeAsListenerAndDispose(moreTagsCalloutCtrl);
moreTagsCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), moreTagsCtlr.getInitialComponent(), (FormLink) tagEditBtn, title, true, null);
listenTo(moreTagsCalloutCtrl);
moreTagsCalloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class PortfolioFilterController method popupTypesCallout.
private void popupTypesCallout(UserRequest ureq) {
String title = translate("filter.view");
removeAsListenerAndDispose(moreTypesCtlr);
moreTypesCtlr = new EPArtefactTypeSelectionController(ureq, getWindowControl(), selectedTypeList);
listenTo(moreTypesCtlr);
removeAsListenerAndDispose(moreTypesCalloutCtrl);
moreTypesCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), moreTypesCtlr.getInitialComponent(), (FormLink) typeEditBtn, title, true, null);
listenTo(moreTypesCalloutCtrl);
moreTypesCalloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class AuthorListController method doOpenTools.
private void doOpenTools(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 {
toolsCtrl = new ToolsController(ureq, getWindowControl(), row, entry);
listenTo(toolsCtrl);
toolsCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), toolsCtrl.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 CourseRuntimeController method launchCourseSearch.
private void launchCourseSearch(UserRequest ureq) {
// do not dispose SearchInputController after search to remain able to listen to its events
removeAsListenerAndDispose(courseSearchCalloutCtr);
courseSearchCalloutCtr = null;
removeAsListenerAndDispose(searchController);
searchController = null;
SearchServiceUIFactory searchServiceUIFactory = (SearchServiceUIFactory) CoreSpringFactory.getBean(SearchServiceUIFactory.class);
searchController = searchServiceUIFactory.createInputController(ureq, getWindowControl(), DisplayOption.STANDARD, null);
listenTo(searchController);
courseSearchCalloutCtr = new CloseableCalloutWindowController(ureq, getWindowControl(), searchController.getInitialComponent(), searchLink.getDispatchID(), null, true, null);
courseSearchCalloutCtr.addDisposableChildController(searchController);
courseSearchCalloutCtr.activate();
listenTo(courseSearchCalloutCtr);
}
Aggregations