Creates the a new error label.<p>

@return a label with the appropriate style for  an error label
191372
private static Label createErrorLabel() {

        Label label = new Label();
        label.addStyleName(I_CmsLayoutBundle.INSTANCE.generalCss().cornerAll());
        label.addStyleName(I_CmsInputLayoutBundle.INSTANCE.inputCss().error());
        return label;
    }
588254
public MBeanInfo createMBeanInfo() {
        if (type != null) {
            return new MBeanInfo(type.getName(), description, getAttributeInfo(), getConstructorInfo(), getOperationInfo(), getNotificationInfo());
        } else {
            return new MBeanInfo(name, description, getAttributeInfo(), getConstructorInfo(), getOperationInfo(), getNotificationInfo());
        }
    }
456116
public static Label buildLabel(final Locale locale, final String label) {
        return addLabel(Label.newBuilder(), locale.getLanguage(), label).build();
    }
14608
public Label buildLabel() {
        final Label label = createLabel();
        label.setImmediate(false);
        label.setWidth("-1px");
        label.setHeight("-1px");
        if (StringUtils.hasText(caption)) {
            label.setCaption(caption);
        }

        return label;
    }
1301688
private TextField buildField(String label, CmsAccountInfo info) {

        TextField field = (TextField)m_binder.buildAndBind(label, info);
        field.setConverter(new CmsNullToEmptyConverter());
        field.setWidth("100%");
        boolean editable = (m_editLevel == EditLevel.all)
            || (info.isEditable() && (m_editLevel == EditLevel.configured));
        field.setEnabled(editable);
        if (editable) {
            field.addValidator(new FieldValidator(info.getField()));
        }
        field.setImmediate(true);
        return field;
    }
1373642
@NonNull
  public RequestCreator error(@NonNull Drawable errorDrawable) {
    if (errorDrawable == null) {
      throw new IllegalArgumentException("Error image may not be null.");
    }
    if (errorResId != 0) {
      throw new IllegalStateException("Error image already set.");
    }
    this.errorDrawable = errorDrawable;
    return this;
  }
38601
public Label htmlLabel(String html) {

        Label label = new Label();
        label.setContentMode(ContentMode.HTML);
        label.setValue(html);
        return label;

    }
728097
public ValidationException getException() {
        StringBuilder exceptionMessage = new StringBuilder();
        for (Problem problem : problems) {
            exceptionMessage.append(String.format("\n%s: %s", problem.getContext().getPath(), problem.getMessage()));
        }
        return new ValidationException(exceptionMessage.toString());
    }
1362568
public String getErrorMessage() {
        final Object result = getStateHelper().eval(PropertyKeys.errorMessage);
        if (result == null) {
            return null;
        }
        return result.toString();
    }
1264223
@Nullable
    protected View getCommentLabel() {
        final String commentPrompt = dialogConfiguration.commentPrompt();
        if (commentPrompt != null) {
            final TextView labelView = new TextView(this);
            labelView.setText(commentPrompt);
            return labelView;
        }
        return null;
    }
1021399
public static Label[] newLabels(int cnt) {
		Label[] r = new Label[cnt];
		for (int i = 0; i < cnt; i++)
			r[i] = new Label();
		return r;
	}
804064
public Parser<T> label(final String name) {
    return new Parser<T>() {
      @Override public Parser<T> label(String overrideName) {
        return Parser.this.label(overrideName);
      }
      @Override boolean apply(ParseContext ctxt) {
        return ctxt.applyNewNode(Parser.this, name);
      }
      @Override public String toString() {
        return name;
      }
    };
  }
38064
public void setErrorStyle(java.lang.String errorStyle) {
        getStateHelper().put(PropertyKeys.errorStyle, errorStyle);
    }
12031
public static Label newActionLabel (String text, String style, ClickHandler onClick)
    {
        return makeActionLabel(newLabel(text, style), onClick);
    }
1117691
public ErrorPageType<WebFragmentType<T>> getOrCreateErrorPage()
   {
      List<Node> nodeList = childNode.get("error-page");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new ErrorPageTypeImpl<WebFragmentType<T>>(this, "error-page", childNode, nodeList.get(0));
      }
      return createErrorPage();
   }
337322
public String getLabel() {
            String label = getProperty(labelProperty);
            label = label == null ? node.getLabel() : label;

            if (label == null) {
                label = getDefaultInstanceName();
                setProperty(labelProperty, label);
            }

            return label;
        }
1311325
private String createError(String errorMsg) {

        StringBuffer result = new StringBuffer();

        result.append("ERR");
        result.append(errorMsg);

        return result.toString();
    }