LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyFlowLayout

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

public class LyFlowLayout
extends java.awt.FlowLayout

This class implements a flow layout with a maximum width.

See Also:
Serialized Form

Field Summary
static java.lang.String __VERSION
           
 boolean _automaticWrap
          Indicates if this layout manages an automatic wrapping.
 int _maxWidth
          Maximum width of the layout.
 
Fields inherited from class java.awt.FlowLayout
CENTER, LEADING, LEFT, RIGHT, TRAILING
 
Constructor Summary
LyFlowLayout()
          Construct a class behavior.
LyFlowLayout(int align)
          Construct a class behavior.
LyFlowLayout(int align, int hgap, int vgap)
          Construct a class behavior.
LyFlowLayout(int align, int hgap, int vgap, int maxWidth)
          Construct a class behavior.
LyFlowLayout(int align, int hgap, int vgap, int maxWidth, boolean automaticWrap)
          Construct a class behavior.
LyFlowLayout(int align, int hgap, int vgap, int maxWidth, boolean automaticWrap, LyViewManager viewManager)
          Construct a class behavior.
 
Method Summary
 void layoutContainer(java.awt.Container target)
          (non-Javadoc).
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
          The minimum size of the layout is the same as the preferred size.
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          (non-Javadoc).
 void updateSize(java.awt.Container target)
          Updates the size of the specified target if automatic wrapping is enabled.
 
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

_maxWidth

public int _maxWidth
Maximum width of the layout.


_automaticWrap

public boolean _automaticWrap
Indicates if this layout manages an automatic wrapping.

Constructor Detail

LyFlowLayout

public LyFlowLayout()
Construct a class behavior.

By default, this behaviour is centered, the horizontal and vertical gaps are both set to 5 pixels, the maximum width is set to automatic and there is no automatic wrapping.


LyFlowLayout

public LyFlowLayout(int align)
Construct a class behavior.

By default, the horizontal and vertical gaps are both set to 5 pixels, the maximum width is set to automatic and there is no automatic wrapping.

Parameters:
align - the alignment policy

LyFlowLayout

public LyFlowLayout(int align,
                    int hgap,
                    int vgap)
Construct a class behavior.

By default, the maximum width is set to automatic and there is no automatic wrapping.

Parameters:
align - the alignment policy
hgap - the horizontal gap
vgap - the vertical gap

LyFlowLayout

public LyFlowLayout(int align,
                    int hgap,
                    int vgap,
                    int maxWidth)
Construct a class behavior.

By default, there is no automatic wrapping.

Parameters:
align - the alignment policy
hgap - the horizontal gap
vgap - the vertical gap
maxWidth - the maximum width of the layout

LyFlowLayout

public LyFlowLayout(int align,
                    int hgap,
                    int vgap,
                    int maxWidth,
                    boolean automaticWrap)
Construct a class behavior.

Parameters:
align - the alignment policy
hgap - the horizontal gap
vgap - the vertical gap
maxWidth - the maximum width of the layout
automaticWrap - Indicates if the layout does automatic wrapping.

LyFlowLayout

public LyFlowLayout(int align,
                    int hgap,
                    int vgap,
                    int maxWidth,
                    boolean automaticWrap,
                    LyViewManager viewManager)
Construct a class behavior.

Parameters:
align - the alignment policy
hgap - the horizontal gap
vgap - the vertical gap
maxWidth - the maximum width of the layout
automaticWrap - Indicates if the layout does automatic wrapping.
viewManager - the viewManager instance
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)
The minimum size of the layout is the same as the preferred size.

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

layoutContainer

public void layoutContainer(java.awt.Container target)
(non-Javadoc).

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

updateSize

public void updateSize(java.awt.Container target)
Updates the size of the specified target if automatic wrapping is enabled.

Parameters:
target - the target to update its size

(c) January 2013 - W4 S.A.

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