Package org.jdesktop.swingx
Class VerticalLayout
- java.lang.Object
-
- org.jdesktop.swingx.AbstractLayoutManager
-
- org.jdesktop.swingx.VerticalLayout
-
- All Implemented Interfaces:
java.awt.LayoutManager,java.io.Serializable
- Direct Known Subclasses:
BasicTaskPaneContainerUI.VerticalLayoutUIResource,JXLoginPane.LoginPaneLayout
@JavaBean public class VerticalLayout extends AbstractLayoutManager
Organizes components in a vertical layout.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intgapprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description VerticalLayout()Creates a layout without a gap between components.VerticalLayout(int gap)Creates a layout with the specified gap between components.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGap()The current gap to place between components.voidlayoutContainer(java.awt.Container parent)java.awt.DimensionpreferredLayoutSize(java.awt.Container parent)voidsetGap(int gap)The new gap to place between components.-
Methods inherited from class org.jdesktop.swingx.AbstractLayoutManager
addLayoutComponent, minimumLayoutSize, removeLayoutComponent
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
gap
private int gap
-
-
Method Detail
-
getGap
public int getGap()
The current gap to place between components.- Returns:
- the current gap
-
setGap
public void setGap(int gap)
The new gap to place between components.- Parameters:
gap- the new gap
-
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
-
layoutContainer
public void layoutContainer(java.awt.Container parent)
-
-