code: private void addDateWithCheckState(Date date, boolean checkState) {
  
          addCheckBox(date, checkState);
          if (!m_dates.contains(date)) {
              m_dates.add(date);
              fireValueChange();
          }
      }
docs: Add a date with a certain check state.
  @param date the date to add.
  @param checkState the check state.