client.helper
Class GUIHelper

java.lang.Object
  extended byclient.helper.GUIHelper

public class GUIHelper
extends java.lang.Object

This helper class helps to create well arranged GUI components. Its creating form- or grid-style layouts using the SpringLayout class.

Author:
buetow

Constructor Summary
GUIHelper()
           
 
Method Summary
static void makeCompactGrid(java.awt.Container containerParent, int iRows, int iCols, int iInitialX, int iInitialY, int iXPad, int iYPad)
          Aligns the first iRows * iCols components of containerParent in a grid.
static void makeGrid(java.awt.Container containerParent, int iRows, int iCols, int iInitialX, int iInitialY, int iXPad, int iYPad)
          Aligns the first iRows * iCols components of the parent in a grid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIHelper

public GUIHelper()
Method Detail

makeGrid

public static void makeGrid(java.awt.Container containerParent,
                            int iRows,
                            int iCols,
                            int iInitialX,
                            int iInitialY,
                            int iXPad,
                            int iYPad)
Aligns the first iRows * iCols components of the parent in a grid. Each component is as big as the maximum preferred width and height of the components. The parent is made just big enough to fit them all.

Parameters:
containerParent - Specifies the container to be used
iRows - Specifies the number of rows to use.
iCols - Specifies the number of columns to use.
iInitialX - Specifies the x location to start the grid at.
iInitialY - Specifies the y location to start the grid at.
iXPad - Specifies the x padding between the cells.
iYPad - Specifies the y padding between the cells

makeCompactGrid

public static void makeCompactGrid(java.awt.Container containerParent,
                                   int iRows,
                                   int iCols,
                                   int iInitialX,
                                   int iInitialY,
                                   int iXPad,
                                   int iYPad)
Aligns the first iRows * iCols components of containerParent in a grid. Each component in a iColumn is as wide as the maximum preferred width of the components in that iColumn; height is similarly determined for each iRow. The containerParent is made just big enough to fit them all.

Parameters:
iRows - Specifies number of rows.
iCols - Specifies the number of columns.
iInitialX - Specifies the x location to start the grid at.
iInitialY - Specifies the y location to start the grid at.
iXPad - Specifies the x padding between the cells.
iYPad - Specifies the y padding between the cells.