Class ComponentPropertyProvider
java.lang.Object
com.vaadin.copilot.plugins.propertypanel.ComponentPropertyProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordCombined property payload returned to the property panel. -
Constructor Summary
ConstructorsConstructorDescriptionComponentPropertyProvider(ComponentSourceFinder componentSourceFinder, com.vaadin.flow.server.VaadinContext context) -
Method Summary
Modifier and TypeMethodDescriptiongetPropertiesWithGroups(ComponentInfo componentInfo) Resolves properties from an optimistic preview component.getPropertiesWithGroups(com.vaadin.flow.component.Component component) Resolves editable properties for a component together with grouped metadata for rendering in the property panel.
-
Constructor Details
-
ComponentPropertyProvider
public ComponentPropertyProvider(ComponentSourceFinder componentSourceFinder, com.vaadin.flow.server.VaadinContext context)
-
-
Method Details
-
getPropertiesWithGroups
public ComponentPropertyProvider.PropertyAndGroupData getPropertiesWithGroups(com.vaadin.flow.component.Component component) throws IOException Resolves editable properties for a component together with grouped metadata for rendering in the property panel.- Parameters:
component- target Flow component instance- Returns:
- flat properties and grouped property metadata
- Throws:
IOException- if component source information cannot be read
-
getPropertiesWithGroups
public ComponentPropertyProvider.PropertyAndGroupData getPropertiesWithGroups(ComponentInfo componentInfo) throws IOException Resolves properties from an optimistic preview component. The component is represented only by preview source, so create a throwaway instance for JavaBean metadata/defaults while reading its explicit values from that preview source.- Throws:
IOException
-