A grid is a two dimensional arrangement of data in rows and columns. The control is similar to gridLayout but has more features in adjusting the cells of the grid. If no formLayoutCells are defined no formLayout is displayed.
Limitation:
Large formLayouts (large amount of rows and columns) can cause problems
like:
Compiler errors that are caused by a 64kB method length limit.
Slow processing of page because of huge HTML-Code generated by the JSP-Compiler
debugMode
A Boolean value. If set to "TRUE" the formLayoutCell is rendered with a frame. The frame
size is defined by formLayoutCell 'width'
and the padding. If a formLayoutCell is
not defined or empty no frame is displayed.
If set to "FALSE" no
frame is rendered.
By default the borders of the grid are invisible. To see the borders for layout and debug reasons set the debug attribute..
Setting the debugMode attribute will add pixels to visualize borders. Therefore the sizes of the grid layout will change if you reset the attribute. The debugMode attribute, as indicated by the name, should only be used for debugging and not for "styling".
id
Identification name of the
formLayout.
You have to specify an id if you want to access the control.
marginBottom
Specifies the distance from the bottom of the control to the next control.
marginLeft
Specifies the distance
from the "actual" position to the left side of the control.
marginRight
Specifies distance from
the right side of the control to the next control.
marginTop
Specifies distance from
the "actual" position to the top of the control.
width
Defines the width of the formLayout. If the 'width'
in formLayoutCell is specified in percent, the percentage will be calculated
from the width of the formLayout.
If the formLayoutCell definition exceeds
the 'width' of the formLayout the formLayoutCell content will be wrapped.
Attribute |
M |
Values |
Usage |
debugMode |
|
FALSE (d) TRUE |
Taglib Classlib |
id |
* |
String |
Taglib Classlib |
marginBottom |
|
Unit (0) |
Taglib Classlib |
marginLeft |
|
Unit (0) |
Taglib Classlib |
marginRight |
|
Unit (0) |
Taglib Classlib |
marginTop |
|
Unit (0) |
Taglib Classlib |
width |
|
Unit (100%) |
Taglib Classlib |
Defines the rows in the formLayout. The cells (formLayoutCell) have to be nested in form layout rows.
id
Identification name of the
formLayoutRow. You have to specify an id if you want to access the
control.
paddingBottom
Specifies the bottom padding of each row in the
form layout. The value of the paddingBottom attribute represents the distance
from the bottom border of the cell to the bottom of the content of each row
specified in pixels.
paddingTop
Specifies the top padding of each row in the form
layout. The value of the paddingTop attribute represents the distance from the
top border of the cell to the top of the content of each row specified in
pixels.
Attribute |
M |
Values |
Usage |
Id |
|
String (cs) |
Taglib
Classlib |
padding |
|
Numeric (0) |
Classlib
for example: |
paddingBottom |
|
Numeric (0) |
Taglib
Classlib
|
paddingTop |
|
Numeric (0) |
Taglib
Classlib
|
Defines the cells in the formLayoutRow.
align
Defines the horizontal
alignment of the cell content.
LEFT
Left justifies the content of the cell.
RIGHT
Right justifies the content of the cell.
CENTER
Centers the content of the cell.
CHAR
Aligns text around a specific character. Not supported by all web clients.
JUSTIFY
Sets text in the cell left and right aligned. Not supported by all web
clients.
colspan
Defines the horizontal
expansion the cell in columns.
content
Specifies the content
for the cell.
id
Identification name of
the formLayoutCell.
paddingBottom
Specifies the bottom
padding of each cell in the form layout. The value of the paddingBottom
attribute represents the distance from the bottom border of the cell to the
bottom of the content of each cell specified in pixels.
paddingLeft
Specifies the left
padding of each cell in the form layout. The value of the paddingLeft
attribute represents the distance from the left border of the cell to the left
side of the content of each cell specified in pixels.
paddingRight
Specifies the right
padding of each cell in the form layout. The value of the paddingRight
attribute represents the distance from the right border of the cell to the
right side of the content of each cell specified in pixels.
paddingTop
Specifies the top
padding of each cell in the form layout. The value of the paddingTop attribute
represents the distance from the top border of the cell to the top of the
content of each cell specified in pixels.
valign
Defines the vertical
alignment of the cell content.
BASELINE
The content of the cell is aligned on the baseline line of the cell (or bottom
when no baseline exits).
BOTTOM
The content of the cell is aligned to the bottom line of the cell.
MIDDLE
The content of the cell is aligned to the middle of the cell height.
TOP
The content of the cell is aligned to the top line of the cell.
width
Defines the width of the formLayoutCell. One column can have
only one width - when you specify different widths for the same column the
width defined last is taken.
Attribute |
M |
Values |
JSP Taglib |
align |
|
LEFT (d) RIGHT CENTER CHAR JUSTIFY |
Taglib
Classlib
|
colspan |
|
Numeric (1) |
Taglib
Classlib
|
content |
|
String
or |
Classlib
Component: setContent(ListBox) |
id |
|
String (cs) |
Taglib
Classlib
|
paddingBottom |
|
Numeric (0) |
Taglib
Classlib
|
paddingLeft |
|
Numeric (0) |
Taglib
Classlib
|
paddingRight |
|
Numeric (0) |
Taglib
Classlib
|
paddingTop |
|
Numeric (0) |
Taglib
Classlib
|
valign |
|
BASELINE BOTTOM MIDDLE (d) TOP |
Taglib
Classlib
|
width |
|
Unit |
Taglib
Classlib
|
<hbj:formLayout |
Form form = (Form)this.getForm(); |