View Javadoc
1   package fr.ifremer.dali.ui.swing.content.manage.context.filterslist;
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.quadrige3.ui.core.dto.QuadrigeBean;
27  import fr.ifremer.dali.dto.configuration.filter.FilterDTO;
28  import fr.ifremer.dali.ui.swing.util.table.AbstractDaliRowUIModel;
29  
30  /**
31   * <p>ManageFiltersListTableUIRowModel class.</p>
32   *
33   * @author Antoine
34   */
35  public class ManageFiltersListTableUIRowModel extends AbstractDaliRowUIModel<QuadrigeBean, ManageFiltersListTableUIRowModel> {
36  
37      /** Constant <code>PROPERTY_TYPE="type"</code> */
38      public static final String PROPERTY_TYPE = "type";
39      /** Constant <code>PROPERTY_FILTER="filter"</code> */
40      public static final String PROPERTY_FILTER = "filter";
41      public String type;
42      private FilterDTO filter;
43      private Integer filterTypeId;
44  
45      /**
46       * <p>Constructor for ManageFiltersListTableUIRowModel.</p>
47       */
48      public ManageFiltersListTableUIRowModel() {
49          super(null, null);
50      }
51  
52      /** {@inheritDoc} */
53      @Override
54      protected QuadrigeBean newBean() {
55          return null;
56      }
57  
58      /**
59       * <p>Getter for the field <code>type</code>.</p>
60       *
61       * @return a {@link java.lang.String} object.
62       */
63      public String getType() {
64          return type;
65      }
66  
67      /**
68       * <p>Setter for the field <code>type</code>.</p>
69       *
70       * @param type a {@link java.lang.String} object.
71       */
72      public void setType(String type) {
73          this.type = type;
74  
75      }
76  
77      /**
78       * <p>Getter for the field <code>filter</code>.</p>
79       *
80       * @return a {@link fr.ifremer.dali.dto.configuration.filter.FilterDTO} object.
81       */
82      public FilterDTO getFilter() {
83          return filter;
84      }
85  
86      /**
87       * <p>Setter for the field <code>filter</code>.</p>
88       *
89       * @param filter a {@link fr.ifremer.dali.dto.configuration.filter.FilterDTO} object.
90       */
91      public void setFilter(FilterDTO filter) {
92          this.filter = filter;
93      }
94  
95      /**
96       * <p>Getter for the field <code>filterTypeId</code>.</p>
97       *
98       * @return a {@link java.lang.Integer} object.
99       */
100     public Integer getFilterTypeId() {
101         return filterTypeId;
102     }
103 
104     /**
105      * <p>Setter for the field <code>filterTypeId</code>.</p>
106      *
107      * @param id a {@link java.lang.Integer} object.
108      */
109     public void setFilterTypeId(final Integer id) {
110         this.filterTypeId = id;
111     }
112 }