Sets the error message as tooltip for the matching control.

@param below     The control needed for positioning the tooltip.
@param reference The control which gets the tooltip.
487876
@Override
  protected void toggleTooltip(Node reference, Control below) {
    String fieldTooltip = field.getTooltip();

    if ((reference.isFocused() || reference.isHover())
        && (!fieldTooltip.equals("") || field.getErrorMessages().size() > 0)) {
      tooltip.setText((!fieldTooltip.equals("") ? fieldTooltip + "\n" : "")
          + String.join("\n", field.getErrorMessages()));

      if (tooltip.isShowing()) {
        return;
      }

      Point2D p = below.localToScene(0.0, 0.0);

      tooltip.show(
          reference.getScene().getWindow(),
          p.getX() + reference.getScene().getX() + reference.getScene().getWindow().getX(),
          p.getY() + reference.getScene().getY() + reference.getScene().getWindow().getY()
              + below.getHeight() + 5
      );
    } else {
      tooltip.hide();
    }
  }
1352492
public void setReferenceValue(final double VALUE) {
        if (null == referenceValue) {
            _referenceValue = VALUE;
            fireTileEvent(REDRAW_EVENT);
        } else {
            referenceValue.set(VALUE);
        }
    }
273108
public void setErrorMessage(String msg) {
        if (msg != null && msg.trim().length() > 0) {
            errorMessage = msg;
        }
    }
1164221
public void setReferences(IReferences references) {
		Object contextInfo = references.getOneOptional(new Descriptor("pip-services3", "context-info", "*", "*", "1.0"));
		if (contextInfo instanceof ContextInfo && contextInfo != null && _source == null)
			_source = ((ContextInfo) contextInfo).getName();
	}
313832
@SuppressWarnings("unused")
    public void setError(CharSequence error, Drawable icon) {
        mPhoneEdit.setError(error, icon);
    }
598002
protected void error(String msg) {
		System.err.println(CSLToolContext.current().getToolName() + ": " + msg);
	}
1188010
public synchronized void setJobAsFailed(String errorMessage) {
    mJobInfo.setStatus(Status.FAILED);
    mJobInfo.setErrorMessage(errorMessage);
  }
263289
@Override
	public void error(final String code) {
		WMessages instance = getWMessageInstance();

		if (instance != null) {
			instance.error(code);
		}
	}
478514
protected void setSsl(ServiceReference<Object> reference) {
        sslConfigurationRef.setReference(reference);
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(this, tc, "sslRef set to " + reference.getProperty(CONFIG_DISPLAY_ID));
        }
    }
386688
private void showErrorText(@Nullable final CharSequence errorText) {
        if (textInputLayout != null) {
            if (TextUtils.isEmpty(errorText)) {
                textInputLayout.setError(null);
                textInputLayout.setErrorEnabled(false);
                adaptHelperTextColor();
            } else {
                textInputLayout.setHelperText(null);
                textInputLayout.setHelperTextEnabled(false);
                textInputLayout.setError(errorText);
                textInputLayout.setErrorEnabled(true);
            }
        }
    }
1049879
public void setWarningMessage(String message) {

        m_messageText.setInnerText(message);
        addStyleName(formCss().hasWarning());
        m_hasError = true;
    }
222108
public void setReference(final Reference reference) {
        this.reference = reference;

        if (reference instanceof PlayerReference) {
            setPlayer((PlayerReference) reference);
        }
    }
910141
@com.fasterxml.jackson.annotation.JsonProperty("ErrorDetails")
    public void setErrorDetails(java.util.Collection<ErrorDetail> errorDetails) {
        if (errorDetails == null) {
            this.errorDetails = null;
            return;
        }

        this.errorDetails = new java.util.ArrayList<ErrorDetail>(errorDetails);
    }
652679
public static <T> T checkNotEmpty(T reference,
                                       String errorMessageTemplate,
                                       Object... errorMessageArgs) {
        checkNotNull(reference, errorMessageTemplate, errorMessageArgs);
        checkArgument(not(Decisions.isEmpty()).apply(reference), errorMessageTemplate, errorMessageArgs);
        return reference;
    }
865138
@Reference(name = "contextService", service = WSContextService.class)
    protected void setContextService(ServiceReference<WSContextService> ref) {
        contextServiceRef.setReference(ref);
    }
1299210
private void insertValueAfterReference(CmsEntity value, CmsAttributeValueView reference) {

        int valueIndex = -1;
        if (reference.getElement().getNextSiblingElement() == null) {
            m_entity.addAttributeValue(m_attributeName, value);
        } else {
            valueIndex = reference.getValueIndex() + 1;
            m_entity.insertAttributeValue(m_attributeName, value, valueIndex);
        }
        CmsAttributeValueView valueWidget = reference;
        if (reference.hasValue()) {
            valueWidget = new CmsAttributeValueView(
                this,
                m_widgetService.getAttributeLabel(m_attributeName),
                m_widgetService.getAttributeHelp(m_attributeName));
            CmsRenderer.setAttributeChoice(m_widgetService, valueWidget, getAttributeType());
            if (valueIndex == -1) {
                ((FlowPanel)reference.getParent()).add(valueWidget);
                m_attributeValueViews.remove(valueWidget);
                m_attributeValueViews.add(valueWidget);
            } else {
                ((FlowPanel)reference.getParent()).insert(valueWidget, valueIndex);
                m_attributeValueViews.remove(valueWidget);
                m_attributeValueViews.add(valueIndex, valueWidget);
                m_widgetService.addChangedOrderPath(getSimplePath(-1));
            }

        }
        valueIndex = valueWidget.getValueIndex();
        insertHandlers(valueIndex);
        I_CmsEntityRenderer renderer = m_widgetService.getRendererForAttribute(m_attributeName, getAttributeType());
        valueWidget.setValueEntity(renderer, value);
    }
967487
protected void addError(String errorKey, String errorMessage) {
		invalid = true;
		controller.setAttr(errorKey, errorMessage);
		if (shortCircuit) {
			throw new ValidateException();
		}
	}