1 package fr.ifremer.tutti.ui.swing.util.caracteristics;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 import org.jdesktop.swingx.table.TableColumnModelExt;
26 import org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel;
27 import org.nuiton.jaxx.application.swing.table.ColumnIdentifier;
28
29 import static org.nuiton.i18n.I18n.n;
30
31
32
33
34
35 public class CaracteristicMapEditorTableModel extends AbstractApplicationTableModel<CaracteristicMapEditorRowModel> {
36
37 private static final long serialVersionUID = 1L;
38
39 public static final ColumnIdentifier<CaracteristicMapEditorRowModel> KEY = ColumnIdentifier.newId(
40 CaracteristicMapEditorRowModel.PROPERTY_KEY,
41 n("tutti.caracteristicMapEditorTable.table.header.key"),
42 n("tutti.caracteristicMapEditorTable.table.header.key"));
43
44 public static final ColumnIdentifier<CaracteristicMapEditorRowModel> VALUE = ColumnIdentifier.newId(
45 CaracteristicMapEditorRowModel.PROPERTY_VALUE,
46 n("tutti.caracteristicMapEditorTable.table.header.value"),
47 n("tutti.caracteristicMapEditorTable.table.header.value"));
48
49 public CaracteristicMapEditorTableModel(TableColumnModelExt columnModel) {
50 super(columnModel, false, false);
51 setNoneEditableCols(KEY);
52 }
53
54 @Override
55 public CaracteristicMapEditorRowModel createNewRow() {
56 return new CaracteristicMapEditorRowModel();
57 }
58 }