chrriis.uihierarchy.layout
Class GridHLayout

java.lang.Object
  extended bychrriis.uihierarchy.layout.GridHLayout
All Implemented Interfaces:
HLayoutManager

public class GridHLayout
extends Object
implements HLayoutManager

A grid layout that is lazily created, using the UIH configuration. This allows the use of units to determine the gaps, which are defined as Strings.

Version:
1.0 2005.02.06
Author:
Christopher Deckers (chrriis@brainlex.com)

Constructor Summary
GridHLayout()
          Creates a grid layout with a default of one column per component, in a single row.
GridHLayout(int rows, int cols)
          Creates a grid layout with the specified number of rows and columns.
GridHLayout(int rows, int cols, String hgap, String vgap)
          Creates a grid layout with the specified number of rows and columns.
 
Method Summary
 LayoutManager createLayout(UIHConfig uihConfig)
          Create the desired layout manager, using the UIH configuration.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridHLayout

public GridHLayout()
Creates a grid layout with a default of one column per component, in a single row.


GridHLayout

public GridHLayout(int rows,
                   int cols)
Creates a grid layout with the specified number of rows and columns.

Parameters:
rows -
cols -

GridHLayout

public GridHLayout(int rows,
                   int cols,
                   String hgap,
                   String vgap)
Creates a grid layout with the specified number of rows and columns.

Parameters:
rows -
cols -
hgap -
vgap -
Method Detail

createLayout

public LayoutManager createLayout(UIHConfig uihConfig)
Description copied from interface: HLayoutManager
Create the desired layout manager, using the UIH configuration.

Specified by:
createLayout in interface HLayoutManager
Parameters:
uihConfig - The configuration that may be used.
Returns:
The layout manager.