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.
@FunctionalInterface public interface ComponentConfigurator<T>
Marker interface for objects capable of configuring a component used inObjectField<T>. This means any configuration other than callingHasValue.setValue(Object), as that method is called byObjectFieldautomatically.- Since:
- 2022-09-07
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigureComponent(T object, Property<T,?> definition, com.vaadin.flow.component.HasValue<?,?> component)Configures a given component.
-
-
-
Method Detail
-
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.
-
-