Package com.vaadin.mpr.core
Interface HasLegacyComponents
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
public interface HasLegacyComponents
extends com.vaadin.flow.component.HasElement
A component to which the user can add and remove child legacy components. The
LegacyWrapper wrapping is automatically used for all added components.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidadd(com.vaadin.ui.Component... components) Adds the given legacy components as children of this component.default AbstractLegacyWrappergetLegacyWrapper(com.vaadin.ui.Component component) Get a LegacyWrapper implementation for the used MPR version.default voidremove(com.vaadin.ui.Component... components) Removes the given child legacy components from this component.default voidRemoves all legacy components added to this component.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Method Details
-
add
default void add(com.vaadin.ui.Component... components) Adds the given legacy components as children of this component.- Parameters:
components- the components to add
-
getLegacyWrapper
Get a LegacyWrapper implementation for the used MPR version.- Parameters:
component- legacy component to wrap- Returns:
- LegacyWrapper with wrapped component
-
remove
default void remove(com.vaadin.ui.Component... components) Removes the given child legacy components from this component.- Parameters:
components- the components to remove
-
removeAllLegacyComponents
default void removeAllLegacyComponents()Removes all legacy components added to this component. It doesn't remove any Flow components.
-