Inserting a ContextSwitcher

To insert a contextSwitcher:

  1. In the Design Structure Window of the desired file, expand the pageLayout to locate the contextSwitcher named child node.
  2. Right-click the contextSwitcher node and choose Insert inside contextSwitcher | flowLayout or Insert inside contextSwitcher | rowLayout to insert the preferred component.
  3. Do one of the following:

    1. Right-click the flowLayout node to insert the following components in succession: messageChoice, button .
    2. Right-click the rowLayout node and choose Insert inside rowLayout | cellFormat to insert the preferred component. Then right-click cellFormat to insert following components in succession: messageChoice, button.
  4. In the Property Inspector, set the attributes for flowLayout or rowLayout and cellFormat , if desired.

Example (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>
...    

About PageLayout and its Named Children

Working with PageLayout and its Named Children

 

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