Package org.jdesktop.swingx
Class VerticalLayout
java.lang.Object
org.jdesktop.swingx.VerticalLayout
- All Implemented Interfaces:
LayoutManager,Serializable
- Direct Known Subclasses:
BasicTaskPaneContainerUI.VerticalLayoutUIResource
Organizes components in a vertical layout.
- Author:
- fred, Karl Schaefer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a layout without a gap between components.VerticalLayout(int gap) Creates a layout with the specified gap between components. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) intgetGap()The current gap to place between components.voidlayoutContainer(Container parent) minimumLayoutSize(Container parent) preferredLayoutSize(Container parent) voidvoidsetGap(int gap) The new gap to place between components.
-
Constructor Details
-
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 Details
-
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
-
layoutContainer
-
addLayoutComponent
This implementation does nothing.
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
removeLayoutComponent
This implementation does nothing.
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
minimumLayoutSize
This implementation defers to
LayoutManager.preferredLayoutSize(Container).- Specified by:
minimumLayoutSizein interfaceLayoutManager
-