Handle a change in the weeks of month.
@param week the changed weeks checkbox's internal value.
@param value the new value of the changed checkbox.
2893
public void weeksChange(String week, Boolean value) {

        final WeekOfMonth changedWeek = WeekOfMonth.valueOf(week);
        boolean newValue = (null != value) && value.booleanValue();
        boolean currentValue = m_model.getWeeksOfMonth().contains(changedWeek);
        if (newValue != currentValue) {
            if (newValue) {
                setPatternScheme(true, false);
                m_model.addWeekOfMonth(changedWeek);
                onValueChange();
            } else {
                removeExceptionsOnChange(new Command() {

                    public void execute() {

                        m_model.removeWeekOfMonth(changedWeek);
                        onValueChange();
                    }
                });
            }
        }
    }
634896
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);
            }
        }

    }
141992
public final void setWeeksOfMonth(SortedSet<WeekOfMonth> weeksOfMonth) {

        m_weeksOfMonth.clear();
        if (null != weeksOfMonth) {
            m_weeksOfMonth.addAll(weeksOfMonth);
        }

    }
970731
public void setWeekDateTimeFormatter(DateTimeFormatter formatter) {
        if (getFormatterMap().get(ViewType.WEEK_VIEW) == null) {
            getFormatterMap().put(ViewType.WEEK_VIEW, formatter);
        } else {
            getFormatterMap().replace(ViewType.WEEK_VIEW, formatter);
        }
    }
201937
public void handleValueChange(int valueIndex, String value) {

        changeEntityValue(value, valueIndex);
        CmsUndoRedoHandler handler = CmsUndoRedoHandler.getInstance();
        if (handler.isIntitalized()) {
            handler.addChange(m_entity.getId(), m_attributeName, valueIndex, ChangeType.value);
        }
    }
43995
public void setMonth(String monthStr) {

        final Month month = Month.valueOf(monthStr);
        if ((m_model.getMonth() == null) || !m_model.getMonth().equals(monthStr)) {
            removeExceptionsOnChange(new Command() {

                public void execute() {

                    m_model.setMonth(month);
                    onValueChange();

                }
            });
        }
    }
1010946
@Override
    public void setValue(String value, boolean fireEvents) {
        int newIdx = value == null ? 0 : value.equals(getValue1()) ? 0
                                       : value.equals(getValue2()) ? 1 : 0;
        int oldIdx = getSelectedIndex();
        String oldVal = fireEvents ? getValue() : null;
        internVal = value;
        if (oldIdx != newIdx) {
            inSetValue = true;
            try {
                setSelectedIndex(newIdx);
            } finally {
                inSetValue = false;
            }
        }

        if (fireEvents) {
            boolean eq = internVal == oldVal || internVal != null && internVal.equals(oldVal);
            if (!eq) ValueChangeEvent.fire(this, internVal);
        }
    }
1183281
void formatWeekOfMonth(StringBuilder b, ZonedDateTime d, int width) {
    int w = d.get(ChronoField.ALIGNED_WEEK_OF_MONTH);
    if (width == 1) {
      b.append(w);
    }
  }
675017
@Override
	public void setValue(StringValue value) {
		checkNotNull(value);
		setValue(value.value, 0, value.len);
	}
787563
private void setWeekData(String region) {
        if (region == null) {
            region = "001";
        }
        WeekData wdata = WEEK_DATA_CACHE.getInstance(region, region);
        setWeekData(wdata);
    }
739473
public void setMonth(int newMonth) {
		if (newMonth < 0 || newMonth == Integer.MIN_VALUE) {
			setMonth(0, true);
		} else if (newMonth > 11) {
			setMonth(11, true);
		} else {
			setMonth(newMonth, true);
		}
	}
620147
public void update(final float value) {
    if (Float.isNaN(value)) { return; }
    if (isEmpty()) {
      minValue_ = value;
      maxValue_ = value;
    } else {
      if (value < minValue_) { minValue_ = value; }
      if (value > maxValue_) { maxValue_ = value; }
    }
    if (levels_[0] == 0) {
      compressWhileUpdating();
    }
    n_++;
    isLevelZeroSorted_ = false;
    final int nextPos = levels_[0] - 1;
    assert levels_[0] >= 0;
    levels_[0] = nextPos;
    items_[nextPos] = value;
  }
1264373
protected void setValue(String value, boolean fireEvent) {

        m_textbox.setValue(value);
        updateUploadTarget(CmsResource.getFolderPath(value));
        updateResourceInfo(value);
        m_previousValue = value;
        if (fireEvent) {
            fireChange(true);
        }
    }
104313
def on_value_change(self, picker, old, new):
        
        d = self.declaration
        with self.widget.setValue.suppressed():
            d.value = new
624890
private WeekDay readWeekDay(JSONValue val) throws IllegalArgumentException {

        String str = readOptionalString(val);
        if (null != str) {
            return WeekDay.valueOf(str);
        }
        throw new IllegalArgumentException();
    }
281498
@Override
    public void setValue(Object value) {
        if (value instanceof Date || value == null) {
            this.text = null;
            super.setValue(value);
        } else {
            throw new IllegalArgumentException("setValue() expected java.util.Date value, got " + value.getClass().getName());
        }
    }
383597
protected void valueChanged()
	{
		String newValue = fViewer.getDocument().get();
		if (!newValue.equals(fOldValue))
		{
			fOldValue = newValue;

		}
		refreshValidState();
	}