Class CustomLayout
java.lang.Object
com.vaadin.featurepack.desktop.layouts.CustomLayout
- All Implemented Interfaces:
Serializable
Wraps and executes custom legacy LayoutManager/LayoutManager2 implementations
on Vaadin framework.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCustomLayout(LayoutManager layoutManager) CustomLayout(LayoutManager layoutManager, Window window) -
Method Summary
Modifier and TypeMethodDescriptiongetConstraints(com.vaadin.flow.component.Component component) voidpack()Triggers the calculations of component positions and sizes on the given LayoutManager implementation.voidsetConstraints(com.vaadin.flow.component.Component component, Object constraints) Any constraints set on the original LayoutManager should be set through this method.voidsetContainer(com.vaadin.flow.component.Component container) Sets the parent container for this layout manager implementation and attaches required listeners that enables position and size calculations.
-
Constructor Details
-
CustomLayout
-
CustomLayout
-
-
Method Details
-
setConstraints
Any constraints set on the original LayoutManager should be set through this method.- Parameters:
component-constraints-
-
getConstraints
-
pack
public void pack()Triggers the calculations of component positions and sizes on the given LayoutManager implementation. -
setContainer
public void setContainer(com.vaadin.flow.component.Component container) Sets the parent container for this layout manager implementation and attaches required listeners that enables position and size calculations.- Parameters:
container-
-