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

<?import java.net.URL?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>

<BorderPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="500.0" minWidth="700.0" prefHeight="569.0" prefWidth="982.0" style="-fx-border-color: #969696; -fx-border-width: 1;" styleClass="mainFxmlClass" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="importation.validation.data.client.views.JsonStructureTableViewController">
   <center>
      <VBox maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" BorderPane.alignment="CENTER">
         <children>
            <HBox alignment="CENTER_LEFT" styleClass="banner">
               <children>
                  <ImageView fitHeight="20.0" fitWidth="100.0" pickOnBounds="true" preserveRatio="true">
                     <image>
                        <Image url="@../../../../images/Logo_FDX_Convert.png" />
                     </image>
                  </ImageView>
               </children>
               <padding>
                  <Insets left="30.0" right="30.0" top="20.0" />
               </padding>
            </HBox>
            <VBox spacing="12.0" style="-fx-background-color: #44507;" VBox.vgrow="ALWAYS">
               <children>
                  <VBox prefHeight="200.0" prefWidth="100.0" spacing="12.0" style="-fx-border-color: #D6D6D6; -fx-border-width: 1.5;" VBox.vgrow="ALWAYS">
                     <children>
                        <TitledPane collapsible="false" prefHeight="61.0" prefWidth="1223.0" text="Recherche">
                           <content>
                              <BorderPane fx:id="searchPane" prefHeight="43.0" prefWidth="1219.0" style="-fx-background-color: rgb(246, 247, 249);">
                                 <right>
                                    <HBox spacing="5.0" BorderPane.alignment="CENTER_LEFT">
                                       <BorderPane.margin>
                                          <Insets />
                                       </BorderPane.margin>
                                       <children>
                                          <Button fx:id="btnSearch" maxWidth="1.7976931348623157E308" mnemonicParsing="false" styleClass="search">
                                             <cursor>
                                                <Cursor fx:constant="HAND" />
                                             </cursor>
                                          </Button>
                                          <Button fx:id="btnReset" maxWidth="1.7976931348623157E308" mnemonicParsing="false" styleClass="reset">
                                             <cursor>
                                                <Cursor fx:constant="HAND" />
                                             </cursor>
                                          </Button>
                                          <CheckBox fx:id="advancedCheckBox" alignment="CENTER" maxHeight="-Infinity" maxWidth="1.7976931348623157E308" mnemonicParsing="false" prefHeight="25.0" text="Recherche avancées">
                                             <font>
                                                <Font name="Roboto" size="12.0" />
                                             </font>
                                          </CheckBox>
                                       </children>
                                       <padding>
                                          <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
                                       </padding>
                                    </HBox>
                                 </right>
                                 <center>
                                    <VBox BorderPane.alignment="CENTER">
                                       <children>
                                          <VBox fx:id="normalSearchContainer" VBox.vgrow="ALWAYS">
                                             <padding>
                                                <Insets right="50.0" />
                                             </padding>
                                          </VBox>
                                          <VBox fx:id="advancedSearchContainer" VBox.vgrow="ALWAYS">
                                             <padding>
                                                <Insets right="50.0" />
                                             </padding>
                                          </VBox>
                                       </children>
                                       <BorderPane.margin>
                                          <Insets top="5.0" />
                                       </BorderPane.margin>
                                    </VBox>
                                 </center>
                              </BorderPane>
                           </content>
                        </TitledPane>
                        <VBox prefHeight="200.0" prefWidth="100.0" style="-fx-background-color: rgb(246, 247, 249);" VBox.vgrow="ALWAYS">
                           <children>
                              <HBox alignment="CENTER_LEFT" spacing="2.0">
                                 <children>
                                    <HBox fx:id="buttonContainer" alignment="BOTTOM_LEFT" spacing="2.0">
                                       <children>
                                          <Button fx:id="btnAdd" mnemonicParsing="false" styleClass="main-btn-add" textFill="#ebf0ee">
                                             <font>
                                                <Font name="System Bold" size="12.0" />
                                             </font>
                                             <cursor>
                                                <Cursor fx:constant="HAND" />
                                             </cursor>
                                          </Button>
                                          <Button fx:id="btnEdit" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" styleClass="main-btn-edit" textFill="#f2eded">
                                             <font>
                                                <Font name="System Bold" size="12.0" />
                                             </font>
                                             <cursor>
                                                <Cursor fx:constant="HAND" />
                                             </cursor>
                                          </Button>
                                          <Button fx:id="btnDelete" mnemonicParsing="false" styleClass="main-btn-delete" textFill="#f2eded">
                                             <font>
                                                <Font name="System Bold" size="12.0" />
                                             </font>
                                             <cursor>
                                                <Cursor fx:constant="HAND" />
                                             </cursor>
                                          </Button>
                                       </children>
                                    </HBox>
                                 </children>
                                 <opaqueInsets>
                                    <Insets />
                                 </opaqueInsets>
                              </HBox>
                              <VBox prefHeight="200.0" prefWidth="100.0" VBox.vgrow="ALWAYS">
                                 <children>
                                    <TableView fx:id="elementTable" VBox.vgrow="ALWAYS">
                                       <columnResizePolicy>
                                          <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
                                       </columnResizePolicy>
                                    </TableView>
                                    <HBox alignment="CENTER_LEFT" spacing="15.0" style="-fx-background-color: #CECECE;">
                                       <children>
                                          <HBox alignment="CENTER" spacing="2.0">
                                             <children>
                                                <HBox alignment="CENTER" spacing="5.0">
                                                   <children>
                                                      <Label text="précédent">
                                                         <font>
                                                            <Font name="Roboto" size="12.0" />
                                                         </font>
                                                      </Label>
                                                      <Button fx:id="btnPrevious" mnemonicParsing="false" styleClass="previous-btn">
                                                         <cursor>
                                                            <Cursor fx:constant="HAND" />
                                                         </cursor>
                                                      </Button>
                                                   </children>
                                                </HBox>
                                                <HBox alignment="CENTER" spacing="5.0">
                                                   <children>
                                                      <Button fx:id="btnNext" mnemonicParsing="false" styleClass="next-btn">
                                                         <cursor>
                                                            <Cursor fx:constant="HAND" />
                                                         </cursor>
                                                      </Button>
                                                      <Label text="suivant">
                                                         <font>
                                                            <Font name="Roboto" size="12.0" />
                                                         </font>
                                                      </Label>
                                                   </children>
                                                </HBox>
                                             </children>
                                          </HBox>
                                          <Label fx:id="paginationNumberInfo" text="(200/400)">
                                             <font>
                                                <Font name="Roboto" size="12.0" />
                                             </font>
                                          </Label>
                                       </children>
                                       <padding>
                                          <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
                                       </padding>
                                    </HBox>
                                 </children>
                              </VBox>
                           </children>
                        </VBox>
                     </children>
                     <padding>
                        <Insets bottom="12.0" left="12.0" right="12.0" top="12.0" />
                     </padding>
                  </VBox>
                  <HBox alignment="CENTER_RIGHT">
                     <children>
                        <Button mnemonicParsing="false" onAction="#close" style="-fx-background-color: #CACACA; -fx-border-color: #A8A8A8;" text="Quitter">
                           <cursor>
                              <Cursor fx:constant="HAND" />
                           </cursor>
                        </Button>
                     </children>
                  </HBox>
               </children>
               <padding>
                  <Insets bottom="12.0" left="30.0" right="30.0" top="20.0" />
               </padding>
            </VBox>
         </children>
      </VBox>
   </center>
   <top>
      <HBox alignment="CENTER" onMouseDragged="#mouseDraggedTitleBar" onMousePressed="#mousePressedTitleBar" styleClass="title-bar" BorderPane.alignment="CENTER">
         <children>
            <HBox alignment="CENTER_LEFT" prefWidth="200.0" HBox.hgrow="ALWAYS">
               <children>
                  <Text fill="WHITE" strokeType="OUTSIDE" strokeWidth="0.0" text="Types de fichier au format JSON">
                     <font>
                        <Font name="Roboto" size="15.0" />
                     </font>
                  </Text>
               </children>
               <padding>
                  <Insets left="30.0" />
               </padding>
            </HBox>
            <HBox alignment="CENTER_RIGHT" prefWidth="200.0" HBox.hgrow="ALWAYS">
               <children>
                  <Button mnemonicParsing="false" onAction="#minimize" style="-fx-padding: 5 12 5 12;" styleClass="title-bar-button" visible="false" />
                  <Button mnemonicParsing="false" onAction="#maximize" style="-fx-padding: 5 12 5 12;" styleClass="title-bar-button" visible="false" />
                  <Button mnemonicParsing="false" onAction="#close" style="-fx-padding: 3 10 3 10;" styleClass="title-bar-button">
                     <graphic>
                        <ImageView fitHeight="15.0" fitWidth="15.0" pickOnBounds="true" preserveRatio="true">
                           <image>
                              <Image url="@../../../../images/fermer.png" />
                           </image>
                           <cursor>
                              <Cursor fx:constant="HAND" />
                           </cursor>
                        </ImageView>
                     </graphic>
                  </Button>
               </children>
            </HBox>
         </children>
         <padding>
            <Insets bottom="2.0" left="2.0" right="2.0" top="2.0" />
         </padding>
      </HBox>
   </top>
   <stylesheets>
      <URL value="@../../../../styles/custom-main-style.css" />
      <URL value="@../../../../styles/custom-title-bar.css" />
   </stylesheets>
</BorderPane>
