use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
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 OpenOLAT.
the class WeeklyCalendarController method doOpenAggregatedFeedUrl.
private void doOpenAggregatedFeedUrl(UserRequest ureq, String targetDomId) {
String callerUrl = getCallerCalendarUrl();
String aggregatedUrl = getAggregatedCalendarUrl();
feedUrlCtrl = new CalendarAggregatedURLController(ureq, getWindowControl(), callerUrl, aggregatedUrl);
listenTo(feedUrlCtrl);
eventCalloutCtr = new CloseableCalloutWindowController(ureq, getWindowControl(), feedUrlCtrl.getInitialComponent(), targetDomId, translate("print"), true, "o_cal_event_callout");
listenTo(eventCalloutCtr);
eventCalloutCtr.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class WeeklyCalendarController method doPrintEventCallout.
private void doPrintEventCallout(UserRequest ureq, String targetDomId) {
if (eventCalloutCtr != null && printCtrl != null)
return;
removeAsListenerAndDispose(eventCalloutCtr);
removeAsListenerAndDispose(printCtrl);
printCtrl = new CalendarPrintController(ureq, getWindowControl());
listenTo(printCtrl);
Component eventCmp = printCtrl.getInitialComponent();
eventCalloutCtr = new CloseableCalloutWindowController(ureq, getWindowControl(), eventCmp, targetDomId, translate("print"), true, "o_cal_event_callout");
listenTo(eventCalloutCtr);
eventCalloutCtr.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class GTAParticipantController method doChangeBusinessGroup.
private void doChangeBusinessGroup(UserRequest ureq) {
removeAsListenerAndDispose(businessGroupChooserCtrl);
removeAsListenerAndDispose(chooserCalloutCtrl);
businessGroupChooserCtrl = new BusinessGroupChooserController(ureq, getWindowControl(), myGroups);
listenTo(businessGroupChooserCtrl);
chooserCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), businessGroupChooserCtrl.getInitialComponent(), changeGroupLink, "", true, "");
listenTo(chooserCalloutCtrl);
chooserCalloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class HighScoreRunController method event.
@Override
public void event(UserRequest ureq, Component source, Event event) {
if (source == links[0] || source == links[1] || source == links[2]) {
List<String> persons = new ArrayList<>();
Link link;
if (source == links[0]) {
link = links[0];
buildMemberList(persons, 0);
} else if (source == links[1]) {
link = links[1];
buildMemberList(persons, 1);
} else {
link = links[2];
buildMemberList(persons, 2);
}
if (calloutCtr == null) {
VelocityContainer podiumcalloutVC = createVelocityContainer("podiumcallout");
podiumcalloutVC.contextPut("persons", persons);
calloutCtr = new CloseableCalloutWindowController(ureq, getWindowControl(), podiumcalloutVC, link, "This is a title in a callout window", false, null);
calloutCtr.activate();
listenTo(calloutCtr);
} else {
removeAsListenerAndDispose(calloutCtr);
calloutCtr = null;
}
} else if (source == this.flc.getFormItemComponent()) {
if ("show".equals(event.getCommand())) {
doUpdateShowConfig(ureq, true);
} else if ("hide".equals(event.getCommand())) {
doUpdateShowConfig(ureq, false);
}
}
}
Aggregations