Package io.jmix.flowui.sys.registration
Interface ComponentRegistration
- All Known Implementing Classes:
ComponentRegistrationImpl
@NullMarked
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
nullif not set
-
getReplacedComponent
- Returns:
- component class that should be replaced by
getComponent()ornullif not set
-
getComponentLoader
@Nullable Class<? extends ComponentLoader> getComponentLoader()- Returns:
- component loader class or
nullif not set
-