code: public void setDates(SortedSet<Date> dates, boolean checked) {
  
          m_checkBoxes.clear();
          for (Date date : dates) {
              CmsCheckBox cb = generateCheckBox(date, checked);
              m_checkBoxes.add(cb);
          }
          reInitLayoutElements();
          setDatesInternal(dates);
      }
docs: Sets all dates in the list.
  @param dates the dates to set
  @param checked flag, indicating if all should be checked or unchecked.