Class UiComponentsImpl

java.lang.Object
io.jmix.flowui.impl.UiComponentsImpl
All Implemented Interfaces:
UiComponents

@Component("flowui_UiComponents") public class UiComponentsImpl extends Object implements UiComponents
  • Field Details

  • Constructor Details

    • UiComponentsImpl

      public UiComponentsImpl(org.springframework.context.ApplicationContext applicationContext, DatatypeRegistry datatypeRegistry)
  • Method Details

    • create

      public <T extends com.vaadin.flow.component.Component> T create(Class<T> type)
      Description copied from interface: UiComponents
      Creates a component instance.

      For example:

      
       Label label = uiComponents.create(Label.class);
       label.setText("Hello");
       getContent().add(label);
       
      Specified by:
      create in interface UiComponents
      Parameters:
      type - component class
    • create

      public <T extends com.vaadin.flow.component.Component> T create(org.springframework.core.ParameterizedTypeReference<T> typeReference)
    • register

      public void register(Class<? extends com.vaadin.flow.component.Component> component, Class<? extends com.vaadin.flow.component.Component> replacedComponent)
    • getComponentInfo

      protected Optional<UiComponentsImpl.ComponentInfo> getComponentInfo(Class<? extends com.vaadin.flow.component.Component> component)
    • getComponentToCreate

      protected Class<? extends com.vaadin.flow.component.Component> getComponentToCreate(UiComponentsImpl.ComponentInfo componentInfo)