Class FlowComponentPropertyGroups.PropertyNameSortingStrategy
java.lang.Object
com.vaadin.copilot.plugins.propertypanel.FlowComponentPropertyGroups.PropertyNameSortingStrategy
- Enclosing class:
FlowComponentPropertyGroups
Sorting strategy that matches group names and provides comparators for
ordering property names in those groups.
-
Method Summary
Modifier and TypeMethodDescriptionforAnyGroup(Function<Map<String, ComponentProperty>, Comparator<String>> sortingFunction) Creates a fallback strategy that applies to all groups.forGroupName(String groupName, Function<Map<String, ComponentProperty>, Comparator<String>> sortingFunction) Creates a strategy that applies to exactly one group name.
-
Method Details
-
forGroupName
public static FlowComponentPropertyGroups.PropertyNameSortingStrategy forGroupName(String groupName, Function<Map<String, ComponentProperty>, Comparator<String>> sortingFunction) Creates a strategy that applies to exactly one group name.- Parameters:
groupName- target group namesortingFunction- comparator factory for that group's property names- Returns:
- a group-specific sorting strategy
-
forAnyGroup
public static FlowComponentPropertyGroups.PropertyNameSortingStrategy forAnyGroup(Function<Map<String, ComponentProperty>, Comparator<String>> sortingFunction) Creates a fallback strategy that applies to all groups.- Parameters:
sortingFunction- comparator factory for property names- Returns:
- a strategy matching every group
-