}
SheduleIndividualLocal newSil = new SheduleIndividualLocal(coll);
SheduleProrumbleLocal newSpl = new SheduleProrumbleLocal(coll);
WeekIndex wi = new WeekIndex();
if (wi.getIndex() < MINWEEKINDEX) {
wi = new WeekIndex(MINWEEKINDEX);
}
switchToWeek(wi, newSil, newSpl);
// get DELEGATE
sil = newSil;
sil.addContentStateListener(getContainer());
// get DELEGATE
spl = newSpl;
spl.addContentStateListener(getContainer());
for (int i = 0; i < dayUI.length; i++) {
dayUI[i].comboBox.setEnabled(true);
}
//update current week index panel
WeekIndex todayWeekIndex = new WeekIndex();
Integer week = Math.abs(todayWeekIndex.getIndex() % sil.getWeekCount()) + 1;
currentWeekTextfield.setText(week.toString());
weeks.doLayout();
currentWeekPanel.doLayout();
fireContainerEventStateChanged();