Interface ComponentConfigurator<T>
- Type Parameters:
T- Type of object used inObjectField.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Marker interface for objects capable of configuring a component used in
ObjectField<T>.
This means any configuration other than calling HasValue.setValue(Object), as that method is called by ObjectField automatically.- Since:
- 2022-09-07
- Author:
- miki
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureComponent(T object, Property<T, ?> definition, com.vaadin.flow.component.HasValue<?, ?> component) Configures a given component.
-
Method Details
-
configureComponent
void configureComponent(T object, Property<T, ?> definition, com.vaadin.flow.component.HasValue<?, ?> component) Configures a given component. Note: do not callHasValue.setValue(Object)on the givencomponent.- Parameters:
object- Object that is the source of the value shown in theObjectField.definition- Property that thecomponentcorresponds to.component- Component used to display the value of the property (indefinition) of the givenobject.
-