Package com.vaadin.mpr.core
Interface HasLegacyComponents
-
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
public interface HasLegacyComponents extends com.vaadin.flow.component.HasElementA component to which the user can add and remove child legacy components. The LegacyWrapper wrapping is automatically used for all added components.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default 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 voidremoveAllLegacyComponents()Removes all legacy components added to this component.
-
-
-
Method Detail
-
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
default AbstractLegacyWrapper getLegacyWrapper(com.vaadin.ui.Component component)
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.
-
-