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
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
ConstructorsConstructorDescriptionLegacyWrapper(com.vaadin.ui.Component legacyComponent) LegacyWrapper constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractMprUIContentprotected 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, setHeightFull, setSizeFullMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods 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, setWidthFullMethods 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
-
getLegacyEmbed
- Specified by:
getLegacyEmbedin classAbstractLegacyWrapper
-
createMprUIContent
- Specified by:
createMprUIContentin classAbstractLegacyWrapper
-
getWrapper
-