View Javadoc
1   package fr.ifremer.dali.ui.swing.content.synchro.changes;
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.DaliBeanFactory;
27  import fr.ifremer.dali.dto.system.synchronization.SynchroRowDTO;
28  import fr.ifremer.dali.ui.swing.util.table.AbstractDaliRowUIModel;
29  import org.nuiton.util.beans.Binder;
30  import org.nuiton.util.beans.BinderFactory;
31  
32  /**
33   * Modele pour le tableau de programmes.
34   */
35  public class SynchroChangesRowModel extends AbstractDaliRowUIModel<SynchroRowDTO, SynchroChangesRowModel> implements SynchroRowDTO {
36  
37      /**
38       * Binder from.
39       */
40      private static final Binder<SynchroRowDTO, SynchroChangesRowModel> FROM_BEAN_BINDER =
41              BinderFactory.newBinder(SynchroRowDTO.class, SynchroChangesRowModel.class);
42  
43      /**
44       * Binder to.
45       */
46      private static final Binder<SynchroChangesRowModel, SynchroRowDTO> TO_BEAN_BINDER =
47              BinderFactory.newBinder(SynchroChangesRowModel.class, SynchroRowDTO.class);
48  
49      /**
50       * Constructor.
51       */
52      public SynchroChangesRowModel() {
53          super(FROM_BEAN_BINDER, TO_BEAN_BINDER);
54          setValid(true);
55      }
56  
57      /**
58       * <p>getName.</p>
59       *
60       * @return a {@link java.lang.String} object.
61       */
62      public String getName() {
63          return delegateObject.getName();
64      }
65  
66      /** {@inheritDoc} */
67      @Override
68      public void setName(String name) {
69          delegateObject.setName(name);
70      }
71  
72      /**
73       * <p>getOperationType.</p>
74       *
75       * @return a {@link java.lang.String} object.
76       */
77      public String getOperationType() {
78          return delegateObject.getOperationType();
79      }
80  
81      /** {@inheritDoc} */
82      public void setOperationType(String operationType) {
83          delegateObject.setOperationType(operationType);
84      }
85  
86      /** {@inheritDoc} */
87      @Override
88      protected SynchroRowDTO newBean() {
89          return DaliBeanFactory.newSynchroRowDTO();
90      }
91  
92      /**
93       * <p>getPkStr.</p>
94       *
95       * @return a {@link java.lang.String} object.
96       */
97      public String getPkStr() {
98          return delegateObject.getPkStr();
99      }
100 
101     /** {@inheritDoc} */
102     public void setPkStr(String pkStr) {
103         delegateObject.setPkStr(pkStr);
104     }
105 
106     /**
107      * <p>getStrategy.</p>
108      *
109      * @return a {@link java.lang.String} object.
110      */
111     public String getStrategy() {
112         return delegateObject.getStrategy();
113     }
114 
115     /** {@inheritDoc} */
116     public void setStrategy(String strategy) {
117         delegateObject.setStrategy(strategy);
118     }
119 }