Class CustomLayout

java.lang.Object
com.vaadin.featurepack.desktop.layouts.CustomLayout
All Implemented Interfaces:
Serializable

public class CustomLayout extends Object implements Serializable
Wraps and executes custom legacy LayoutManager/LayoutManager2 implementations on Vaadin framework.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomLayout(LayoutManager layoutManager)
     
    CustomLayout(LayoutManager layoutManager, Window window)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getConstraints(com.vaadin.flow.component.Component component)
     
    void
    Triggers the calculations of component positions and sizes on the given LayoutManager implementation.
    void
    setConstraints(com.vaadin.flow.component.Component component, Object constraints)
    Any constraints set on the original LayoutManager should be set through this method.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setConstraints

      public void setConstraints(com.vaadin.flow.component.Component component, Object constraints)
      Any constraints set on the original LayoutManager should be set through this method.
      Parameters:
      component -
      constraints -
    • getConstraints

      public Object getConstraints(com.vaadin.flow.component.Component component)
    • 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 -