contextSwitcherの挿入

contextSwitcherを挿入するには、次のようにします。

  1. 目的のファイルの設計構造ウィンドウで、「pageLayout」を展開して、名前付きの子「contextSwitcher」ノードを探します。
  2. 「contextSwitcher」ノードを右クリックし、「contextSwitcherの中に挿入」-> 「flowLayout」または「contextSwitcherの中に挿入」->「rowLayout」を選択してコンポーネントを挿入します。
  3. 次のいずれかの操作を行います。

    1. 「flowLayout」ノードを右クリックして、「messageChoice」「ボタン」の順に挿入します。
    2. 「rowLayout」ノードを右クリックして、「rowLayoutの中に挿入」->「cellFormat」と選択し、コンポーネントを挿入します。次に、「cellFormat」を右クリックして、「messageChoice」「ボタン」の順にコンポーネントを挿入します。
  4. プロパティ・インスペクタで、必要に応じて「flowLayout」または「rowLayout」および「cellFormat」に対して属性を次のように設定します。

例(UIX XML)


...
<pageLayout>

  <!-- Page Content -->

    <contextSwitcher>
      <rowLayout>
        <contents>
          <cellFormat wrappingDisabled="true">
            <contents>
              <messagePrompt prompt="Other Produce"/>
            </contents>
          </cellFormat>
         <spacer width="5" height="1"/>
         <choice>
           <contents>
             <option text="Carrots"/>
             <option text="Cucumbers"/>
             <option text="Lettuce"/>
             <option text="Potatoes"/>
           </contents>
         </choice>
         <spacer width="3" height="1"/>
         <button text="Go" destination="http://www.oracle.com"/>
        </contents>
      </rowLayout>
    </contextSwitcher>

 <!-- REST OF PAGELAYOUT-->

</pageLayout>
...    

pageLayoutとその名前付きの子について

pageLayoutとその名前付きの子の使用

 

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