org.jdesktop.swingx
Class VerticalLayout
- java.lang.Object
-
- org.jdesktop.swingx.VerticalLayout
-
- All Implemented Interfaces:
- java.awt.LayoutManager, java.io.Serializable
@JavaBean public class VerticalLayout extends java.lang.Object
Organizes components in a vertical layout.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and 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 and Description voidaddLayoutComponent(java.lang.String name, java.awt.Component comp)intgetGap()The current gap to place between components.voidlayoutContainer(java.awt.Container parent)java.awt.DimensionminimumLayoutSize(java.awt.Container parent)java.awt.DimensionpreferredLayoutSize(java.awt.Container parent)voidremoveLayoutComponent(java.awt.Component comp)voidsetGap(int gap)The new gap to place between components.
-
-
-
Constructor Detail
-
VerticalLayout
public VerticalLayout()
Creates a layout without a gap between components.
-
VerticalLayout
public VerticalLayout(int gap)
Creates a layout with the specified gap between components.- Parameters:
gap- the gap between components
-
-
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)
-
addLayoutComponent
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)This implementation does nothing.
- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager
-
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
This implementation does nothing.
- Specified by:
removeLayoutComponentin interfacejava.awt.LayoutManager
-
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
This implementation defers to
LayoutManager.preferredLayoutSize(Container).- Specified by:
minimumLayoutSizein interfacejava.awt.LayoutManager
-
-
DMelt 3.0 © DataMelt by jWork.ORG