You can create databound tables using databound UI components provided by the Oracle Application Development Framework (Oracle ADF) bindings. When you work with the Data Control Palette to quickly assemble databound tables, ADF UIX automatically updates the model attributes for you.
For details about ADF bindings and the Data Control Palette, see:
Note: This procedure assumes inline data (as shown in the example at the end of this topic) has been inserted in the UIX file. The inline data named "demoTableData" provides the data for the rows and columns.
To create a column component:
The column node is inserted and highlighted under the expanded parent node.
bandingShade
- Select from the following:
cellNoWrapFormat
- Select true or false to
specify whether the column will be rendered by wrapping the
cell contents in multiple lines.
columnDataFormat
- Select the data formatting for
column cells from the following supported values:
displayGrid
- Select true or false to specify
whether a grid line is displayed before the column's content.
By default, a grid line is shown to the left of every column,
in a left-to-right locale.
width
- Enter the width of the column in pixels
or as a percentage.
cellNoWrapFormat
- Select true or false to
specify whether the column header will be rendered by wrapping
the cell contents in multiple lines.
nameTransformed
on the table has been set to
false.
Note: To use data binding, see Data Binding a Component Attribute.
Or,
Enter ${uix.current.colnumkey} where colnumkey is the key to the column contents, e.g., ${uix.current.firstColumntext} if the column is using inline data bound to the table as shown in the example.
...
<provider>
<data name="demoTableData">
<inline>
<!-- data for 4 rows -->
<demoRowData firstColumnText="First row"
secondColumnText="First Button"
thirdColumnText="First col"
fourthColumnText="111"
isSelected="false"
isDisabled="true" />
<demoRowData firstColumnText="Second row"
secondColumnText="Second Button"
thirdColumnText="Second col"
fourthColumnText="222"
isSelected="true" />
<demoRowData firstColumnText="Third row"
secondColumnText="Third Button"
thirdColumnText="Third col"
fourthColumnText="333"
isSelected="false" />
<demoRowData firstColumnText="4th row"
secondColumnText="4th Button"
thirdColumnText="4th row col"
fourthColumnText="444"
isSelected="false" />
<!-- data for the row headers -->
<demoRowHeaderData headerText="1"/>
<demoRowHeaderData headerText="2"/>
<demoRowHeaderData headerText="3"/>
<demoRowHeaderData headerText="4"/>
<!-- data for the 4 column headers -->
<demoColHeaderData textKey="H1"/>
<demoColHeaderData textKey="H2"/>
<demoColHeaderData textKey="H3"/>
<demoColHeaderData textKey="H4"/>
<!-- formatting information for the rows -->
<demoRowFormats/>
<demoRowFormats displayGrid="false"/>
<demoRowFormats/>
<demoRowFormats/>
</inline>
</data>
</provider>
...
<contents>
...
<table alternateText="No Items Found."
blockSize="25"
tableData="${uix.data.demoTableData.demoRowData}"
columnHeaderData="${uix.data.demoTableData.demoColHeaderData}"
rowHeaderData="${uix.data.demoTableData.demoRowHeaderData}">
<contents>
<!-- table's indexed children are the columns -->
<column>
<!-- first column stamp -->
<contents>
<styledText text="${uix.current.firstColumnText}"/>
</contents>
</column>
<column>
<!-- second column stamp -->
<contents>
<styledText text="${uix.current.secondColumnText}"/>
</contents>
<!-- second column header -->
</column>
<column>
<!-- third column stamp -->
<contents>
<styledText text="${uix.current.thirdColumnText}"/>
</contents>
</column>
<column>
<!-- column formatting -->
<columnFormat columnDataFormat="numberFormat"
width="45%"/>
<!-- fourth column stamp -->
<contents>
<styledText text="${uix.current.fourthColumnText}"/>
</contents>
</column>
</contents>
...
</table>
</contents>
...
About Column and its Named
Children
About Name
Transformation and Editable Table Cells
Inserting a ColumnHeader
Inserting a SortableHeader
Using a
ColumnGroup
Creating a Table
Working with Table Components
Copyright © 1997, 2004, Oracle. All rights reserved.