messageComponentLayoutの使用

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

  1. 目的のファイルの設計構造ウィンドウで、messageComponentLayoutコンポーネントを挿入するノードを探します。
  2. コンポーネント・パレットのドロップダウン・リストから「Layout Components」を選択し、messageComponentLayoutコンポーネントを、選択した親ノードにドラッグ・アンド・ドロップします。

    「messageComponentLayout」ノードが、展開された親ノードに挿入され、強調表示されます。

  3. プロパティ・インスペクタで、messageComponentLayoutコンポーネントに対して次の属性を設定します。
  4. メッセージ・フォーム・コンポーネントをmessageComponentLayoutに挿入するには、次のようにします。
    1. 設計構造ウィンドウで、「messageComponentLayout」ノードを右クリックし、「messageComponentLayouの中に挿入」を選択します。次に、メッセージ・フォーム・コンポーネントの子、たとえばmessageChoiceを選択します。
    2. プロパティ・インスペクタで、挿入したメッセージ・フォーム・コンポーネントに対して属性を設定します。
    3. ステップ4aと4bを繰り返し、任意の数の、子コンポーネントを追加します。

注意: データ・バインディングを使用するには、「コンポーネント属性のデータ・バインディング」を参照してください。

メッセージ属性の詳細は、「メッセージ・フォーム・コンポーネントに対するメッセージ属性の設定」を参照してください。メッセージ・フォーム・コンポーネントの他の一般的な属性の詳細は、「メッセージ・フォーム・コンポーネントに対する一般属性の設定」を参照してください。

例(UIX XML)


...
<messageComponentLayout rows="6" promptWidth="40%">
  <contents>
    <messageLayout prompt="Attribute">
      <contents>
        <stackLayout>
          <contents>
            <flowLayout>
              <contents>
                <radioButton name="foo"/>
                <messagePrompt prompt="First"/>
                <textInput/>
              </contents>
            </flowLayout>
            <flowLayout>
              <contents>
                <radioButton name="foo"/>
                <messagePrompt prompt="Second"/>
                <textInput/>
              </contents>
            </flowLayout>
          </contents>
        </stackLayout>
      </contents>
    </messageLayout>
    <messageTextInput prompt="Attribute"/>
    <messageTextInput prompt="Attribute"/>
    <messageTextInput prompt="Attribute"/>
    <messageTextInput prompt="Attribute"/>
    <messageTextInput prompt="Attribute"/>
    <messageTextInput prompt="Attribute"/>
    <messageTextInput prompt="Attribute"/>
    <messageTextInput prompt="Attribute"/>
  </contents>
</messageComponentLayout>
...    

messageComponentLayoutについて
メッセージ・フォーム・コンポーネントと属性について

メッセージ・フォーム・コンポーネントへの名前付きの子endの挿入
レイアウト・コンポーネントの使用
フォーム・コンポーネントの使用

 

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