The messageComponentLayout component is a layout element for message form components only, such as messageCheckBox, messageChoice, and messageDateField. The indexed children are arranged vertically, in the order in which they are inserted. The prompts are right aligned and the controls are left aligned, as shown in the following illustration:
The attributes you can set for messageComponentLayout are:
columns
- Specifies the maximum number of columns to
show. Default is 3.
fieldWidth
- Specifies the preferred width of the field
as either a percentage or an absolute number of pixels. If the width
is not specified, it will default appropriately. If specified as a
percentage, the promptWidth plus the fieldWidth should add up to 100%,
regardless of the number of columns. If the fieldWidth is specified
and is a percentage, the promptWidth will be derived appropriately if
it is not specified.
promptWidth
- Specifies the preferred width of the prompt
as either a percentage or an absolute number of pixels. If the width
is not specified, it will default appropriately. If specified as a
percentage, the promptWidth plus the fieldWidth should add up to 100%,
regardless of the number of columns. If the promptWidth is specified
and is a percentage, the fieldWidth will be derived appropriately if
it is not specified.
rows
- Specifies the number of rows after which to start
a new column. This attribute defaults to Integer.MAX_VALUE. The number
of rows actually rendered depends also on the columns attribute. If
the children will not fit in the given number of rows and columns, the
number of rows will increase to accomodate the children.
width
- Specifies the preferred total width of the layout
as either a percentage or an absolute number of pixels.
Using MessageComponentLayout
Working with Layout Components
Copyright © 1997, 2004, Oracle. All rights reserved.