columnへの子footerの挿入

注意: この手順では、このトピックの最後に記述されているインライン・データがUIXファイルに挿入されているものとして説明しています。demoTableDataというインライン・データでは、行と列のデータが提供されます。

columnコンポーネントに子であるfooterを挿入するには、次のようにします。

  1. 設計構造ウィンドウで、「column」ノードを展開して、名前付きの子「footer」ノードを探します。
  2. 「footer」ノードを右クリックして、任意のコンポーネントを挿入します。たとえば、計算した合計を入力するフィールドを挿入するには、textInputコンポーネントを挿入します。
  3. プロパティ・インスペクタで、挿入した子コンポーネントの属性を設定します。

例(UIX XML)


...
  <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" name="sometotal" text="42"/>
        </footer>
      </column>
    </contents>
    ...
  </table>
...    

tableおよびcolumnのfooterについて

列の作成
tableFooter、addTableRowおよびtotalRowの使用
tableコンポーネントの使用

 

Copyright © 1997, 2004, Oracle. All rights reserved.