Interface HasLegacyComponents

  • All Superinterfaces:
    com.vaadin.flow.component.HasElement, Serializable

    public interface HasLegacyComponents
    extends com.vaadin.flow.component.HasElement
    A component to which the user can add and remove child legacy components. The LegacyWrapper wrapping is automatically used for all added components.
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void add​(com.vaadin.ui.Component... components)
      Adds the given legacy components as children of this component.
      default AbstractLegacyWrapper getLegacyWrapper​(com.vaadin.ui.Component component)
      Get a LegacyWrapper implementation for the used MPR version.
      default void remove​(com.vaadin.ui.Component... components)
      Removes the given child legacy components from this component.
      default void removeAllLegacyComponents()
      Removes all legacy components added to this component.
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
    • Method Detail

      • add

        default void add​(com.vaadin.ui.Component... components)
        Adds the given legacy components as children of this component.
        Parameters:
        components - the components to add
      • getLegacyWrapper

        default AbstractLegacyWrapper getLegacyWrapper​(com.vaadin.ui.Component component)
        Get a LegacyWrapper implementation for the used MPR version.
        Parameters:
        component - legacy component to wrap
        Returns:
        LegacyWrapper with wrapped component
      • remove

        default void remove​(com.vaadin.ui.Component... components)
        Removes the given child legacy components from this component.
        Parameters:
        components - the components to remove
      • removeAllLegacyComponents

        default void removeAllLegacyComponents()
        Removes all legacy components added to this component. It doesn't remove any Flow components.