code: public void setDatesWithCheckState(Collection<CmsPair<Date, Boolean>> datesWithCheckInfo) {
  
          SortedSet<Date> dates = new TreeSet<>();
          m_checkBoxes.clear();
          for (CmsPair<Date, Boolean> p : datesWithCheckInfo) {
              addCheckBox(p.getFirst(), p.getSecond().booleanValue());
              dates.add(p.getFirst());
          }
          reInitLayoutElements();
          setDatesInternal(dates);
      }
docs: Set dates with the provided check states.
  @param datesWithCheckInfo the dates to set, accompanied with the check state to set.