// Add a checkbox for each day of the week
String[] daysOfWeek = constants.cwCheckBoxDays();
for (int i = 0; i < daysOfWeek.length; i++) {
String day = daysOfWeek[i];
CheckBox checkBox = new CheckBox(day);
checkBox.ensureDebugId("cwCheckBox-" + day);
// Disable the weekends
if (i >= 5) {
checkBox.setEnabled(false);
}