C - Concrete configurator typepublic interface PropertyInputGroupConfigurator<C extends PropertyInputGroupConfigurator<C>> extends InputGroupConfigurator.PropertySetInputGroupConfigurator<PropertyInputGroup,C>
PropertyInputGroup configurator.InputGroupConfigurator.BeanInputGroupConfigurator<T,G extends BoundComponentGroup<String,Input<?>>,C extends InputGroupConfigurator.BeanInputGroupConfigurator<T,G,C>>, InputGroupConfigurator.PropertySetInputGroupConfigurator<G extends BoundComponentGroup<com.holonplatform.core.property.Property<?>,Input<?>>,C extends InputGroupConfigurator.PropertySetInputGroupConfigurator<G,C>>| Modifier and Type | Method and Description |
|---|---|
default <T> C |
bind(com.holonplatform.core.property.Property<T> property,
Function<com.holonplatform.core.property.Property<? extends T>,Input<T>> function)
Set the function to use to render the
Input bound to given property. |
default <T> C |
bind(com.holonplatform.core.property.Property<T> property,
Input<T> input)
Bind the given
property to given input instance. |
default <T,V> C |
bind(com.holonplatform.core.property.Property<T> property,
Input<V> input,
com.vaadin.flow.data.converter.Converter<V,T> converter)
Bind the given
property to given input instance with different value type, using a
Converter to perform value conversions. |
<T> C |
bind(com.holonplatform.core.property.Property<T> property,
com.holonplatform.core.property.PropertyRenderer<Input<T>,T> renderer)
|
default <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
bindField(com.holonplatform.core.property.Property<T> property,
F field)
Bind the given
property to given HasValue component. |
default <T,V,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,V>> |
bindField(com.holonplatform.core.property.Property<T> property,
F field,
com.vaadin.flow.data.converter.Converter<V,T> converter)
Bind the given
property to given HasValue component with different value type, using a
Converter to perform value conversions. |
<T> C |
hidden(com.holonplatform.core.property.Property<T> property)
Set the given property as hidden.
|
default <T> C |
readOnly(com.holonplatform.core.property.Property<T> property)
Set the given property as read-only.
|
<T> C |
readOnly(com.holonplatform.core.property.Property<T> property,
boolean readOnly)
Set whether the given property is read-only.
|
C |
stopGroupValidationAtFirstFailure(boolean stopValidationAtFirstFailure)
Set whether to stop group validation at first validation failure.
|
C |
stopInputsValidationAtFirstFailure(boolean stopValidationAtFirstFailure)
Set whether to stop inputs validation at first validation failure.
|
C |
validateOnValueChange(boolean validateOnValueChange)
|
defaultValue, withValidator, withValueChangeListenerenableRefreshOnValueChange, groupValidationStatusHandler, required, required, required, required, validationStatusHandler, validationStatusHandler, validationStatusLabel, withPostProcessor, withValidatorusePropertyRendererRegistry, withValueChangeListener<T> C hidden(com.holonplatform.core.property.Property<T> property)
ViewComponent bound to the property will
never be generated, but its value will be written to a PropertyBox using
PropertyViewGroup.getValue().T - Property typeproperty - Property to set as hidden (not null)<T> C readOnly(com.holonplatform.core.property.Property<T> property, boolean readOnly)
Input bound to the property
will be setted as read-only, and its value cannot be changed by the user.
Any validator bound to the given property will be ignored.
T - Property typeproperty - The property to set as read-only (not null)readOnly - true to set the property as read-only, false otherwisedefault <T> C readOnly(com.holonplatform.core.property.Property<T> property)
Input bound to the property will be
setted as read-only, and its value cannot be changed by the user.
Any validator bound to the given property will be ignored.
T - Property typeproperty - The property to set as read-only (not null)<T> C bind(com.holonplatform.core.property.Property<T> property, com.holonplatform.core.property.PropertyRenderer<Input<T>,T> renderer)
T - Property typeproperty - Property (not null)renderer - Property renderer (not null)default <T> C bind(com.holonplatform.core.property.Property<T> property, Function<com.holonplatform.core.property.Property<? extends T>,Input<T>> function)
Input bound to given property.T - Property typeproperty - The property to render (not null)function - The function to use to render the property Input (not null)default <T> C bind(com.holonplatform.core.property.Property<T> property, Input<T> input)
property to given input instance. If the property was already bound to a
Input, the old input will be replaced by the new input.
This method also adds property validators to given Input when applicable.
T - Property typeproperty - Property (not null)input - Input to bind (not null)default <T,V> C bind(com.holonplatform.core.property.Property<T> property, Input<V> input, com.vaadin.flow.data.converter.Converter<V,T> converter)
property to given input instance with different value type, using a
Converter to perform value conversions. If the property was already bound to a Input, the old
input will be replaced by the new input.
This method also adds property validators to given Input when applicable.
T - Property typeV - Input value typeproperty - Property (not null)input - Input to bind (not null)converter - Value converter (not null)default <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> C bindField(com.holonplatform.core.property.Property<T> property, F field)
property to given HasValue component. If the property was already bound to a
Input, the old input will be replaced by the new input.T - Property typeF - HasValue typeproperty - Property (not null)field - HasValue component to bind (not null)default <T,V,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,V>> C bindField(com.holonplatform.core.property.Property<T> property, F field, com.vaadin.flow.data.converter.Converter<V,T> converter)
property to given HasValue component with different value type, using a
Converter to perform value conversions. If the property was already bound to an Input, the old
input will be replaced by the new input.
This method also adds property validators to given Input when applicable.
T - Property typeV - Input value typeF - HasValue typeproperty - Property (not null)field - The field to bind (not null)converter - Value converter (not null)C validateOnValueChange(boolean validateOnValueChange)
Inputs value every time the Input value changes.
Default is false.
validateOnValueChange - true to perform value validation every time a Input value
changes, false if notC stopInputsValidationAtFirstFailure(boolean stopValidationAtFirstFailure)
true, only the first
Validator.ValidationException is thrown at inputs validation, otherwise a Validator.ValidationException containing
all the occurred validation exception is thrown.stopValidationAtFirstFailure - true to stop inputs validation at first validation failureC stopGroupValidationAtFirstFailure(boolean stopValidationAtFirstFailure)
true, only the first
Validator.ValidationException is thrown at validation, otherwise a Validator.ValidationException containing all the
occurred validation exception is thrown.
The group validation is the one which is performed using validators added with InputGroupConfigurator.withValidator(Validator)
method.
stopValidationAtFirstFailure - true to stop overall validation at first validation failureCopyright © 2019 The Holon Platform. All rights reserved.