Class LegacyWrapper

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable

    public class LegacyWrapper
    extends AbstractLegacyWrapper
    A wrapper that allows adding legacy components into Flow layouts.

    By default the wrapper creates a div on the client side, where the legacy component is added. The wrapper div inherits the width and height of its parent. This behavior can be changed by setting a specific size to it.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LegacyWrapper​(com.vaadin.ui.Component legacyComponent)
      LegacyWrapper constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected AbstractMprUIContent createMprUIContent()  
      protected AbstractLegacyEmbed getLegacyEmbed​(com.vaadin.flow.component.UI ui)  
      static LegacyWrapper getWrapper​(com.vaadin.ui.Component legacyComponent)  
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, scrollIntoView, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasSize

        getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
    • Constructor Detail

      • LegacyWrapper

        public LegacyWrapper​(com.vaadin.ui.Component legacyComponent)
        LegacyWrapper constructor.

        If this is the first legacy component then the Legacy client will be configured on attach of component.

        Parameters:
        legacyComponent - Legacy component to wrap