Updates the content of the internal textarea.<p>

@param value the new content
509894
private void updateTextArea(String value) {

        String oldValue = m_textArea.getValue();
        if (!oldValue.equals(value)) {
            int l1 = oldValue.split("\n").length;
            int l2 = value.split("\n").length;
            m_textArea.setValue(value);
            if (l1 != l2) {
                scheduleResize();
            }
        }
    }
955982
protected void updateContentSize() {

        // The scrolling should be done by the CmsScrollPanel and not by the text area,
        // so we try to make the text area itself as big as its content here.

        int offsetHeight = m_textArea.getOffsetHeight();
        int origRows = m_textArea.getVisibleLines();
        // sanity check: don't do anything, if the measured height doesn't make any sense, e.g. if element is not attached
        if (offsetHeight > 5) {
            int scrollPosition = m_textAreaContainer.getVerticalScrollPosition();
            Element textareaElem = m_textArea.getElement();
            int rows = Math.max(0, m_defaultRows - 1); // we add 1 to it later, and the sum should be at least 1 and at least the default row number
            int scrollHeight;
            int prevOffsetHeight = -1;
            do {
                rows += 1;
                m_textArea.setVisibleLines(rows);
                scrollHeight = textareaElem.getScrollHeight();
                offsetHeight = textareaElem.getOffsetHeight();
                if (offsetHeight <= prevOffsetHeight) {
                    // Increasing the number of rows should normally increase the offset height.
                    // If it doesn't, e.g. because of CSS rules limiting the text area height, there is no point in continuing with the loop
                    break;
                }
                prevOffsetHeight = offsetHeight;
            } while (offsetHeight < scrollHeight);
            m_textAreaContainer.setVerticalScrollPosition(scrollPosition);
            if (origRows != rows) {
                m_textAreaContainer.onResizeDescendant();
            }
        }
    }
902987
public void setSite(String value) {

        if ((value != null) && !value.equals(m_currentSite)) {
            m_currentSite = value;
            m_treeType = new HashMap<String, String>();
        }
    }
661587
public void setNiceName(String value) {

        checkFrozen();
        if (CmsStringUtil.isEmptyOrWhitespaceOnly(value)) {
            m_niceName = getName();
        } else {
            m_niceName = value.trim();
        }
    }
399247
public void addValue(String value)
    {
        if(this.values == null)
            this.values = new ArrayList<String>();
        this.values.add(value);
    }
1366625
public void setFormValue(Object value) {

        if (value == null) {
            value = "";
        }

        if (value instanceof String) {
            String strValue = (String)value;
            if (strValue.equals("")) {
                // interpret empty string as "no radio button selected"
                reset();
            } else {
                CmsRadioButton button = m_radioButtons.get(value);
                m_group.selectButton(button);
            }
        }
    }
1220372
public void add(String name, Object value) {
		if (value != null) {
			this.content.put(name, value);
		}
	}
13231
public void setValue(Object value) {
        if (logger.isDebugEnabled()) {
            logger.debug("Setting buffered value to '" + value + "'");
        }
        final Object oldValue = getValue();
        this.bufferedValue = value;
        updateBuffering();
        fireValueChange(oldValue, bufferedValue);
    }
818148
public final void addValue(@NonNull final String value) {
        Condition.INSTANCE.ensureNotNull(value, "The value may not be null");

        if (this.values != null) {
            if (this.values.add(value)) {
                if (persistSet(this.values)) {
                    notifyChanged();
                }
            }
        } else {
            Set<String> newValues = new HashSet<>();
            newValues.add(value);
            setValues(newValues);
        }
    }
327944
public void updateIf (T value)
    {
        if (value == null || !value.equals(_value)) {
            update(value);
        }
    }
1355612
@Override
    protected void applyValueUpdate(final T value) throws NotAvailableException {

        if(value == null) {
            throw new NotAvailableException("Value");
        }

        synchronized (VALUE_LOCK) {
            this.value = value;
            this.valueFuture.complete(value);
            VALUE_LOCK.notifyAll();
        }
    }
48019
private void addElement(String value) {
        if (null == value) {
            return;
        }
        this.num_items++;
        this.genericValues.add(value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "addElement: " + value + " num: " + this.num_items);
        }
    }
500511
public void setPassword(String value) {

        try {
            OpenCms.getPasswordHandler().validatePassword(value);
        } catch (CmsSecurityException e) {
            throw new CmsIllegalArgumentException(e.getMessageContainer());
        }
        m_password = value;
    }
160558
function () {
        
        var n = this.c[2].textContent;

        if(!isNaN( n )){ 
            this.value = this.numValue( n ); 
            this.update(true); 
        }

        else this.c[2].textContent = this.value;

    }
689205
@NonNull public CMARichText setValue(@NonNull CharSequence value) {
    if (value == null) {
      throw new NullPointerException("value is null.");
    }
    this.value = value;
    return this;
  }
1208975
public void add(Value value) {
	if (values == null) values = new LinkedList();
	values.add(value);
    }
288696
public void setContent(final WComponent content) {
		WComponent oldContent = getContent();

		if (oldContent != null) {
			remove(oldContent);
		}

		if (content != null) {
			add(content);
		}
	}