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.flow.data.binder.
Interface HasValidator<V>
-
Type Parameters:
V
- the value typeAll Superinterfaces:
public interface HasValidator<V> extends Serializable
A generic interface for field components and other user interface objects that have a user-editable value that should be validated.
Since:
1.0.
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method and Description default Validator<V>
getDefaultValidator()
Returns a validator that checks the state of the Value.
-
-
-
Method Detail
-
getDefaultValidator
default Validator<V> getDefaultValidator()
Returns a validator that checks the state of the Value. This should be overridden for components with internal value conversion or validation, e.g. when the user is providing a string that has to be parsed into a date. An invalid input from user will be exposed to a
Binder
and can be seen as a validation failure.Returns:
state validator
-
-