View Javadoc
1   package fr.ifremer.dali.ui.swing.content.manage.referential.taxon.taxonsDialog;
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.dto.referential.TaxonDTO;
27  import fr.ifremer.dali.dto.referential.TaxonGroupDTO;
28  import fr.ifremer.quadrige3.ui.swing.model.AbstractEmptyUIModel;
29  
30  import java.util.List;
31  
32  /**
33   * Created by Ludovic on 24/11/2015.
34   */
35  public class TaxonsDialogUIModel extends AbstractEmptyUIModel<TaxonsDialogUIModel> {
36  
37      /** Constant <code>PROPERTY_TAXON_GROUP="taxonGroup"</code> */
38      public static final String PROPERTY_TAXON_GROUP = "taxonGroup";
39      /** Constant <code>PROPERTY_TAXONS="taxons"</code> */
40      public static final String PROPERTY_TAXONS = "taxons";
41      private TaxonGroupDTO taxonGroup;
42      private List<TaxonDTO> taxons;
43  
44      /**
45       * <p>Getter for the field <code>taxonGroup</code>.</p>
46       *
47       * @return a {@link fr.ifremer.dali.dto.referential.TaxonGroupDTO} object.
48       */
49      public TaxonGroupDTO getTaxonGroup() {
50          return taxonGroup;
51      }
52  
53      /**
54       * <p>Setter for the field <code>taxonGroup</code>.</p>
55       *
56       * @param taxonGroup a {@link fr.ifremer.dali.dto.referential.TaxonGroupDTO} object.
57       */
58      public void setTaxonGroup(TaxonGroupDTO taxonGroup) {
59          this.taxonGroup = taxonGroup;
60          firePropertyChange(PROPERTY_TAXON_GROUP, null, taxonGroup);
61      }
62  
63      /**
64       * <p>Getter for the field <code>taxons</code>.</p>
65       *
66       * @return a {@link java.util.List} object.
67       */
68      public List<TaxonDTO> getTaxons() {
69          return taxons;
70      }
71  
72      /**
73       * <p>Setter for the field <code>taxons</code>.</p>
74       *
75       * @param taxons a {@link java.util.List} object.
76       */
77      public void setTaxons(List<TaxonDTO> taxons) {
78          this.taxons = taxons;
79          firePropertyChange(PROPERTY_TAXONS, null, taxons);
80      }
81  
82  }