Class GridBagLayout

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

public class GridBagLayout extends AbstractLayout
GridBagLayout is a flexible layout that aligns components vertically and horizontally, without requiring the components to be of the same size. The layout maintains a dynamic rectangular grid of cells, with each component occupying one or more cells, known as its display area. The layout uses GridBagConstraints instances to specify the constraints for each component that is added to the layout.
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • GridBagLayout

      public GridBagLayout()
  • Method Details

    • onContainerAttach

      protected void onContainerAttach(com.vaadin.flow.component.AttachEvent event)
      Overrides:
      onContainerAttach in class AbstractLayout
    • setContainer

      public void setContainer(com.vaadin.flow.component.Component container)
      Overrides:
      setContainer in class AbstractLayout
    • addComponent

      public void addComponent(com.vaadin.flow.component.Component component)
      Overrides:
      addComponent in class AbstractLayout
    • removeComponent

      public void removeComponent(com.vaadin.flow.component.Component component)
      Overrides:
      removeComponent in class AbstractLayout
    • setConstraints

      public void setConstraints(com.vaadin.flow.component.Component component, Object constraintsObject)
      Specified by:
      setConstraints in class AbstractLayout
    • getConstraints

      public Object getConstraints(com.vaadin.flow.component.Component component)
      Specified by:
      getConstraints in class AbstractLayout