/*
|
* 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.fdxgenerator.controller.table;
|
|
import com.megatim.fdxgenerator.model.StructureLigne;
|
import javafx.scene.control.TableColumn;
|
import javafx.scene.control.cell.PropertyValueFactory;
|
|
/**
|
*
|
* @author STEPHANIE
|
*/
|
public class StructureLigneTable {
|
|
public StructureLigneTable() {
|
|
}
|
|
public static TableColumn<StructureLigne, String> positionColumn() {
|
TableColumn<StructureLigne, String> column = new TableColumn("Position");
|
column.setCellValueFactory(new PropertyValueFactory("position"));
|
return column;
|
}
|
|
public static TableColumn<StructureLigne, String> codeColumn() {
|
TableColumn<StructureLigne, String> column = new TableColumn("Code");
|
column.setCellValueFactory(new PropertyValueFactory("code"));
|
return column;
|
}
|
public static TableColumn<StructureLigne, String> typeDonneeColumn() {
|
TableColumn<StructureLigne, String> column = new TableColumn("Type de données");
|
column.setCellValueFactory(new PropertyValueFactory("typeDonnee"));
|
return column;
|
}
|
public static TableColumn<StructureLigne, String> tailleColumn() {
|
TableColumn<StructureLigne, String> column = new TableColumn("Taille");
|
column.setCellValueFactory(new PropertyValueFactory("taille"));
|
return column;
|
}
|
|
|
}
|