int colorIndex = shift.getShiftType().getIndex() % TangoColors.SEQUENCE_1.length;
shiftAssignmentButton.setBackground(TangoColors.SEQUENCE_1[colorIndex]);
shiftAssignmentButton.setToolTipText((employee == null ? "Unassigned" : employee.getLabel())
+ " on " + shift.getLabel());
shiftPanel.add(shiftAssignmentButton);
shiftPanel.repaint();
shiftAssignmentButtonMap.put(shiftAssignment, shiftAssignmentButton);
}
public void removeShiftAssignment(ShiftAssignment shiftAssignment) {
JPanel shiftPanel = shiftPanelMap.get(shiftAssignment.getShift());