<?xml version="1.0" encoding="UTF-8" ?>

<Form version="1.4" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
  <NonVisualComponents>
    <Component class="javax.persistence.EntityManager" name="entityManager">
      <Properties>
        <Property name="persistenceUnit" type="java.lang.String" value="_unitName_"/>
      </Properties>
    </Component>
    <Component class="javax.persistence.Query" name="query">
      <Properties>
        <Property name="query" type="java.lang.String" value="SELECT _masterEntityInitial_ FROM _masterEntity_ _masterEntityInitial_"/>
        <Property name="entityManager" type="java.lang.Object" editor="org.netbeans.modules.form.j2ee.J2EEPropertyModifier$EMProperty$EntityManagerEditor">
          <ComponentRef name="entityManager"/>
        </Property>
      </Properties>
    </Component>
    <Component class="java.util.List" name="list">
      <Properties>
        <Property name="query" type="java.lang.Object" editor="org.netbeans.modules.form.j2ee.J2EEPropertyModifier$QueryBeanProperty$QueryEditor">
          <ComponentRef name="query"/>
        </Property>
        <Property name="observable" type="boolean" value="true"/>
      </Properties>
      <AuxValues>
        <AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;_masterClass_&gt;"/>
      </AuxValues>
    </Component>
  </NonVisualComponents>
  <AuxValues>
    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="1"/>
  </AuxValues>

  <Layout>
    <DimensionLayout dim="0">
      <Group type="103" groupAlignment="0" attributes="0">
          <Group type="102" alignment="1" attributes="0">
              <Component id="newButton" linkSize="1" min="-2" max="-2" attributes="0"/>
              <EmptySpace max="-2" attributes="0"/>
              <Component id="deleteButton" linkSize="1" min="-2" max="-2" attributes="0"/>
              <EmptySpace max="-2" attributes="0"/><!-- MASTER_ONLY -->
              <Component id="refreshButton" linkSize="1" min="-2" max="-2" attributes="0"/>
              <EmptySpace max="-2" attributes="0"/>
              <Component id="saveButton" linkSize="1" min="-2" max="-2" attributes="0"/>
              <EmptySpace max="-2" attributes="0"/><!-- MASTER_ONLY -->
          </Group><!-- MASTER_ONLY -->
          <Group type="102" attributes="0">
              <EmptySpace min="-2" max="-2" attributes="0"/>
              <Group type="103" groupAlignment="0" attributes="0">
                  <!-- LABEL_H_LAYOUT_TEMPLATE -->
                  <Component id="_labelName_" alignment="0" min="-2" max="-2" attributes="0"/><!-- LABEL_H_LAYOUT_TEMPLATE -->
              </Group>
              <EmptySpace min="-2" max="-2" attributes="0"/>
              <Group type="103" groupAlignment="0" attributes="0">
                  <!-- FIELD_H_LAYOUT_TEMPLATE -->
                  <Component id="_textFieldName_" alignment="0" pref="315" max="32767" attributes="0"/><!-- FIELD_H_LAYOUT_TEMPLATE -->
              </Group>
              <EmptySpace min="-2" max="-2" attributes="0"/>
          </Group><!-- MASTER_ONLY --><!-- DETAIL_ONLY -->
          <Group type="102" alignment="1" attributes="0">
              <EmptySpace pref="80" max="32767" attributes="0"/>
              <Component id="newDetailButton" linkSize="2" min="-2" max="-2" attributes="0"/>
              <EmptySpace max="-2" attributes="0"/>
              <Component id="deleteDetailButton" linkSize="2" min="-2" max="-2" attributes="0"/>
              <EmptySpace max="-2" attributes="0"/>
              <Component id="refreshButton" linkSize="2" min="-2" max="-2" attributes="0"/>
              <EmptySpace max="-2" attributes="0"/>
              <Component id="saveButton" linkSize="2" min="-2" max="-2" attributes="0"/>
              <EmptySpace min="-2" max="-2" attributes="0"/>
          </Group><!-- DETAIL_ONLY -->
          <Group type="102" attributes="0">
              <EmptySpace min="-2" max="-2" attributes="0"/>
              <Component id="masterScrollPane" pref="380" max="32767" attributes="0"/>
              <EmptySpace min="-2" max="-2" attributes="0"/>
          </Group><!-- DETAIL_ONLY -->
          <Group type="102" alignment="0" attributes="0">
              <EmptySpace max="-2" attributes="0"/>
              <Component id="detailScrollPane" pref="380" max="32767" attributes="0"/>
              <EmptySpace max="-2" attributes="0"/>
          </Group><!-- DETAIL_ONLY -->
      </Group>
    </DimensionLayout>
    <DimensionLayout dim="1">
      <Group type="103" groupAlignment="0" attributes="0">
          <Group type="102" alignment="0" attributes="0">
              <EmptySpace min="-2" max="-2" attributes="0"/>
              <Component id="masterScrollPane" pref="130" max="32767" attributes="0"/><!-- MASTER_ONLY -->
              <!-- V_LAYOUT_TEMPLATE -->
              <EmptySpace min="-2" max="-2" attributes="0"/>
              <Group type="103" groupAlignment="3" attributes="0">
                  <Component id="_labelName_" alignment="3" min="-2" max="-2" attributes="0"/>
                  <Component id="_textFieldName_" alignment="3" min="-2" max="-2" attributes="0"/>
              </Group><!-- V_LAYOUT_TEMPLATE --><!-- MASTER_ONLY -->
              <EmptySpace min="-2" max="-2" attributes="1"/>
              <Group type="103" groupAlignment="3" attributes="0">
                  <!-- MASTER_ONLY -->
                  <Component id="saveButton" alignment="3" min="-2" max="-2" attributes="0"/>
                  <Component id="refreshButton" alignment="3" min="-2" max="-2" attributes="0"/><!-- MASTER_ONLY -->
                  <Component id="deleteButton" alignment="3" min="-2" max="-2" attributes="0"/>
                  <Component id="newButton" alignment="3" min="-2" max="-2" attributes="0"/>
              </Group>
              <EmptySpace min="-2" max="-2" attributes="0"/><!-- DETAIL_ONLY -->
              <Component id="detailScrollPane" pref="130" max="32767" attributes="0"/>
              <EmptySpace min="-2" max="-2" attributes="0"/>
              <Group type="103" groupAlignment="3" attributes="0">
                  <Component id="saveButton" alignment="3" min="-2" max="-2" attributes="0"/>
                  <Component id="refreshButton" alignment="3" min="-2" max="-2" attributes="0"/>
                  <Component id="deleteDetailButton" alignment="3" min="-2" max="-2" attributes="0"/>
                  <Component id="newDetailButton" alignment="3" min="-2" max="-2" attributes="0"/>
              </Group>
              <EmptySpace min="-2" max="-2" attributes="0"/><!-- DETAIL_ONLY -->
          </Group>
      </Group>
    </DimensionLayout>
  </Layout>
  <SubComponents>
    <Container class="javax.swing.JScrollPane" name="masterScrollPane">
      <AuxValues>
        <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
      </AuxValues>

      <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
      <SubComponents>
        <Component class="javax.swing.JTable" name="masterTable">
          <BindingProperties>
            <BindingProperty name="elements" source="list" target="masterTable" targetPath="elements">
              <!-- MASTER_SUBBINDING_TEMPLATE -->
              <Subbinding sourcePath="${_fieldName_}">
                <BindingParameter name="javax.swing.binding.ParameterKeys.COLUMN" value="_index_"/>
                <BindingParameter name="javax.swing.binding.ParameterKeys.COLUMN_CLASS" value="_fieldType_"/>
              </Subbinding><!-- MASTER_SUBBINDING_TEMPLATE -->
            </BindingProperty>
          </BindingProperties>
        </Component>
      </SubComponents>
    </Container>
    <!-- MASTER_ONLY -->
    <!-- LABEL_TEMPLATE -->
    <Component class="javax.swing.JLabel" name="_labelName_">
      <Properties>
        <Property name="text" type="java.lang.String" value="_labelText_:"/>
      </Properties>
    </Component><!-- LABEL_TEMPLATE -->
    <!-- FIELD_TEMPLATE -->
    <Component class="javax.swing.JTextField" name="_textFieldName_">
      <BindingProperties>
        <BindingProperty name="text" source="masterTable" sourcePath="${selectedElement._fieldName_}" target="_textFieldName_" targetPath="text" updateStrategy="0">
          <Property name="incompletePathValue" type="java.lang.String" value="null"/>
        </BindingProperty>
        <BindingProperty name="enabled" source="masterTable" sourcePath="${selectedElement != null}" target="_textFieldName_" targetPath="enabled" updateStrategy="1"/>
      </BindingProperties>
    </Component><!-- FIELD_TEMPLATE -->
    <Component class="javax.swing.JButton" name="saveButton">
      <Properties>
        <Property name="text" type="java.lang.String" value="Save"/>
      </Properties>
      <Events>
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="saveButtonActionPerformed"/>
      </Events>
    </Component>
    <Component class="javax.swing.JButton" name="refreshButton">
      <Properties>
        <Property name="text" type="java.lang.String" value="Refresh"/>
      </Properties>
      <Events>
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="refreshButtonActionPerformed"/>
      </Events>
    </Component><!-- MASTER_ONLY -->
    <Component class="javax.swing.JButton" name="newButton">
      <Properties>
        <Property name="text" type="java.lang.String" value="New"/>
      </Properties>
      <Events>
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="newButtonActionPerformed"/>
      </Events>
    </Component>
    <Component class="javax.swing.JButton" name="deleteButton">
      <Properties>
        <Property name="text" type="java.lang.String" value="Delete"/>
        <Property name="enabled" type="boolean" value="false"/>
      </Properties>
      <Events>
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="deleteButtonActionPerformed"/>
      </Events>
    </Component><!-- DETAIL_ONLY -->
    <Container class="javax.swing.JScrollPane" name="detailScrollPane">
      <AuxValues>
        <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
      </AuxValues>

      <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
      <SubComponents>
        <Component class="javax.swing.JTable" name="detailTable">
          <BindingProperties>
            <BindingProperty name="elements" source="masterTable" sourcePath="${selectedElement._joinCollection_}" target="detailTable" targetPath="elements">
              <!-- DETAIL_SUBBINDING_TEMPLATE -->
              <Subbinding sourcePath="${_fieldName_}">
                <BindingParameter name="javax.swing.binding.ParameterKeys.COLUMN" value="_index_"/>
                <BindingParameter name="javax.swing.binding.ParameterKeys.COLUMN_CLASS" value="_fieldType_"/>
              </Subbinding><!-- DETAIL_SUBBINDING_TEMPLATE -->
            </BindingProperty>
          </BindingProperties>
        </Component>
      </SubComponents>
    </Container>
    <Component class="javax.swing.JButton" name="saveButton">
      <Properties>
        <Property name="text" type="java.lang.String" value="Save"/>
      </Properties>
      <Events>
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="saveButtonActionPerformed"/>
      </Events>
    </Component>
    <Component class="javax.swing.JButton" name="refreshButton">
      <Properties>
        <Property name="text" type="java.lang.String" value="Refresh"/>
      </Properties>
      <Events>
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="refreshButtonActionPerformed"/>
      </Events>
    </Component>
    <Component class="javax.swing.JButton" name="deleteDetailButton">
      <Properties>
        <Property name="text" type="java.lang.String" value="Delete"/>
        <Property name="enabled" type="boolean" value="false"/>
      </Properties>
      <Events>
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="deleteDetailButtonActionPerformed"/>
      </Events>
    </Component>
    <Component class="javax.swing.JButton" name="newDetailButton">
      <Properties>
        <Property name="text" type="java.lang.String" value="New"/>
        <Property name="enabled" type="boolean" value="false"/>
      </Properties>
      <Events>
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="newDetailButtonActionPerformed"/>
      </Events>
    </Component><!-- DETAIL_ONLY -->
  </SubComponents>
</Form>
