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.ui.swing.util.table.ReefDbColumnIdentifier;
28
29 import java.util.ArrayList;
30 import java.util.HashSet;
31 import java.util.List;
32 import java.util.Set;
33
34
35
36
37 public abstract class AbstractMeasurementsMultiEditUIModel<
38 B extends MeasurementDTO,
39 R extends AbstractMeasurementsGroupedRowModel<B, R>,
40 M extends AbstractMeasurementsMultiEditUIModel<B, R, M>>
41 extends AbstractMeasurementsGroupedTableUIModel<B, R, M> {
42
43
44 Set<R> rowsToEdit;
45
46
47 List<Integer> readOnlyPmfmIds;
48
49 public Set<R> getRowsToEdit() {
50 if (rowsToEdit == null)
51 rowsToEdit = new HashSet<>();
52 return rowsToEdit;
53 }
54
55 public void setRowsToEdit(Set<R> rowsToEdit) {
56 this.rowsToEdit = rowsToEdit;
57 }
58
59 public List<Integer> getReadOnlyPmfmIds() {
60 if (readOnlyPmfmIds == null)
61 readOnlyPmfmIds = new ArrayList<>();
62 return readOnlyPmfmIds;
63 }
64
65 public void setReadOnlyPmfmIds(List<Integer> readOnlyPmfmIds) {
66 this.readOnlyPmfmIds = readOnlyPmfmIds;
67 }
68
69 public abstract Set<ReefDbColumnIdentifier<R>> getIdentifiersToCheck();
70
71 }