public void resetShiftListPanel() {
if (shiftDateListPanel != null) {
remove(shiftDateListPanel);
}
WeekendDefinition weekendDefinition = (employee == null) ? WeekendDefinition.SATURDAY_SUNDAY
: employee.getContract().getWeekendDefinition();
shiftDateListPanel = new JPanel(new GridLayout(1, 0));
shiftDatePanelMap = new LinkedHashMap<ShiftDate, JPanel>(shiftDateList.size());
for (ShiftDate shiftDate : shiftDateList) {
JPanel shiftDatePanel = new JPanel(new GridLayout(1, 0));
if (weekendDefinition.isWeekend(shiftDate.getDayOfWeek())) {
shiftDatePanel.setBackground(TangoColors.ALUMINIUM_2);
}
shiftDatePanel.setBorder(BorderFactory.createCompoundBorder(
BorderFactory.createLineBorder(TangoColors.ALUMINIUM_6),
BorderFactory.createEmptyBorder(2, 2, 2, 2)));