public class DefaultPropertyGroupLayoutProvider extends Object implements PropertyGroupLayoutProvider
PropertyGroupLayoutProvider.
When a group consists of 2 or more elements, it returns a layout for it. Otherwise, it returns no layout.| Constructor and Description |
|---|
DefaultPropertyGroupLayoutProvider() |
DefaultPropertyGroupLayoutProvider(com.vaadin.flow.function.SerializableSupplier<C> newLayoutProvider) |
| Modifier and Type | Method and Description |
|---|---|
<T,C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents> |
buildGroupLayout(String groupName,
List<Property<T,?>> definitions)
Builds a layout for a given group.
|
public DefaultPropertyGroupLayoutProvider()
public DefaultPropertyGroupLayoutProvider(com.vaadin.flow.function.SerializableSupplier<C> newLayoutProvider)
public <T,C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents> Optional<C> buildGroupLayout(String groupName, List<Property<T,?>> definitions)
PropertyGroupLayoutProviderbuildGroupLayout in interface PropertyGroupLayoutProviderT - Type of the object in Propertys.C - Type to ensure the returned object is both a Component that HasComponents.groupName - Name of the group.definitions - A list of Propertys within the group.Optional means the corresponding components will be added to the main layout of the parent component instead.Copyright © 2024 Miki. All rights reserved.