<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:html="http://www.w3.org/TR/REC-html40"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin">

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
   <dataScope>
    <contents>

     <html:title>
      <text marlin:text="title@createUserDefinedMetricData" />
     </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>

     <form name="userDefinedMetricsForm">
      <contents>
       <pageLayout> 

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

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

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

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

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

        <copyright>
         <include baja:node="../copyright"/>
        </copyright>    

        <contents>

         <tableLayout width="100%">
          <contents>
           <rowLayout>
            <contents>
             <cellFormat>
              <contents>
               <spacer width="10"/>
              </contents>
             </cellFormat>
            </contents>
           </rowLayout>
          </contents>
         </tableLayout>  
         
         <header data:text="CREATE_USER_DEFINED_METRIC@mntrResourceBundle" width="100%"/>

         <spacer height="10"/>

         <subTabLayout>
          <subTabs>
           <subTabBar selectedIndex="0">
            <contents>

             <link data:text="GENERAL@commonResourceBundle"
                   data:destination="udmGeneralUrl@createUserDefinedMetricData" />
             <link data:text="PARAMETERS@mntrResourceBundle" 
                   data:destination="udmParametersUrl@createUserDefinedMetricData" />
             <link data:text="SCHEDULE@mntrResourceBundle" 
                   data:destination="udmScheduleUrl@createUserDefinedMetricData" />
             <link data:text="RESPONSE_ACTION@mntrResourceBundle" 
                   data:destination="udmResponseActionUrl@createUserDefinedMetricData" />

            </contents>
           </subTabBar>
          </subTabs>

          <contents>

           <stackLayout>
            <contents>

             <rowLayout vAlign="top">
              <contents>
               <cellFormat vAlign="top">
                <contents>
                 <spacer height="5"/>
                 <labeledFieldLayout fieldWidth="100%" labelWidth="0%"> 
                  <contents>
                   <messageTextInput data:prompt="NAME@commonResourceBundle"
                                     columns="30" 
                                     data:messageType="pwdMsgType@userPreferencesData"
                                     data:message="pwdInlineMsg@userPreferencesData"
                                     name="metricName"
                                     required="yes"
                                     data:text="userPwd@userPreferencesData"/>
                   <messageTextInput data:prompt="DESCRIPTION@commonResourceBundle"
                                     columns="30" 
                                     rows="3" 
                                     data:messageType="confirmPwdMsgType@userPreferencesData"
                                     data:message="confirmPwdInlineMsg@userPreferencesData"
                                     name="metricDescription"
                                     data:text="userConfirmPwd@userPreferencesData"/>
                   <spacer height="15"/>  
                  </contents>           
                 </labeledFieldLayout>
                </contents>
               </cellFormat>
              </contents>
             </rowLayout>

             <header data:text="CREDENTIALS@commonResourceBundle">
              <contents>
               <spacer height="5"/>
               <rowLayout vAlign="top">
                <contents>
                 <checkBox name="overrideCredentialsCheckbox" 
                           marlin:checked="false" 
                           value="0" />
                 <spacer height="5"/>
                 <styledText styleClass="OraFieldText" data:text="OVERRIDE_NODE_CREDENTIALS@commonResourceBundle" />
                </contents>
               </rowLayout>

               <rowLayout vAlign="top">
                <contents>
                 <spacer width="10"/>
                 <messageTextInput data:prompt="USER_NAME@commonResourceBundle"
                                   columns="30" 
                                   noAutoComplete="true"           
                                   data:messageType="pwdMsgType@userPreferencesData"
                                   data:message="pwdInlineMsg@userPreferencesData"
                                   name="userName"
                                   data:text="userPwd@userPreferencesData"/>
                 <spacer width="15"/>
                 <messageTextInput data:prompt="PASSWORD@commonResourceBundle"
                                   columns="30" 
                                   data:messageType="pwdMsgType@userPreferencesData"
                                   data:message="pwdInlineMsg@userPreferencesData"
                                   name="userPassword"
                                   secret="true"
                                   noAutoComplete="true"
                                   data:text="userPwd@userPreferencesData"/>
                </contents>
               </rowLayout>

               <spacer height="15"/>

              </contents>
             </header>

            </contents>
           </stackLayout>

          </contents>
         </subTabLayout>

        </contents>
       </pageLayout>
      </contents>
     </form>
    </contents>

    <provider>

     <data name="createUserDefinedMetricData">
      <method class="oracle.sysman.eml.mntr.metrics.CreateUserDefinedMetricDataObject"
              method="getCreateUserDefinedMetricData"/>
     </data>

    <data name="mntrResourceBundle">
        <bundle class="oracle.sysman.resources.MntrResourceBundle"/>
    </data>

    <data name="commonResourceBundle">
        <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
    </data>

    </provider>

   </dataScope>
  </baja:content>

  <baja:handlers>

    <event name="doLoad">
      <method class="oracle.sysman.eml.mntr.metrics.CreateUserDefinedMetricDataObject" 
              method="doLoad"/>
    </event>

    <event name="switchTab">
      <method class="oracle.sysman.eml.pref.SubtabPref" method="switchTab"/>
    </event>
    <event name="Create">
      <method class="oracle.sysman.eml.pref.SubtabPref" method="setSubtabs"/>
    </event>
    <event name="Edit">
      <method class="oracle.sysman.eml.pref.SubtabPref" method="editSubtab"/>
    </event>
    <event name="Remove">
      <method class="oracle.sysman.eml.pref.SubtabPref" method="editSubtab"/>
    </event>
    <event name="View">
      <method class="oracle.sysman.eml.pref.SubtabPref" method="viewSubtab"/>
    </event>

  </baja:handlers>

</page>

