We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.client.
Class WidgetUtil.ErrorUtil
- java.lang.Object
-
- com.vaadin.client.WidgetUtil.ErrorUtil
-
Enclosing class:
public static class WidgetUtil.ErrorUtil extends Object
Utility methods for displaying error message on components.
Since:
8.2
-
-
Constructor Summary
Constructors Constructor Description ErrorUtil()
-
Method Summary
All Methods Modifier and Type Method Description static com.google.gwt.dom.client.Element
createErrorIndicatorElement()
Creates an element to use by widgets as an error indicator.
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.
-
-
-
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 toprefix
- part of the style name before the error level stringerrorLevel
- 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
-
-