public class LegacyWrapper extends AbstractLegacyWrapper
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.
legacyMap, THEME_KEY, WIDGETSET_KEY| Constructor and Description |
|---|
LegacyWrapper(com.vaadin.ui.Component legacyComponent)
LegacyWrapper constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractMprUIContent |
createMprUIContent() |
protected AbstractLegacyEmbed |
getLegacyEmbed(com.vaadin.flow.component.UI ui) |
static LegacyWrapper |
getWrapper(com.vaadin.ui.Component legacyComponent) |
getLegacyComponent, onEnabledStateChangedaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic LegacyWrapper(com.vaadin.ui.Component legacyComponent)
If this is the first legacy component then the Legacy client will be configured on attach of component.
legacyComponent - Legacy component to wrapprotected AbstractLegacyEmbed getLegacyEmbed(com.vaadin.flow.component.UI ui)
getLegacyEmbed in class AbstractLegacyWrapperprotected AbstractMprUIContent createMprUIContent()
createMprUIContent in class AbstractLegacyWrapperpublic static LegacyWrapper getWrapper(com.vaadin.ui.Component legacyComponent)
Copyright © 2020–2022 Vaadin Ltd. All rights reserved.