rowLayoutへの子コンポーネントの挿入

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

  1. 目的のファイルの設計構造ウィンドウで、コンポーネント・パレットからコンポーネントを「rowLayout」ノードにドラッグ・アンド・ドロップします。

    子コンポーネントが「rowLayout」ノードに挿入され、強調表示されます。UIXビジュアル・エディタで子コンポーネントが行のセルに配置されます。

  2. ステップ1を繰り返し、任意の数の、子コンポーネントを追加します。

    子コンポーネントは個々のセルに連続的に配置されます。各セルには子が1つのみ含まれます。

例(UIX XML)


...
<pageLayout>

  <!-- Insert rowLayout child components -->

  <contents>
    <header text="Here is a table with two rows">
      <tableLayout width="75%"
                   borderWidth="3"
                   cellSpacing="10"
                   hAlign="center">
        <contents>
          <rowLayout hAlign=right">
            <contents>
              First Column
              <cellFormat vAlign="bottom">
                <contents>
                  Second Column
                </contents>
              </cellFormat>
              <flowLayout>
                <contents>
                  Third Column
                  <spacer height="100" width="1"/>
                </contents>
              </flowLayout>
            </contents>
          </rowLayout>
          <rowLayout>
            <contents>
              <header text="Second Row First Column"/>
              <cellFormat columnSpan="2">
                <contents>
                  <header text="Column Span Two"/>
                </contents>
              </cellFormat>
            </contents>
          </rowLayout>
        </contents>
      </tableLayout>
    </header>
  </contents>

  <!-- REST OF PAGE LAYOUT -->

</pageLayout>
...    

tableLayoutについて
rowLayoutについて
cellFormatについて

rowLayoutを使用した行の作成
tableLayoutとRowLayoutを使用した表の挿入
rowLayoutの子コンポーネントの周囲でのcellFormatの使用
レイアウト・コンポーネントの使用

 

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