Search in sources :

Example 61 with CloseableCalloutWindowController

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

Example 62 with CloseableCalloutWindowController

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

Example 63 with CloseableCalloutWindowController

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

Example 64 with CloseableCalloutWindowController

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

Example 65 with CloseableCalloutWindowController

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

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