code: private void setWeekDays(SortedSet<WeekDay> weekDays) {
  
          List<CmsCheckBox> checked = new ArrayList<CmsCheckBox>();
  
          for (WeekDay day : weekDays) {
              for (CmsCheckBox box : m_checkboxes) {
                  if (box.getInternalValue().equals(day.toString())) {
                      checked.add(box);
                  }
              }
          }
          for (CmsCheckBox box : m_checkboxes) {
              if (checked.contains(box)) {
                  box.setChecked(true);
              } else {
                  box.setChecked(false);
              }
          }
  
      }
docs: Selects all days.<p>
  @param weekDays List of selected days