grid.new Cell(formatter.getElement(row, column), column);
}
}
initWidget(grid);
setStyleName(Styles.CALENDAR_VIEW);
ColumnFormatter columnFormatter = grid.getColumnFormatter();
for (int i = 0; i < 7; i++) {
int shift = CalendarModel.getLocaleStartingDayOfWeek ();
int dayIdx = i + shift < CalendarModel.DAYS_IN_WEEK ? i + shift : i + shift - CalendarModel.DAYS_IN_WEEK;
if (getModel().isWeekend(dayIdx)) {
columnFormatter.addStyleName(i, Styles.WEEKEND);
}
}
}