Package com.vaadin.client
Class WidgetUtil.ErrorUtil
- java.lang.Object
-
- com.vaadin.client.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 Summary
Constructors Constructor Description ErrorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 theprefix-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
-
-