Interface CustomComponent

All Known Implementing Classes:
CustomComponentExternal, CustomComponentInProject

public interface CustomComponent
A wrapper class for custom component.
Custom components may be defined in multiple ways. Some can be found in project source, some can be imported from an external Maven module e.g. Addon. This wrapper represents all custom components and type of custom component can be distinguished by getType() method.
  • Method Details

    • componentClass

      Class<?> componentClass()
      Class instance of the component
      Returns:
      Class instance
    • getType

      Type of custom component.
      Returns:
      type
    • litTemplate

      boolean litTemplate()
      Checks if the component extends LitTemplate.
      Returns:
      true if it is a LitTemplate, false otherwise
    • getChildAddableMethods

      default List<CustomComponentAddMethodInfo> getChildAddableMethods()
      List of method names where children can be added
      Returns:
      method name list