Class FlowComponentPropertyGroups
java.lang.Object
com.vaadin.copilot.plugins.propertypanel.FlowComponentPropertyGroups
Resolves property group assignment and property-name ordering for Flow
components.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSorting strategy that matches group names and provides comparators for ordering property names in those groups. -
Constructor Summary
ConstructorsConstructorDescriptionCreates the default resolver with built-in sorting strategies forSize,Validation,Behavior, and a fallback strategy for all groups.FlowComponentPropertyGroups(List<FlowComponentPropertyGroups.PropertyNameSortingStrategy> propertyNameSortingStrategies) Creates a resolver with caller-provided sorting strategies. -
Method Summary
Modifier and TypeMethodDescriptioncreate(com.vaadin.flow.component.Component component, List<ComponentProperty> properties) Creates grouped property-name metadata for a component.
-
Constructor Details
-
FlowComponentPropertyGroups
public FlowComponentPropertyGroups()Creates the default resolver with built-in sorting strategies forSize,Validation,Behavior, and a fallback strategy for all groups. -
FlowComponentPropertyGroups
public FlowComponentPropertyGroups(List<FlowComponentPropertyGroups.PropertyNameSortingStrategy> propertyNameSortingStrategies) Creates a resolver with caller-provided sorting strategies.- Parameters:
propertyNameSortingStrategies- ordered strategy list; first matching strategy is used for each group
-
-
Method Details
-
create
public List<ComponentPropertyGroup> create(com.vaadin.flow.component.Component component, List<ComponentProperty> properties) Creates grouped property-name metadata for a component.- Parameters:
component- component whose groups are resolvedproperties- flat property list used for assignment and sorting- Returns:
- non-empty groups in configured group order
-