Package com.vaadin.data
Interface RequiredFieldConfigurator
-
- All Superinterfaces:
Predicate<Annotation>
,Serializable
,SerializablePredicate<Annotation>
public interface RequiredFieldConfigurator extends SerializablePredicate<Annotation>
This interface represents a predicate which returnstrue
if bound field should be configured to have required indicator viaHasValue.setRequiredIndicatorVisible(boolean)
.- Since:
- 8.0
- Author:
- Vaadin Ltd
- See Also:
BeanValidationBinder
,BeanValidationBinder.setRequiredConfigurator(RequiredFieldConfigurator)
-
-
Field Summary
Fields Modifier and Type Field Description static RequiredFieldConfigurator
DEFAULT
static RequiredFieldConfigurator
NOT_EMPTY
Configurator which is aware of @NotEmpty annotation presence for a property.static RequiredFieldConfigurator
NOT_NULL
Configurator which is aware of @NotNull annotation presence for a property.static RequiredFieldConfigurator
SIZE
Configurator which is aware of Size annotation withmin()> 0
presence for a property.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default RequiredFieldConfigurator
chain(RequiredFieldConfigurator configurator)
-
Methods inherited from interface com.vaadin.server.SerializablePredicate
and, negate, or
-
-
-
-
Field Detail
-
NOT_NULL
static final RequiredFieldConfigurator NOT_NULL
Configurator which is aware of @NotNull annotation presence for a property.
-
NOT_EMPTY
static final RequiredFieldConfigurator NOT_EMPTY
Configurator which is aware of @NotEmpty annotation presence for a property.
-
SIZE
static final RequiredFieldConfigurator SIZE
Configurator which is aware of Size annotation withmin()> 0
presence for a property.
-
DEFAULT
static final RequiredFieldConfigurator DEFAULT
-
-
Method Detail
-
chain
default RequiredFieldConfigurator chain(RequiredFieldConfigurator configurator)
-
-