1 package fr.ifremer.dali.ui.swing.content.manage.program.strategies.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.configuration.programStrategy.ProgramDTO;
27 import fr.ifremer.dali.dto.configuration.programStrategy.StrategyDTO;
28 import fr.ifremer.quadrige3.ui.swing.model.AbstractEmptyUIModel;
29
30 /**
31 * <p>SelectProgramUIModel class.</p>
32 *
33 */
34 public class SelectProgramUIModel extends AbstractEmptyUIModel<SelectProgramUIModel> {
35
36 private ProgramDTO sourceProgram;
37 /** Constant <code>PROPERTY_SOURCE_PROGRAM="sourceProgram"</code> */
38 public static final String PROPERTY_SOURCE_PROGRAM = "sourceProgram";
39
40 private StrategyDTO sourceStrategy;
41 /** Constant <code>PROPERTY_SOURCE_STRATEGY="sourceStrategy"</code> */
42 public static final String PROPERTY_SOURCE_STRATEGY = "sourceStrategy";
43
44 private ProgramDTO targetProgram;
45 /** Constant <code>PROPERTY_TARGET_PROGRAM="targetProgram"</code> */
46 public static final String PROPERTY_TARGET_PROGRAM = "targetProgram";
47
48 /**
49 * <p>Getter for the field <code>sourceProgram</code>.</p>
50 *
51 * @return a {@link fr.ifremer.dali.dto.configuration.programStrategy.ProgramDTO} object.
52 */
53 public ProgramDTO getSourceProgram() {
54 return sourceProgram;
55 }
56
57 /**
58 * <p>Setter for the field <code>sourceProgram</code>.</p>
59 *
60 * @param sourceProgram a {@link fr.ifremer.dali.dto.configuration.programStrategy.ProgramDTO} object.
61 */
62 public void setSourceProgram(ProgramDTO sourceProgram) {
63 this.sourceProgram = sourceProgram;
64 firePropertyChange(PROPERTY_SOURCE_PROGRAM, null, sourceProgram);
65 }
66
67 /**
68 * <p>Getter for the field <code>sourceStrategy</code>.</p>
69 *
70 * @return a {@link fr.ifremer.dali.dto.configuration.programStrategy.StrategyDTO} object.
71 */
72 public StrategyDTO getSourceStrategy() {
73 return sourceStrategy;
74 }
75
76 /**
77 * <p>Setter for the field <code>sourceStrategy</code>.</p>
78 *
79 * @param sourceStrategy a {@link fr.ifremer.dali.dto.configuration.programStrategy.StrategyDTO} object.
80 */
81 public void setSourceStrategy(StrategyDTO sourceStrategy) {
82 this.sourceStrategy = sourceStrategy;
83 firePropertyChange(PROPERTY_SOURCE_STRATEGY, null, sourceStrategy);
84 }
85
86 /**
87 * <p>Getter for the field <code>targetProgram</code>.</p>
88 *
89 * @return a {@link fr.ifremer.dali.dto.configuration.programStrategy.ProgramDTO} object.
90 */
91 public ProgramDTO getTargetProgram() {
92 return targetProgram;
93 }
94
95 /**
96 * <p>Setter for the field <code>targetProgram</code>.</p>
97 *
98 * @param targetProgram a {@link fr.ifremer.dali.dto.configuration.programStrategy.ProgramDTO} object.
99 */
100 public void setTargetProgram(ProgramDTO targetProgram) {
101 this.targetProgram = targetProgram;
102 firePropertyChange(PROPERTY_TARGET_PROGRAM, null, targetProgram);
103 }
104 }