<dataScope xmlns="http://bali.us.oracle.com/cabo/marlin"
           xmlns:data="http://bali.us.oracle.com/cabo/marlin"
           xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
           xmlns:baja="http://bali.us.oracle.com/cabo/baja" >
  <contents>
    <stackLayout>
      <contents>
        <rowLayout>
          <contents>
            <cellFormat width="580px">
              <contents>
                <styledText data:text="SCHEDULE_PROMPT@blackoutBundle" styleClass="OraInstructionText"/>
              </contents>
            </cellFormat>
          </contents>
        </rowLayout>
        <rowLayout> 
          <contents>
            <spacer width="20"/>
            <messageChoice name="blkTimeZone"
                           id="blkTimeZone"
                           data:messageType="tzMsgType@blkConfigData"
                           data:anchor="tzAnchor@blkConfigData"
                           data:message="tzInline@blkConfigData"
                           data:prompt="TIME_ZONE@SDKBundle"
                           data:shortDesc="TIME_ZONE@SDKBundle"
                           required="uiOnly"
                           data:selectedValue="timezoneRgn@blkConfigData">
              <boundAttribute name="rendered">
                <and>
                  <dataObject select="multipleTimezones" source="blkConfigData"/>
                  <not>
                    <dataObject select="blkStarted" source="blkConfigData"/>
                  </not>
                </and>
              </boundAttribute>
              <contents data:childData="tzList@blkConfigData">
                <option data:text="available" 
                        data:value="availID"/>
              </contents>
            </messageChoice>
            <messageTextInput styleClass="OraDataText"
                              data:text="timezone@blkConfigData"
                              data:value="timezone@blkConfigData"
                              data:prompt="TIME_ZONE@SDKBundle"
                              disabled="yes"
                              readOnly="true">
              <boundAttribute name="rendered">
                  <or>
                    <not>
                      <dataObject select="multipleTimezones" source="blkConfigData"/>
                    </not>
                    <dataObject select="blkStarted" source="blkConfigData"/>
                  </or>
              </boundAttribute>
            </messageTextInput>            
         </contents> 
        </rowLayout>

        <tableLayout width="100%">
          <contents>
            <rowLayout vAlign="top">
              <contents>
                <cellFormat vAlign="top" width="50%">
                  <contents>
                    <header data:text="START@SDKBundle"
                            hAlign="left"
                            required="uiOnly"
                            styleClass="OraPromptText">
                      <contents>
                        <tableLayout hAlign="left">
                          <boundAttribute name="rendered">
                            <not>
                              <dataObject select="blkStarted" source="blkConfigData"/>
                            </not>
                          </boundAttribute>
                          <contents>
                            <rowLayout>
                              <contents>
                                <radioButton name="start" value="now"
                                             data:shortDesc="IMMEDIATELY@SDKBundle">
                                  <boundAttribute name="selected">
                                    <if>
                                      <comparison type="equals">
                                        <dataObject select="startType" source="blkConfigData"/>
                                         <fixed javaType="string">now</fixed>
                                       </comparison>
                                       <fixed javaType="boolean">true</fixed>
                                       <fixed javaType="boolean">false</fixed>
                                    </if>
                                  </boundAttribute>
                                </radioButton>
                                <rowLayout hAlign="left">
                                  <contents>
                                    <styledText data:text="IMMEDIATELY@SDKBundle"
                                                hAlign="left"
                                                styleClass="OraPromptText"/>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            <rowLayout>
                              <contents>
                                <radioButton name="start" value="later"
                                             data:shortDesc="LATER@SDKBundle">
                                  <boundAttribute name="selected">
                                    <if>
                                      <comparison type="equals">
                                        <dataObject select="startType" source="blkConfigData"/>
                                         <fixed javaType="string">later</fixed>
                                       </comparison>
                                       <fixed javaType="boolean">true</fixed>
                                       <fixed javaType="boolean">false</fixed>
                                    </if>
                                  </boundAttribute>
                                </radioButton>
                                <rowLayout hAlign="left">
                                  <contents>
                                    <styledText data:text="LATER@SDKBundle"
                                                styleClass="OraPromptText"/>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            <rowLayout vAlign="bottom">
                              <contents>
                                <spacer/>
                                <rowLayout>
                                  <contents>
                                    <spacer width="40"/>
                                    <messageDateField data:prompt="DATE@SDKBundle"
                                                   hAlign="left"
                                                   data:tip="dateTip@blkConfigData"
                                                   data:message="sdateInlineMsg@blkConfigData"
                                                   data:messageType="sdateMsgType@blkConfigData"
                                                   data:anchor="sdateAnchor@blkConfigData"
                                                   data:shortDesc="START_DATE@SDKBundle"
                                                   name="sDate" columns="10"
                                                   id="sDate" 
                                                   formSubmitted="true"
                                                   data:value="sDate@blkConfigData">
                                      <onSubmitValidater>
                                        <date dateStyle="medium"/>
                                      </onSubmitValidater>
                                    </messageDateField>    
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            <rowLayout>
                              <contents>
                                <spacer/>
                                <rowLayout>
                                  <contents>
                                    <spacer width="40"/>
                                    <messageChoice data:prompt="TIME@SDKBundle"
                                                   hAlign="left"
                                                   styleClass="OraPromptText"
                                                   name="sHour" 
                                                   id="sHour" 
                                                   data:shortDesc="HOURS@SDKBundle"
                                                   data:selectedValue="sHourSel@blkConfigData">
                                      <contents>
                                        <option text="1" value="1"/>
                                        <option text="2" value="2"/>
                                        <option text="3" value="3"/>
                                        <option text="4" value="4"/>
                                        <option text="5" value="5"/>
                                        <option text="6" value="6"/>
                                        <option text="7" value="7"/>
                                        <option text="8" value="8"/>
                                        <option text="9" value="9"/>
                                        <option text="10" value="10"/>
                                        <option text="11" value="11"/>
                                        <option text="12" value="12"/>
                                      </contents>
                                    </messageChoice>
                                    <styledText text=":"
                                                styleClass="OraPromptText"/>
                                    <choice name="sMin" id="sMin" 
                                            data:shortDesc="MINUTES@SDKBundle"
                                            data:selectedValue="sMinSel@blkConfigData">
                                       <contents>
                                         <option text="00" value="00"/>
                                         <option text="15" value="15"/>
                                         <option text="30" value="30"/>
                                         <option text="45" value="45"/>
                                      </contents> 
                                    </choice>
                               
                                    <spacer width="5"/>
                                    <radioButton name="sTime" 
                                                 data:text="AM_LABEL@SDKBundle" 
                                                 data:shortDesc="AM_LABEL@SDKBundle" 
                                                 value="am">
                                      <boundAttribute name="selected">
                                        <if>
                                          <comparison type="equals">
                                            <dataObject select="sTime" source="blkConfigData"/>
                                            <fixed javaType="string">am</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                      </boundAttribute>
                                    </radioButton>
                                    <radioButton name="sTime" 
                                                 data:text="PM_LABEL@SDKBundle" 
                                                 data:shortDesc="PM_LABEL@SDKBundle" 
                                                 value="pm" >
                                      <boundAttribute name="selected">
                                        <if>
                                          <comparison type="equals">
                                            <dataObject select="sTime" source="blkConfigData"/>
                                            <fixed javaType="string">pm</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                      </boundAttribute>
                                    </radioButton>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            
                          </contents>
                        </tableLayout>
                        <rowLayout hAlign="left">
                          <contents>
                            <messageTextInput styleClass="OraDataText"
                                              data:prompt="START_DATE@SDKBundle"
                                              rendered="false"
                                              data:rendered="blkStarted@blkConfigData"
                                              data:text="sDateView@blkConfigData"
                                              readOnly = "true">
                            </messageTextInput>
                          </contents>
                        </rowLayout>
                      </contents>
                    </header>
                  </contents>
                </cellFormat>
    
                <cellFormat vAlign="top" width="50%">
                  <contents>
             
                    <header data:text="DURATION@SDKBundle"
                            hAlign="left"
                            width="50%"
                            styleClass="OraPromptText">
                      <contents>
                        <tableLayout hAlign="left">
                          <contents>
            
                            <rowLayout>
                              <contents>
                                <radioButton name="duration" value="indef_duration"
                                             data:shortDesc="INDEFINITE_LABEL@SDKBundle">
                                  <boundAttribute name="selected">
                                    <if>
                                      <comparison type="equals">
                                        <dataObject select="durationType" source="blkConfigData"/>
                                        <fixed javaType="string">indef_duration</fixed>
                                      </comparison>
                                      <fixed javaType="boolean">true</fixed>
                                      <fixed javaType="boolean">false</fixed>
                                    </if>
                                  </boundAttribute>
                                  <boundAttribute name="disabled">
                                    <and>
                                      <dataObject select="blkStarted" source="blkConfigData"/>
                                      <or>
                                        <if>
                                          <comparison type="notEquals">
                                            <dataObject select="repeatType" source="blkConfigData"/>
                                            <fixed javaType="string">oneTimeOnly</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                        <if>
                                          <comparison type="notEquals">
                                            <dataObject select="durationType" source="blkConfigData"/>
                                            <fixed javaType="string">indef_duration</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                      </or>
                                    </and>
                                  </boundAttribute>
                                </radioButton>
                                <rowLayout hAlign="left">
                                  <contents>
                                    <styledText data:text="INDEFINITE_LABEL@SDKBundle"
                                                styleClass="OraPromptText"/>
                                </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
           
                            <rowLayout>
                              <contents>
                                <rowLayout>
                                  <contents>
                                    <messagePrompt prompt=""
                                                   data:messageType="durationMsgType@blkConfigData"
                                                   data:anchor="durationAnchor@blkConfigData"/>
                                    <radioButton name="duration" value="interval_duration"
                                                 data:shortDesc="INTERVAL@SDKBundle">
                                      <boundAttribute name="selected">
                                        <if>
                                          <comparison type="equals">
                                            <dataObject select="durationType" source="blkConfigData"/>
                                            <fixed javaType="string">interval_duration</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                      </boundAttribute>
                                      <boundAttribute name="disabled">
                                        <and>
                                          <dataObject select="blkStarted" source="blkConfigData"/>
                                          <or>
                                            <if>
                                              <comparison type="equals">
                                                <dataObject select="durationType" source="blkConfigData"/>
                                                <fixed javaType="string">indef_duration</fixed>
                                              </comparison>
                                              <fixed javaType="boolean">true</fixed>
                                              <fixed javaType="boolean">false</fixed>
                                            </if>
                                            <dataObject select="disableSchedule" source="blkConfigData"/>
                                          </or>
                                        </and>
                                      </boundAttribute>
                                    </radioButton>
                                  </contents>
                                </rowLayout>
                                <rowLayout>
                                  <contents>
                                    <styledText data:text="LENGTH@SDKBundle"
                                                styleClass="OraPromptText"/>
                                    <spacer width="10"/>
                                    <textInput name="durationHour" columns="3" 
                                               data:shortDesc="HOURS@SDKBundle"
                                               data:text="durationHour@blkConfigData">
                                      <boundAttribute name="disabled">
                                        <and>
                                          <dataObject select="blkStarted" source="blkConfigData"/>
                                          <or>
                                            <if>
                                              <comparison type="equals">
                                                <dataObject select="durationType" source="blkConfigData"/>
                                                <fixed javaType="string">indef_duration</fixed>
                                              </comparison>
                                              <fixed javaType="boolean">true</fixed>
                                              <fixed javaType="boolean">false</fixed>
                                            </if>
                                            <dataObject select="disableSchedule" source="blkConfigData"/>
                                          </or>
                                        </and>
                                      </boundAttribute>
                                    </textInput>
                                    <spacer width="3"/>
                                    <styledText data:text="HOURS@SDKBundle"
                                                styleClass="OraPromptText"/>
                                    <spacer width="10"/>
                                    <textInput name="durationMin" columns="3" 
                                               data:shortDesc="MINUTES@SDKBundle"
                                               data:text="durationMin@blkConfigData">
                                      <boundAttribute name="disabled">
                                        <and>
                                          <dataObject select="blkStarted" source="blkConfigData"/>
                                          <or>
                                            <if>
                                              <comparison type="equals">
                                                <dataObject select="durationType" source="blkConfigData"/>
                                                <fixed javaType="string">indef_duration</fixed>
                                              </comparison>
                                              <fixed javaType="boolean">true</fixed>
                                              <fixed javaType="boolean">false</fixed>
                                            </if>
                                            <dataObject select="disableSchedule" source="blkConfigData"/>
                                          </or>
                                        </and>
                                      </boundAttribute>
                                    </textInput>
                                    <spacer width="3"/>
                                    <styledText data:text="MINUTES@SDKBundle"
                                                styleClass="OraPromptText"/>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            <rowLayout> 
                              <contents>
                                <spacer/>
                                <messageText data:messageType="durationMsgType@blkConfigData"
                                             data:message="durationInlineMsg@blkConfigData"/>
                              </contents>
                            </rowLayout> 
            
                            <rowLayout>
                              <contents>
                                <radioButton name="duration" value="end_date_duration"
                                             data:shortDesc="UNTIL@SDKBundle">
                                  <boundAttribute name="selected">
                                    <if>
                                      <comparison type="equals">
                                        <dataObject select="durationType" source="blkConfigData"/>
                                        <fixed javaType="string">end_date_duration</fixed>
                                      </comparison>
                                      <fixed javaType="boolean">true</fixed>
                                      <fixed javaType="boolean">false</fixed>
                                    </if>
                                  </boundAttribute>
                                  <boundAttribute name="disabled">
                                    <and>
                                      <dataObject select="blkStarted" source="blkConfigData"/>
                                      <or>
                                        <if>
                                          <comparison type="notEquals">
                                            <dataObject select="repeatType" source="blkConfigData"/>
                                            <fixed javaType="string">oneTimeOnly</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                        <or>
                                          <if>
                                            <comparison type="equals">
                                              <dataObject select="durationType" source="blkConfigData"/>
                                              <fixed javaType="string">indef_duration</fixed>
                                            </comparison>
                                            <fixed javaType="boolean">true</fixed>
                                            <fixed javaType="boolean">false</fixed>
                                          </if>
                                          <dataObject select="disableSchedule" source="blkConfigData"/>
                                        </or>
                                      </or>
                                    </and>
                                  </boundAttribute>
                                </radioButton>
                                <rowLayout hAlign="left">
                                  <contents>
                                    <styledText data:text="UNTIL@SDKBundle"
                                                styleClass="OraPromptText"/>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            <rowLayout>
                              <contents>
                                <spacer/>
                                <rowLayout>
                                  <contents>
                                    <spacer width="40"/>
                                    <messageDateField 
                                           data:prompt="DATE@SDKBundle"
                                           data:shortDesc="DATE@SDKBundle"
                                           name="eDate" columns="10"
                                           id="eDate"
                                           data:tip="dateTip@blkConfigData"
                                           data:message="edateInlineMsg@blkConfigData"
                                           data:messageType="edateMsgType@blkConfigData"
                                           data:anchor="edateAnchor@blkConfigData"
                                          data:value="eDate@blkConfigData">
                                      <boundAttribute name="disabled">
                                        <and>
                                          <dataObject select="blkStarted" source="blkConfigData"/>
                                          <or>
                                            <if>
                                              <comparison type="notEquals">
                                                <dataObject select="repeatType" source="blkConfigData"/>
                                                <fixed javaType="string">oneTimeOnly</fixed>
                                              </comparison>
                                              <fixed javaType="boolean">true</fixed>
                                              <fixed javaType="boolean">false</fixed>
                                            </if>
                                            <or>
                                              <if>
                                                <comparison type="equals">
                                                  <dataObject select="durationType" source="blkConfigData"/>
                                                  <fixed javaType="string">indef_duration</fixed>
                                                </comparison>
                                                <fixed javaType="boolean">true</fixed>
                                                <fixed javaType="boolean">false</fixed>
                                              </if>
                                              <dataObject select="disableSchedule" source="blkConfigData"/>
                                            </or>
                                          </or>
                                        </and>
                                      </boundAttribute>
                                      <onSubmitValidater>
                                        <date dateStyle="medium"/>
                                      </onSubmitValidater>
                                    </messageDateField>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>

                            <rowLayout> 
                              <contents>
                                <spacer/>
                                <rowLayout> 
                                  <contents>
                                    <spacer width="40"/>
                                    <messageChoice styleClass="OraPromptText"
                                                data:prompt="TIME@SDKBundle"
                                                name="eHour" 
                                                id="eHour" 
                                                data:shortDesc="HOURS@SDKBundle"
                                                data:selectedValue="eHourSel@blkConfigData">
                                      <boundAttribute name="disabled">
                                        <and>
                                          <dataObject select="blkStarted" source="blkConfigData"/>
                                          <or>
                                            <if>
                                              <comparison type="notEquals">
                                                <dataObject select="repeatType" source="blkConfigData"/>
                                                <fixed javaType="string">oneTimeOnly</fixed>
                                              </comparison>
                                              <fixed javaType="boolean">true</fixed>
                                              <fixed javaType="boolean">false</fixed>
                                            </if>
                                            <or>
                                              <if>
                                                <comparison type="equals">
                                                  <dataObject select="durationType" source="blkConfigData"/>
                                                  <fixed javaType="string">indef_duration</fixed>
                                                </comparison>
                                                <fixed javaType="boolean">true</fixed>
                                                <fixed javaType="boolean">false</fixed>
                                              </if>
                                              <dataObject select="disableSchedule" source="blkConfigData"/>
                                            </or>
                                          </or>
                                        </and>
                                      </boundAttribute>
                                      <contents>
                                        <option text="1" value="1"/>
                                        <option text="2" value="2"/>
                                        <option text="3" value="3"/>
                                        <option text="4" value="4"/>
                                        <option text="5" value="5"/>
                                        <option text="6" value="6"/>
                                        <option text="7" value="7"/>
                                        <option text="8" value="8"/>
                                        <option text="9" value="9"/>
                                        <option text="10" value="10"/>
                                        <option text="11" value="11"/>
                                        <option text="12" value="12"/>
                                      </contents>
                                    </messageChoice>
                                    <styledText text=":"
                                                styleClass="OraPromptText"/>
                                    <choice name="eMin" id="eMin"
                                             data:shortDesc="MINUTES@SDKBundle"
                                            data:selectedValue="eMinSel@blkConfigData">
                                       <boundAttribute name="disabled">
                                         <and>
                                           <dataObject select="blkStarted" source="blkConfigData"/>
                                           <or>
                                             <if>
                                               <comparison type="notEquals">
                                                 <dataObject select="repeatType" source="blkConfigData"/>
                                                 <fixed javaType="string">oneTimeOnly</fixed>
                                               </comparison>
                                               <fixed javaType="boolean">true</fixed>
                                               <fixed javaType="boolean">false</fixed>
                                             </if>
                                             <or>
                                               <if>
                                                 <comparison type="equals">
                                                   <dataObject select="durationType" source="blkConfigData"/>
                                                   <fixed javaType="string">indef_duration</fixed>
                                                 </comparison>
                                                 <fixed javaType="boolean">true</fixed>
                                                 <fixed javaType="boolean">false</fixed>
                                               </if>
                                               <dataObject select="disableSchedule" source="blkConfigData"/>
                                             </or>
                                           </or>
                                         </and>
                                       </boundAttribute>
                                       <contents>
                                         <option text="00" value="00"/>
                                         <option text="15" value="15"/>
                                         <option text="30" value="30"/>
                                         <option text="45" value="45"/>
                                      </contents>
                                    </choice>
                                    <spacer width="5"/>
                                    <radioButton name="eTime" 
                                                 data:shortDesc="AM_LABEL@SDKBundle" 
                                                 data:text="AM_LABEL@SDKBundle" 
                                                 value="am">
                                      <boundAttribute name="selected">
                                        <if>
                                          <comparison type="equals">
                                            <dataObject select="eTime" source="blkConfigData"/>
                                            <fixed javaType="string">am</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                      </boundAttribute>
                                      <boundAttribute name="disabled">
                                        <and>
                                          <dataObject select="blkStarted" source="blkConfigData"/>
                                          <or>
                                            <if>
                                              <comparison type="notEquals">
                                                <dataObject select="repeatType" source="blkConfigData"/>
                                                <fixed javaType="string">oneTimeOnly</fixed>
                                              </comparison>
                                              <fixed javaType="boolean">true</fixed>
                                              <fixed javaType="boolean">false</fixed>
                                            </if>
                                              <if>
                                                <comparison type="equals">
                                                  <dataObject select="durationType" source="blkConfigData"/>
                                                  <fixed javaType="string">indef_duration</fixed>
                                                </comparison>
                                                <fixed javaType="boolean">true</fixed>
                                                <fixed javaType="boolean">false</fixed>
                                              </if>
                                              <dataObject select="disableSchedule" source="blkConfigData"/>
                                          </or>
                                        </and>
                                      </boundAttribute>
                                    </radioButton>
                                    <radioButton name="eTime" 
                                                 data:shortDesc="PM_LABEL@SDKBundle"
                                                 data:text="PM_LABEL@SDKBundle" 
                                                 value="pm">
                                      <boundAttribute name="selected">
                                        <if>
                                          <comparison type="equals">
                                            <dataObject select="eTime" source="blkConfigData"/>
                                            <fixed javaType="string">pm</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                      </boundAttribute>
                                      <boundAttribute name="disabled">
                                        <and>
                                          <dataObject select="blkStarted" source="blkConfigData"/>
                                          <or>
                                            <if>
                                              <comparison type="notEquals">
                                                <dataObject select="repeatType" source="blkConfigData"/>
                                                <fixed javaType="string">oneTimeOnly</fixed>
                                              </comparison>
                                              <fixed javaType="boolean">true</fixed>
                                              <fixed javaType="boolean">false</fixed>
                                            </if>
                                            <or>
                                              <if>
                                                <comparison type="equals">
                                                  <dataObject select="durationType" source="blkConfigData"/>
                                                  <fixed javaType="string">indef_duration</fixed>
                                                </comparison>
                                                <fixed javaType="boolean">true</fixed>
                                                <fixed javaType="boolean">false</fixed>
                                              </if>
                                              <dataObject select="disableSchedule" source="blkConfigData"/>
                                            </or>
                                          </or>
                                        </and>
                                      </boundAttribute>
                                    </radioButton>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            <rowLayout>
                              <contents>
                              <spacer/>
                              <tip>
                                <contents>
                                  <styledText data:text="DURATION_IN_HRS_MINUTES@blackoutBundle"/>
                                </contents>
                              </tip>
                              </contents>
                            </rowLayout>
                          </contents>
                        </tableLayout>  
                      </contents>
                    </header>  
                  </contents>
                </cellFormat>
              </contents>
            </rowLayout>
          </contents>
        </tableLayout>

        <header data:text="REPEATING_HEADER@SDKBundle" name="repHeader" id="repeatingId">
          <contents>
            <!--  show all repeat type options if 
                  blackout was never started -->
            <rowLayout rendered="true">
              <boundAttribute name="rendered">
                <not>
                  <dataObject select="blkStarted" source="blkConfigData"/>
                </not>
              </boundAttribute>
              <contents>
                <tableLayout>
                  <contents>
                    <messageChoice styleClass="OraPromptText"
                                   data:prompt="REPEAT_HEADER@SDKBundle"
                                   name="repeatType"
                                   id="repeatType"
                                   disabled="false"
                                   data:disabled="disableSchedule@blkConfigData"
                                   data:shortDesc="REPEAT_HEADER@SDKBundle"
                                   data:selectedValue="repeatType@blkConfigData">
                      <contents data:childData="repeatChoices@blkConfigData">
                        <option data:text="text" 
                                data:value="value"/>
                      </contents>
                      <primaryClientAction>
                          <firePartialAction event="changeRepeatType" targets="repeatingId"/>
                      </primaryClientAction>
                    </messageChoice>
                    <tip>
                      <contents>
                        <styledText styleClass="OraTipText"
                                    data:text="REPEAT_TYPE_TIP@blackoutBundle"/>
                      </contents>
                    </tip>
                  </contents>
                </tableLayout>
              </contents>
            </rowLayout>
            <!--  once blackout starts and it is a one time only 
                  blackout - user can't change that and if it is a 
                  repeateable blackout - it cannot be made into a 
                  non-repeating blackout -->
            <rowLayout hAlign="left" rendered="false"
                       data:rendered="blkStarted@blkConfigData">
              <contents>
                <tableLayout>
                  <contents>
                    <messageTextInput styleClass="OraDataText"
                                      data:prompt="REPEAT_HEADER@SDKBundle"
                                      rendered="false"
                                      disabled="false"
                                      data:disabled="disableSchedule@blkConfigData"
                                      data:text="DO_NOT_REPEAT@SDKBundle"
                                      readOnly ="true">
                      <!-- blackout has started and it is a non-repeating blackout -->
                      <boundAttribute name="rendered">
                        <if>
                          <comparison type="equals">
                            <dataObject select="repeatType" source="blkConfigData" />
                            <fixed javaType="string">oneTimeOnly</fixed>
                          </comparison>
                          <fixed javaType="boolean">true</fixed>
                          <fixed javaType="boolean">false</fixed>
                        </if>
                      </boundAttribute>
                    </messageTextInput>
                    <messageChoice styleClass="OraPromptText"
                                   data:prompt="REPEAT_HEADER@SDKBundle"
                                   name="repeatType"
                                   id="repeatType"
                                   rendered="false"
                                   disabled="false"
                                   data:disabled="disableSchedule@blkConfigData"
                                   data:shortDesc="REPEAT_HEADER@SDKBundle"
                                   data:selectedValue="repeatType@blkConfigData">
                      <primaryClientAction>
                          <firePartialAction event="changeRepeatType" targets="repeatingId"/>
                      </primaryClientAction>                                   
                      <!-- blackout has started and it is a repeating blackout -->
                      <boundAttribute name="rendered">
                        <if>
                          <comparison type="notEquals">
                            <dataObject select="repeatType" source="blkConfigData" />
                            <fixed javaType="string">oneTimeOnly</fixed>
                          </comparison>
                          <fixed javaType="boolean">true</fixed>
                          <fixed javaType="boolean">false</fixed>
                        </if>
                      </boundAttribute>
                      <contents data:childData="repeatOnlyChoices@blkConfigData">
                        <option data:text="text"
                                data:value="value"/>
                      </contents>
                    </messageChoice>
                    <tip>
                      <contents>
                        <styledText styleClass="OraTipText"
                                    data:text="REPEAT_TYPE_TIP@blackoutBundle"/>
                      </contents>
                    </tip>
                  </contents>
                </tableLayout>

              </contents>
            </rowLayout>

            <stackLayout>
              <contents>
                <spacer height="10"/>

                <stackLayout>
                  <boundAttribute name="rendered">
                    <if>
                      <or>
                        <comparison type="equals">
                          <dataObject select="repeatType" source="blkConfigData" /> 
                          <fixed javaType="string">byMinutes</fixed> 
                        </comparison>
                        <comparison type="equals">
                          <dataObject select="repeatType" source="blkConfigData" /> 
                          <fixed javaType="string">byHours</fixed> 
                        </comparison>
                        <comparison type="equals">
                          <dataObject select="repeatType" source="blkConfigData" /> 
                          <fixed javaType="string">byDays</fixed> 
                        </comparison>
                        <comparison type="equals">
                          <dataObject select="repeatType" source="blkConfigData" /> 
                          <fixed javaType="string">byWeeks</fixed> 
                        </comparison>
                      </or>

                      <fixed javaType="boolean">true</fixed> 
                      <fixed javaType="boolean">false</fixed> 
                    </if>
                  </boundAttribute>
                  <contents>
                    <rowLayout>
                      <contents>
                        <messagePrompt prompt=""
                                       data:messageType="riIntervalMsgType@blkConfigData"
                                       data:anchor="riIntervalAnchor@blkConfigData"/>
                        <!-- Minutes -->
                        <switcher data:childName="repeatType@blkConfigData">
                          <case name="byMinutes">
                            <styledText data:text="FREQUENCY_MINUTES@SDKBundle"
                                        labeledNodeId="intervalCount"
                                        styleClass="OraPromptText"/>
                          </case>
                          <case name="byHours">
                            <styledText data:text="FREQUENCY_HOURS@SDKBundle"
                                        labeledNodeId="intervalCount"
                                        styleClass="OraPromptText"/>
                          </case>
                          <case name="byDays">
                            <styledText data:text="FREQUENCY_DAYS@SDKBundle"
                                        labeledNodeId="intervalCount"
                                        styleClass="OraPromptText"/>
                          </case>
                          <case name="byWeeks">
                            <styledText data:text="FREQUENCY_WEEKS@SDKBundle"
                                        labeledNodeId="intervalCount"
                                        styleClass="OraPromptText"/>
                          </case>
                        </switcher>
                        <spacer width="10"/>
                        <textInput name="intervalCount" columns="3"
                                   id="intervalCount"
                                   disabled="false"
                                   data:disabled="disableSchedule@blkConfigData"
                                   data:shortDesc="INTERVAL@SDKBundle"
                                   data:text="intervalCount@blkConfigData"/>
                      </contents>
                    </rowLayout>

                    <rowLayout> 
                      <contents>
                        <messageText data:messageType="riIntervalMsgType@blkConfigData"
                                     data:message="riIntervalInlineMsg@blkConfigData"/>
                      </contents>
                    </rowLayout> 
                  </contents>
                </stackLayout>
                
                <switcher data:childName="repeatType@blkConfigData">
                  <case name="byWeekDays">
                    <stackLayout>
                      <contents>
                        <!-- Repeat Weekly - list of weekdays -->
                        <rowLayout>
                          <contents>
                            <messagePrompt prompt=""
                                           data:messageType="riDaysOfWeekMsgType@blkConfigData"
                                           data:anchor="riDaysOfWeekAnchor@blkConfigData"/>
                            <styledText data:text="DAYS_OF_WEEK@SDKBundle"
                                        styleClass="OraPromptText"/>
                            <spacer width="10"/>
                            <rowLayout>
                              <contents data:childData="daysOfWeek@blkConfigData">
                                <checkBox data:text="text"
                                          data:name="name"
                                          data:shortDesc="text"
                                          disabled="false"
                                          data:disabled="disableSchedule@blkConfigData"
                                          data:checked="checked"/>
                                <spacer width="10"/>
                              </contents>
                            </rowLayout>
                          </contents>
                        </rowLayout>
                        <rowLayout> 
                          <contents>
                            <messageText data:messageType="riDaysOfWeekMsgType@blkConfigData"
                                         data:message="riDaysOfWeekInlineMsg@blkConfigData"/>
                          </contents>
                        </rowLayout> 
                      </contents>
                    </stackLayout>
                  </case>

                  <case name="byMonth">
                    <!-- Repeat Monthly - list of days in a month -->

                    <tableLayout>
                    <contents>
                    <rowLayout vAlign="top">
                      <contents>
                        <cellFormat vAlign="top">
                          <contents>
                            <rowLayout>
                              <contents>
                                <messagePrompt prompt=""
                                               data:messageType="riDaysOfMonthMsgType@blkConfigData"
                                               data:anchor="riDaysOfMonthAnchor@blkConfigData"/>
                                <styledText data:text="DAYS_OF_MONTH@SDKBundle"
                                            styleClass="OraPromptText"/>
                              </contents>
                            </rowLayout>
                          </contents>
                        </cellFormat>
    
                        <spacer width="10"/>
                         
                            <tableLayout width="10%">
                              <contents>
                                <rowLayout>
                                  <contents data:childData="firstWeekOfMonth@blkConfigData">
                                    <checkBox data:text="text"
                                              data:name="name"
                                              data:shortDesc="text"
                                              disabled="false"
                                              data:disabled="disableSchedule@blkConfigData"
                                              data:value="value"
                                              data:checked="checked"/>
                                    <spacer width="5"/>
                                  </contents>
                                </rowLayout>
    
                                <rowLayout>
                                  <contents data:childData="secondWeekOfMonth@blkConfigData">
                                    <checkBox data:text="text"
                                              data:name="name"
                                              data:shortDesc="text"
                                              disabled="false"
                                              data:disabled="disableSchedule@blkConfigData"
                                              data:value="value"
                                              data:checked="checked"/>
                                    <spacer width="5"/>
                                  </contents>
                                </rowLayout>
    
                                <rowLayout>
                                  <contents data:childData="thirdWeekOfMonth@blkConfigData">
                                    <checkBox data:text="text"
                                              data:name="name"
                                              data:shortDesc="text"
                                              disabled="false"
                                              data:disabled="disableSchedule@blkConfigData"
                                              data:value="value"
                                              data:checked="checked"/>
                                    <spacer width="5"/>
                                  </contents>
                                </rowLayout>
    
                                <rowLayout>
                                  <contents data:childData="fourthWeekOfMonth@blkConfigData">
                                    <checkBox data:text="text"
                                              data:name="name"
                                              data:shortDesc="text"
                                              disabled="false"
                                              data:disabled="disableSchedule@blkConfigData"
                                              data:value="value"
                                              data:checked="checked"/>
                                    <spacer width="5"/>
                                  </contents>
                                </rowLayout>
    
                                <rowLayout>
                                  <contents data:childData="fifthWeekOfMonth@blkConfigData">
                                    <switcher childName="true" data:childName="rendered">
                                      <case name="true">
                                        <checkBox data:text="text"
                                                  data:name="name"
                                                  data:shortDesc="text"
                                                  disabled="false"
                                                  data:disabled="disableSchedule@blkConfigData"
                                                  data:value="value"
                                                  data:checked="checked"/>
                                      </case>
                                      <case name="false">
                                        <spacer width="4"/>
                                      </case>
                                    </switcher>
                                    <spacer width="5"/>
                                  </contents>
                                </rowLayout>
    
                              </contents>
                            </tableLayout>
                          </contents>
                        </rowLayout>

                        <rowLayout> 
                          <contents>
                            <spacer/>
                            <spacer/>
                            <messageText data:messageType="riDaysOfMonthMsgType@blkConfigData"
                                         data:message="riDaysOfMonthInlineMsg@blkConfigData"/>
                          </contents>
                        </rowLayout> 

                        <rowLayout>
                          <contents>
                            <spacer/>
                            <spacer/>
                            <tableLayout width="60%">
                              <contents>
                                <rowLayout>
                                  <contents>
                                   <cellFormat>
                                     <contents>
                                      <tip>
                                        <contents>
                                          <styledText styleClass="OraTipText"
                                                      data:text="DAYS_OF_MONTH_TIP@SDKBundle"/>
                                          </contents>
                                        </tip>
                                      </contents>
                                    </cellFormat>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </tableLayout>
                          </contents>
                        </rowLayout>

                      </contents>
                    </tableLayout>
                  </case>

                  <case name="byYear">
                    <!-- Specific dates of a given year -->
                    <tableLayout>
                      <contents>
                        <rowLayout vAlign="top">
                          <contents>
                            <cellFormat vAlign="top">
                              <contents>
                                <rowLayout>
                                  <contents>
                                    <messagePrompt prompt=""
                                                   data:messageType="riDayInYearMsgType@blkConfigData"
                                                   data:anchor="riDayInYearAnchor@blkConfigData"/>
                                    <styledText data:text="DAYS_OF_YEAR@SDKBundle"
                                                styleClass="OraPromptText"/>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </cellFormat>
       
                            <spacer width="10"/>
    
                            <table name="dayInYearTable" id="dayInYearTableId"
                                   data:summary="DAYS_OF_YEAR@SDKBundle"
                                   formSubmitted="true"
                                   data:tableData="dayInYearRow@blkConfigData">
    
                              <columnFormats>
                                <columnFormat/>
                                <columnFormat columnDataFormat="numberFormat"/>
                                <columnFormat columnDataFormat="iconButtonFormat"/>
                              </columnFormats>
    
                              <columnHeaderData>
                                <col data:text="MONTH@SDKBundle"/>
                                <col data:text="DAY@SDKBundle"/>
                                <col data:text="REMOVE@SDKBundle"/>
                              </columnHeaderData>
    
                              <columnHeaderStamp>
                                <data:boundText select="text"/>
                              </columnHeaderStamp>

                              <contents>
                                <messageChoice styleClass="OraPromptText"
                                               name="monthInYear"
                                               data:shortDesc="MONTH@SDKBundle"
                                               disabled="false"
                                               data:disabled="disableSchedule@blkConfigData"
                                               data:selectedValue="monthInYear">
                                  <contents data:childData="monthChoices">
                                    <option data:text="text" 
                                            data:value="value"/>
                                  </contents>
                                  <primaryClientAction>
                                      <firePartialAction event="changeMonthInYear" targets="dayInYearTableId">
                                      </firePartialAction>
                                  </primaryClientAction>
                                </messageChoice>
                                <messageChoice styleClass="OraPromptText"
                                               name="dayInMonth"
                                               data:shortDesc="DAY@SDKBundle"
                                               disabled="false"
                                               data:disabled="disableSchedule@blkConfigData"
                                               data:selectedValue="dayInMonth">
                                  <contents data:childData="dayChoices">
                                    <option data:text="text" 
                                            data:value="value"/>
                                  </contents>
                                </messageChoice>
                                <image disabled="false"
                                       data:disabled="disableSchedule@blkConfigData"
                                       data:id="removeDateID"
                                       data:shortDesc="REMOVE@SDKBundle">
                                  <boundAttribute name="source">
                                    <concat>
                                       <dataObject data:source="contextPath@consoleContextPath"/>
                                           <fixed text="images/remove_enabled.gif"/>
                                    </concat>
                                 </boundAttribute>
                                  <primaryClientAction>
                                      <firePartialAction event="removeDateInYear" targets="dayInYearTableId">
                                          <parameters>
                                              <parameter key="source" value="this.id"></parameter>
                                          </parameters>
                                      </firePartialAction>
                                  </primaryClientAction>
                                </image>
                              </contents>
                              <columnFooter>
                                <addTableRow/>
                              </columnFooter>
                            </table>
                          </contents>
                        </rowLayout>
                        <rowLayout> 
                          <contents>
                            <spacer/>
                            <spacer/>
                            <messageText data:messageType="riDayInYearMsgType@blkConfigData"
                                         data:message="riDayInYearInlineMsg@blkConfigData"/>
                          </contents>
                        </rowLayout> 
                        <rowLayout>
                          <contents>
                            <spacer/>
                            <spacer/>
                            <tableLayout width="50%">
                              <contents>
                                <rowLayout>
                                  <contents>
                                   <cellFormat>
                                     <contents>
                                      <tip>
                                        <contents>
                                          <styledText styleClass="OraTipText" 
                                                      data:text="FEBRUARY_TIP@SDKBundle"/>
                                          </contents>
                                        </tip>
                                      </contents>
                                    </cellFormat>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </tableLayout>
                          </contents>
                        </rowLayout>
                      </contents>
                    </tableLayout>
                  </case>
                </switcher>
                
                <!-- Repeat until - end date definition section -->
                <header data:text="END_DATE@SDKBundle" 
                        rendered="false"
                        data:rendered="showRepeatUntil@blkConfigData">
                  <contents>
                        <tableLayout hAlign="left">
                          <contents>
                            <rowLayout>
                              <contents>
                                <radioButton name="repeatUntilType" 
                                             data:shortDesc="NO_END_DATE@SDKBundle"
                                             disabled="false"
                                             data:disabled="disableSchedule@blkConfigData"
                                             value="indefinite">
                                  <boundAttribute name="selected">
                                    <if>
                                      <comparison type="equals">
                                        <dataObject select="repeatUntilType" source="blkConfigData"/>
                                        <fixed javaType="string">indefinite</fixed>
                                      </comparison>
                                      <fixed javaType="boolean">true</fixed>
                                      <fixed javaType="boolean">false</fixed>
                                    </if>
                                  </boundAttribute>
                                </radioButton>
                                <rowLayout hAlign="left">
                                  <contents>
                                    <styledText data:text="NO_END_DATE@SDKBundle"
                                                hAlign="left"
                                                styleClass="OraPromptText"/>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            <rowLayout>
                              <contents>
                                <radioButton name="repeatUntilType" 
                                             data:shortDesc="SPECIFIED_END_DATE@SDKBundle"
                                             disabled="false"
                                             data:disabled="disableSchedule@blkConfigData"
                                             value="custom">
                                  <boundAttribute name="selected">
                                    <if>
                                      <comparison type="equals">
                                        <dataObject select="repeatUntilType" source="blkConfigData"/>
                                        <fixed javaType="string">custom</fixed>
                                      </comparison>
                                      <fixed javaType="boolean">true</fixed>
                                      <fixed javaType="boolean">false</fixed>
                                    </if>
                                  </boundAttribute>
                                </radioButton>
                                <rowLayout hAlign="left">
                                  <contents>
                                    <styledText data:text="SPECIFIED_END_DATE@SDKBundle"
                                                styleClass="OraPromptText"/>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            <rowLayout vAlign="bottom">
                              <contents>
                                <spacer/>
                                <rowLayout>
                                  <contents>
                                    <spacer width="40"/>
                                    <messageDateField data:prompt="DATE@SDKBundle"
                                                   hAlign="left"
                                                   data:tip="dateTip@blkConfigData"
                                                   disabled="false"
                                                   data:disabled="disableSchedule@blkConfigData"
                                                   data:message="redateInlineMsg@blkConfigData"
                                                   data:messageType="redateMsgType@blkConfigData"
                                                   data:anchor="redateAnchor@blkConfigData"
                                                   data:shortDesc="END_DATE@SDKBundle"
                                                   name="reDate" columns="10"
                                                   id="reDate"
                                                   data:value="reDate@blkConfigData">
                                      <onSubmitValidater>
                                        <date dateStyle="medium"/>
                                      </onSubmitValidater>
                                    </messageDateField>    
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                            <rowLayout rendered="true"
                                       data:rendered="showRepeatUntilTime@blkConfigData">
                              <contents>
                                <spacer/>
                                <rowLayout>
                                  <contents>
                                    <spacer width="40"/>
                                    <messageChoice data:prompt="TIME@SDKBundle"
                                                   hAlign="left"
                                                   disabled="false"
                                                   data:disabled="disableSchedule@blkConfigData"
                                                   styleClass="OraPromptText"
                                                   name="reHour" id="reHour" 
                                                   data:shortDesc="HOURS@SDKBundle"
                                                   data:selectedValue="reHourSel@blkConfigData">
                                      <contents>
                                        <option text="1" value="1"/>
                                        <option text="2" value="2"/>
                                        <option text="3" value="3"/>
                                        <option text="4" value="4"/>
                                        <option text="5" value="5"/>
                                        <option text="6" value="6"/>
                                        <option text="7" value="7"/>
                                        <option text="8" value="8"/>
                                        <option text="9" value="9"/>
                                        <option text="10" value="10"/>
                                        <option text="11" value="11"/>
                                        <option text="12" value="12"/>
                                      </contents>
                                    </messageChoice>
                                    <styledText text=":"
                                                styleClass="OraPromptText"/>
                                    <choice name="reMin"  
                                            data:shortDesc="MINUTES@SDKBundle"
                                            disabled="false"
                                            data:disabled="disableSchedule@blkConfigData"
                                            data:selectedValue="reMinSel@blkConfigData">
                                       <contents>
                                         <option text="00" value="00"/>
                                         <option text="15" value="15"/>
                                         <option text="30" value="30"/>
                                         <option text="45" value="45"/>
                                      </contents> 
                                    </choice>
                               
                                    <spacer width="5"/>
                                    <radioButton name="reTime" 
                                                 data:text="AM_LABEL@SDKBundle" 
                                                 disabled="false"
                                                 data:disabled="disableSchedule@blkConfigData"
                                                 data:shortDesc="AM_LABEL@SDKBundle" 
                                                 value="am">
                                      <boundAttribute name="selected">
                                        <if>
                                          <comparison type="equals">
                                            <dataObject select="reTime" source="blkConfigData"/>
                                            <fixed javaType="string">am</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                      </boundAttribute>
                                    </radioButton>
                                    <radioButton name="reTime" 
                                                 data:text="PM_LABEL@SDKBundle" 
                                                 disabled="false"
                                                 data:disabled="disableSchedule@blkConfigData"
                                                 data:shortDesc="PM_LABEL@SDKBundle" 
                                                 value="pm" >
                                      <boundAttribute name="selected">
                                        <if>
                                          <comparison type="equals">
                                            <dataObject select="reTime" source="blkConfigData"/>
                                            <fixed javaType="string">pm</fixed>
                                          </comparison>
                                          <fixed javaType="boolean">true</fixed>
                                          <fixed javaType="boolean">false</fixed>
                                        </if>
                                      </boundAttribute>
                                    </radioButton>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                          </contents>
                        </tableLayout>
                  </contents>
                </header>
              </contents>
            </stackLayout>

          </contents>
        </header>
      </contents>
    </stackLayout>  
  </contents>
  <provider>
    <data name="consoleContextPath">
                <method class="oracle.sysman.eml.util.ConsoleContextPath"
                        method="getConsoleContextPath"/>
   </data>
  </provider>
</dataScope>

