Search in sources :

Example 6 with CalendarGUISettingEvent

use of org.olat.commons.calendar.ui.events.CalendarGUISettingEvent in project openolat by klemens.

the class CalendarPersonalConfigurationController method doToogleVisibility.

private void doToogleVisibility(UserRequest ureq, CalendarPersonalConfigurationRow row) {
    KalendarRenderWrapper calendarWrapper = row.getWrapper();
    calendarWrapper.setVisible(!calendarWrapper.isVisible());
    calendarManager.saveCalendarConfigForIdentity(calendarWrapper, getIdentity());
    enableDisableIcons(row.getVisibleLink(), calendarWrapper.isVisible());
    fireEvent(ureq, new CalendarGUISettingEvent(calendarWrapper));
}
Also used : CalendarGUISettingEvent(org.olat.commons.calendar.ui.events.CalendarGUISettingEvent) KalendarRenderWrapper(org.olat.commons.calendar.ui.components.KalendarRenderWrapper)

Aggregations

KalendarRenderWrapper (org.olat.commons.calendar.ui.components.KalendarRenderWrapper)6 CalendarGUISettingEvent (org.olat.commons.calendar.ui.events.CalendarGUISettingEvent)6 Kalendar (org.olat.commons.calendar.model.Kalendar)2 KalendarEvent (org.olat.commons.calendar.model.KalendarEvent)2 CalendarGUIEditEvent (org.olat.commons.calendar.ui.events.CalendarGUIEditEvent)2 CalendarGUIImportEvent (org.olat.commons.calendar.ui.events.CalendarGUIImportEvent)2 CalendarGUIModifiedEvent (org.olat.commons.calendar.ui.events.CalendarGUIModifiedEvent)2 CalendarGUIPrintEvent (org.olat.commons.calendar.ui.events.CalendarGUIPrintEvent)2 CalendarGUIRemoveEvent (org.olat.commons.calendar.ui.events.CalendarGUIRemoveEvent)2 CalendarGUIUpdateEvent (org.olat.commons.calendar.ui.events.CalendarGUIUpdateEvent)2 SubscriptionContext (org.olat.core.commons.services.notifications.SubscriptionContext)2