P - Property typeT - Group item typeG - Group typeC - Concrete configurator typepublic interface InputGroupConfigurator<P,T,G extends BoundComponentGroup<P,Input<?>>,C extends InputGroupConfigurator<P,T,G,C>> extends ComponentGroupConfigurator<P,T,Input<?>,G,C>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
InputGroupConfigurator.BeanInputGroupConfigurator<T,G extends BoundComponentGroup<String,Input<?>>,C extends InputGroupConfigurator.BeanInputGroupConfigurator<T,G,C>>
An
InputGroupConfigurator bound to a bean String type property set. |
static interface |
InputGroupConfigurator.PropertySetInputGroupConfigurator<G extends BoundComponentGroup<com.holonplatform.core.property.Property<?>,Input<?>>,C extends InputGroupConfigurator.PropertySetInputGroupConfigurator<G,C>>
An
InputGroupConfigurator bound to a Property set. |
| Modifier and Type | Method and Description |
|---|---|
C |
enableRefreshOnValueChange(boolean enableRefreshOnValueChange)
Set whether to enable
VirtualProperty input values refresh when any group input value changes. |
C |
groupValidationStatusHandler(GroupValidationStatusHandler<G,P,Input<?>> groupValidationStatusHandler)
Set the
GroupValidationStatusHandler to use to track both the group element validation status changes and
the group value validation status changes. |
C |
required(P property)
Set the given property as required.
|
C |
required(P property,
com.holonplatform.core.i18n.Localizable message)
Set the given property as required.
|
default C |
required(P property,
String message)
Set the given property as required.
|
default C |
required(P property,
String defaultMessage,
String messageCode,
Object... arguments)
Set the given property as required.
|
C |
validationStatusHandler(P property,
ValidationStatusHandler<Input<?>> validationStatusHandler)
Set the
ValidationStatusHandler to use to track given property validation status changes. |
C |
validationStatusHandler(ValidationStatusHandler<G> validationStatusHandler)
Set the
ValidationStatusHandler to use to track the group validation status changes. |
default <L extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasText> |
validationStatusLabel(L statusLabel)
Use given label as status label to track group validation status changes.
|
C |
withPostProcessor(BiConsumer<P,Input<?>> postProcessor)
Add a
BiConsumer to allow further Input configuration before the input is actually bound to a
property as editor. |
C |
withValidator(com.holonplatform.core.Validator<T> validator)
Adds a group value
Validator. |
usePropertyRendererRegistry, withValueChangeListenerC required(P property)
Input bound to the property will be
setted as required, and its validation will fail when empty.property - The property to set as required (not null)C required(P property, com.holonplatform.core.i18n.Localizable message)
Input bound to the property will be
setted as required, and its validation will fail when empty.property - The property to set as required (not null)message - The required validation error message to usedefault C required(P property, String message)
Input bound to the property will be
setted as required, and its validation will fail when empty.property - The property to set as required (not null)message - The required validation error message to usedefault C required(P property, String defaultMessage, String messageCode, Object... arguments)
Input bound to the property will be
setted as required, and its validation will fail when empty.property - The property to set as required (not null)defaultMessage - Default required validation error messagemessageCode - Required validation error message translation keyarguments - Optional translation argumentsC withPostProcessor(BiConsumer<P,Input<?>> postProcessor)
BiConsumer to allow further Input configuration before the input is actually bound to a
property as editor.postProcessor - the post processor to add (not null)C withValidator(com.holonplatform.core.Validator<T> validator)
Validator.validator - The group validator to add (not null)C validationStatusHandler(ValidationStatusHandler<G> validationStatusHandler)
ValidationStatusHandler to use to track the group validation status changes.
By default the ValidationStatusHandler.dialog() is used.
validationStatusHandler - the group ValidationStatusHandler to setdefault <L extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasText> C validationStatusLabel(L statusLabel)
L - Label typestatusLabel - the status label to set (not null)C groupValidationStatusHandler(GroupValidationStatusHandler<G,P,Input<?>> groupValidationStatusHandler)
GroupValidationStatusHandler to use to track both the group element validation status changes and
the group value validation status changes.
When a GroupValidationStatusHandler is configured, any group element specific
ValidationStatusHandler and group value ValidationStatusHandler will be ignored.
groupValidationStatusHandler - The GroupValidationStatusHandler to set (not null)C validationStatusHandler(P property, ValidationStatusHandler<Input<?>> validationStatusHandler)
ValidationStatusHandler to use to track given property validation status changes.property - The property for which to set the validation status handler (not null)validationStatusHandler - the ValidationStatusHandler to associate to given property
(not null)C enableRefreshOnValueChange(boolean enableRefreshOnValueChange)
VirtualProperty input values refresh when any group input value changes.
Default is false.
enableRefreshOnValueChange - Whether to enable VirtualProperty input values refresh when any group
input value changesCopyright © 2019 The Holon Platform. All rights reserved.