Skip to content
Snippets Groups Projects
Commit 8384b130 authored by Matisse DEKEISER's avatar Matisse DEKEISER :closed_lock_with_key:
Browse files

Removed useless add button and constructor

parent fd05f394
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<?import javafx.scene.text.*?> <?import javafx.scene.text.*?>
<?import javafx.stage.*?> <?import javafx.stage.*?>
<Stage fx:id="stage" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.univlille.sae.classification.controller.DataStageController"> <Stage fx:id="stage" xmlns="http://javafx.com/javafx/17.0.12" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.univlille.sae.classification.controller.DataStageController">
<scene> <scene>
<Scene> <Scene>
<AnchorPane prefHeight="487.0" prefWidth="692.0"> <AnchorPane prefHeight="487.0" prefWidth="692.0">
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
</HBox> </HBox>
<HBox alignment="CENTER" prefHeight="169.0" prefWidth="691.0" spacing="50.0"> <HBox alignment="CENTER" prefHeight="169.0" prefWidth="691.0" spacing="50.0">
<children> <children>
<Button fx:id="addData" mnemonicParsing="false" onAction="#openAddData" prefHeight="26.0" prefWidth="141.0" text="Ajouter une donnée" />
<Button fx:id="classifyData" disable="true" mnemonicParsing="false" onAction="#classifyDatas" prefHeight="26.0" prefWidth="157.0" text="Classifier les données" /> <Button fx:id="classifyData" disable="true" mnemonicParsing="false" onAction="#classifyDatas" prefHeight="26.0" prefWidth="157.0" text="Classifier les données" />
</children> </children>
</HBox> </HBox>
......
...@@ -2,6 +2,7 @@ package fr.univlille.sae.classification.controller; ...@@ -2,6 +2,7 @@ package fr.univlille.sae.classification.controller;
import fr.univlille.sae.classification.model.ClassificationModel; import fr.univlille.sae.classification.model.ClassificationModel;
import fr.univlille.sae.classification.model.Iris; import fr.univlille.sae.classification.model.Iris;
import fr.univlille.sae.classification.view.DataVisualizationView;
import fr.univlille.sae.classification.view.MainStageView; import fr.univlille.sae.classification.view.MainStageView;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.scene.control.*; import javafx.scene.control.*;
......
...@@ -28,9 +28,6 @@ public class DataStageController { ...@@ -28,9 +28,6 @@ public class DataStageController {
@FXML @FXML
Button loadData; Button loadData;
@FXML
Button addData;
@FXML @FXML
Button classifyData; Button classifyData;
...@@ -61,17 +58,6 @@ public class DataStageController { ...@@ -61,17 +58,6 @@ public class DataStageController {
this.dataStageView = dataStageView; this.dataStageView = dataStageView;
} }
/**
* Ouvre l'interface d'ajout de donnée.
* @throws IOException
*/
public void openAddData() throws IOException {
AddDataView addDataView = new AddDataView(ClassificationModel.getClassificationModel(), stage, dataStageView);
addDataView.show();
}
public void classifyDatas() { public void classifyDatas() {
ClassificationModel.getClassificationModel().classifierDonnees(); ClassificationModel.getClassificationModel().classifierDonnees();
classifyData.setDisable(true); classifyData.setDisable(true);
......
...@@ -17,7 +17,6 @@ public class AddDataView { ...@@ -17,7 +17,6 @@ public class AddDataView {
private ClassificationModel model; private ClassificationModel model;
private Stage owner; private Stage owner;
private MainStageView mainStageView; private MainStageView mainStageView;
private DataStageView dataStageView;
public AddDataView(ClassificationModel model, Stage owner, MainStageView mainStageView) { public AddDataView(ClassificationModel model, Stage owner, MainStageView mainStageView) {
this.model = model; this.model = model;
...@@ -25,12 +24,6 @@ public class AddDataView { ...@@ -25,12 +24,6 @@ public class AddDataView {
this.mainStageView = mainStageView; this.mainStageView = mainStageView;
} }
public AddDataView(ClassificationModel model, Stage owner, DataStageView dataStageView) {
this.model = model;
this.owner = owner;
this.dataStageView = dataStageView;
}
public void show() throws IOException { public void show() throws IOException {
FXMLLoader loader = new FXMLLoader(); FXMLLoader loader = new FXMLLoader();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment