// Find the slot for the calendar widget.
//
RootPanel slot = RootPanel.get("calendar");
if (slot != null) {
SchoolCalendarWidget calendar = new SchoolCalendarWidget(15);
slot.add(calendar);
// Find the slot for the days filter widget.
//
slot = RootPanel.get("days");
if (slot != null) {
DayFilterWidget filter = new DayFilterWidget(calendar);
slot.add(filter);
}
}