Interface ComponentConfigurator<T>

Type Parameters:
T - Type of object used in ObjectField.
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 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 Type
    Method
    Description
    void
    configureComponent(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 call HasValue.setValue(Object) on the given component.
      Parameters:
      object - Object that is the source of the value shown in the ObjectField.
      definition - Property that the component corresponds to.
      component - Component used to display the value of the property (in definition) of the given object.