T - Presentation value typeV - Model value typepublic interface InputConverterBuilder<T,V> extends InputConfigurator<T,ValueHolder.ValueChangeEvent<T>,InputConverterBuilder<T,V>>
InputConfigurator.BaseInputConfigurator<T>ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
Input<T> |
build()
Build and returns the
Input instance. |
static <T,V> InputConverterBuilder<T,V> |
create(Input<V> input,
com.vaadin.flow.data.converter.Converter<V,T> converter)
Create a new
InputConverterBuilder. |
default InputConverterBuilder<T,V> |
withAdapters(InputAdaptersContainer<T> adapters)
Add a set of adapters.
|
<A> InputConverterBuilder<T,V> |
withAdapters(Map<Class<A>,Function<Input<T>,A>> adapters)
Add a set of adapters.
|
InputConverterBuilder<T,V> |
withReadonlyChangeListeners(Collection<ReadonlyChangeListener> listeners)
Add a set of
ReadonlyChangeListeners to be notified when the input read-only state changes. |
InputConverterBuilder<T,V> |
withValueChangeListeners(Collection<ValueHolder.ValueChangeListener<T,ValueHolder.ValueChangeEvent<T>>> listeners)
Add a set of
ValueHolder.ValueChangeListeners to be notified when the input value changes. |
readOnly, readOnly, required, required, withAdapter, withReadonlyChangeListener, withValueChangeListenercreate, elementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNameInputConverterBuilder<T,V> 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)InputConverterBuilder<T,V> withReadonlyChangeListeners(Collection<ReadonlyChangeListener> listeners)
ReadonlyChangeListeners to be notified when the input read-only state changes.listeners - The ReadonlyChangeListeners to add (not null)<A> InputConverterBuilder<T,V> withAdapters(Map<Class<A>,Function<Input<T>,A>> adapters)
A - Adapter typeadapters - The adapters to adddefault InputConverterBuilder<T,V> withAdapters(InputAdaptersContainer<T> adapters)
adapters - The adapters to addstatic <T,V> InputConverterBuilder<T,V> create(Input<V> input, com.vaadin.flow.data.converter.Converter<V,T> converter)
InputConverterBuilder.T - Presentation value typeV - Model value typeinput - The original input (not null)converter - The value converter (not null)InputConverterBuilderCopyright © 2020 The Holon Platform. All rights reserved.