1 package fr.ifremer.dali.ui.swing.content.home.survey;
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.dali.dto.data.survey.SurveyDTO;
27 import fr.ifremer.dali.ui.swing.content.home.HomeUIModel;
28 import fr.ifremer.dali.ui.swing.util.table.AbstractDaliTableUIModel;
29
30
31
32
33 public class SurveysTableUIModel extends AbstractDaliTableUIModel<SurveyDTO, SurveysTableRowModel, SurveysTableUIModel> {
34
35 private HomeUIModel mainUIModel;
36
37 private boolean selectedSurveyEditable;
38
39 public static final String PROPERTY_SELECTED_SURVEY_EDITABLE = "selectedSurveyEditable";
40
41 private boolean samplingOperationsLoading;
42
43 public static final String PROPERTY_SAMPLING_OPERATIONS_LOADING = "samplingOperationsLoading";
44
45
46
47
48 public SurveysTableUIModel() {
49 super();
50 }
51
52
53
54
55
56
57 public HomeUIModel getMainUIModel() {
58 return mainUIModel;
59 }
60
61
62
63
64
65
66 public void setMainUIModel(HomeUIModel mainUIModel) {
67 this.mainUIModel = mainUIModel;
68 }
69
70
71
72
73
74
75 public boolean isSamplingOperationsLoading() {
76 return samplingOperationsLoading;
77 }
78
79
80
81
82
83
84 public void setSamplingOperationsLoading(boolean samplingOperationsLoading) {
85 this.samplingOperationsLoading = samplingOperationsLoading;
86 firePropertyChange(PROPERTY_SAMPLING_OPERATIONS_LOADING, null, samplingOperationsLoading);
87 }
88
89
90
91
92
93
94 public boolean isSelectedSurveyEditable() {
95 return selectedSurveyEditable;
96 }
97
98
99
100
101
102
103 public void setSelectedSurveyEditable(boolean selectedSurveyEditable) {
104 this.selectedSurveyEditable = selectedSurveyEditable;
105 firePropertyChange(PROPERTY_SELECTED_SURVEY_EDITABLE, null, selectedSurveyEditable);
106 }
107 }