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

<?import com.megatimfx.common.customcontrols.AbstractSelectionItem?>
<?import java.net.URL?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>

<AnchorPane prefHeight="600.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1">
   <children>
      <VBox AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
         <children>
            <HBox onMouseDragged="#mouseDraggedTitleBar" onMousePressed="#mousePressedTitleBar" styleClass="title-bar">
               <children>
                  <HBox alignment="CENTER_LEFT" prefWidth="200.0" HBox.hgrow="ALWAYS">
                     <children>
                        <Text fill="WHITE" strokeType="OUTSIDE" strokeWidth="0.0" text="Ajout d'une structure JSON">
                           <font>
                              <Font name="Arial" size="15.0" />
                           </font>
                        </Text>
                     </children>
                     <padding>
                        <Insets left="20.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">
                           <graphic>
                              <ImageView fitHeight="10.0" fitWidth="10.0" pickOnBounds="true" preserveRatio="true">
                                 <image>
                                    <Image url="@../../../../images/reduire.png" />
                                 </image>
                              </ImageView>
                           </graphic>
                        </Button>
                        <Button mnemonicParsing="false" onAction="#maximize" style="-fx-padding: 5 12 5 12;" styleClass="title-bar-button" visible="false">
                           <graphic>
                              <ImageView fitHeight="10.0" fitWidth="10.0" pickOnBounds="true" preserveRatio="true">
                                 <image>
                                    <Image url="@../../../../images/agrandir.png" />
                                 </image>
                              </ImageView>
                           </graphic>
                        </Button>
                        <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>
            <VBox spacing="10.0" VBox.vgrow="ALWAYS">
               <children>
                  <HBox alignment="CENTER_LEFT" style="-fx-background-color: transparent;" 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>
                  </HBox>
                  <TitledPane collapsible="false" maxHeight="1.7976931348623157E308" style="-fx-text-fill: #FFFFFF;" text="Informations sur le validateur à importer" VBox.vgrow="ALWAYS">
                     <content>
                        <VBox spacing="20.0">
                           <children>
                              <VBox spacing="10.0">
                                 <children>
                                    <Label text="Type fichier" />
                                    <AbstractSelectionItem fx:id="typeFichierField" maxWidth="260.0" prefWidth="260.0" />
                                 </children>
                              </VBox>
                              <VBox spacing="15.0" VBox.vgrow="ALWAYS">
                                 <children>
                                    <Label text="Structure JSON" />
                                    <ScrollPane VBox.vgrow="ALWAYS">
                                       <content>
                                          <VBox fx:id="mainContainer" maxWidth="1.7976931348623157E308" minWidth="200.0" prefHeight="318.0" prefWidth="922.0" />
                                       </content>
                                    </ScrollPane>
                                 </children>
                              </VBox>
                           </children>
                           <padding>
                              <Insets bottom="20.0" left="15.0" right="15.0" top="20.0" />
                           </padding>
                        </VBox>
                     </content>
                  </TitledPane>
                  <HBox fx:id="bottomContainer" alignment="TOP_RIGHT" spacing="5.0">
                     <children>
                        <Button fx:id="cancelButton" mnemonicParsing="false" onAction="#close" prefHeight="27.0" prefWidth="87.0" style="-fx-background-color: #949599; -fx-border-color: #9d9fa2; -fx-background-radius: 0;" text="Annuler" textFill="WHITE">
                           <font>
                              <Font name="System Bold" size="12.0" />
                           </font>
                           <cursor>
                              <Cursor fx:constant="HAND" />
                           </cursor>
                        </Button>
                        <Button fx:id="editButton" mnemonicParsing="false" prefHeight="27.0" prefWidth="87.0" style="-fx-background-color: #869447; -fx-background-radius: 0;" text="Enregistrer" textFill="WHITE">
                           <font>
                              <Font name="System Bold" size="12.0" />
                           </font>
                           <cursor>
                              <Cursor fx:constant="HAND" />
                           </cursor>
                        </Button>
                     </children>
                  </HBox>
               </children>
               <padding>
                  <Insets bottom="10.0" left="20.0" right="20.0" top="10.0" />
               </padding>
            </VBox>
         </children>
         <stylesheets>
            <URL value="@../../../../styles/custom-title-bar.css" />
            <URL value="@../../../../styles/custom-main-style.css" />
            <URL value="@../../../../styles/CustomFormComponents.css" />
         </stylesheets>
      </VBox>
   </children>
</AnchorPane>
