applicationSwitcherを作成するには、次のようにします。
「pageLayout」ノードが表示されない場合は、「page」->「content」->「dataScope」->「document」->「body」->「form」と開きます。「globalButtons」ノードは、「pageLayout」の「pageLayout Name Children」の下にあります。
「globalButtonBar」ノードが、開かれている「globalButtons」ノードの下に挿入されます。
「applicationSwitcher」ノードが、開かれている「globalButtonBar」ノードの下に挿入されます。
構造ウィンドウで、新規の「option」ノードが挿入され、強調表示されます。プロパティ・インスペクタで、新規コンポーネントのプロパティが表示されます。
ページをブラウザで表示するときは、オプションがドロップダウン・リスト内に縦に表示されます。最初のオプションの番号は0、2番目のオプションの番号は1、というようになります。
プロパティ・インスペクタで、アプリケーション・スイッチャ・コンポーネントのプロパティが表示されます。
Switch Applications
と表示されます。
注意: データ・バインディングを使用するには、「コンポーネント属性のデータ・バインディング」を参照してください。
注意:
Example:
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40"
bindingLanguage="el">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add data sources here -->
<data name="demo:appIs">
<method class="oracle.cabo.doc.demo.ApplicationSwitcherData" method="getData"/>
</data>
</provider>
<contents>
<!-- Start page content here -->
<document>
<metaContainer>
<!-- Set the page title -->
<head title=""/>
</metaContainer>
<contents>
<body>
<contents>
<form name="form0">
<contents>
<pageLayout title="">
<contents>
<!-- Define the main content of the page here -->
</contents>
<!-- Define the navigation elements here -->
<!-- Application Switcher -->
<globalButtons>
<globalButtonBar>
<contents>
<applicationSwitcher title="Select here"
name="mySwitcher"
selectedIndex="2"
formSubmitted="true">
<contents>
<option text="iReceivables" value="iReceivables"/>
<option text="Human Resources" value="HumanResources"/>
<option text="Finance" value="Finance"/>
<option text="iLearning" value="iLearning"/>
</contents>
</applicationSwitcher>
</contents>
</globalButtonBar>
</globalButtons>
<!-- REST OF PAGE LAYOUT-->
</pageLayout>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<!-- Add event handlers here -->
<event name="switchApp">
<method class="oracle.cabo.doc.demo.ApplicationSwitcherData" method="appSwitchEventHandler"/>
</event>
</handlers>
</page>
applicationSwitcherについて
globalButtonについて
globalButtonの作成
ナビゲーション・コンポーネントの使用
Copyright © 1997, 2004, Oracle. All rights reserved.