borland Packages Class Hierarchy dbswing Package
java.lang.Object +----com.borland.dbswing.ColumnLayout
Variables Constructors Properties Methods
Implements LayoutManager, Serializable
The ColumnLayout
layout manager lays out components vertically in a single column. It is a convenient layout for building columns of display labels with adjacent entry fields.
It has the following properties:
hgap
- Horizontal gap between components
vgap
- Vertical gap between components
verticalFill
- Increases the height of the last component to fill the container
horizontalFill
- Increases the width of all components to fill the container
horizontalAlignment
- Horizontal alignment of each component in the container
verticalAlignment
- Vertical alignment of components in the container
public static final int BOTTOM = 2
public static final int LEFT = 0
public static final int MIDDLE = 1
public static final int RIGHT = 2
public static final int TOP = 0
public ColumnLayout()Constructs a default
ColumnLayout
with TOP LEFT alignment, and horizontal and vertical fill set to false.
public ColumnLayout(int verticalAlignment, int hgap, int vgap, boolean fillWidth, boolean fillHeight)Construct a new
ColumnLayout
with the following parameters.
verticalAlignment
hgap
vgap
fillWidth
fillHeight
public int getHgap() public void setHgap(int hgap)Returns and sets the horizontal gap between components.
public int getHorizontalAlignment() public void setHorizontalAlignment(int horizontalAlignment)Returns and sets the horizontal alignment (either
ColumnLayout.LEFT, ColumnLayout.MIDDLE,
or ColumnLayout.RIGHT)
of components managed by ColumnLayout.
public boolean getHorizontalFill() public void setHorizontalFill(boolean fillWidth)Returns and sets whether every component added to the layout should be extended horizontally to fill the width of the container.
public int getVerticalAlignment() public void setVerticalAlignment(int verticalAlignment)Returns and sets the vertical alignment (either
ColumnLayout.TOP, ColumnLayout.MIDDLE,
or ColumnLayout.BOTTOM)
of components managed by ColumnLayout.
public boolean getVerticalFill() public void setVerticalFill(boolean fillHeight)Returns and sets whether the last component added to the layout should be extended vertically to fill the height of the container.
public int getVgap() public void setVgap(int vgap)Returns and sets the vertical gap between components.