T - Type of value.C - Returned component.@FunctionalInterface public interface TypedFieldProvider<T,C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>>
| Modifier and Type | Method and Description |
|---|---|
static <V,W extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,V>> |
of(Class<V> type,
com.vaadin.flow.function.SerializableSupplier<W> supplier)
Produces a
TypedFieldProvider for a given type and component. |
Optional<C> |
provideComponent(Class<?> valueType)
Produces a component for a given value.
|
Optional<C> provideComponent(Class<?> valueType)
setValue() method is called.valueType - Type of the value. Never null.Component. The result will be empty when this provider cannot produce a result for a given value.static <V,W extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,V>> TypedFieldProvider<V,W> of(Class<V> type, com.vaadin.flow.function.SerializableSupplier<W> supplier)
TypedFieldProvider for a given type and component.V - Value type.W - Component type.type - Type to accept.supplier - Component to produce.Copyright © 2023 Miki. All rights reserved.