public class VerticalLayout extends AbstractLayoutManager
Modifier and Type | Field and Description |
---|---|
private int |
gap |
private static long |
serialVersionUID |
Constructor and Description |
---|
VerticalLayout()
Creates a layout without a gap between components.
|
VerticalLayout(int gap)
Creates a layout with the specified gap between components.
|
Modifier and Type | Method and Description |
---|---|
int |
getGap()
The current gap to place between components.
|
void |
layoutContainer(Container parent) |
Dimension |
preferredLayoutSize(Container parent) |
void |
setGap(int gap)
The new gap to place between components.
|
addLayoutComponent, minimumLayoutSize, removeLayoutComponent
private static final long serialVersionUID
private int gap
public VerticalLayout()
public VerticalLayout(int gap)
gap
- the gap between componentspublic int getGap()
public void setGap(int gap)
gap
- the new gappublic Dimension preferredLayoutSize(Container parent)
public void layoutContainer(Container parent)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses