use of org.olat.commons.calendar.ui.WeeklyCalendarController in project openolat by klemens.
the class GroupInfoMainController method getCalendarController.
private WeeklyCalendarController getCalendarController(UserRequest ureq) {
if (calendarController == null) {
OLATResourceable ores = OresHelper.createOLATResourceableInstance("Calendar", 0l);
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
List<KalendarRenderWrapper> calendarWrappers = new ArrayList<>(2);
KalendarRenderWrapper groupCalendar = calendarManager.getGroupCalendar(businessGroup);
groupCalendar.setPrivateEventsVisible(false);
calendarWrappers.add(groupCalendar);
calendarController = new WeeklyCalendarController(ureq, bwControl, calendarWrappers, WeeklyCalendarController.CALLER_COLLAB, businessGroup, false);
listenTo(calendarController);
}
layoutController.setCol3(calendarController.getInitialComponent());
addToHistory(ureq, calendarController);
return calendarController;
}
Aggregations