Class DefaultPropertyGroupLayoutProvider

    • Constructor Detail

      • DefaultPropertyGroupLayoutProvider

        public DefaultPropertyGroupLayoutProvider()
      • DefaultPropertyGroupLayoutProvider

        public DefaultPropertyGroupLayoutProvider​(com.vaadin.flow.function.SerializableSupplier<C> newLayoutProvider)
    • Method Detail

      • buildGroupLayout

        public <T,​C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents> Optional<C> buildGroupLayout​(String groupName,
                                                                                                                                              List<Property<T,​?>> definitions)
        Description copied from interface: PropertyGroupLayoutProvider
        Builds a layout for a given group.
        Specified by:
        buildGroupLayout in interface PropertyGroupLayoutProvider
        Type Parameters:
        T - Type of the object in Propertys.
        C - Type to ensure the returned object is both a Component that HasComponents.
        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.