use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.
the class CalendarPersonalConfigurationController method doChooseColor.
private void doChooseColor(UserRequest ureq, FormLink link, CalendarPersonalConfigurationRow row) {
removeAsListenerAndDispose(calloutCtrl);
removeAsListenerAndDispose(colorChooserCtrl);
colorChooserCtrl = new CalendarColorChooserController(ureq, getWindowControl(), row);
listenTo(colorChooserCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), colorChooserCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
listenTo(calloutCtrl);
calloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.
the class CalendarPersonalConfigurationController method doShowFeedURL.
private void doShowFeedURL(UserRequest ureq, FormLink link, CalendarPersonalConfigurationRow row) {
removeAsListenerAndDispose(feedUrlCtrl);
removeAsListenerAndDispose(calloutCtrl);
KalendarRenderWrapper calendarWrapper = row.getWrapper();
if (!StringHelper.containsNonWhitespace(row.getToken())) {
calendarWrapper.setToken(RandomStringUtils.randomAlphanumeric(6));
calendarManager.saveCalendarConfigForIdentity(calendarWrapper, getIdentity());
}
String calFeedLink = row.getFeedUrl(getIdentity());
feedUrlCtrl = new CalendarURLController(ureq, getWindowControl(), calFeedLink);
listenTo(feedUrlCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), feedUrlCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
listenTo(calloutCtrl);
calloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.
the class LandingPagesAdminController method openChooser.
private void openChooser(UserRequest ureq, RuleWrapper row, FormLink link) {
removeAsListenerAndDispose(chooserCtrl);
removeAsListenerAndDispose(chooserCalloutCtrl);
chooserCtrl = new ChooserController(ureq, getWindowControl(), row);
listenTo(chooserCtrl);
chooserCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), chooserCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
listenTo(chooserCalloutCtrl);
chooserCalloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class TaxonomyLevelCompetenceController method doAddCompetence.
private void doAddCompetence(UserRequest ureq) {
addCompetencesCtrl = new AddCompetencesController(ureq, getWindowControl());
listenTo(addCompetencesCtrl);
addCompetencesCallout = new CloseableCalloutWindowController(ureq, getWindowControl(), addCompetencesCtrl.getInitialComponent(), addCompetencesButton.getFormDispatchId(), "", true, "");
listenTo(addCompetencesCallout);
addCompetencesCallout.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class TaxonomyTreeTableController method doOpenTools.
private void doOpenTools(UserRequest ureq, TaxonomyLevelRow row, FormLink link) {
removeAsListenerAndDispose(toolsCtrl);
removeAsListenerAndDispose(toolsCalloutCtrl);
TaxonomyLevel level = taxonomyService.getTaxonomyLevel(row);
if (level == null) {
tableEl.reloadData();
showWarning("warning.taxonomy.level.deleted");
} else {
toolsCtrl = new ToolsController(ureq, getWindowControl(), row, level);
listenTo(toolsCtrl);
toolsCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), toolsCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
listenTo(toolsCalloutCtrl);
toolsCalloutCtrl.activate();
}
}
Aggregations