javax.rad.ui.layout
Interface IGridLayout

All Superinterfaces:
ILayout<IGridLayout.IGridConstraints>, IResource
All Known Implementing Classes:
AwtGridLayout, UIGridLayout

public interface IGridLayout
extends ILayout<IGridLayout.IGridConstraints>

Platform and technology independent grid oriented layout definition. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .


Nested Class Summary
static interface IGridLayout.IGridConstraints
          The Constraint stores the column and row for layouting a component.
 
Method Summary
 int getColumns()
          Returns the number of columns.
 IGridLayout.IGridConstraints getConstraints(int pColumns, int pRows)
          Creates a constraint with the specified number of rows and columns.
 IGridLayout.IGridConstraints getConstraints(int pColumns, int pRows, int pWidth, int pHeight)
          Creates a constraint with the specified number of rows and columns with the determined dimensions.
 IGridLayout.IGridConstraints getConstraints(int pColumns, int pRows, int pWidth, int pHeight, IInsets insets)
          Creates a constraint with the specified number of rows and columns with the determined dimensions and insets.
 int getRows()
          Returns the number of rows.
 void setColumns(int pColumns)
          Sets the column count.
 void setRows(int pRows)
          Sets the row count.
 
Methods inherited from interface javax.rad.ui.ILayout
getConstraints, getHorizontalGap, getMargins, getVerticalGap, setConstraints, setHorizontalGap, setMargins, setVerticalGap
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Method Detail

getConstraints

IGridLayout.IGridConstraints getConstraints(int pColumns,
                                            int pRows)
Creates a constraint with the specified number of rows and columns.

Parameters:
pColumns - the number of columns
pRows - the number of rows
Returns:
the constraint.

getConstraints

IGridLayout.IGridConstraints getConstraints(int pColumns,
                                            int pRows,
                                            int pWidth,
                                            int pHeight)
Creates a constraint with the specified number of rows and columns with the determined dimensions.

Parameters:
pColumns - the number of columns
pRows - the number of rows
pWidth - width of the content
pHeight - height of the content
Returns:
the constraint.

getConstraints

IGridLayout.IGridConstraints getConstraints(int pColumns,
                                            int pRows,
                                            int pWidth,
                                            int pHeight,
                                            IInsets insets)
Creates a constraint with the specified number of rows and columns with the determined dimensions and insets.

Parameters:
pColumns - the number of columns
pRows - the number of rows
pWidth - width of the content
pHeight - height of the content
insets - the determined insets
Returns:
the constraint.

setColumns

void setColumns(int pColumns)
Sets the column count.

Parameters:
pColumns - the column count.

getColumns

int getColumns()
Returns the number of columns.

Returns:
the number of columns.

setRows

void setRows(int pRows)
Sets the row count.

Parameters:
pRows - the row count.

getRows

int getRows()
Returns the number of rows.

Returns:
the number of rows.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.