com.vaadin.client.

Class WidgetUtil.ErrorUtil

  • Enclosing class:

    WidgetUtil

    public static class WidgetUtil.ErrorUtil
    extends Object

    Utility methods for displaying error message on components.

    Since:

    8.2

    • Constructor Detail

      • ErrorUtil

        public ErrorUtil()
    • Method Detail

      • setErrorLevelStyle

        public static void setErrorLevelStyle​(com.google.gwt.dom.client.Element element,
                                              String prefix,
                                              ErrorLevel errorLevel)

        Sets the error level style name for the given element and removes all previously applied error level style names. The style name has the prefix-errorLevel format.

        Parameters:

        element - element to apply the style name to

        prefix - part of the style name before the error level string

        errorLevel - error level for which the style will be applied

      • createErrorIndicatorElement

        public static com.google.gwt.dom.client.Element createErrorIndicatorElement()

        Creates an element to use by widgets as an error indicator.

        Returns:

        the error indicator element