@JavaBean public class VerticalLayout extends java.lang.Object
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 |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp) |
int |
getGap()
The current gap to place between components.
|
void |
layoutContainer(java.awt.Container parent) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
void |
removeLayoutComponent(java.awt.Component comp) |
void |
setGap(int gap)
The new gap to place between components.
|
public VerticalLayout()
public VerticalLayout(int gap)
gap
- the gap between componentspublic int getGap()
public void setGap(int gap)
gap
- the new gappublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
public void layoutContainer(java.awt.Container parent)
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
This implementation does nothing.
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
This implementation does nothing.
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
This implementation defers to LayoutManager.preferredLayoutSize(Container)
.
minimumLayoutSize
in interface java.awt.LayoutManager