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 SummaryFieldsModifier and TypeFieldDescriptionprotected Class<? extends com.vaadin.flow.component.Component>protected Class<? extends ComponentLoader>protected Class<? extends com.vaadin.flow.component.Component>protected String
- 
Constructor SummaryConstructorsConstructorDescriptionComponentRegistrationBuilder(Class<? extends com.vaadin.flow.component.Component> component) 
- 
Method SummaryModifier 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- 
createpublic static ComponentRegistrationBuilder create(Class<? extends com.vaadin.flow.component.Component> component) - Parameters:
- component- component class
- Returns:
- builder instance
 
- 
replaceComponentpublic 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
 
- 
withComponentLoaderpublic ComponentRegistrationBuilder withComponentLoader(String tag, Class<? extends ComponentLoader> componentLoader) Sets component loader class.- Parameters:
- tag- component name in the view descriptor
- componentLoader- component loader class
- Returns:
- builder instance
 
- 
build- Returns:
- instance of registration object
 
 
-