View Javadoc
1   package fr.ifremer.dali.ui.swing.content.manage.program.strategiesByLocation.locations;
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.CoordinateDTO;
27  import fr.ifremer.dali.dto.DaliBeanFactory;
28  import fr.ifremer.dali.dto.referential.GroupingDTO;
29  import fr.ifremer.dali.dto.referential.HarbourDTO;
30  import fr.ifremer.dali.dto.referential.LocationDTO;
31  import fr.ifremer.dali.dto.referential.PositioningSystemDTO;
32  import fr.ifremer.dali.ui.swing.util.table.AbstractDaliRowUIModel;
33  import fr.ifremer.quadrige3.ui.core.dto.referential.StatusDTO;
34  import org.nuiton.util.beans.Binder;
35  import org.nuiton.util.beans.BinderFactory;
36  
37  import java.util.Date;
38  
39  /**
40   * Modele pour le tableau de programmes.
41   */
42  public class LieuxProgrammeTableRowModel extends AbstractDaliRowUIModel<LocationDTO, LieuxProgrammeTableRowModel> implements LocationDTO {
43  
44      /**
45       * Binder from.
46       */
47      private static final Binder<LocationDTO, LieuxProgrammeTableRowModel> FROM_BEAN_BINDER =
48              BinderFactory.newBinder(LocationDTO.class, LieuxProgrammeTableRowModel.class);
49  
50      /**
51       * Binder to.
52       */
53      private static final Binder<LieuxProgrammeTableRowModel, LocationDTO> TO_BEAN_BINDER =
54              BinderFactory.newBinder(LieuxProgrammeTableRowModel.class, LocationDTO.class);
55  
56      /**
57       * Constructor.
58       */
59      public LieuxProgrammeTableRowModel() {
60          super(FROM_BEAN_BINDER, TO_BEAN_BINDER);
61      }
62  
63      /** {@inheritDoc} */
64      @Override
65      protected LocationDTO newBean() {
66          return DaliBeanFactory.newLocationDTO();
67      }
68  
69      /** {@inheritDoc} */
70      @Override
71      public String getLabel() {
72          return delegateObject.getLabel();
73      }
74  
75      /** {@inheritDoc} */
76      @Override
77      public void setLabel(String label) {
78          delegateObject.setLabel(label);
79      }
80  
81      /** {@inheritDoc} */
82      @Override
83      public Double getBathymetry() {
84          return delegateObject.getBathymetry();
85      }
86  
87      /** {@inheritDoc} */
88      @Override
89      public void setBathymetry(Double bathymetry) {
90          delegateObject.setBathymetry(bathymetry);
91      }
92  
93      /** {@inheritDoc} */
94      @Override
95      public Double getUtFormat() {
96          return delegateObject.getUtFormat();
97      }
98  
99      /** {@inheritDoc} */
100     @Override
101     public void setUtFormat(Double utFormat) {
102         delegateObject.setUtFormat(utFormat);
103     }
104 
105     /** {@inheritDoc} */
106     @Override
107     public Boolean getDayLightSavingTime() {
108         return delegateObject.getDayLightSavingTime();
109     }
110 
111     /** {@inheritDoc} */
112     @Override
113     public void setDayLightSavingTime(Boolean dayLightSavingTime) {
114         delegateObject.setDayLightSavingTime(dayLightSavingTime);
115     }
116 
117     /** {@inheritDoc} */
118     @Override
119     public String getName() {
120         return delegateObject.getName();
121     }
122 
123     /** {@inheritDoc} */
124     @Override
125     public void setName(String name) {
126         delegateObject.setName(name);
127     }
128 
129     /** {@inheritDoc} */
130     @Override
131     public String getComment() {
132         return delegateObject.getComment();
133     }
134 
135     /** {@inheritDoc} */
136     @Override
137     public void setComment(String comment) {
138         delegateObject.setComment(comment);
139     }
140 
141     /** {@inheritDoc} */
142     @Override
143     public boolean isDirty() {
144         return delegateObject.isDirty();
145     }
146 
147     /** {@inheritDoc} */
148     @Override
149     public void setDirty(boolean dirty) {
150         delegateObject.setDirty(dirty);
151     }
152 
153     @Override
154     public boolean isReadOnly() {
155         return delegateObject.isReadOnly();
156     }
157 
158     @Override
159     public void setReadOnly(boolean readOnly) {
160         delegateObject.setReadOnly(readOnly);
161     }
162 
163     @Override
164     public Date getCreationDate() {
165         return delegateObject.getCreationDate();
166     }
167 
168     @Override
169     public void setCreationDate(Date date) {
170         delegateObject.setCreationDate(date);
171     }
172 
173     @Override
174     public Date getUpdateDate() {
175         return delegateObject.getUpdateDate();
176     }
177 
178     @Override
179     public void setUpdateDate(Date date) {
180         delegateObject.setUpdateDate(date);
181     }
182 
183     /** {@inheritDoc} */
184     @Override
185     public PositioningSystemDTO getPositioning() {
186         return delegateObject.getPositioning();
187     }
188 
189     /** {@inheritDoc} */
190     @Override
191     public void setPositioning(PositioningSystemDTO positioning) {
192         delegateObject.setPositioning(positioning);
193     }
194 
195     /** {@inheritDoc} */
196     @Override
197     public CoordinateDTO getCoordinate() {
198         return delegateObject.getCoordinate();
199     }
200 
201     /** {@inheritDoc} */
202     @Override
203     public void setCoordinate(CoordinateDTO coordinate) {
204         delegateObject.setCoordinate(coordinate);
205     }
206 
207     /** {@inheritDoc} */
208     @Override
209     public GroupingDTO getGrouping() {
210         return delegateObject.getGrouping();
211     }
212 
213     /** {@inheritDoc} */
214     @Override
215     public void setGrouping(GroupingDTO grouping) {
216         delegateObject.setGrouping(grouping);
217     }
218 
219     /** {@inheritDoc} */
220     @Override
221     public HarbourDTO getHarbour() {
222         return delegateObject.getHarbour();
223     }
224 
225     /** {@inheritDoc} */
226     @Override
227     public void setHarbour(HarbourDTO harbour) {
228         delegateObject.setHarbour(harbour);
229     }
230 
231     /** {@inheritDoc} */
232     @Override
233     public StatusDTO getStatus() {
234         return delegateObject.getStatus();
235     }
236 
237     /** {@inheritDoc} */
238     @Override
239     public void setStatus(StatusDTO status) {
240         delegateObject.setStatus(status);
241     }
242 }