T - Input value typeV - HasValue value typeH - Concrete HasValue typeC - Concrete Component typeB - Concrete builder typepublic interface InputAdapterBuilder<T,V,H extends com.vaadin.flow.component.HasValue<?,V>,C extends com.vaadin.flow.component.Component,B extends InputAdapterBuilder<T,V,H,C,B>> extends InputBuilder<T,ValueHolder.ValueChangeEvent<T>,Input<T>,ValidatableInput<T>,B,ValidatableInputBuilder<T>>
Input components from a HasValue component.InputConfigurator.BaseInputConfigurator<T>ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
B |
emptyValueSupplier(Function<H,T> emptyValueSupplier)
Set the empty value supplier.
|
B |
focusOperation(Consumer<H> focusOperation)
Set the
focus operation. |
B |
hasEnabledSupplier(Function<H,com.vaadin.flow.component.HasEnabled> hasEnabledSupplier)
Set the
HasEnabled supplier. |
B |
hasSizeSupplier(Function<H,com.vaadin.flow.component.HasSize> hasSizeSupplier)
Set the
HasSize supplier. |
B |
hasStyleSupplier(Function<H,com.vaadin.flow.component.HasStyle> hasStyleSupplier)
Set the
HasStyle supplier. |
B |
hasValidationSupplier(Function<H,com.vaadin.flow.component.HasValidation> hasValidationSupplier)
Set the
HasValidation supplier. |
B |
hasValueChangeModeSupplier(Function<H,com.vaadin.flow.data.value.HasValueChangeMode> hasValueChangeModeSupplier)
Set the
HasValueChangeMode supplier. |
B |
invalidChangeEventNotifierSupplier(Function<H,InvalidChangeEventNotifier> invalidChangeEventNotifierSupplier)
Set the
InvalidChangeEventNotifier supplier |
B |
isEmptySupplier(Function<H,Boolean> isEmptySupplier)
Set the is empty value supplier.
|
default B |
labelPropertyHandler(BiFunction<H,C,String> getter,
com.holonplatform.core.operation.TriConsumer<H,C,String> setter)
Set the
label property handler using given callback functions. |
B |
labelPropertyHandler(Input.PropertyHandler<String,V,H,C> labelPropertyHandler)
Provide the
Input.PropertyHandler to use to get and set the label property value. |
default B |
placeholderPropertyHandler(BiFunction<H,C,String> getter,
com.holonplatform.core.operation.TriConsumer<H,C,String> setter)
Set the
placeholder property handler using given callback functions. |
B |
placeholderPropertyHandler(Input.PropertyHandler<String,V,H,C> placeholderPropertyHandler)
Provide the
Input.PropertyHandler to use to get and set the placeholder property value. |
default B |
requiredPropertyHandler(BiFunction<H,C,Boolean> getter,
com.holonplatform.core.operation.TriConsumer<H,C,Boolean> setter)
Set the
required property handler using given callback functions. |
B |
requiredPropertyHandler(Input.PropertyHandler<Boolean,V,H,C> requiredPropertyHandler)
Provide the
Input.PropertyHandler to use to get and set the required property value. |
default B |
titlePropertyHandler(BiFunction<H,C,String> getter,
com.holonplatform.core.operation.TriConsumer<H,C,String> setter)
Set the
title property handler using given callback functions. |
B |
titlePropertyHandler(Input.PropertyHandler<String,V,H,C> titlePropertyHandler)
Provide the
Input.PropertyHandler to use to get and set the title property value. |
B |
valueSupplier(Function<H,T> valueSupplier)
Set the Input value supplier.
|
default B |
withAdapters(InputAdaptersContainer<T> adapters)
Add a set of adapters.
|
<A> B |
withAdapters(Map<Class<A>,Function<Input<T>,A>> adapters)
Add a set of adapters.
|
B |
withReadonlyChangeListeners(Collection<ReadonlyChangeListener> listeners)
Add a set of
ReadonlyChangeListeners to be notified when the input read-only state changes. |
B |
withValueChangeListeners(Collection<ValueHolder.ValueChangeListener<T,ValueHolder.ValueChangeEvent<T>>> listeners)
Add a set of
ValueHolder.ValueChangeListeners to be notified when the input value changes. |
build, validatablereadOnly, readOnly, required, required, withAdapter, withReadonlyChangeListener, withValueChangeListenercreate, elementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNameB emptyValueSupplier(Function<H,T> emptyValueSupplier)
emptyValueSupplier - the empty value supplier to setB isEmptySupplier(Function<H,Boolean> isEmptySupplier)
isEmptySupplier - the is empty value supplier to setB valueSupplier(Function<H,T> valueSupplier)
valueSupplier - the Input value supplier to setB focusOperation(Consumer<H> focusOperation)
focus operation.focusOperation - the operation to setB hasSizeSupplier(Function<H,com.vaadin.flow.component.HasSize> hasSizeSupplier)
HasSize supplier.hasSizeSupplier - the supplier to setB hasStyleSupplier(Function<H,com.vaadin.flow.component.HasStyle> hasStyleSupplier)
HasStyle supplier.hasStyleSupplier - the supplier to setB hasEnabledSupplier(Function<H,com.vaadin.flow.component.HasEnabled> hasEnabledSupplier)
HasEnabled supplier.hasEnabledSupplier - the supplier to setB hasValueChangeModeSupplier(Function<H,com.vaadin.flow.data.value.HasValueChangeMode> hasValueChangeModeSupplier)
HasValueChangeMode supplier.hasValueChangeModeSupplier - the supplier to setB hasValidationSupplier(Function<H,com.vaadin.flow.component.HasValidation> hasValidationSupplier)
HasValidation supplier.hasValidationSupplier - the supplier to setB invalidChangeEventNotifierSupplier(Function<H,InvalidChangeEventNotifier> invalidChangeEventNotifierSupplier)
InvalidChangeEventNotifier supplierinvalidChangeEventNotifierSupplier - the supplier to setB requiredPropertyHandler(Input.PropertyHandler<Boolean,V,H,C> requiredPropertyHandler)
Input.PropertyHandler to use to get and set the required property value.
This handler will be used for the Input.isRequired() and Input.setRequired(boolean) methods
implementation.
requiredPropertyHandler - The Input.PropertyHandler to use to get and set the required property
valuedefault B requiredPropertyHandler(BiFunction<H,C,Boolean> getter, com.holonplatform.core.operation.TriConsumer<H,C,Boolean> setter)
required property handler using given callback functions.
This handler will be used for the Input.isRequired() and Input.setRequired(boolean) methods
implementation.
B labelPropertyHandler(Input.PropertyHandler<String,V,H,C> labelPropertyHandler)
Input.PropertyHandler to use to get and set the label property value.
This handler will be used to provide the HasLabel implementation returned by the HasComponent.hasLabel()
method.
labelPropertyHandler - The Input.PropertyHandler to use to get and set the label property valuedefault B labelPropertyHandler(BiFunction<H,C,String> getter, com.holonplatform.core.operation.TriConsumer<H,C,String> setter)
label property handler using given callback functions.
This handler will be used to provide the HasLabel implementation returned by the HasComponent.hasLabel()
method.
B titlePropertyHandler(Input.PropertyHandler<String,V,H,C> titlePropertyHandler)
Input.PropertyHandler to use to get and set the title property value.
This handler will be used to provide the HasTitle implementation returned by the Input.hasTitle()
method.
titlePropertyHandler - The Input.PropertyHandler to use to get and set the title property valuedefault B titlePropertyHandler(BiFunction<H,C,String> getter, com.holonplatform.core.operation.TriConsumer<H,C,String> setter)
title property handler using given callback functions.
This handler will be used to provide the HasTitle implementation returned by the Input.hasTitle()
method.
B placeholderPropertyHandler(Input.PropertyHandler<String,V,H,C> placeholderPropertyHandler)
Input.PropertyHandler to use to get and set the placeholder property value.
This handler will be used to provide the HasPlaceholder implementation returned by the
Input.hasPlaceholder() method.
placeholderPropertyHandler - The Input.PropertyHandler to use to get and set the placeholder
property valuedefault B placeholderPropertyHandler(BiFunction<H,C,String> getter, com.holonplatform.core.operation.TriConsumer<H,C,String> setter)
placeholder property handler using given callback functions.
This handler will be used to provide the HasPlaceholder implementation returned by the
Input.hasPlaceholder() method.
B withValueChangeListeners(Collection<ValueHolder.ValueChangeListener<T,ValueHolder.ValueChangeEvent<T>>> listeners)
ValueHolder.ValueChangeListeners to be notified when the input value changes.listeners - The ValueHolder.ValueChangeListeners to add (not null)B withReadonlyChangeListeners(Collection<ReadonlyChangeListener> listeners)
ReadonlyChangeListeners to be notified when the input read-only state changes.listeners - The ReadonlyChangeListeners to add (not null)<A> B withAdapters(Map<Class<A>,Function<Input<T>,A>> adapters)
A - Adapter typeadapters - The adapters to adddefault B withAdapters(InputAdaptersContainer<T> adapters)
adapters - The adapters to addCopyright © 2020 The Holon Platform. All rights reserved.