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

Removed useless add button and constructor

parent fd05f394
Branches
Tags
No related merge requests found
......@@ -9,7 +9,7 @@
<?import javafx.scene.text.*?>
<?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>
<AnchorPane prefHeight="487.0" prefWidth="692.0">
......@@ -54,7 +54,6 @@
</HBox>
<HBox alignment="CENTER" prefHeight="169.0" prefWidth="691.0" spacing="50.0">
<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" />
</children>
</HBox>
......
......@@ -2,6 +2,7 @@ package fr.univlille.sae.classification.controller;
import fr.univlille.sae.classification.model.ClassificationModel;
import fr.univlille.sae.classification.model.Iris;
import fr.univlille.sae.classification.view.DataVisualizationView;
import fr.univlille.sae.classification.view.MainStageView;
import javafx.fxml.FXML;
import javafx.scene.control.*;
......
......@@ -28,9 +28,6 @@ public class DataStageController {
@FXML
Button loadData;
@FXML
Button addData;
@FXML
Button classifyData;
......@@ -61,17 +58,6 @@ public class DataStageController {
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() {
ClassificationModel.getClassificationModel().classifierDonnees();
classifyData.setDisable(true);
......
......@@ -17,7 +17,6 @@ public class AddDataView {
private ClassificationModel model;
private Stage owner;
private MainStageView mainStageView;
private DataStageView dataStageView;
public AddDataView(ClassificationModel model, Stage owner, MainStageView mainStageView) {
this.model = model;
......@@ -25,12 +24,6 @@ public class AddDataView {
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 {
FXMLLoader loader = new FXMLLoader();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment