Class BaseFlowLayout

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

public class BaseFlowLayout extends Object implements Serializable
Flow layout arranges components in a directional flow.
Author:
Vaadin Ltd
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    This value indicates that each row of components should be centered.
    protected int
     
    static final int
    This value indicates that each row of components should be justified to the start of the container (for left-to-right direction, it is the left edge).
    static final int
    This value indicates that each row of components should be justified to the end of the container (for left-to-right direction, it is the right edge).
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new FlowLayout with a centered alignment and a default 5-pixels horizontal and vertical gap.
    BaseFlowLayout(int align)
    Constructs a new FlowLayout with the specified alignment and a default 5-pixels horizontal and vertical gap.
    BaseFlowLayout(int align, int hgap, int vgap)
    Constructs a new FlowLayout with the specified alignment and the indicated horizontal and vertical gaps.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the alignment for this layout.
    protected int
     
    protected int
     
    protected void
    setAlignment(int align, com.vaadin.flow.component.Component container)
    Sets the alignment for this layout.
    protected void
    setHorizontalGap(int horizontalGap)
     
    protected void
    setVerticalGap(int verticalGap)
     
    protected void
    updateAlignment(com.vaadin.flow.component.Component container)
     

    Methods inherited from class java.lang.Object

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

    • horizontalGap

      protected int horizontalGap
    • verticalGap

      protected int verticalGap
    • CENTER

      public static final int CENTER
      This value indicates that each row of components should be centered.
      See Also:
    • LEADING

      public static final int LEADING
      This value indicates that each row of components should be justified to the start of the container (for left-to-right direction, it is the left edge).
      See Also:
    • TRAILING

      public static final int TRAILING
      This value indicates that each row of components should be justified to the end of the container (for left-to-right direction, it is the right edge).
      See Also:
  • Constructor Details

    • BaseFlowLayout

      public BaseFlowLayout()
      Constructs a new FlowLayout with a centered alignment and a default 5-pixels horizontal and vertical gap.
    • BaseFlowLayout

      public BaseFlowLayout(int align)
      Constructs a new FlowLayout with the specified alignment and a default 5-pixels horizontal and vertical gap.
      Parameters:
      align - the alignment value
    • BaseFlowLayout

      public BaseFlowLayout(int align, int hgap, int vgap)
      Constructs a new FlowLayout with the specified alignment and the indicated horizontal and vertical gaps.
      Parameters:
      align - the alignment value
      hgap - the horizontal gap between components and between the components and the borders of the container
      vgap - the vertical gap between components and between the components and the borders of the container
  • Method Details

    • getAlignment

      public int getAlignment()
      Gets the alignment for this layout. Possible values are FlowLayout.LEADING, FlowLayout.CENTER, or FlowLayout.TRAILING.
    • setAlignment

      protected void setAlignment(int align, com.vaadin.flow.component.Component container)
      Sets the alignment for this layout. Possible values are FlowLayout.LEADING, FlowLayout.CENTER, or FlowLayout.TRAILING.
      Parameters:
      align - the alignment value
    • updateAlignment

      protected void updateAlignment(com.vaadin.flow.component.Component container)
    • setHorizontalGap

      protected void setHorizontalGap(int horizontalGap)
    • setVerticalGap

      protected void setVerticalGap(int verticalGap)
    • getHorizontalGap

      protected int getHorizontalGap()
    • getVerticalGap

      protected int getVerticalGap()