View Javadoc
1   package fr.ifremer.tutti.ui.swing.content.referential;
2   
3   /*
4    * #%L
5    * Tutti :: UI
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2012 - 2014 Ifremer
10   * %%
11   * This program is free software: you can redistribute it and/or modify
12   * it under the terms of the GNU General Public License as
13   * published by the Free Software Foundation, either version 3 of the
14   * License, or (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 General Public
22   * License along with this program.  If not, see
23   * <http://www.gnu.org/licenses/gpl-3.0.html>.
24   * #L%
25   */
26  
27  import org.jdesktop.beans.AbstractSerializableBean;
28  
29  /**
30   * @author Kevin Morin (Code Lutin)
31   * @since 3.8
32   */
33  public class ManageTemporaryReferentialUIModel extends AbstractSerializableBean {
34  
35      public static final String PROPERTY_NB_TEMPORARY_SPECIES = "nbTemporarySpecies";
36  
37      public static final String PROPERTY_NB_TEMPORARY_VESSELS = "nbTemporaryVessels";
38  
39      public static final String PROPERTY_NB_TEMPORARY_GEARS = "nbTemporaryGears";
40  
41      public static final String PROPERTY_NB_TEMPORARY_PERSONS = "nbTemporaryPersons";
42  
43      private static final long serialVersionUID = 1L;
44  
45      protected int nbTemporarySpecies;
46  
47      protected int nbTemporaryVessels;
48  
49      protected int nbTemporaryGears;
50  
51      protected int nbTemporaryPersons;
52  
53      public int getNbTemporarySpecies() {
54          return nbTemporarySpecies;
55      }
56  
57      public void setNbTemporarySpecies(int nbTemporarySpecies) {
58          Integer oldValue = getNbTemporarySpecies();
59          this.nbTemporarySpecies = nbTemporarySpecies;
60          firePropertyChange(PROPERTY_NB_TEMPORARY_SPECIES, oldValue, nbTemporarySpecies);
61      }
62  
63      public int getNbTemporaryVessels() {
64          return nbTemporaryVessels;
65      }
66  
67      public void setNbTemporaryVessels(int nbTemporaryVessels) {
68          Integer oldValue = getNbTemporaryVessels();
69          this.nbTemporaryVessels = nbTemporaryVessels;
70          firePropertyChange(PROPERTY_NB_TEMPORARY_VESSELS, oldValue, nbTemporaryVessels);
71      }
72  
73      public int getNbTemporaryGears() {
74          return nbTemporaryGears;
75      }
76  
77      public void setNbTemporaryGears(int nbTemporaryGears) {
78          Integer oldValue = getNbTemporaryGears();
79          this.nbTemporaryGears = nbTemporaryGears;
80          firePropertyChange(PROPERTY_NB_TEMPORARY_GEARS, oldValue, nbTemporaryGears);
81      }
82  
83      public int getNbTemporaryPersons() {
84          return nbTemporaryPersons;
85      }
86  
87      public void setNbTemporaryPersons(int nbTemporaryPersons) {
88          Integer oldValue = getNbTemporaryPersons();
89          this.nbTemporaryPersons = nbTemporaryPersons;
90          firePropertyChange(PROPERTY_NB_TEMPORARY_PERSONS, oldValue, nbTemporaryPersons);
91      }
92  }