Some display elements are contained within components called container components. Container components offer a way to:
Collect multiple components to visually organize in a particular way. Simple containers can concatenate the components horizontally or vertically. Other containers allow more flexible positioning of components and can add ornamentation around the components.
Group components that you want to hide or disable on a form.
Creating a container class typically results in the generation of an HTML table tag.
Typical container components are described in the following table.
Table 2–12 Typical Container Components
Component |
Description |
---|---|
<SimpleTable> |
Arranges components in a grid with an optional row of column titles at the top |
<ButtonRow> |
Arranges button in a horizontal row. This component is essentially a panel that is preconfigured for horizontal layout. |
<BorderedPanel> |
Positions components into five regions: north, south, east, and west |
<SortingTable> |
Displays a blue and beige table with sortable columns. |
The <SimpleTable> component is a frequently used container component in Waveset forms. It arranges components in a grid with an optional row of column titles at the top. The only property for this display component is columns, which assigns column titles and defines the width of the table as defined in a list of strings.
In the following example, a field that uses SimpleTable to organize several subfields:
<Field name=’SelectionTable’> <Display class=’SimpleTable’> <Property name=’columns’> <List> <String>Account</String> <String>Description</String> </List> </Property> </Display> <Field name=’accounts[LDAP].selected’> <Display class=’Checkbox’> <Property name=’label’ value=’LDAP’/> </Display> </Field> <Field> <Display class=’Label’> <Property name=’text’ value=’Primary Corporate LDAP Server’/> </Display> </Field> <Field name=’accounts[W2K].selected’> <Display class=’Checkbox’> <Property name=’label’ value=’Windows 2000’/> </Display> </Field> <Field> <Display class=’Label’> <Property name=’text’ value=’Primary Windows 2000 Server’/> </Display> </Field> </Field> |
To group multiple components on a form to hide or disable them, use the <SimpleTable> container as shown in the following example.
<Field> <Disable> <not> <contains> <ref>accountInfo.typeNames</ref> <s>Windows Active Directory</s> </contains> </not> </Disable> <Field name=’accounts[AD].HomeDirectory’> <Display class=’Text’> <Property name=’title’ value=’Home Directory’> </Display> </Field> </Field> |