Package io.jmix.flowui.sys.registration
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(); } }
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends com.vaadin.flow.component.Component>
Class<? extends ComponentLoader>
<T extends com.vaadin.flow.component.Component>
Class<T>getTag()
-
Method Details
-
getComponent
Class<? extends com.vaadin.flow.component.Component> getComponent()- Returns:
- component class
-
getTag
- Returns:
- component name that should be used in the view descriptor or
null
if not set
-
getReplacedComponent
- Returns:
- component class that should be replaced by
getComponent()
ornull
if not set
-
getComponentLoader
- Returns:
- component loader class or
null
if not set
-