org.jdesktop.swingx
Class VerticalLayout

java.lang.Object
  extended by org.jdesktop.swingx.VerticalLayout
All Implemented Interfaces:
LayoutManager, Serializable
Direct Known Subclasses:
BasicTaskPaneContainerUI.VerticalLayoutUIResource

@JavaBean
public class VerticalLayout
extends Object

Organizes components in a vertical layout.

Author:
fred, Karl Schaefer
See Also:
Serialized Form

Constructor Summary
VerticalLayout()
          Creates a layout without a gap between components.
VerticalLayout(int gap)
          Creates a layout with the specified gap between components.
 
Method Summary
 void addLayoutComponent(String name, Component comp)
          
 int getGap()
          The current gap to place between components.
 void layoutContainer(Container parent)
          
 Dimension minimumLayoutSize(Container parent)
          
 Dimension preferredLayoutSize(Container parent)
          
 void removeLayoutComponent(Component comp)
          
 void setGap(int gap)
          The new gap to place between components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 Dimension preferredLayoutSize(Container parent)


layoutContainer

public void layoutContainer(Container parent)


addLayoutComponent

public void addLayoutComponent(String name,
                               Component comp)

This implementation does nothing.

Specified by:
addLayoutComponent in interface LayoutManager

removeLayoutComponent

public void removeLayoutComponent(Component comp)

This implementation does nothing.

Specified by:
removeLayoutComponent in interface LayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)

This implementation defers to LayoutManager.preferredLayoutSize(Container).

Specified by:
minimumLayoutSize in interface LayoutManager


Copyright © 2012. All Rights Reserved.