GUI yuuki #5
24 changed files with 851 additions and 181 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -35,4 +35,5 @@ bin/**/*
|
|||
target/**/*
|
||||
build/**/*
|
||||
gen/**/*
|
||||
out/**/*
|
||||
out/**/*
|
||||
.idea/
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_13">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
|
|
@ -12,13 +12,22 @@
|
|||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="org.apache.maven.plugins:maven-surefire-plugin:2.22.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="org.apache.maven.plugins:maven-surefire-plugin:2.22.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.7.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.apiguardian:apiguardian-api:1.1.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.7.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-api:5.7.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.opentest4j:opentest4j:1.2.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-commons:1.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-simple:1.7.25" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.openjfx:javafx-controls:15" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.openjfx:javafx-controls:win:15" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.openjfx:javafx-graphics:15" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.openjfx:javafx-graphics:win:15" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.openjfx:javafx-base:15" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.openjfx:javafx-base:win:15" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.openjfx:javafx-fxml:15" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.openjfx:javafx-fxml:win:15" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
28
pom.xml
28
pom.xml
|
|
@ -39,9 +39,11 @@
|
|||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.release>11</maven.compiler.release>
|
||||
<maven.compiler.source>13</maven.compiler.source>
|
||||
<maven.compiler.target>13</maven.compiler.target>
|
||||
<junit.jupiter.version>5.7.0</junit.jupiter.version>
|
||||
<javafx.version>15</javafx.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
@ -67,6 +69,16 @@
|
|||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>1.7.25</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<artifactId>javafx-controls</artifactId>
|
||||
<version>${javafx.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<artifactId>javafx-fxml</artifactId>
|
||||
<version>${javafx.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
@ -76,6 +88,22 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.22.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.0</version>
|
||||
<configuration>
|
||||
<release>${maven.compiler.release}</release>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<artifactId>javafx-maven-plugin</artifactId>
|
||||
<version>0.0.1</version>
|
||||
<configuration>
|
||||
<mainClass>fr.myny.gui.Gui</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
@ -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(){
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -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(){
|
||||
}
|
||||
}
|
||||
|
|
@ -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(){
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -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(){
|
||||
|
||||
}
|
||||
}
|
||||
74
src/main/java/fr/myny/gui/ButtonController.java
Normal file
74
src/main/java/fr/myny/gui/ButtonController.java
Normal file
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
||||
80
src/main/java/fr/myny/gui/DocumentController.java
Normal file
80
src/main/java/fr/myny/gui/DocumentController.java
Normal file
|
|
@ -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<Integer> integerChoiceBox;
|
||||
|
||||
/**
|
||||
*
|
||||
* ChoiceBox créé grâce à FXML
|
||||
*/
|
||||
private ChoiceBox<String> 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(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
498
src/main/java/fr/myny/gui/GridController.java
Normal file
498
src/main/java/fr/myny/gui/GridController.java
Normal file
|
|
@ -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<Integer> bonusNumbersChecked;
|
||||
|
||||
/**
|
||||
* Liste des nombres sélectionnés
|
||||
*/
|
||||
ArrayList<Integer> 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 {
|
||||
|
||||
}
|
||||
}
|
||||
33
src/main/java/fr/myny/gui/Gui.java
Normal file
33
src/main/java/fr/myny/gui/Gui.java
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
package fr.myny.gui;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Gui extends Application {
|
||||
|
||||
private static Scene scene;
|
||||
|
||||
@Override
|
||||
public void start(Stage stage) throws IOException {
|
||||
scene = new Scene(loadFXML("primary"));
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
||||
static void setRoot(String fxml) throws IOException {
|
||||
scene.setRoot(loadFXML(fxml));
|
||||
}
|
||||
|
||||
private static Parent loadFXML(String fxml) throws IOException {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(Gui.class.getResource(fxml + ".fxml"));
|
||||
return fxmlLoader.load();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch();
|
||||
}
|
||||
}
|
||||
|
|
@ -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(){
|
||||
|
||||
}
|
||||
}
|
||||
13
src/main/java/fr/myny/gui/PrimaryController.java
Normal file
13
src/main/java/fr/myny/gui/PrimaryController.java
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package fr.myny.gui;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class PrimaryController {
|
||||
|
||||
@FXML
|
||||
private void switchToSecondary() throws IOException {
|
||||
Gui.setRoot("secondary");
|
||||
}
|
||||
}
|
||||
13
src/main/java/fr/myny/gui/SecondaryController.java
Normal file
13
src/main/java/fr/myny/gui/SecondaryController.java
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package fr.myny.gui;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class SecondaryController {
|
||||
|
||||
@FXML
|
||||
private void switchToPrimary() throws IOException {
|
||||
Gui.setRoot("primary");
|
||||
}
|
||||
}
|
||||
7
src/main/java/module-info.java
Normal file
7
src/main/java/module-info.java
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
module fr.myny.gui {
|
||||
requires javafx.controls;
|
||||
requires javafx.fxml;
|
||||
|
||||
opens fr.myny.gui to javafx.fxml;
|
||||
exports fr.myny.gui;
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
public class test{
|
||||
public static void main(String[] args){
|
||||
System.out.println("Il n'y a rien a voir !");
|
||||
System.out.println("nico fait un test");
|
||||
System.out.println("Il Je test les branchs");
|
||||
}
|
||||
}
|
||||
13
src/main/resources/fr/myny/gui/popup.fxml
Normal file
13
src/main/resources/fr/myny/gui/popup.fxml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<VBox alignment="CENTER" prefHeight="241.0" prefWidth="397.0" spacing="20.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.myny.gui.PrimaryController">
|
||||
<Label prefHeight="167.0" prefWidth="69.0" text="Primary View" />
|
||||
<Button onAction="#switchToSecondary" prefHeight="109.0" prefWidth="152.0" text="Switch to Secondary View" />
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
13
src/main/resources/fr/myny/gui/primary.fxml
Normal file
13
src/main/resources/fr/myny/gui/primary.fxml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<VBox alignment="CENTER" prefHeight="241.0" prefWidth="397.0" spacing="20.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.myny.gui.PrimaryController">
|
||||
<Label prefHeight="167.0" prefWidth="69.0" text="Primary View" />
|
||||
<Button onAction="#switchToSecondary" prefHeight="109.0" prefWidth="152.0" text="Switch to Secondary View" />
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
13
src/main/resources/fr/myny/gui/scene1.fxml
Normal file
13
src/main/resources/fr/myny/gui/scene1.fxml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<VBox alignment="CENTER" prefHeight="241.0" prefWidth="397.0" spacing="20.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.myny.gui.PrimaryController">
|
||||
<Label prefHeight="167.0" prefWidth="69.0" text="Primary View" />
|
||||
<Button onAction="#switchToSecondary" prefHeight="109.0" prefWidth="152.0" text="Switch to Secondary View" />
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
13
src/main/resources/fr/myny/gui/scene2.fxml
Normal file
13
src/main/resources/fr/myny/gui/scene2.fxml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<VBox alignment="CENTER" prefHeight="241.0" prefWidth="397.0" spacing="20.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.myny.gui.PrimaryController">
|
||||
<Label prefHeight="167.0" prefWidth="69.0" text="Primary View" />
|
||||
<Button onAction="#switchToSecondary" prefHeight="109.0" prefWidth="152.0" text="Switch to Secondary View" />
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
13
src/main/resources/fr/myny/gui/scene3.fxml
Normal file
13
src/main/resources/fr/myny/gui/scene3.fxml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<VBox alignment="CENTER" prefHeight="241.0" prefWidth="397.0" spacing="20.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.myny.gui.PrimaryController">
|
||||
<Label prefHeight="167.0" prefWidth="69.0" text="Primary View" />
|
||||
<Button onAction="#switchToSecondary" prefHeight="109.0" prefWidth="152.0" text="Switch to Secondary View" />
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
13
src/main/resources/fr/myny/gui/scene4.fxml
Normal file
13
src/main/resources/fr/myny/gui/scene4.fxml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<VBox alignment="CENTER" prefHeight="241.0" prefWidth="397.0" spacing="20.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.myny.gui.PrimaryController">
|
||||
<Label prefHeight="167.0" prefWidth="69.0" text="Primary View" />
|
||||
<Button onAction="#switchToSecondary" prefHeight="109.0" prefWidth="152.0" text="Switch to Secondary View" />
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
14
src/main/resources/fr/myny/gui/secondary.fxml
Normal file
14
src/main/resources/fr/myny/gui/secondary.fxml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
|
||||
<VBox alignment="CENTER" spacing="20.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.myny.gui.SecondaryController">
|
||||
<Label text="Secondary View" />
|
||||
<Button text="Switch to Primary View" onAction="#switchToPrimary" />
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
1
test.txt
1
test.txt
|
|
@ -1 +0,0 @@
|
|||
azersdfglkjqnv,osdgfithez
|
||||
Reference in a new issue