1 package fr.ifremer.dali.ui.swing.content.manage.program.strategiesByLocation.locations;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 import fr.ifremer.dali.ui.swing.util.table.AbstractDaliTableModel;
28 import fr.ifremer.dali.ui.swing.util.table.DaliColumnIdentifier;
29 import fr.ifremer.quadrige3.ui.swing.table.SwingTableColumnModel;
30
31 import static org.nuiton.i18n.I18n.n;
32
33
34
35
36 public class LieuxProgrammeTableModel extends AbstractDaliTableModel<LieuxProgrammeTableRowModel> {
37
38
39
40
41 public static final DaliColumnIdentifier<LieuxProgrammeTableRowModel> CODE = DaliColumnIdentifier.newId(
42 LieuxProgrammeTableRowModel.PROPERTY_ID,
43 n("dali.property.code"),
44 n("dali.program.strategies.location.code.tip"),
45 Integer.class);
46
47
48
49
50 public static final DaliColumnIdentifier<LieuxProgrammeTableRowModel> LABEL = DaliColumnIdentifier.newId(
51 LieuxProgrammeTableRowModel.PROPERTY_LABEL,
52 n("dali.property.label"),
53 n("dali.program.strategies.location.label.tip"),
54 String.class);
55
56
57
58
59 public static final DaliColumnIdentifier<LieuxProgrammeTableRowModel> NAME = DaliColumnIdentifier.newId(
60 LieuxProgrammeTableRowModel.PROPERTY_NAME,
61 n("dali.program.strategies.location.name.short"),
62 n("dali.program.strategies.location.name.tip"),
63 String.class);
64
65
66
67
68
69
70 public LieuxProgrammeTableModel(final SwingTableColumnModel columnModel) {
71 super(columnModel, false, false);
72 }
73
74
75 @Override
76 public LieuxProgrammeTableRowModel createNewRow() {
77 return new LieuxProgrammeTableRowModel();
78 }
79
80
81 @Override
82 public DaliColumnIdentifier<LieuxProgrammeTableRowModel> getFirstColumnEditing() {
83 return CODE;
84 }
85 }