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
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.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumType of the custom component. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Class instance of the componentdefault List<CustomComponentAddMethodInfo> List of method names where children can be addedgetType()Type of custom component.booleanChecks if the component extends LitTemplate.
-
Method Details
-
componentClass
Class<?> componentClass()Class instance of the component- Returns:
- Class instance
-
getType
CustomComponent.Type 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
List of method names where children can be added- Returns:
- method name list
-