public class VerticalLayout
A vertical layout manager similar to java.awt.FlowLayout.
Like FlowLayout components do not expand to fill available space except when the horizontal alignment
is BOTH
in which case components are stretched horizontally. Unlike FlowLayout, components will not wrap to form another
column if there isn't enough space vertically. VerticalLayout can optionally anchor components to the top or bottom
of the display area or center them between the top and bottom.
Revision date 12th July 2001
Based on 'FlexLayout' in Java class libraries Vol 2 Chan/Lee Addison-Wesley 1998
Modifiers | Name | Description |
---|---|---|
static int |
BOTH |
The horizontal alignment constant that designates stretching the component horizontally. |
static int |
BOTTOM |
The anchoring constant that designates anchoring to the bottom of the display area |
static int |
CENTER |
The horizontal alignment constant that designates centering. |
static int |
LEFT |
The horizontal alignment constant that designates left justification. |
static int |
RIGHT |
The horizontal alignment constant that designates right justification. |
static int |
TOP |
The anchoring constant that designates anchoring to the top of the display area |
Constructor and description |
---|
VerticalLayout
() Constructs an instance of VerticalLayout with a vertical vgap of 5 pixels, horizontal centering and anchored to the top of the display area. |
VerticalLayout
(int vgap) Constructs a VerticalLayout instance with horizontal centering, anchored to the top with the specified vgap |
VerticalLayout
(int vgap, int alignment) Constructs a VerticalLayout instance anchored to the top with the specified vgap and horizontal alignment |
VerticalLayout
(int vgap, int alignment, int anchor) Constructs a VerticalLayout instance with the specified vgap, horizontal alignment and anchoring |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addLayoutComponent(java.lang.String name, java.awt.Component comp) Not used by this class |
|
void |
layoutContainer(java.awt.Container parent) Lays out the container. |
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
|
void |
removeLayoutComponent(java.awt.Component comp) Not used by this class |
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The horizontal alignment constant that designates stretching the component horizontally.
The anchoring constant that designates anchoring to the bottom of the display area
The horizontal alignment constant that designates centering. Also used to designate center anchoring.
The horizontal alignment constant that designates left justification.
The horizontal alignment constant that designates right justification.
The anchoring constant that designates anchoring to the top of the display area
Constructs an instance of VerticalLayout with a vertical vgap of 5 pixels, horizontal centering and anchored to the top of the display area.
Constructs a VerticalLayout instance with horizontal centering, anchored to the top with the specified vgap
vgap
- An int value indicating the vertical seperation of the componentsConstructs a VerticalLayout instance anchored to the top with the specified vgap and horizontal alignment
vgap
- An int value indicating the vertical seperation of the componentsalignment
- An int value which is one of RIGHT, LEFT, CENTER, BOTH
for the horizontal alignment.Constructs a VerticalLayout instance with the specified vgap, horizontal alignment and anchoring
vgap
- An int value indicating the vertical seperation of the componentsalignment
- An int value which is one of RIGHT, LEFT, CENTER, BOTH
for the horizontal alignment.anchor
- An int value which is one of TOP, BOTTOM, CENTER
indicating where the components are
to appear if the display area exceeds the minimum necessary.Not used by this class
Lays out the container.
Not used by this class
ReadyAPI functional (soapui) SDK 3.20.1