1 package fr.ifremer.reefdb.ui.swing.content.observation.shared;
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 import fr.ifremer.reefdb.dto.data.measurement.MeasurementDTO;
27 import fr.ifremer.reefdb.dto.referential.DepartmentDTO;
28 import fr.ifremer.reefdb.ui.swing.util.table.AbstractReefDbTableModel;
29 import fr.ifremer.reefdb.ui.swing.util.table.ReefDbColumnIdentifier;
30 import org.jdesktop.swingx.table.TableColumnModelExt;
31
32 import static org.nuiton.i18n.I18n.n;
33
34
35
36
37 public abstract class AbstractMeasurementsGroupedTableModel<R extends AbstractMeasurementsGroupedRowModel<MeasurementDTO, ?>>
38 extends AbstractReefDbTableModel<R> {
39
40
41
42
43 public static final ReefDbColumnIdentifier<? extends AbstractMeasurementsGroupedRowModel<MeasurementDTO, ?>> ANALYST = ReefDbColumnIdentifier.newId(
44 AbstractMeasurementsGroupedRowModel.PROPERTY_ANALYST,
45 n("reefdb.property.analyst"),
46 n("reefdb.measurement.analyst.tip"),
47 DepartmentDTO.class);
48
49 public static final ReefDbColumnIdentifier<? extends AbstractMeasurementsGroupedRowModel<MeasurementDTO, ?>> INDIVIDUAL_ID = ReefDbColumnIdentifier.newReadOnlyId(
50 AbstractMeasurementsGroupedRowModel.PROPERTY_INDIVIDUAL_ID,
51 n("reefdb.property.individualId"),
52 n("reefdb.property.individualId"),
53 Integer.class);
54
55
56
57
58
59
60 public AbstractMeasurementsGroupedTableModel(TableColumnModelExt columnModel, boolean createNewRow) {
61 super(columnModel, createNewRow, false);
62 }
63
64 public abstract ReefDbColumnIdentifier<R> getPmfmInsertPosition();
65 }