Search in sources :

Example 6 with CloseableCalloutWindowController

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();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 7 with CloseableCalloutWindowController

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();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 8 with CloseableCalloutWindowController

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();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) Component(org.olat.core.gui.components.Component)

Example 9 with CloseableCalloutWindowController

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();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 10 with CloseableCalloutWindowController

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);
        }
    }
}
Also used : ArrayList(java.util.ArrayList) CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) Link(org.olat.core.gui.components.link.Link) VelocityContainer(org.olat.core.gui.components.velocity.VelocityContainer)

Aggregations

CloseableCalloutWindowController (org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)122 VelocityContainer (org.olat.core.gui.components.velocity.VelocityContainer)12 FormLink (org.olat.core.gui.components.form.flexible.elements.FormLink)8 ArrayList (java.util.ArrayList)6 List (java.util.List)6 Component (org.olat.core.gui.components.Component)6 Link (org.olat.core.gui.components.link.Link)6 Identity (org.olat.core.id.Identity)6 RepositoryEntry (org.olat.repository.RepositoryEntry)6 RepositoryEntrySmallDetailsController (org.olat.repository.ui.author.RepositoryEntrySmallDetailsController)6 UserSearchController (org.olat.admin.user.UserSearchController)4 CalloutSettings (org.olat.core.gui.control.generic.closablewrapper.CalloutSettings)4 NamingException (javax.naming.NamingException)2 LdapContext (javax.naming.ldap.LdapContext)2 KalendarRenderWrapper (org.olat.commons.calendar.ui.components.KalendarRenderWrapper)2 UserRequest (org.olat.core.gui.UserRequest)2 Choice (org.olat.core.gui.components.choice.Choice)2 FormToggle (org.olat.core.gui.components.form.flexible.elements.FormToggle)2 SingleSelection (org.olat.core.gui.components.form.flexible.elements.SingleSelection)2 JSAndCSSComponent (org.olat.core.gui.components.htmlheader.jscss.JSAndCSSComponent)2