1 package fr.ifremer.dali.ui.swing.content.home.operation;
2
3 /*
4 * #%L
5 * Dali :: UI
6 * $Id:$
7 * $HeadURL:$
8 * %%
9 * Copyright (C) 2014 - 2015 Ifremer
10 * %%
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Affero General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU Affero General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 * #L%
24 */
25
26 import fr.ifremer.dali.ui.swing.content.home.HomeUIModel;
27
28 /**
29 * Modele pour la zone des prelevements de l'ecran d'accueil.
30 */
31 public class OperationsTableUIModel
32 extends AbstractOperationsTableUIModel<OperationsTableUIModel> {
33
34 public static final String PROPERTY_MEASUREMENTS_LOADED = "measurementsLoaded";
35
36 private HomeUIModel mainUIModel;
37 private boolean measurementsLoaded;
38
39 /**
40 * Constructor.
41 */
42 public OperationsTableUIModel() {
43 super();
44 }
45
46 /**
47 * <p>Getter for the field <code>mainUIModel</code>.</p>
48 *
49 * @return a {@link fr.ifremer.dali.ui.swing.content.home.HomeUIModel} object.
50 */
51 public HomeUIModel getMainUIModel() {
52 return mainUIModel;
53 }
54
55 /**
56 * <p>Setter for the field <code>mainUIModel</code>.</p>
57 *
58 * @param mainUIModel a {@link fr.ifremer.dali.ui.swing.content.home.HomeUIModel} object.
59 */
60 public void setMainUIModel(HomeUIModel mainUIModel) {
61 this.mainUIModel = mainUIModel;
62 }
63
64 public boolean isMeasurementsLoaded() {
65 return measurementsLoaded;
66 }
67
68 public void setMeasurementsLoaded(boolean measurementsLoaded) {
69 boolean oldValue = isMeasurementsLoaded();
70 this.measurementsLoaded = measurementsLoaded;
71 firePropertyChange(PROPERTY_MEASUREMENTS_LOADED, oldValue, measurementsLoaded);
72 }
73 }