Class WidgetUtil.ErrorUtil

  • Enclosing class:
    WidgetUtil

    public static class WidgetUtil.ErrorUtil
    extends Object
    Utility methods for displaying error message on components.
    Since:
    7.7.11
    • 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