注意: この手順では、このトピックの最後に記述されているインライン・データがUIXファイルに挿入されているものとして説明しています。demoTableDataというインライン・データでは、行と列のデータが提供されます。
addTableRowおよびtotalRowをtableFooterに挿入するには、次のようにします。
「tableFooter」ノードが、展開された親ノードに挿入され、強調表示されます。
注意: データ・バインディングを使用する場合には、「コンポーネントの属性のデータ・バインディング」を参照してください。
...
<table ...>
<contents>
<column>
<columnHeader>Item</columnHeader>
<contents>
<styledText text="${uix.current.firstColumnText}"/>
</contents>
</column>
<column>
<columnHeader>Amount</columnHeader>
<columnFormat columnDataFormat="numberFormat"/>
<contents>
<text text="${uix.current.secondColumnText}"/>
</contents>
<footer>
<textInput columns="2"/>
</footer>
</column>
</contents>
<footer>
<tableFooter>
<contents>
<messageChoice prompt="Row Type">
<contents>
<option text="option 1"/>
<option text="option 2"/>
</contents>
<end>
<addTableRow/>
</end>
</messageChoice>
</contents>
<total>
<totalRow readOnly="false"/>
</total>
</tableFooter>
</footer>
...
</table>
...
tableFooterおよびtotalについて
addTableRowについて
totalRowについて
columnへの子footerの挿入
tableコンポーネントの使用
Copyright © 1997, 2004, Oracle. All rights reserved.