From b3d0580439b9a00c7eb918085de1694151066004 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Thu, 18 Jun 2026 16:02:49 +0000
Subject: [PATCH] rename packages

---
 fdx_convert/src/main/java/com/megatim/fdxconvert/forms/StructureChampJsonEditFormController.java |   88 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 88 insertions(+), 0 deletions(-)

diff --git a/fdx_convert/src/main/java/com/megatim/fdxconvert/forms/StructureChampJsonEditFormController.java b/fdx_convert/src/main/java/com/megatim/fdxconvert/forms/StructureChampJsonEditFormController.java
new file mode 100644
index 0000000..2a7262c
--- /dev/null
+++ b/fdx_convert/src/main/java/com/megatim/fdxconvert/forms/StructureChampJsonEditFormController.java
@@ -0,0 +1,88 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.megatim.fdxconvert.forms;
+
+import com.megatim.dynamicjsonparser.enums.TypeDonnee;
+import com.megatimfx.common.annontations.Champ;
+import com.megatim.fdxconvert.App;
+import com.megatim.fdxconvert.model.SubObject;
+import com.megatim.fdxconvert.pojo.Delimiteur;
+import java.net.URL;
+import java.util.ResourceBundle;
+import javafx.collections.FXCollections;
+import javafx.fxml.FXML;
+import javafx.fxml.Initializable;
+import javafx.scene.control.CheckBox;
+import javafx.scene.control.ComboBox;
+import javafx.scene.control.TextField;
+
+/**
+ *
+ * @author ASUS
+ */
+public class StructureChampJsonEditFormController implements Initializable {
+
+    @FXML
+    @Champ(mappedBy = "typeDonnee", type = TypeDonnee.class)
+    private ComboBox<TypeDonnee> typeDonneeComboBox;
+
+    @FXML
+    @Champ(mappedBy = "typeOfSubObject", type = SubObject.class)
+    private ComboBox<SubObject> typeObjetComboBox;
+
+    @FXML
+    @Champ(mappedBy = "libelle", type = String.class)
+    private TextField libelleTextField;
+
+    @FXML
+    @Champ(mappedBy = "formatDate", type = String.class)
+    private ComboBox<String> formatDateComboBox;
+
+    @FXML
+    @Champ(mappedBy = "liste", type = Boolean.class)
+    private CheckBox listeCheckBox;
+
+    @FXML
+    @Champ(mappedBy = "delimiteurDate", type = Delimiteur.class)
+    private ComboBox<Delimiteur> delimiteurDateComboBox;
+
+    @Override
+    public void initialize(URL url, ResourceBundle rb) {
+        formatDateComboBox.setPromptText("Sélectionnez un élément dans la liste");
+        formatDateComboBox.setItems(FXCollections.observableArrayList(
+                App.FORMATS_DATE
+        ));
+
+        delimiteurDateComboBox.setDisable(true);
+        formatDateComboBox.setDisable(true);
+        
+        delimiteurDateComboBox.setPromptText("Sélectionnez un élément dans la liste");
+        delimiteurDateComboBox.setItems(FXCollections.observableArrayList(
+                App.SEPARATEURS_DATE.values()
+        ));
+
+        typeDonneeComboBox.setItems(FXCollections.observableArrayList(TypeDonnee.values()));
+
+        typeDonneeComboBox.setOnAction(event -> {
+
+            boolean isObjet = typeDonneeComboBox.getValue() != null && typeDonneeComboBox.getValue().equals(TypeDonnee.OBJET);
+            typeObjetComboBox.setDisable(!isObjet);
+            
+            boolean isDate = typeDonneeComboBox.getValue() != null && typeDonneeComboBox.getValue().equals(TypeDonnee.DATE);
+            formatDateComboBox.setDisable(!isDate);
+            delimiteurDateComboBox.setDisable(!isDate);
+        });
+
+    }
+
+    public TextField getLibelleTextField() {
+        return libelleTextField;
+    }
+
+    public ComboBox<SubObject> getTypeObjetComboBox() {
+        return typeObjetComboBox;
+    }
+
+}

--
Gitblit v1.10.0