code: private CmsCheckBox generateCheckBox(Date date, boolean checkState) {
  
          CmsCheckBox cb = new CmsCheckBox();
          cb.setText(m_dateFormat.format(date));
          cb.setChecked(checkState);
          cb.getElement().setPropertyObject("date", date);
          return cb;
  
      }
docs: Generate a new check box with the provided date and check state.
  @param date date for the check box.
  @param checkState the initial check state.
  @return the created check box