Interface EditedEntityTransformer

All Known Implementing Classes:
DynAttrAwareEntityTransformer, FetchPlanAwareEntityTransformer

public interface EditedEntityTransformer
Interface to be implemented by beans that transform an entity after returning it from a detail view.

A collection of such beans is used by DetailWindowBuilderProcessor.

  • Method Summary

    Modifier and Type
    Method
    Description
    <E> E
    Transforms the entity to be added to the given container.
    <E> E
    transformForField(E editedEntity, com.vaadin.flow.component.HasValue<?,E> field)
    Transforms the entity to be added to the given UI field.
  • Method Details

    • transformForCollectionContainer

      <E> E transformForCollectionContainer(E editedEntity, CollectionContainer<E> container)
      Transforms the entity to be added to the given container.
      Parameters:
      editedEntity - entity instance returned by detail view
      container - data container where the entity will be added
      Returns:
      transformed instance
    • transformForField

      <E> E transformForField(E editedEntity, com.vaadin.flow.component.HasValue<?,E> field)
      Transforms the entity to be added to the given UI field.
      Parameters:
      editedEntity - entity instance returned by detail view
      field - UI field where the entity will be displayed
      Returns:
      transformed instance