Package com.vaadin.mpr
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
divon the client side, where the legacy component is added. The wrapperdivinherits the width and height of its parent. This behavior can be changed by setting a specific size to it.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.mpr.core.AbstractLegacyWrapper
legacyMap, THEME_KEY, WIDGETSET_KEY
-
-
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 AbstractMprUIContentcreateMprUIContent()protected AbstractLegacyEmbedgetLegacyEmbed(com.vaadin.flow.component.UI ui)static LegacyWrappergetWrapper(com.vaadin.ui.Component legacyComponent)-
Methods inherited from class com.vaadin.mpr.core.AbstractLegacyWrapper
getLegacyComponent, onEnabledStateChanged
-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Method Detail
-
getLegacyEmbed
protected AbstractLegacyEmbed getLegacyEmbed(com.vaadin.flow.component.UI ui)
- Specified by:
getLegacyEmbedin classAbstractLegacyWrapper
-
createMprUIContent
protected AbstractMprUIContent createMprUIContent()
- Specified by:
createMprUIContentin classAbstractLegacyWrapper
-
getWrapper
public static LegacyWrapper getWrapper(com.vaadin.ui.Component legacyComponent)
-
-