Interface UiComponents

All Known Implementing Classes:
UiComponentsImpl

public interface UiComponents
Factory for creating UI components.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends com.vaadin.flow.component.Component>
    T
    create(Class<T> type)
    Creates a component instance.
  • Method Details

    • create

      <T extends com.vaadin.flow.component.Component> T create(Class<T> type)
      Creates a component instance.

      For example:

      
       Label label = uiComponents.create(Label.class);
       label.setText("Hello");
       getContent().add(label);
       
      Parameters:
      type - component class