Interface ComponentRegistration

All Known Implementing Classes:
ComponentRegistrationImpl

public interface ComponentRegistration
Registers new component loader or override a UI component in the framework. For instance:
 @Configuration
 public class ComponentConfiguration {

     @Bean
     public ComponentRegistration extJmixButton() {
         return ComponentRegistrationBuilder.create(ExtJmixButton.class)
                 .replaceComponent(JmixButton.class)
                 .withComponentLoader("button", ExtButtonLoader.class)
                 .build();
     }
 }
 
See Also:
  • Method Details

    • getComponent

      Class<? extends com.vaadin.flow.component.Component> getComponent()
      Returns:
      component class
    • getTag

      @Nullable String getTag()
      Returns:
      component name that should be used in the view descriptor or null if not set
    • getReplacedComponent

      @Nullable <T extends com.vaadin.flow.component.Component> Class<T> getReplacedComponent()
      Returns:
      component class that should be replaced by getComponent() or null if not set
    • getComponentLoader

      @Nullable Class<? extends ComponentLoader> getComponentLoader()
      Returns:
      component loader class or null if not set