Class CustomComponents

java.lang.Object
com.vaadin.copilot.customcomponent.CustomComponents

public final class CustomComponents extends Object
Contains the map of detected custom component classes
  • 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

      public static Optional<CustomComponent> getCustomComponentInfo(String componentClassName)
      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

      public static Optional<CustomComponent> getCustomComponentInfo(Class<?> clazz)
      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

      public static boolean isCustomComponent(Class<?> componentClass)
      Checks if the given component class is a custom component.
      Parameters:
      componentClass - Component class to check
      Returns:
      true if custom component, false otherwise.
    • isCustomComponent

      public static boolean isCustomComponent(String componentClassName)
      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.