Interface PropertyGroupLayoutProvider

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultPropertyGroupLayoutProvider

public interface PropertyGroupLayoutProvider extends Serializable
Builds a layout, if needed, for a given group of Propertys.
Since:
2022-09-01
Author:
miki
  • Method Summary

    Modifier and Type
    Method
    Description
    <T, C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>
    Optional<C>
    buildGroupLayout(String groupName, List<Property<T,?>> definitions)
    Builds a layout for a given group.
  • Method Details

    • buildGroupLayout

      <T, C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents> Optional<C> buildGroupLayout(String groupName, List<Property<T,?>> definitions)
      Builds a layout for a given group.
      Type Parameters:
      C - Type to ensure the returned object is both a Component that HasComponents.
      T - Type of the object in Propertys.
      Parameters:
      groupName - Name of the group.
      definitions - A list of Propertys within the group.
      Returns:
      A layout for the group, if any needed. An empty Optional means the corresponding components will be added to the main layout of the parent component instead.