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/controller/table/ValidateurTable.java | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 53 insertions(+), 0 deletions(-)
diff --git a/fdx_convert/src/main/java/com/megatim/fdxconvert/controller/table/ValidateurTable.java b/fdx_convert/src/main/java/com/megatim/fdxconvert/controller/table/ValidateurTable.java
new file mode 100644
index 0000000..b3bef90
--- /dev/null
+++ b/fdx_convert/src/main/java/com/megatim/fdxconvert/controller/table/ValidateurTable.java
@@ -0,0 +1,53 @@
+/*
+ * 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.controller.table;
+
+import com.megatim.fdxconvert.model.Validateur;
+import java.time.LocalDateTime;
+import java.time.format.DateTimeFormatter;
+import javafx.beans.property.SimpleStringProperty;
+import javafx.scene.control.TableColumn;
+import javafx.scene.control.cell.PropertyValueFactory;
+import lombok.NoArgsConstructor;
+
+/**
+ *
+ * @author STEPHANIE
+ */
+@NoArgsConstructor
+public class ValidateurTable {
+
+ public static TableColumn<Validateur, String> typeFichierColumn() {
+ TableColumn<Validateur, String> column = new TableColumn("Code du TypeFichier");
+ column.setCellValueFactory(new PropertyValueFactory("codeTypeFichier"));
+ return column;
+ }
+
+ public static TableColumn<Validateur, String> dateCreationColumn() {
+ TableColumn<Validateur, String> column = new TableColumn("Date de l'importation");
+ column.setCellValueFactory(c -> {
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
+ LocalDateTime date = c.getValue().getDateCreation();
+
+ return new SimpleStringProperty(date != null ? "" + date.format(formatter) : "");
+ });
+ return column;
+ }
+
+ public static TableColumn<Validateur, String> dataConversionColumn() {
+ TableColumn<Validateur, String> column = new TableColumn("Conversion des données\nen TXT avant validation ?");
+ column.setCellValueFactory(c -> {
+ return new SimpleStringProperty(c.getValue().isConvertDataBeforeValidation() ? "Oui" : "Non");
+ });
+ return column;
+ }
+
+ public static TableColumn<Validateur, Integer> keyLengthColumn() {
+ TableColumn<Validateur, Integer> column = new TableColumn("Taille clé");
+ column.setCellValueFactory(new PropertyValueFactory("keyLength"));
+ return column;
+ }
+
+}
--
Gitblit v1.10.0