jbcl.layout Package
java.lang.Object +----java.awt.FlowLayout +----com.borland.jbcl.layout.VerticalFlowLayout
Variables Constructors Properties Methods
Implements LayoutManager, Serializable
VerticalFlowLayout
is similar to FlowLayout
except that it lays out components
vertically. It extends FlowLayout
and mimics much of the behavior of the FlowLayout
class.
VerticalFlowLayout
allows you to specify a Fill to Edge flag, which causes the
VerticalFlowLayout
manager to resize all components to expand to the column width
Warning: This causes problems when the main panel has less space than it needs. It also prohibits multi-column output.
VerticalFlowLayout
also has a verticalFill
property, which fills the last component
to the remaining height of the container.
public static final int BOTTOM = 2
public static final int MIDDLE = 1
public static final int TOP = 0
public VerticalFlowLayout()Constructs a new
VerticalFlowLayout
with a middle alignment, and the Fill to Edge flag set.
public VerticalFlowLayout(boolean hfill, boolean vfill)Constructs a new
VerticalFlowLayout
with a middle alignment.
Parameters:
hfill
vfill
public VerticalFlowLayout(int align)Constructs a new
VerticalFlowLayout
with a middle alignment.
Parameters:
align
public VerticalFlowLayout(int align, boolean hfill, boolean vfill)Constructs a new
VerticalFlowLayout
.
Parameters:
align
hfill
vfill
public VerticalFlowLayout(int align, int hgap, int vgap, boolean hfill, boolean vfill)Constructs a new
VerticalFlowLayout
.
Parameters:
align
hgap
vgap
hfill
vfill
public int getHgap() public void setHgap(int hgap)Returns and sets the horizontal gap between components.
See also:
java.awt.FlowLayout.getHgap
. java.awt.FlowLayout.setHgap
public boolean getHorizontalFill() public void setHorizontalFill(boolean hfill)Returns and sets the horizontal fill between components.
public boolean getVerticalFill() public void setVerticalFill(boolean vfill)Returns and sets the vertical gap between components.
public int getVgap() public void setVgap(int vgap)Returns and sets the vertical gap between components.
See also:
java.awt.FlowLayout.getVgap
. java.awt.FlowLayout.setVgap