Package io.jmix.flowui.sys.registration
Class CustomComponentsRegistry
java.lang.Object
io.jmix.flowui.sys.registration.CustomComponentsRegistry
Registers external UI components or component loaders that should be used by the framework.
For instance, in the spring Configuration
class create ComponentRegistration
bean.
@Configuration public class ComponentConfiguration { @Bean public ComponentRegistration extJmixButton() { return ComponentRegistrationBuilder.create(ExtJmixButton.class) .replaceComponent(JmixButton.class) .withComponentLoader("button", ExtButtonLoader.class) .build(); } }
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ComponentRegistration>
protected CustomComponentsLoaderConfig
protected UiComponentsImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(org.springframework.context.event.ContextRefreshedEvent event) protected void
registerComponent
(ComponentRegistration registration) protected void
-
Field Details
-
componentRegistrations
-
uiComponents
-
loaderConfig
-
-
Constructor Details
-
CustomComponentsRegistry
public CustomComponentsRegistry()
-
-
Method Details
-
init
@EventListener @Order(200) public void init(org.springframework.context.event.ContextRefreshedEvent event) -
registerComponents
protected void registerComponents() -
registerComponent
-