LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class VFlowLayout

java.lang.Object
  extended by java.awt.FlowLayout
      extended by leon.view.win.swing.component.VFlowLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class VFlowLayout
extends java.awt.FlowLayout

VFlowLayout is similair to FlowLayout except it lays out components vertically.

Extends FlowLayout because it mimics much of the behavior of the FlowLayout class, except vertically. An additional feature is that you can specify a fill to edge flag, which causes the VFlowLayout manager to resize all components to expand to the column width.

Warning: This causes problems when the main panel has less space that it needs and it seems to prohibit multi-column output.

See Also:
Serialized Form

Field Summary
static java.lang.String __VERSION
           
static int BOTTOM
          The bottom alignment.
static int MIDDLE
          The middle alignment.
static int TOP
          The top alignment.
 
Fields inherited from class java.awt.FlowLayout
CENTER, LEADING, LEFT, RIGHT, TRAILING
 
Constructor Summary
VFlowLayout()
          Constructs a new VFlowLayout with a middle alignemnt, and the fill to edge flag set.
VFlowLayout(boolean fill)
          Constructs a new VFlowLayout with a middle alignemnt.
VFlowLayout(int align)
          Constructs a new VFlowLayout with a middle alignemnt.
VFlowLayout(int align, boolean fill)
          Constructs a new VFlowLayout.
VFlowLayout(int align, int hgap, int vgap, boolean fill)
          Constructs a new VFlowLayout.
 
Method Summary
 void layoutContainer(java.awt.Container target)
          Lays out the container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
          (non-Javadoc).
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          (non-Javadoc).
 
Methods inherited from class java.awt.FlowLayout
addLayoutComponent, getAlignment, getAlignOnBaseline, getHgap, getVgap, removeLayoutComponent, setAlignment, setAlignOnBaseline, setHgap, setVgap, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values

TOP

public static final int TOP
The top alignment.

See Also:
Constant Field Values

MIDDLE

public static final int MIDDLE
The middle alignment.

See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
The bottom alignment.

See Also:
Constant Field Values
Constructor Detail

VFlowLayout

public VFlowLayout()
Constructs a new VFlowLayout with a middle alignemnt, and the fill to edge flag set.


VFlowLayout

public VFlowLayout(boolean fill)
Constructs a new VFlowLayout with a middle alignemnt.

Parameters:
fill - the fill to edge flag

VFlowLayout

public VFlowLayout(int align)
Constructs a new VFlowLayout with a middle alignemnt.

Parameters:
align - the alignment value

VFlowLayout

public VFlowLayout(int align,
                   boolean fill)
Constructs a new VFlowLayout.

Parameters:
align - the alignment value
fill - the fill to edge flag

VFlowLayout

public VFlowLayout(int align,
                   int hgap,
                   int vgap,
                   boolean fill)
Constructs a new VFlowLayout.

Parameters:
align - the alignment value
hgap - the horizontal gap variable
vgap - the vertical gap variable
fill - the fill to edge flag
Method Detail

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
(non-Javadoc).

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Overrides:
preferredLayoutSize in class java.awt.FlowLayout
See Also:
LayoutManager.preferredLayoutSize(java.awt.Container)

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
(non-Javadoc).

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Overrides:
minimumLayoutSize in class java.awt.FlowLayout
See Also:
LayoutManager.minimumLayoutSize(java.awt.Container)

layoutContainer

public void layoutContainer(java.awt.Container target)
Lays out the container.

Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class java.awt.FlowLayout
Parameters:
target - the container to lay out.
See Also:
LayoutManager.layoutContainer(java.awt.Container)

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com