Class CustomComponents
java.lang.Object
com.vaadin.copilot.customcomponent.CustomComponents
Contains the map of detected custom component classes
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<CustomComponent> getCustomComponentInfo(com.vaadin.flow.component.Component component) Returns the custom component information of a component if present.static Optional<CustomComponent> getCustomComponentInfo(Class<?> clazz) Returns the custom component information of a component class if present.static Optional<CustomComponent> getCustomComponentInfo(String componentClassName) Returns the custom component information of a component class name if present.static booleanisCustomComponent(Class<?> componentClass) Checks if the given component class is a custom component.static booleanisCustomComponent(String componentClassName) Checks if the given component class name is a custom component.
-
Method Details
-
getCustomComponentInfo
public static Optional<CustomComponent> getCustomComponentInfo(com.vaadin.flow.component.Component component) Returns the custom component information of a component if present. Returns an optional if not registered or not found.- Parameters:
component- Component to check- Returns:
- Custom component information or
Optional.empty()if not found.
-
getCustomComponentInfo
Returns the custom component information of a component class name if present. Returns an optional if not registered or not found.- Parameters:
componentClassName- Component class name to check- Returns:
- Custom component information or
Optional.empty()if not found.
-
getCustomComponentInfo
Returns the custom component information of a component class if present. Returns an optional if not registered or not found.- Parameters:
clazz- Component class to check- Returns:
- Custom component information or
Optional.empty()if not found.
-
isCustomComponent
Checks if the given component class is a custom component.- Parameters:
componentClass- Component class to check- Returns:
- true if custom component, false otherwise.
-
isCustomComponent
Checks if the given component class name is a custom component.- Parameters:
componentClassName- Component class name to check- Returns:
- true if custom component, false otherwise.
-