<page xmlns="http://bali.us.oracle.com/cabo/baja" 
      xmlns:baja="http://bali.us.oracle.com/cabo/baja" 
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40">  
    <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
      <dataScope>
      
        <contents>
         <form name="custColApp" method="POST">
          <contents>
           <pageLayout>

            <mediumAdvertisement>
             <include baja:node="../oemBanner" />
            </mediumAdvertisement>
    
            <globalButtons>
               <include baja:node="../globalButtonBar" /> 
            </globalButtons>

            <pageHeader>
               <include baja:node="../globalHeader"/>
            </pageHeader>

            <tabs>
             <include baja:node ="../globalTabs" />
            </tabs>

   <location>
      <include baja:node="/breadCrumbs"/>
   </location>


            <copyright>
             <include baja:node="../copyright" />
            </copyright>
  
            <contentFooter>
             <pageButtonBar>
              <contents>
               <flowLayout>
                <contents>
                 <button data:text="CANCEL_BUTTON@commonResourceBundle"
                         data:destination="custColDest@reorderData" />
                 <submitButton data:text="OK_BUTTON@commonResourceBundle"
                               name="event" value="Apply"/>
                </contents>
               </flowLayout>
              </contents>
             </pageButtonBar>
            </contentFooter>

            <contents>

              <html:title>
                <data:text>
                   <boundAttribute name="text">
                     <dataObject select="pageTitle"
                                 source="reorderData"/>
                    </boundAttribute>
                  </data:text>
               </html:title>
               <html:noScript>
                 "This page uses JavaScript to perform the list of values lookup. Your browser either does not support JavaScript, or it is disabled.  Please enable JavaScript, or upgrade your browser."
               </html:noScript>

             <stackLayout width="100%">
              <contents>
               <tableLayout rendered="false"
                            marlin:rendered="errorOccurred@reorderData"
                            width="100%">
                 <contents>
                   <rowLayout>
                     <contents>
                       <messageBox data:message="CORRECT_ERRORS@mntrResourceBundle"
                                   messageType="error">
                         <contents marlin:childData="errorData@reorderData">
                           <link data:text="label"
                                 data:longDesc="message"
                                 data:destination="destination"/>
                         </contents>
                       </messageBox>
                     </contents>
                   </rowLayout>
                 </contents>
               </tableLayout>

               <header data:text="CUSTOMIZE_DENSE_UI@mntrResourceBundle"/>
               <rowLayout>
                <contents>
                 <cellFormat vAlign="top">
                  <contents>
                   <styledText data:text="CUSTOMIZE_COLUMNS_DESC@prefMsg"
                               wrappingDisabled="false"
                               styleClass="OraInstructionText"/>
                   <spacer height="5"/>
                   <inlineMessage marlin:messageType="summaryMetricsMsgType@reorderData"
                                  marlin:anchor="summaryMetricsAnchor@reorderData"
                                  marlin:message="summaryMetricsInlineMsg@reorderData"
                                  width="100%">
                    <contents>
                     <!-- must have this table layout with small width for 
                          Netscape to avoid wide page -->
                     <tableLayout width="1">
                      <contents>
                       <rowLayout>
                        <contents>
                         <shuttle name="reorderShuttle"
                                  data:leadingHeader="AVAILABLE_COLUMNS@mntrResourceBundle"
                                  data:trailingHeader="SELECTED_COLUMNS@mntrResourceBundle"
                                  reorderable="true"
                                  size="5" width="100%">
                          <leading>
                           <list multiple="true"
                                 data:shortDesc="AVAILABLE_COLUMNS@mntrResourceBundle" >
                            <contents marlin:childData="rowitem@reorderData">
                             <option marlin:text="available"
                                     marlin:value="availID"/>
                            </contents>
                           </list>
                          </leading>
                          <trailing>
                           <list multiple="true"
                                 data:shortDesc="SELECTED_COLUMNS@mntrResourceBundle" >
                            <contents marlin:childData="selectedrowitem@reorderData">
                             <option marlin:text="selected"
                                     marlin:value="selID"/>
                            </contents>
                           </list>
                          </trailing>
                         </shuttle>
                        </contents>
                       </rowLayout>
                      </contents>
                     </tableLayout>
                    </contents>
                   </inlineMessage>
                  </contents>
                 </cellFormat>
                 <spacer width="5"/>
                 <cellFormat vAlign="top" hAlign="right">
                  <contents>
                   <button data:text="CANCEL_BUTTON@commonResourceBundle"
                           data:destination="custColDest@reorderData" />
                   <submitButton data:text="OK_BUTTON@commonResourceBundle"
                                 name="event" value="Apply"/>
                  </contents>
                 </cellFormat>
                </contents>
               </rowLayout>
              </contents>
             </stackLayout>
            </contents>
           </pageLayout>
           <formValue name="returnUrl" data:value="returnUrlValue@reorderData"/>
          </contents>
         </form>  
        </contents>
       
        <provider>
           
          <data name="mntrResourceBundle">
            <bundle class="oracle.sysman.resources.MntrResourceBundle"/>
          </data>
          <data name="commonResourceBundle">
            <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
          </data>

          <data name="prefMsg">
            <bundle class="oracle.sysman.eml.pref.PrefMsg"/>
          </data>

          <data name="typeData">
             <method class="oracle.sysman.eml.mntr.target.ReorderSummaryMetricsData"
                     method="getTypeList"/>
          </data>
          <data name="reorderData">
             <method class="oracle.sysman.eml.mntr.target.ReorderSummaryMetricsData"
                     method="getReorderData"/>
          </data>
          
        </provider>
      </dataScope>
    </baja:content>
    <baja:handlers>

      <event name="Edit">
        <method class="oracle.sysman.eml.mntr.target.ReorderSummaryMetricsData"
                method="changeTargetType"/>
      </event>

      <event name="Apply">
        <method class="oracle.sysman.eml.mntr.target.ReorderSummaryMetricsData"
                method="reorderMetricsData"/>
      </event>

      <event name="*">
        <method class="oracle.sysman.eml.mntr.target.ReorderSummaryMetricsData"
                method="doNull"/>
      </event>

    </baja:handlers>
</page>
