calendar.setMarkupId("calendar");
add(calendar);
setConfig();
// Time sheets
EventSource eventSource = new EventSource();
timesheetEventsProvider = new TimesheetEventsProvider(timesheetDao, filter);
eventSource.setEventsProvider(timesheetEventsProvider);
eventSource.setEditable(true);
config.add(eventSource);
// Holidays:
eventSource = new EventSource();
holidayEventsProvider = new HolidayEventsProvider();
eventSource.setEventsProvider(holidayEventsProvider);
eventSource.setEditable(false);
config.add(eventSource);
// HR planning:
eventSource = new EventSource();
hrPlanningEventsProvider = new HRPlanningEventsProvider(filter, hrPlanningDao);
eventSource.setEventsProvider(hrPlanningEventsProvider);
eventSource.setEditable(false);
eventSource.setBackgroundColor("#0080FF");
eventSource.setColor("#0080FF");
config.add(eventSource);
// Birthdays:
eventSource = new EventSource();
birthdayEventsProvider = new BirthdayEventsProvider(filter, addressDao,
accessChecker.isLoggedInUserMemberOfGroup(ProjectForgeGroup.FINANCE_GROUP) == false);
eventSource.setEventsProvider(birthdayEventsProvider);
eventSource.setEditable(false);
// The default color of birthdays (not favorites), should be gray, see BirthdayEventsProvider for colors of birthdays of favorites.
eventSource.setBackgroundColor("#EEEEEE");
eventSource.setColor("#EEEEEE");
eventSource.setTextColor("#222222");
config.add(eventSource);
onRegisterEventSourceHook(config, filter);
}