<?xml version="1.0" encoding="UTF-8"?>
<otrunk id="33754150-b594-11d9-9669-0800200c9a66">

  <imports>
    <import class="org.concord.otrunk.OTSystem"/>
    <import class="org.concord.otrunk.view.OTViewEntry"/>
    <import class="org.concord.otrunk.view.OTViewService"/>
    <import class="org.concord.otrunk.view.OTViewBundle" />
    <import class="org.concord.otrunk.ui.OTText"/>
    <import class="org.concord.otrunk.ui.OTChoice"/>
    <import class="org.concord.otrunk.ui.OTChoiceWithFeedback" />

    <import class="org.concord.otrunk.view.document.OTCompoundDoc" />
  </imports>

  <objects>
    <OTSystem>
      <bundles>
        <OTViewBundle>
          <views>
            <OTViewEntry objectClass="org.concord.otrunk.ui.OTChoice"
              viewClass="org.concord.otrunk.ui.swing.OTChoiceCheckBoxView" local_id="choice_checkbox_view" />
            <OTViewEntry objectClass="org.concord.otrunk.ui.OTChoice"
              viewClass="org.concord.otrunk.ui.swing.OTChoiceRadioButtonView" local_id="choice_radio_view" />
            <OTViewEntry objectClass="org.concord.otrunk.ui.OTChoice"
              viewClass="org.concord.otrunk.ui.swing.OTChoiceComboBoxView" local_id="choice_combo_view" />
            <OTViewEntry objectClass="org.concord.otrunk.ui.OTChoice"
              viewClass="org.concord.otrunk.ui.swing.OTChoiceMenuView" local_id="choice_menu_view" />
            <OTViewEntry objectClass="org.concord.otrunk.view.document.OTCompoundDoc"
              viewClass="org.concord.otrunk.view.document.OTDocumentView"/>
          </views>
        </OTViewBundle>
      </bundles>

      <root>
        <OTCompoundDoc>
          <name>Radio Buttons Test</name>
          <bodyText>
            <table>
              <tr>
                <td colspan="3">Please select any item:</td>
              </tr>
              <tr valign="top">
                <td>
                  OTChoice #1<br/>
                  ComboBox view:<br/>
                </td>
                <td>
                  OTChoice #1<br/>
                  RadioButton view:<br/>
                </td>
                <td>
                  OTChoice #1<br/>
                  RadioButton view (Horizontal):<br/>
                </td>
                <td>
                  OTChoice #1<br/>
                  Menu view:<br/>
                </td>
                <td>
                  OTChoice #2<br/>
                  Checkbox view<br/>
                  (with rationale):<br/>
                </td>
                <td>
                  OTChoice #4<br/>
                  Checkbox view:<br/>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <object refid="${normal_choice}" viewid="${choice_combo_view}" />
                </td>
                <td>
                  <object refid="${normal_choice}" viewid="${choice_radio_view}"  />
                </td>
                <td>
                  <object refid="${normal_choice_horiz}" viewid="${choice_radio_view}"  />
                </td>
                <td>
                  <object refid="${complex_choice}" viewid="${choice_menu_view}"  />
                </td>
                <td>
                  <object refid="${rationale_choice}" viewid="${choice_checkbox_view}" />
                </td>
                <td>
                    <object refid="${normal_choice_checkbox}" viewid="${choice_checkbox_view}" />
                </td>
              </tr>
            </table>
          </bodyText>
          <documentRefs>
            <OTChoice local_id="normal_choice">
              <choices>
                <OTText name="Choice 1" />
                <OTText name="Choice 2" />
                <OTText name="Choice 3" />
              </choices>
            </OTChoice>
            <OTChoice local_id="normal_choice_horiz" horizontal="true">
              <choices>
                <OTText name="Choice 1" />
                <OTText name="Choice 2" />
                <OTText name="Choice 3" />
              </choices>
            </OTChoice>
            <OTChoice local_id="complex_choice" name="Menu choice">
              <choices>
                <OTText name="Choice 1" />
                <OTText name="Choice 2" />
                <OTChoice name="Submenu 1">
                	<choices>
                		<OTText name="Choice 1.1" />
                		<OTText name="Choice 1.2" />
                	</choices>
                </OTChoice>
                <OTChoice name="Submenu 2">
                	<choices>
                		<OTText name="Choice 2.1" />
                		<OTText name="Choice 2.2" />
                		<OTChoice name="Submenu 3">
		                	<choices>
		                		<OTText name="Choice 3.1" />
		                		<OTText name="Choice 3.2" />
		                	</choices>
		                </OTChoice>
                	</choices>
                </OTChoice>
              </choices>
            </OTChoice>
            <OTChoice local_id="rationale_choice" alignContent="1" enableRationale="true">
              <choices>
                <OTCompoundDoc name="Check choice 1" ><bodyText>Check <br/>choice 1</bodyText></OTCompoundDoc>
                <OTCompoundDoc name="Check choice 2" ><bodyText>Check <br/>choice <br/>2</bodyText></OTCompoundDoc>
                <OTCompoundDoc name="Check choice 3" ><bodyText>Check choice <br/>3</bodyText></OTCompoundDoc>
                <OTCompoundDoc name="Check choice 4" ><bodyText>Check choice<br/> 4<br/>With some extra long text lines to see how it handles that.</bodyText></OTCompoundDoc>
              </choices>
            </OTChoice>
            <OTChoice local_id="normal_choice_checkbox">
              <choices>
                <OTCompoundDoc name="Check choice 1" ><bodyText>Check choice 1</bodyText></OTCompoundDoc>
                <OTCompoundDoc name="Check choice 2" ><bodyText>Check choice 2</bodyText></OTCompoundDoc>
                <OTCompoundDoc name="Check choice 3" ><bodyText>Check choice 3</bodyText></OTCompoundDoc>
                <OTCompoundDoc name="Check choice 4" ><bodyText>Check choice 4</bodyText></OTCompoundDoc>
              </choices>
            </OTChoice>
          </documentRefs>
        </OTCompoundDoc>
      </root>

    </OTSystem>
  </objects>
</otrunk>
