View Javadoc
1   package fr.ifremer.dali.ui.swing.content.synchro.changes.duplicate;
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.system.synchronization.SynchroChangesDTO;
27  import fr.ifremer.dali.dto.system.synchronization.SynchroRowDTO;
28  import fr.ifremer.dali.dto.system.synchronization.SynchroTableDTO;
29  import fr.ifremer.dali.ui.swing.content.synchro.changes.SynchroChangesRowModel;
30  import fr.ifremer.dali.ui.swing.util.table.AbstractDaliTableUIModel;
31  
32  /**
33   * Model for synchro changes
34   */
35  public class SynchroDuplicatesUIModel extends AbstractDaliTableUIModel<SynchroRowDTO, SynchroChangesRowModel, SynchroDuplicatesUIModel> {
36  
37      /** Constant <code>PROPERTY_CHANGES="changes"</code> */
38      public final static String PROPERTY_CHANGES = "changes";
39  
40      private SynchroChangesDTO changes;
41  
42      private SynchroTableDTO tableChange;
43  
44      private String tableNameFilter;
45  
46      private boolean changesValidated;
47  
48      /**
49       * <p>Getter for the field <code>changes</code>.</p>
50       *
51       * @return a {@link fr.ifremer.dali.dto.system.synchronization.SynchroChangesDTO} object.
52       */
53      public SynchroChangesDTO getChanges() {
54          return changes;
55      }
56  
57      /**
58       * <p>Setter for the field <code>changes</code>.</p>
59       *
60       * @param changes a {@link fr.ifremer.dali.dto.system.synchronization.SynchroChangesDTO} object.
61       */
62      public void setChanges(SynchroChangesDTO changes) {
63          firePropertyChange(PROPERTY_CHANGES, this.changes, this.changes = changes);
64      }
65  
66      /**
67       * <p>isChangesValidated.</p>
68       *
69       * @return a boolean.
70       */
71      public boolean isChangesValidated() {
72          return changesValidated;
73      }
74  
75      /**
76       * <p>Setter for the field <code>changesValidated</code>.</p>
77       *
78       * @param changesValidated a boolean.
79       */
80      public void setChangesValidated(boolean changesValidated) {
81          this.changesValidated = changesValidated;
82      }
83  
84      /**
85       * <p>Getter for the field <code>tableChange</code>.</p>
86       *
87       * @return a {@link fr.ifremer.dali.dto.system.synchronization.SynchroTableDTO} object.
88       */
89      public SynchroTableDTO getTableChange() {
90          return tableChange;
91      }
92  
93      /**
94       * <p>Setter for the field <code>tableChange</code>.</p>
95       *
96       * @param tableChange a {@link fr.ifremer.dali.dto.system.synchronization.SynchroTableDTO} object.
97       */
98      public void setTableChange(SynchroTableDTO tableChange) {
99          this.tableChange = tableChange;
100     }
101 
102     /**
103      * <p>Getter for the field <code>tableNameFilter</code>.</p>
104      *
105      * @return a {@link java.lang.String} object.
106      */
107     public String getTableNameFilter() {
108         return tableNameFilter;
109     }
110 
111     /**
112      * <p>Setter for the field <code>tableNameFilter</code>.</p>
113      *
114      * @param tableNameFilter a {@link java.lang.String} object.
115      */
116     public void setTableNameFilter(String tableNameFilter) {
117         this.tableNameFilter = tableNameFilter;
118     }
119 }