@Tag(value="div")
public abstract class AbstractLegacyWrapper
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
THEME_KEY |
static String |
WIDGETSET_KEY |
| Constructor and Description |
|---|
AbstractLegacyWrapper(com.vaadin.ui.Component legacyComponent)
LegacyWrapper constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract AbstractMprUIContent |
createMprUIContent()
Get a new MprUIContent object instance.
|
com.vaadin.ui.Component |
getLegacyComponent()
Gets the legacy component set in this wrapper in the constructor.
|
protected abstract AbstractLegacyEmbed |
getLegacyEmbed(com.vaadin.flow.component.UI ui)
Get a LegacyEmbed object instance for given Flow UI.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCssSize, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic static final String THEME_KEY
public static final String WIDGETSET_KEY
public AbstractLegacyWrapper(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 wrappublic com.vaadin.ui.Component getLegacyComponent()
nullprotected abstract AbstractLegacyEmbed getLegacyEmbed(com.vaadin.flow.component.UI ui)
ui - Flow UIprotected abstract AbstractMprUIContent createMprUIContent()
Copyright © 2018–2020 Vaadin Ltd. All rights reserved.