com.vaadin.flow.data.binder.
Interface RequiredFieldConfigurator
All Superinterfaces:
BiPredicate<Annotation,
, Serializable
, SerializableBiPredicate<Annotation,
This interface represents a predicate which returns true
if bound
field should be configured to have required indicator via
HasValue.setRequiredIndicatorVisible(boolean)
.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RequiredFieldConfigurator
static final RequiredFieldConfigurator
Configurator which is aware of @NotEmpty annotation presence for a property where the default value is empty.
static final RequiredFieldConfigurator
Configurator which is aware of @NotNull annotation presence for a property where the default value is
null
.static final RequiredFieldConfigurator
Configurator which is aware of Size annotation with
min()> 0
presence for a property where the size of the default value is 0. -
Method Summary
Modifier and TypeMethodDescriptiondefault RequiredFieldConfigurator
chain
(RequiredFieldConfigurator configurator) Returns a configurator that chains together this configurator with the given configurator.
Methods inherited from interface java.util.function.BiPredicate
and, negate, or, test
-
Field Details
-
NOT_NULL
Configurator which is aware of @NotNull annotation presence for a property where the default value is
null
. -
NOT_EMPTY
Configurator which is aware of @NotEmpty annotation presence for a property where the default value is empty.
-
SIZE
Configurator which is aware of Size annotation with
min()> 0
presence for a property where the size of the default value is 0. -
DEFAULT
Default configurator which is combination of
NOT_NULL
,NOT_EMPTY
andSIZE
configurators.
-
-
Method Details
-
chain
Returns a configurator that chains together this configurator with the given configurator.
Parameters:
configurator
- the configurator to chain, , not nullReturns:
a chained configurator
-