Class StringPresentationValueProvider<T>

java.lang.Object
io.jmix.flowui.data.provider.StringPresentationValueProvider<T>
Type Parameters:
T - the type of the entity whose property values are being provided
All Implemented Interfaces:
com.vaadin.flow.function.SerializableFunction<T,String>, com.vaadin.flow.function.ValueProvider<T,String>, Serializable, Function<T,String>

public class StringPresentationValueProvider<T> extends Object implements com.vaadin.flow.function.ValueProvider<T,String>
Provides string representations of property values for entities.

This class implements the ValueProvider interface to retrieve and format property values from an entity based on a given MetaPropertyPath. It utilizes MetadataTools to handle the formatting of the property values.

See Also:
  • Field Details

  • Constructor Details

    • StringPresentationValueProvider

      public StringPresentationValueProvider(@Nullable MetaPropertyPath propertyPath, MetadataTools metadataTools)
  • Method Details

    • apply

      public String apply(T entity)
      Specified by:
      apply in interface Function<T,String>
      Specified by:
      apply in interface com.vaadin.flow.function.ValueProvider<T,String>