Class LegacyWrapper

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.mpr.core.AbstractLegacyWrapper
com.vaadin.mpr.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:
  • Field Summary

    Fields inherited from class com.vaadin.mpr.core.AbstractLegacyWrapper

    CONTEXT_RELATIVE_PATH, legacyMap, THEME_KEY, WIDGETSET_KEY
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
     
    getLegacyEmbed(com.vaadin.flow.component.UI ui)
     
    getWrapper(com.vaadin.ui.Component legacyComponent)
     

    Methods inherited from class com.vaadin.mpr.core.AbstractLegacyWrapper

    getLegacyComponent, onEnabledStateChanged, setHeightFull, setSizeFull

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    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, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

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

    • 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
  • Method Details