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/TacheTable.java |   71 +++++++++++++++++++++++++++++++++++
 1 files changed, 71 insertions(+), 0 deletions(-)

diff --git a/fdx_convert/src/main/java/com/megatim/fdxconvert/controller/table/TacheTable.java b/fdx_convert/src/main/java/com/megatim/fdxconvert/controller/table/TacheTable.java
new file mode 100644
index 0000000..26adf13
--- /dev/null
+++ b/fdx_convert/src/main/java/com/megatim/fdxconvert/controller/table/TacheTable.java
@@ -0,0 +1,71 @@
+package com.megatim.fdxconvert.controller.table;
+
+import com.megatim.fdxconvert.model.Tache;
+import com.megatim.fdxconvert.model.TypeFichier;
+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;
+
+/**
+ *
+ * @author MGT_DEV3
+ */
+public class TacheTable {
+
+    private TacheTable() {
+    }
+
+    public static TableColumn<Tache, String> libelleColumn() {
+        TableColumn<Tache, String> column = new TableColumn<>("Libellé");
+        column.setCellValueFactory(new PropertyValueFactory<>("libelle"));
+        return column;
+    }
+
+    public static TableColumn<Tache, String> descriptionColumn() {
+        TableColumn<Tache, String> column = new TableColumn<>("Description");
+        column.setCellValueFactory(c -> {
+            //
+            return new SimpleStringProperty(c.getValue().getLibelle());
+        });
+        return column;
+    }
+    
+    public static TableColumn<Tache, String> typeFichierColumn() {
+        TableColumn<Tache, String> column = new TableColumn<>("Type Fichier");
+        column.setCellValueFactory( c -> {
+            TypeFichier typeFichier = c.getValue().getTypeFichier();
+            return new SimpleStringProperty(typeFichier.getCode());
+        });
+        return column;
+    }
+
+    public static TableColumn<Tache, String> schedulerColumn() {
+        TableColumn<Tache, String> column = new TableColumn<>("Plannification");
+        column.setCellValueFactory(new PropertyValueFactory<>("scheduler"));
+        return column;
+    }
+    
+     public static TableColumn<Tache, String> dateCreationColumn() {
+        TableColumn<Tache, String> column = new TableColumn<>("Date création");
+        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<Tache, String> dateMiseAJourColumn() {
+        TableColumn<Tache, String> column = new TableColumn<>("Date dernière modification");
+        column.setCellValueFactory(c -> {
+            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
+            LocalDateTime date = c.getValue().getDateMiseAJour();
+            
+            return new SimpleStringProperty(date != null ? date.format(formatter) : "");
+        });
+        return column;
+    }
+}

--
Gitblit v1.10.0