Package io.jmix.flowui.sys.registration
Class ComponentRegistrationBuilder
java.lang.Object
io.jmix.flowui.sys.registration.ComponentRegistrationBuilder
Builds registration object that is used for adding new component loader or overriding UI components 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();
     }
 }
 - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class<? extends com.vaadin.flow.component.Component>protected Class<? extends ComponentLoader>protected Class<? extends com.vaadin.flow.component.Component>protected String - 
Constructor Summary
ConstructorsConstructorDescriptionComponentRegistrationBuilder(Class<? extends com.vaadin.flow.component.Component> component)  - 
Method Summary
Modifier and TypeMethodDescriptionbuild()static ComponentRegistrationBuilderreplaceComponent(Class<? extends com.vaadin.flow.component.Component> component) Sets the component class that should be replaced.withComponentLoader(String tag, Class<? extends ComponentLoader> componentLoader) Sets component loader class. 
- 
Field Details
- 
component
 - 
tag
 - 
replacedComponent
 - 
componentLoader
 
 - 
 - 
Constructor Details
- 
ComponentRegistrationBuilder
- Parameters:
 component- component name
 
 - 
 - 
Method Details
- 
create
public static ComponentRegistrationBuilder create(Class<? extends com.vaadin.flow.component.Component> component) - Parameters:
 component- component class- Returns:
 - builder instance
 
 - 
replaceComponent
public ComponentRegistrationBuilder replaceComponent(Class<? extends com.vaadin.flow.component.Component> component) Sets the component class that should be replaced.- Parameters:
 component- component class to replace- Returns:
 - builder instance
 
 - 
withComponentLoader
public ComponentRegistrationBuilder withComponentLoader(String tag, Class<? extends ComponentLoader> componentLoader) Sets component loader class.- Parameters:
 tag- component name in the view descriptorcomponentLoader- component loader class- Returns:
 - builder instance
 
 - 
build
- Returns:
 - instance of registration object
 
 
 -