From 7abec14389e337f4c54fdf93f0e7a99b3630cf6c Mon Sep 17 00:00:00 2001 From: name Date: Mon, 1 Feb 2021 15:03:56 +0100 Subject: [PATCH] Update IHM --- src/main/java/fr/myny/data/DataCsv.java | 19 - src/main/java/fr/myny/data/ImportData.java | 25 - src/main/java/fr/myny/database/DataBase.java | 46 -- src/main/java/fr/myny/grid/BuildGrid.java | 24 - .../java/fr/myny/gui/ButtonController.java | 74 +++ .../java/fr/myny/gui/DocumentController.java | 80 +++ src/main/java/fr/myny/gui/GridController.java | 498 ++++++++++++++++++ src/main/java/fr/myny/gui/Ihm.java | 56 -- src/main/resources/fr/myny/gui/popup.fxml | 13 + src/main/resources/fr/myny/gui/scene1.fxml | 13 + src/main/resources/fr/myny/gui/scene2.fxml | 13 + src/main/resources/fr/myny/gui/scene3.fxml | 13 + src/main/resources/fr/myny/gui/scene4.fxml | 13 + 13 files changed, 717 insertions(+), 170 deletions(-) delete mode 100644 src/main/java/fr/myny/data/DataCsv.java delete mode 100644 src/main/java/fr/myny/data/ImportData.java delete mode 100644 src/main/java/fr/myny/database/DataBase.java delete mode 100644 src/main/java/fr/myny/grid/BuildGrid.java create mode 100644 src/main/java/fr/myny/gui/ButtonController.java create mode 100644 src/main/java/fr/myny/gui/DocumentController.java create mode 100644 src/main/java/fr/myny/gui/GridController.java delete mode 100644 src/main/java/fr/myny/gui/Ihm.java create mode 100644 src/main/resources/fr/myny/gui/popup.fxml create mode 100644 src/main/resources/fr/myny/gui/scene1.fxml create mode 100644 src/main/resources/fr/myny/gui/scene2.fxml create mode 100644 src/main/resources/fr/myny/gui/scene3.fxml create mode 100644 src/main/resources/fr/myny/gui/scene4.fxml diff --git a/src/main/java/fr/myny/data/DataCsv.java b/src/main/java/fr/myny/data/DataCsv.java deleted file mode 100644 index a0b8073..0000000 --- a/src/main/java/fr/myny/data/DataCsv.java +++ /dev/null @@ -1,19 +0,0 @@ -package fr.myny.data; - -public class DataCsv { - - - /** - * Le constructeur de DataCsv - */ - public DataCsv(){ - - } - - /** - * La methode de recuperation dun fichier csv - */ - public void getCsv(){ - - } -} diff --git a/src/main/java/fr/myny/data/ImportData.java b/src/main/java/fr/myny/data/ImportData.java deleted file mode 100644 index b4e2481..0000000 --- a/src/main/java/fr/myny/data/ImportData.java +++ /dev/null @@ -1,25 +0,0 @@ -package fr.myny.data; - -public class ImportData { - String url; - - /** - * Le constructeur de ImportData - */ - public ImportData(){ - - } - /** - * Le constructeur de ImportData - * @param url string contenant l URL dou recuperer les fichiers csv - */ - public ImportData(String url){ - this.url=url; - } - - /** - * La methode de recuperation de l URL - */ - public void getUrl(){ - } -} diff --git a/src/main/java/fr/myny/database/DataBase.java b/src/main/java/fr/myny/database/DataBase.java deleted file mode 100644 index 1a7a1ba..0000000 --- a/src/main/java/fr/myny/database/DataBase.java +++ /dev/null @@ -1,46 +0,0 @@ -package fr.myny.database; - -/** - * La classe DataBase qui soccupera de la base de donnees - */ - -public class DataBase { - - - - /** - * Le constructeur de DataBase - */ - public DataBase(){ - - } - - /** - * La methode de remplissage de la base de donnees - */ - public void fillDataBase(){ - - } - - /** - * La methode d'import de donnees depuis la base de donnees - */ - public void importDataBase(){ - - } - - /** - * La methode de creation de la base de donnees - */ - public void createDataBase(){ - - } - - - /** - * La methode de mise a jour de la base de donnees - */ - public void updateDataBase(){ - - } -} diff --git a/src/main/java/fr/myny/grid/BuildGrid.java b/src/main/java/fr/myny/grid/BuildGrid.java deleted file mode 100644 index e868228..0000000 --- a/src/main/java/fr/myny/grid/BuildGrid.java +++ /dev/null @@ -1,24 +0,0 @@ -package fr.myny.grid; - -public class BuildGrid { - /** - * Le constructeur de BuildGrid - */ - public BuildGrid(){ - - } - - /** - * La methode de recuperation de la grille - */ - public void getGrid(){ - - } - - /** - * La methode de demande du systeme reducteur - */ - public void ReductorSys(){ - - } -} diff --git a/src/main/java/fr/myny/gui/ButtonController.java b/src/main/java/fr/myny/gui/ButtonController.java new file mode 100644 index 0000000..d56b6cb --- /dev/null +++ b/src/main/java/fr/myny/gui/ButtonController.java @@ -0,0 +1,74 @@ +package fr.myny.gui; + +import javafx.fxml.FXML; + +import java.io.IOException; + +/** + * Classe permettant l'execution des fonctionnalités de l'application via les autres packages data, database, grid et stats. + */ +public class ButtonController { + + /** + * Execution de la méthode de téléchargement de toutes les données automatiquement et met à jour la base de données + * @throws IOException + */ + @FXML + private void controllerAutoTirage() throws IOException { + + } + + /** + * Execution de la méthode de téléchargement des dernières données automatiquement et met à jour la base de données + * @throws IOException + */ + @FXML + private void controllerAutoDernierTirage() throws IOException { + + } + + /** + * Demande à l'utilisateur de sélectionner un fichier CSV via l'explorateur des fichiers et met à jour la base de données + * @throws IOException + */ + @FXML + private void controllerGetCSVFile() throws IOException { + + } + + /** + * Appelle la méthode d'affichage des statistiques des fréquences d'apparitions d'un nombre + * @throws IOException + */ + @FXML + private void checkBoxNumeros() throws IOException { + + } + + /** + * Appelle la méthode d'affichage des statistiques des fréquences d'apparitions de combinaison de 2 chiffres + * @throws IOException + */ + @FXML + private void checkBox2Numeros() throws IOException { + + } + + /** + * Appelle la méthode d'affichage des statistiques des fréquences d'apparitions de combinaison de 3 chiffres + * @throws IOException + */ + @FXML + private void checkBox3Numeros() throws IOException { + + } + + /** + * Appelle la méthode d'affichage des statistiques des fréquences d'apparitions d'un nombre bonus + * @throws IOException + */ + @FXML + private void checkBoxNumerosBonus() throws IOException { + + } +} diff --git a/src/main/java/fr/myny/gui/DocumentController.java b/src/main/java/fr/myny/gui/DocumentController.java new file mode 100644 index 0000000..0099a32 --- /dev/null +++ b/src/main/java/fr/myny/gui/DocumentController.java @@ -0,0 +1,80 @@ +package fr.myny.gui; + +import javafx.collections.ObservableList; +import javafx.event.ActionEvent; +import javafx.fxml.FXML; +import javafx.fxml.Initializable; +import javafx.scene.control.ChoiceBox; + +import java.net.URL; +import java.util.ResourceBundle; + +/** + * Classe permettant d'initialiser et d'écouter le changement des ChoiceBox + */ +public class DocumentController implements Initializable { + + /** + * ChoiceBox créé grâce à FXML + */ + private ChoiceBox integerChoiceBox; + + /** + * + * ChoiceBox créé grâce à FXML + */ + private ChoiceBox stringChoiceBox; + + /** + * Liste d'entier observable grâce à FX + */ + private ObservableList observableIntegerList; + + /** + * Liste de chaîne de caractère observable grâce à FX + */ + private ObservableList observableStringList; + + /** + * Initialisation de la première ChoiceBox du nombre de numéros voulu + * @param url Paramètre non utilisé mais obligatoire en argument + * @param resourceBundle Paramètre non utilisé mais obligatoire en argument + */ + @Override + public void initialize(URL url, ResourceBundle resourceBundle) { + + } + + /** + * Action lors d'un évenement concernant la garantie du système + * @param event Action de l'évenement + */ + @FXML + private void numberGuarantee(ActionEvent event){ + + } + + /** + * Action lors d'un évenement concernant le nombre de numéros à jouer + * @param event Action de l'évenement + */ + @FXML + private void numberPlay(ActionEvent event){ + + } + + /** + * Chargement de toutes les options garantie du systeme + */ + private void loadDataGuarantee(){ + + } + + /** + * Chargement de toutes les options liés au nombre de numéro voulu + */ + private void loadDataNumbers(){ + + } + +} diff --git a/src/main/java/fr/myny/gui/GridController.java b/src/main/java/fr/myny/gui/GridController.java new file mode 100644 index 0000000..c4b747a --- /dev/null +++ b/src/main/java/fr/myny/gui/GridController.java @@ -0,0 +1,498 @@ +package fr.myny.gui; + +import javafx.fxml.FXML; +import javafx.fxml.Initializable; + +import java.io.IOException; +import java.net.URL; +import java.util.ArrayList; +import java.util.ResourceBundle; + +/** + * Classe permettant d'initaliser la grille de choix des nombres et d'écouter si l'un d'entre eux est sélectionné + */ +public class GridController implements Initializable { + + /** + * Liste des nombres bonus sélectionnés + */ + ArrayList bonusNumbersChecked; + + /** + * Liste des nombres sélectionnés + */ + ArrayList numbersChecked; + + /** + * @param url + * @param resourceBundle + */ + @Override + public void initialize(URL url, ResourceBundle resourceBundle) { + + } + + /** + * Contrôleur du numéro bonus 1 + */ + @FXML + private void numberBonusController1() throws IOException{ + + } + + /** + * Contrôleur du numéro bonus 2 + */ + @FXML + private void numberBonusController2() throws IOException{ + + } + + /** + * Contrôleur du numéro bonus 3 + */ + @FXML + private void numberBonusController3() throws IOException{ + + } + + /** + * Contrôleur du numéro bonus 4 + */ + @FXML + private void numberBonusController4() throws IOException{ + + } + + /** + * Contrôleur du numéro bonus 5 + */ + @FXML + private void numberBonusController5() throws IOException{ + + } + + /** + * Contrôleur du numéro bonus 6 + */ + @FXML + private void numberBonusController6() throws IOException{ + + } + + /** + * Contrôleur du numéro bonus 7 + */ + @FXML + private void numberBonusController7() throws IOException{ + + } + + /** + * Contrôleur du numéro bonus 8 + */ + @FXML + private void numberBonusController8() throws IOException{ + + } + + /** + * Contrôleur du numéro bonus 9 + */ + @FXML + private void numberBonusController9() throws IOException{ + + } + + /** + * Contrôleur du numéro bonus 10 + */ + @FXML + private void numberBonusController10() throws IOException { + + } + + /** + * Contrôleur du numéro 1 + */ + @FXML + private void numberController1() throws IOException { + + } + + /** + * Contrôleur du numéro 2 + */ + @FXML + private void numberController2() throws IOException { + + } + + /** + * Contrôleur du numéro 3 + */ + @FXML + private void numberController3() throws IOException { + + } + + /** + * Contrôleur du numéro 4 + */ + @FXML + private void numberController4() throws IOException { + + } + + /** + * Contrôleur du numéro 5 + */ + @FXML + private void numberController5() throws IOException { + + } + + /** + * Contrôleur du numéro 6 + */ + @FXML + private void numberController6() throws IOException { + + } + + /** + * Contrôleur du numéro 7 + */ + @FXML + private void numberController8() throws IOException { + + } + + /** + * Contrôleur du numéro 9 + */ + @FXML + private void numberController9() throws IOException { + + } + + /** + * Contrôleur du numéro 10 + */ + @FXML + private void numberController10() throws IOException { + + } + + /** + * Contrôleur du numéro 11 + */ + @FXML + private void numberController11() throws IOException { + + } + + /** + * Contrôleur du numéro 12 + */ + @FXML + private void numberController12() throws IOException { + + } + + /** + * Contrôleur du numéro 13 + */ + @FXML + private void numberController13() throws IOException { + + } + + /** + * Contrôleur du numéro 14 + */ + @FXML + private void numberController14() throws IOException { + + } + + /** + * Contrôleur du numéro 15 + */ + @FXML + private void numberController15() throws IOException { + + } + + /** + * Contrôleur du numéro 16 + */ + @FXML + private void numberController16() throws IOException { + + } + + /** + * Contrôleur du numéro 17 + */ + @FXML + private void numberController17() throws IOException { + + } + + /** + * Contrôleur du numéro 18 + */ + @FXML + private void numberController18() throws IOException { + + } + + /** + * Contrôleur du numéro 19 + */ + @FXML + private void numberController19() throws IOException { + + } + + /** + * Contrôleur du numéro 20 + */ + @FXML + private void numberController20() throws IOException { + + } + + /** + * Contrôleur du numéro 21 + */ + @FXML + private void numberController21() throws IOException { + + } + + /** + * Contrôleur du numéro 22 + */ + @FXML + private void numberController22() throws IOException { + + } + + /** + * Contrôleur du numéro 23 + */ + @FXML + private void numberController23() throws IOException { + + } + + /** + * Contrôleur du numéro 24 + */ + @FXML + private void numberController24() throws IOException { + + } + + /** + * Contrôleur du numéro 25 + */ + @FXML + private void numberController25() throws IOException { + + } + + /** + * Contrôleur du numéro 26 + */ + @FXML + private void numberController26() throws IOException { + + } + + /** + * Contrôleur du numéro 27 + */ + @FXML + private void numberController27() throws IOException { + + } + + /** + * Contrôleur du numéro 28 + */ + @FXML + private void numberController28() throws IOException { + + } + + /** + * Contrôleur du numéro 29 + */ + @FXML + private void numberController29() throws IOException { + + } + + /** + * Contrôleur du numéro 30 + */ + @FXML + private void numberController30() throws IOException { + + } + + /** + * Contrôleur du numéro 31 + */ + @FXML + private void numberController31() throws IOException { + + } + + /** + * Contrôleur du numéro 32 + */ + @FXML + private void numberController32() throws IOException { + + } + + /** + * Contrôleur du numéro 33 + */ + @FXML + private void numberController33() throws IOException { + + } + + /** + * Contrôleur du numéro 34 + */ + @FXML + private void numberController34() throws IOException { + + } + + /** + * Contrôleur du numéro 35 + */ + @FXML + private void numberController35() throws IOException { + + } + + /** + * Contrôleur du numéro 36 + */ + @FXML + private void numberController36() throws IOException { + + } + + /** + * Contrôleur du numéro 37 + */ + @FXML + private void numberController37() throws IOException { + + } + + /** + * Contrôleur du numéro 38 + */ + @FXML + private void numberController38() throws IOException { + + } + + /** + * Contrôleur du numéro 39 + */ + @FXML + private void numberController39() throws IOException { + + } + + /** + * Contrôleur du numéro 40 + */ + @FXML + private void numberController40() throws IOException { + + } + + /** + * Contrôleur du numéro 41 + */ + @FXML + private void numberController41() throws IOException { + + } + + /** + * Contrôleur du numéro 42 + */ + @FXML + private void numberController42() throws IOException { + + } + + /** + * Contrôleur du numéro 43 + */ + @FXML + private void numberController43() throws IOException { + + } + + /** + * Contrôleur du numéro 44 + */ + @FXML + private void numberController44() throws IOException { + + } + + /** + * Contrôleur du numéro 45 + */ + @FXML + private void numberController45() throws IOException { + + } + + /** + * Contrôleur du numéro 46 + */ + @FXML + private void numberController46() throws IOException { + + } + + /** + * Contrôleur du numéro 47 + */ + @FXML + private void numberController47() throws IOException { + + } + + /** + * Contrôleur du numéro 48 + */ + @FXML + private void numberController48() throws IOException { + + } + + /** + * Contrôleur du numéro 49 + */ + @FXML + private void numberController49() throws IOException { + + } +} diff --git a/src/main/java/fr/myny/gui/Ihm.java b/src/main/java/fr/myny/gui/Ihm.java deleted file mode 100644 index 023c2f7..0000000 --- a/src/main/java/fr/myny/gui/Ihm.java +++ /dev/null @@ -1,56 +0,0 @@ -package fr.myny.gui; - - -public class Ihm { - - - - /** - * Le constructeur de Ihm - */ - public Ihm(){ - - } - - /** - * La methode de demande de mise a jour de la base de donnees - */ - public void update(){ - - } - - /** - * La methode de demande de recuperation d'URL ??? - */ - public void getUrl(){ - - } - - /** - * La methode de demande de telechargement de donnees - */ - public void downloadData(){ - - } - - /** - * La methode de demande daffichage de donness - */ - public void printStatistics(){ - - } - - /** - * La methode de demande de generation dun fichier pdf avec des grilles proposees - */ - public void printGrid(){ - - } - - /** - * La methode de demande daffichage de la table - */ - public void generateTable(){ - - } -} diff --git a/src/main/resources/fr/myny/gui/popup.fxml b/src/main/resources/fr/myny/gui/popup.fxml new file mode 100644 index 0000000..df35472 --- /dev/null +++ b/src/main/resources/fr/myny/gui/popup.fxml @@ -0,0 +1,13 @@ + + + + + + + +