<?xml version="1.0" encoding="UTF-8"?>
|
|
<?import java.net.URL?>
|
<?import javafx.geometry.Insets?>
|
<?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="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" onMouseDragged="#mouseDraggedTitleBar" onMousePressed="#mousePressedTitleBar" prefHeight="678.0" prefWidth="1120.0" style="-fx-border-color: rgb(184, 184, 184); -fx-border-width: 1;" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.megatimfx.common.abstracts.AbstractMainDialogController">
|
<center>
|
<VBox BorderPane.alignment="CENTER">
|
<children>
|
<HBox alignment="CENTER" prefHeight="65.0" prefWidth="1024.0" styleClass="banner">
|
<children>
|
<Text fx:id="title" fill="WHITE" strokeType="OUTSIDE" strokeWidth="0.0" text="TITRE">
|
<font>
|
<Font name="Arial Bold" size="16.0" />
|
</font>
|
</Text>
|
</children>
|
</HBox>
|
<VBox spacing="5.0" style="-fx-background-color: #44507;" 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">
|
<graphic>
|
<ImageView fitHeight="20.0" fitWidth="15.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/Recherche.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
<Button fx:id="btnReset" maxWidth="1.7976931348623157E308" mnemonicParsing="false" styleClass="search">
|
<graphic>
|
<ImageView fitHeight="20.0" fitWidth="15.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/Reset.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
<CheckBox fx:id="advancedCheckBox" alignment="CENTER" maxHeight="-Infinity" maxWidth="1.7976931348623157E308" mnemonicParsing="false" prefHeight="25.0" text="Options avancées" />
|
</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" prefHeight="200.0" prefWidth="100.0">
|
<padding>
|
<Insets right="50.0" />
|
</padding>
|
</VBox>
|
<VBox fx:id="advancedSearchContainer" prefHeight="200.0" prefWidth="100.0">
|
<padding>
|
<Insets right="50.0" />
|
</padding>
|
</VBox>
|
</children>
|
</VBox>
|
</center>
|
</BorderPane>
|
</content>
|
</TitledPane>
|
<VBox prefHeight="200.0" prefWidth="100.0" spacing="3.0" style="-fx-background-color: rgb(246, 247, 249);" VBox.vgrow="ALWAYS">
|
<children>
|
<HBox fx:id="buttonContainer" alignment="CENTER_LEFT" spacing="2.0">
|
<children>
|
<HBox fx:id="buttonContainer" alignment="BOTTOM_LEFT" spacing="2.0">
|
<children>
|
<Button fx:id="btnAdd" mnemonicParsing="false" onAction="#onAddDialog" style="-fx-background-color: #31a19a; -fx-cursor: pointer; -fx-background-radius: 8 0 0 0; -fx-border-radius: 8 0 0 0;" textFill="#ebf0ee">
|
<font>
|
<Font name="System Bold" size="12.0" />
|
</font>
|
<graphic>
|
<ImageView fitHeight="15.0" fitWidth="15.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/add.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
<Button fx:id="btnEdit" mnemonicParsing="false" onAction="#onEditDialog" style="-fx-background-color: #9d9fa2; -fx-cursor: pointer; -fx-background-radius: 0;" textFill="#f2eded">
|
<font>
|
<Font name="System Bold" size="12.0" />
|
</font>
|
<graphic>
|
<ImageView fitHeight="15.0" fitWidth="15.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/edit.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
<Button fx:id="btnPrint" mnemonicParsing="false" onAction="#onEditDialog" style="-fx-background-color: #9d9fa2; -fx-cursor: pointer; -fx-background-radius: 0;" textFill="#f2eded">
|
<font>
|
<Font name="System Bold" size="12.0" />
|
</font>
|
<graphic>
|
<ImageView fitHeight="15.0" fitWidth="15.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/print.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
<Button fx:id="btnDelete" mnemonicParsing="false" onAction="#removeElement" style="-fx-background-color: #9d9fa2; -fx-cursor: pointer; -fx-background-radius: 0;" textFill="#f2eded">
|
<font>
|
<Font name="System Bold" size="12.0" />
|
</font>
|
<graphic>
|
<ImageView fitHeight="15.0" fitWidth="15.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/trash.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
</children>
|
</HBox>
|
<HBox alignment="CENTER_RIGHT" HBox.hgrow="ALWAYS">
|
<children>
|
<Button fx:id="btnImport" mnemonicParsing="false" onAction="#removeElement" style="-fx-background-color: #9d9fa2; -fx-cursor: pointer; -fx-background-radius: 0;" textFill="#f2eded">
|
<font>
|
<Font name="System Bold" size="12.0" />
|
</font>
|
<graphic>
|
<ImageView fitHeight="15.0" fitWidth="15.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/trash.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</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="30.0" style="-fx-background-color: rgb(206, 206, 206);">
|
<children>
|
<HBox alignment="CENTER" spacing="15.0">
|
<children>
|
<HBox alignment="CENTER">
|
<children>
|
<Button fx:id="btnNext" mnemonicParsing="false" style="-fx-background-color: transparent; -fx-padding: 1;">
|
<graphic>
|
<ImageView fitHeight="20.0" fitWidth="20.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/next.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
<Label text="suivant">
|
<font>
|
<Font size="14.0" />
|
</font>
|
</Label>
|
</children>
|
</HBox>
|
<HBox alignment="CENTER">
|
<children>
|
<Button fx:id="btnPrevious" mnemonicParsing="false" onAction="#previousPage" style="-fx-background-color: transparent; -fx-padding: 1;">
|
<graphic>
|
<ImageView fitHeight="20.0" fitWidth="20.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/previous.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
<Label text="precedent">
|
<font>
|
<Font size="14.0" />
|
</font>
|
</Label>
|
</children>
|
</HBox>
|
<Label fx:id="paginationNumberInfo" text="(0/0)">
|
<font>
|
<Font size="14.0" />
|
</font>
|
</Label>
|
</children>
|
</HBox>
|
</children>
|
<padding>
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
</padding>
|
</HBox>
|
</children>
|
</VBox>
|
</children>
|
</VBox>
|
<HBox alignment="CENTER_RIGHT">
|
<children>
|
<Button fx:id="btnClose" mnemonicParsing="false" prefHeight="27.0" prefWidth="90.0" style="-fx-background-color: rgb(202, 202, 202); -fx-cursor: pointer; -fx-border-color: #9d9fa2;" text="Quitter" textFill="#5d5d5d" />
|
</children>
|
</HBox>
|
</children>
|
<padding>
|
<Insets bottom="30.0" left="30.0" right="30.0" top="30.0" />
|
</padding>
|
</VBox>
|
</children>
|
</VBox>
|
</center>
|
<top>
|
<HBox styleClass="title-bar" BorderPane.alignment="CENTER">
|
<padding>
|
<Insets bottom="2.0" left="2.0" right="2.0" top="2.0" />
|
</padding>
|
<children>
|
<HBox prefWidth="200.0" HBox.hgrow="ALWAYS" />
|
<HBox alignment="CENTER_RIGHT" prefWidth="200.0" HBox.hgrow="ALWAYS">
|
<children>
|
<Button mnemonicParsing="false" onMouseClicked="#minimize" style="-fx-padding: 5 12 5 12;" styleClass="title-bar-button">
|
<graphic>
|
<ImageView fitHeight="10.0" fitWidth="10.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/min-icon.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
<Button mnemonicParsing="false" onMouseClicked="#maximize" style="-fx-padding: 5 12 5 12;" styleClass="title-bar-button">
|
<graphic>
|
<ImageView fitHeight="10.0" fitWidth="10.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/max-icon.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
<Button mnemonicParsing="false" onAction="#close" style="-fx-padding: 5 12 5 12;" styleClass="title-bar-button">
|
<graphic>
|
<ImageView fitHeight="10.0" fitWidth="10.0" pickOnBounds="true" preserveRatio="true">
|
<image>
|
<Image url="@../../../../images/close-icon.png" />
|
</image>
|
</ImageView>
|
</graphic>
|
</Button>
|
</children>
|
</HBox>
|
</children>
|
</HBox>
|
</top>
|
<stylesheets>
|
<URL value="@../../../../styles/main-style.css" />
|
<URL value="@../../../../styles/title-bar.css" />
|
</stylesheets>
|
</BorderPane>
|