Lines 11-16
Link Here
|
11 |
|
11 |
|
12 |
package org.eclipse.gmf.runtime.diagram.ui.printing.render.model; |
12 |
package org.eclipse.gmf.runtime.diagram.ui.printing.render.model; |
13 |
|
13 |
|
|
|
14 |
import java.util.List; |
14 |
|
15 |
|
15 |
/** |
16 |
/** |
16 |
* This class is used as part of the infrastructure required for data-bindings |
17 |
* This class is used as part of the infrastructure required for data-bindings |
Lines 20-281
Link Here
|
20 |
* @author James Bruck (jbruck) |
21 |
* @author James Bruck (jbruck) |
21 |
*/ |
22 |
*/ |
22 |
public class PrintOptions extends PrintModelElement { |
23 |
public class PrintOptions extends PrintModelElement { |
23 |
public static String PROPERTY_DESTINATION = "destination"; //$NON-NLS-1$ |
24 |
public static String PROPERTY_DESTINATION = "destination"; //$NON-NLS-1$ |
24 |
|
25 |
|
25 |
public static String PROPERTY_PERCENT_SCALING = "percentScaling"; //$NON-NLS-1$ |
26 |
public static String PROPERTY_PERCENT_SCALING = "percentScaling"; //$NON-NLS-1$ |
26 |
public static String PROPERTY_SCALE_FACTOR = "scaleFactor"; //$NON-NLS-1$ |
27 |
public static String PROPERTY_SCALE_FACTOR = "scaleFactor"; //$NON-NLS-1$ |
27 |
public static String PROPERTY_FIT_TO_WIDTH = "fitToPagesWidth"; //$NON-NLS-1$ |
28 |
public static String PROPERTY_FIT_TO_WIDTH = "fitToPagesWidth"; //$NON-NLS-1$ |
28 |
public static String PROPERTY_FIT_TO_HEIGHT = "fitToPagesHeight"; //$NON-NLS-1$ |
29 |
public static String PROPERTY_FIT_TO_HEIGHT = "fitToPagesHeight"; //$NON-NLS-1$ |
29 |
|
30 |
|
30 |
public static String PROPERTY_ALL_PAGES = "allPages"; //$NON-NLS-1$ |
31 |
public static String PROPERTY_ALL_PAGES = "allPages"; //$NON-NLS-1$ |
31 |
public static String PROPERTY_RANGE_FROM = "rangeFrom"; //$NON-NLS-1$ |
32 |
public static String PROPERTY_RANGE_FROM = "rangeFrom"; //$NON-NLS-1$ |
32 |
public static String PROPERTY_RANGE_TO = "rangeTo"; //$NON-NLS-1$ |
33 |
public static String PROPERTY_RANGE_TO = "rangeTo"; //$NON-NLS-1$ |
33 |
|
34 |
|
34 |
public static String PROPERTY_COPIES = "copies"; //$NON-NLS-1$ |
35 |
public static String PROPERTY_COPIES = "copies"; //$NON-NLS-1$ |
35 |
public static String PROPERTY_COLLATE = "collate"; //$NON-NLS-1$ |
36 |
public static String PROPERTY_COLLATE = "collate"; //$NON-NLS-1$ |
36 |
|
37 |
|
37 |
public static String PROPERTY_QUALITY_HIGH = "qualityHigh"; //$NON-NLS-1$ |
38 |
public static String PROPERTY_QUALITY_HIGH = "qualityHigh"; //$NON-NLS-1$ |
38 |
public static String PROPERTY_QUALITY_LOW = "qualityLow"; //$NON-NLS-1$ |
39 |
public static String PROPERTY_QUALITY_LOW = "qualityLow"; //$NON-NLS-1$ |
39 |
public static String PROPERTY_QUALITY_MED = "qualityMed"; //$NON-NLS-1$ |
40 |
public static String PROPERTY_QUALITY_MED = "qualityMed"; //$NON-NLS-1$ |
40 |
public static String PROPERTY_CHROMATICITY_MONO = "chromaticityMono"; //$NON-NLS-1$ |
41 |
public static String PROPERTY_CHROMATICITY_MONO = "chromaticityMono"; //$NON-NLS-1$ |
41 |
public static String PROPERTY_CHROMATICITY_COLOR = "chromaticityColor"; //$NON-NLS-1$ |
42 |
public static String PROPERTY_CHROMATICITY_COLOR = "chromaticityColor"; //$NON-NLS-1$ |
42 |
public static String PROPERTY_SIDES_ONESIDED = "sideOneSided"; //$NON-NLS-1$ |
43 |
public static String PROPERTY_SIDES_ONESIDED = "sideOneSided"; //$NON-NLS-1$ |
43 |
public static String PROPERTY_SIDES_TUMBLE = "sideTumble"; //$NON-NLS-1$ |
44 |
public static String PROPERTY_SIDES_TUMBLE = "sideTumble"; //$NON-NLS-1$ |
44 |
public static String PROPERTY_SIDES_DUPLEX = "sideDuplex"; //$NON-NLS-1$ |
45 |
public static String PROPERTY_SIDES_DUPLEX = "sideDuplex"; //$NON-NLS-1$ |
45 |
|
46 |
|
46 |
public static String PROPERTY_JOB_NAME = "jobName"; //$NON-NLS-1$ |
47 |
public static String PROPERTY_JOB_NAME = "jobName"; //$NON-NLS-1$ |
47 |
public static String PROPERTY_USER_NAME = "userName"; //$NON-NLS-1$ |
48 |
public static String PROPERTY_USER_NAME = "userName"; //$NON-NLS-1$ |
48 |
|
49 |
|
49 |
private PrintDestination destination; |
50 |
public static String PROPERTY_DIAGRAM_CURRENT = "diagramCurrent"; //$NON-NLS-1$ |
50 |
|
51 |
public static String PROPERTY_DIAGRAM_SELECTION = "diagramSelection"; //$NON-NLS-1$ |
51 |
private boolean percentScaling; |
52 |
|
52 |
private int scaleFactor; |
53 |
private PrintDestination destination; |
53 |
private int fitToPagesWidth; |
54 |
|
54 |
private int fitToPagesHeight; |
55 |
private boolean percentScaling; |
55 |
|
56 |
private int scaleFactor; |
56 |
private boolean allPages; |
57 |
private int fitToPagesWidth; |
57 |
private int rangeFrom; |
58 |
private int fitToPagesHeight; |
58 |
private int rangeTo; |
59 |
|
59 |
|
60 |
private boolean allPages; |
60 |
private int copies; |
61 |
private int rangeFrom; |
61 |
private boolean collate; |
62 |
private int rangeTo; |
62 |
|
63 |
|
63 |
private boolean qualityHigh; |
64 |
private int copies; |
64 |
private boolean qualityLow; |
65 |
private boolean collate; |
65 |
private boolean qualityMed; |
66 |
|
66 |
|
67 |
private boolean qualityHigh; |
67 |
private boolean chromaticityColor; |
68 |
private boolean qualityLow; |
68 |
private boolean chromaticityMono; |
69 |
private boolean qualityMed; |
69 |
|
70 |
|
70 |
private boolean sideOneSided; |
71 |
private boolean chromaticityColor; |
71 |
private boolean sideTumble; |
72 |
private boolean chromaticityMono; |
72 |
private boolean sideDuplex; |
73 |
|
73 |
|
74 |
private boolean sideOneSided; |
74 |
private String jobName; |
75 |
private boolean sideTumble; |
75 |
private String userName; |
76 |
private boolean sideDuplex; |
76 |
|
77 |
|
77 |
public PrintOptions() { |
78 |
private String jobName; |
78 |
super(); |
79 |
private String userName; |
79 |
} |
80 |
|
80 |
|
81 |
private boolean diagramCurrent; |
81 |
public PrintDestination getDestination() { |
82 |
private boolean diagramSelection; |
82 |
return destination; |
83 |
|
83 |
} |
84 |
private List<String> diagramsToPrint; |
84 |
|
85 |
|
85 |
public void setDestination(PrintDestination destination) { |
86 |
public PrintOptions() { |
86 |
PrintDestination oldDestination = this.destination; |
87 |
super(); |
87 |
this.destination = destination; |
88 |
} |
88 |
firePropertyChange(PROPERTY_DESTINATION, oldDestination, destination); |
89 |
|
89 |
} |
90 |
public PrintDestination getDestination() { |
90 |
|
91 |
return destination; |
91 |
public boolean isPercentScaling() { |
92 |
} |
92 |
return percentScaling; |
93 |
|
93 |
} |
94 |
public void setDestination(PrintDestination destination) { |
94 |
|
95 |
PrintDestination oldDestination = this.destination; |
95 |
public void setPercentScaling(boolean percentScaling) { |
96 |
this.destination = destination; |
96 |
boolean oldScaling = this.percentScaling; |
97 |
firePropertyChange(PROPERTY_DESTINATION, oldDestination, destination); |
97 |
this.percentScaling = percentScaling; |
98 |
} |
98 |
firePropertyChange(PROPERTY_PERCENT_SCALING, oldScaling, percentScaling); |
99 |
|
99 |
} |
100 |
public boolean isPercentScaling() { |
100 |
public String getJobName() { |
101 |
return percentScaling; |
101 |
return jobName; |
102 |
} |
102 |
} |
103 |
|
103 |
|
104 |
public void setPercentScaling(boolean percentScaling) { |
104 |
public void setJobName(String name) { |
105 |
boolean oldScaling = this.percentScaling; |
105 |
String oldName = this.jobName; |
106 |
this.percentScaling = percentScaling; |
106 |
this.jobName = name; |
107 |
firePropertyChange(PROPERTY_PERCENT_SCALING, oldScaling, percentScaling); |
107 |
firePropertyChange(PROPERTY_JOB_NAME, oldName, name); |
108 |
} |
108 |
} |
109 |
|
109 |
|
110 |
public String getJobName() { |
110 |
public String getUserName() { |
111 |
return jobName; |
111 |
return userName; |
112 |
} |
112 |
} |
113 |
|
113 |
|
114 |
public void setJobName(String name) { |
114 |
public void setUserName(String name) { |
115 |
String oldName = this.jobName; |
115 |
String oldName = this.userName; |
116 |
this.jobName = name; |
116 |
this.userName = name; |
117 |
firePropertyChange(PROPERTY_JOB_NAME, oldName, name); |
117 |
firePropertyChange(PROPERTY_USER_NAME, oldName, name); |
118 |
} |
118 |
} |
119 |
|
119 |
|
120 |
public String getUserName() { |
120 |
public boolean isQualityHigh() { |
121 |
return userName; |
121 |
return this.qualityHigh; |
122 |
} |
122 |
} |
123 |
|
123 |
|
124 |
public void setUserName(String name) { |
124 |
public void setQualityHigh(boolean qualityHigh) { |
125 |
String oldName = this.userName; |
125 |
boolean oldQualityHigh = this.qualityHigh; |
126 |
this.userName = name; |
126 |
this.qualityHigh = qualityHigh; |
127 |
firePropertyChange(PROPERTY_USER_NAME, oldName, name); |
127 |
firePropertyChange(PROPERTY_QUALITY_HIGH, oldQualityHigh, qualityHigh); |
128 |
} |
128 |
} |
129 |
|
129 |
|
130 |
public void setDiagramsToPrint(List<String> diagramsToPrint) { |
130 |
public boolean isQualityLow() { |
131 |
this.diagramsToPrint = diagramsToPrint; |
131 |
return this.qualityLow; |
132 |
} |
132 |
} |
133 |
|
133 |
|
134 |
public List<String> getDiagramsToPrint() { |
134 |
public void setQualityLow(boolean qualityLow) { |
135 |
return diagramsToPrint; |
135 |
boolean oldQualityLow = this.qualityLow; |
136 |
} |
136 |
this.qualityLow = qualityLow; |
137 |
|
137 |
firePropertyChange(PROPERTY_QUALITY_LOW, oldQualityLow, this.qualityLow); |
138 |
public boolean isDiagramCurrent() { |
138 |
} |
139 |
return this.diagramCurrent; |
139 |
|
140 |
} |
140 |
public boolean isQualityMed() { |
141 |
|
141 |
return this.qualityMed; |
142 |
public void setDiagramCurrent(boolean diagramCurrent) { |
142 |
} |
143 |
boolean oldDiagramCurrent = this.diagramCurrent; |
143 |
|
144 |
this.diagramCurrent = diagramCurrent; |
144 |
public void setQualityMed(boolean qualityMed) { |
145 |
firePropertyChange(PROPERTY_DIAGRAM_CURRENT, oldDiagramCurrent, |
145 |
boolean oldQualityMed = this.qualityMed; |
146 |
diagramCurrent); |
146 |
this.qualityMed = qualityMed; |
147 |
} |
147 |
firePropertyChange(PROPERTY_QUALITY_MED, oldQualityMed, this.qualityMed); |
148 |
|
148 |
} |
149 |
public boolean isDiagramSelection() { |
149 |
|
150 |
return this.diagramSelection; |
150 |
|
151 |
} |
151 |
public int getScaleFactor() { |
152 |
|
152 |
return scaleFactor; |
153 |
public void setDiagramSelection(boolean diagramSelection) { |
153 |
} |
154 |
boolean oldDiagramSelection = this.diagramSelection; |
154 |
|
155 |
this.diagramSelection = diagramSelection; |
155 |
public void setScaleFactor(int scaleFactor) { |
156 |
firePropertyChange(PROPERTY_DIAGRAM_SELECTION, oldDiagramSelection, |
156 |
int oldFactor = this.scaleFactor; |
157 |
diagramSelection); |
157 |
this.scaleFactor = scaleFactor; |
158 |
} |
158 |
firePropertyChange(PROPERTY_SCALE_FACTOR, oldFactor, scaleFactor); |
159 |
|
159 |
} |
160 |
public boolean isQualityHigh() { |
160 |
|
161 |
return this.qualityHigh; |
161 |
public int getFitToPagesWidth() { |
162 |
} |
162 |
return fitToPagesWidth; |
163 |
|
163 |
} |
164 |
public void setQualityHigh(boolean qualityHigh) { |
164 |
|
165 |
boolean oldQualityHigh = this.qualityHigh; |
165 |
public void setFitToPagesWidth(int fitToPagesWidth) { |
166 |
this.qualityHigh = qualityHigh; |
166 |
int oldWidth = this.fitToPagesWidth; |
167 |
firePropertyChange(PROPERTY_QUALITY_HIGH, oldQualityHigh, qualityHigh); |
167 |
this.fitToPagesWidth = fitToPagesWidth; |
168 |
} |
168 |
firePropertyChange(PROPERTY_FIT_TO_WIDTH, oldWidth, fitToPagesWidth); |
169 |
|
169 |
} |
170 |
public boolean isQualityLow() { |
170 |
|
171 |
return this.qualityLow; |
171 |
public int getFitToPagesHeight() { |
172 |
} |
172 |
return fitToPagesHeight; |
173 |
|
173 |
} |
174 |
public void setQualityLow(boolean qualityLow) { |
174 |
|
175 |
boolean oldQualityLow = this.qualityLow; |
175 |
public void setFitToPagesHeight(int fitToPagesHeight) { |
176 |
this.qualityLow = qualityLow; |
176 |
int oldHeight = this.fitToPagesHeight; |
177 |
firePropertyChange(PROPERTY_QUALITY_LOW, oldQualityLow, this.qualityLow); |
177 |
this.fitToPagesHeight = fitToPagesHeight; |
178 |
} |
178 |
firePropertyChange(PROPERTY_FIT_TO_HEIGHT, oldHeight, fitToPagesHeight); |
179 |
|
179 |
} |
180 |
public boolean isQualityMed() { |
180 |
|
181 |
return this.qualityMed; |
181 |
public boolean isAllPages() { |
182 |
} |
182 |
return allPages; |
183 |
|
183 |
} |
184 |
public void setQualityMed(boolean qualityMed) { |
184 |
|
185 |
boolean oldQualityMed = this.qualityMed; |
185 |
public void setAllPages(boolean allPages) { |
186 |
this.qualityMed = qualityMed; |
186 |
boolean oldAll = this.allPages; |
187 |
firePropertyChange(PROPERTY_QUALITY_MED, oldQualityMed, this.qualityMed); |
187 |
this.allPages = allPages; |
188 |
} |
188 |
firePropertyChange(PROPERTY_ALL_PAGES, oldAll, allPages); |
189 |
|
189 |
} |
190 |
public int getScaleFactor() { |
190 |
|
191 |
return scaleFactor; |
191 |
public int getRangeFrom() { |
192 |
} |
192 |
return rangeFrom; |
193 |
|
193 |
} |
194 |
public void setScaleFactor(int scaleFactor) { |
194 |
|
195 |
int oldFactor = this.scaleFactor; |
195 |
public void setRangeFrom(int rangeFrom) { |
196 |
this.scaleFactor = scaleFactor; |
196 |
int oldFrom = this.rangeFrom; |
197 |
firePropertyChange(PROPERTY_SCALE_FACTOR, oldFactor, scaleFactor); |
197 |
this.rangeFrom = rangeFrom; |
198 |
} |
198 |
firePropertyChange(PROPERTY_RANGE_FROM, oldFrom, rangeFrom); |
199 |
|
199 |
} |
200 |
public int getFitToPagesWidth() { |
200 |
|
201 |
return fitToPagesWidth; |
201 |
public int getRangeTo() { |
202 |
} |
202 |
return rangeTo; |
203 |
|
203 |
} |
204 |
public void setFitToPagesWidth(int fitToPagesWidth) { |
204 |
|
205 |
int oldWidth = this.fitToPagesWidth; |
205 |
public void setRangeTo(int rangeTo) { |
206 |
this.fitToPagesWidth = fitToPagesWidth; |
206 |
int oldTo = this.rangeTo; |
207 |
firePropertyChange(PROPERTY_FIT_TO_WIDTH, oldWidth, fitToPagesWidth); |
207 |
this.rangeTo = rangeTo; |
208 |
} |
208 |
firePropertyChange(PROPERTY_RANGE_TO, oldTo, rangeTo); |
209 |
|
209 |
} |
210 |
public int getFitToPagesHeight() { |
210 |
|
211 |
return fitToPagesHeight; |
211 |
public int getCopies() { |
212 |
} |
212 |
return copies; |
213 |
|
213 |
} |
214 |
public void setFitToPagesHeight(int fitToPagesHeight) { |
214 |
|
215 |
int oldHeight = this.fitToPagesHeight; |
215 |
public void setCopies(int copies) { |
216 |
this.fitToPagesHeight = fitToPagesHeight; |
216 |
int oldCopies = this.copies; |
217 |
firePropertyChange(PROPERTY_FIT_TO_HEIGHT, oldHeight, fitToPagesHeight); |
217 |
this.copies = copies; |
218 |
} |
218 |
firePropertyChange(PROPERTY_COPIES, oldCopies, copies); |
219 |
|
219 |
} |
220 |
public boolean isAllPages() { |
220 |
|
221 |
return allPages; |
221 |
public boolean isCollate() { |
222 |
} |
222 |
return collate; |
223 |
|
223 |
} |
224 |
public void setAllPages(boolean allPages) { |
224 |
|
225 |
boolean oldAll = this.allPages; |
225 |
public void setCollate(boolean collate) { |
226 |
this.allPages = allPages; |
226 |
boolean oldCollate = this.collate; |
227 |
firePropertyChange(PROPERTY_ALL_PAGES, oldAll, allPages); |
227 |
this.collate = collate; |
228 |
} |
228 |
firePropertyChange(PROPERTY_COLLATE, oldCollate, collate); |
229 |
|
229 |
} |
230 |
public int getRangeFrom() { |
230 |
|
231 |
return rangeFrom; |
231 |
|
232 |
} |
232 |
public boolean isChromaticityColor() { |
233 |
|
233 |
return this.chromaticityColor; |
234 |
public void setRangeFrom(int rangeFrom) { |
234 |
} |
235 |
int oldFrom = this.rangeFrom; |
235 |
|
236 |
this.rangeFrom = rangeFrom; |
236 |
public void setChromaticityColor(boolean chromaticityColor) { |
237 |
firePropertyChange(PROPERTY_RANGE_FROM, oldFrom, rangeFrom); |
237 |
boolean oldChromaticityColor = this.chromaticityColor; |
238 |
} |
238 |
this.chromaticityColor = chromaticityColor; |
239 |
|
239 |
firePropertyChange(PROPERTY_CHROMATICITY_COLOR, oldChromaticityColor, this.chromaticityColor); |
240 |
public int getRangeTo() { |
240 |
} |
241 |
return rangeTo; |
241 |
|
242 |
} |
242 |
public boolean isChromaticityMono() { |
243 |
|
243 |
return this.chromaticityMono; |
244 |
public void setRangeTo(int rangeTo) { |
244 |
} |
245 |
int oldTo = this.rangeTo; |
245 |
|
246 |
this.rangeTo = rangeTo; |
246 |
public void setChromaticityMono(boolean chromaticityMono) { |
247 |
firePropertyChange(PROPERTY_RANGE_TO, oldTo, rangeTo); |
247 |
boolean oldChromaticityMono = this.chromaticityMono; |
248 |
} |
248 |
this.chromaticityMono = chromaticityMono; |
249 |
|
249 |
firePropertyChange(PROPERTY_CHROMATICITY_MONO, oldChromaticityMono, this.chromaticityMono); |
250 |
public int getCopies() { |
250 |
} |
251 |
return copies; |
251 |
|
252 |
} |
252 |
public boolean isSideOneSided() { |
253 |
|
253 |
return this.sideOneSided; |
254 |
public void setCopies(int copies) { |
254 |
} |
255 |
int oldCopies = this.copies; |
255 |
|
256 |
this.copies = copies; |
256 |
public void setSideOneSided(boolean sideOneSided) { |
257 |
firePropertyChange(PROPERTY_COPIES, oldCopies, copies); |
257 |
boolean oldSideOneSided = this.sideOneSided; |
258 |
} |
258 |
this.sideOneSided = sideOneSided; |
259 |
|
259 |
firePropertyChange(PROPERTY_SIDES_ONESIDED, oldSideOneSided, this.sideOneSided); |
260 |
public boolean isCollate() { |
260 |
} |
261 |
return collate; |
261 |
|
262 |
} |
262 |
public boolean isSideTumble() { |
263 |
|
263 |
return this.sideTumble; |
264 |
public void setCollate(boolean collate) { |
264 |
} |
265 |
boolean oldCollate = this.collate; |
265 |
|
266 |
this.collate = collate; |
266 |
public void setSideTumble(boolean sideTumble) { |
267 |
firePropertyChange(PROPERTY_COLLATE, oldCollate, collate); |
267 |
boolean oldSideTumble = this.sideTumble; |
268 |
} |
268 |
this.sideTumble = sideTumble; |
269 |
|
269 |
firePropertyChange(PROPERTY_SIDES_TUMBLE, oldSideTumble, this.sideTumble); |
270 |
public boolean isChromaticityColor() { |
270 |
} |
271 |
return this.chromaticityColor; |
271 |
|
272 |
} |
272 |
public boolean isSideDuplex() { |
273 |
|
273 |
return this.sideDuplex; |
274 |
public void setChromaticityColor(boolean chromaticityColor) { |
274 |
} |
275 |
boolean oldChromaticityColor = this.chromaticityColor; |
275 |
|
276 |
this.chromaticityColor = chromaticityColor; |
276 |
public void setSideDuplex(boolean sideDuplex) { |
277 |
firePropertyChange(PROPERTY_CHROMATICITY_COLOR, oldChromaticityColor, |
277 |
boolean oldSideDuplex = this.sideDuplex; |
278 |
this.chromaticityColor); |
278 |
this.sideDuplex = sideDuplex; |
279 |
} |
279 |
firePropertyChange(PROPERTY_SIDES_DUPLEX, oldSideDuplex, this.sideDuplex); |
280 |
|
280 |
} |
281 |
public boolean isChromaticityMono() { |
|
|
282 |
return this.chromaticityMono; |
283 |
} |
284 |
|
285 |
public void setChromaticityMono(boolean chromaticityMono) { |
286 |
boolean oldChromaticityMono = this.chromaticityMono; |
287 |
this.chromaticityMono = chromaticityMono; |
288 |
firePropertyChange(PROPERTY_CHROMATICITY_MONO, oldChromaticityMono, |
289 |
this.chromaticityMono); |
290 |
} |
291 |
|
292 |
public boolean isSideOneSided() { |
293 |
return this.sideOneSided; |
294 |
} |
295 |
|
296 |
public void setSideOneSided(boolean sideOneSided) { |
297 |
boolean oldSideOneSided = this.sideOneSided; |
298 |
this.sideOneSided = sideOneSided; |
299 |
firePropertyChange(PROPERTY_SIDES_ONESIDED, oldSideOneSided, |
300 |
this.sideOneSided); |
301 |
} |
302 |
|
303 |
public boolean isSideTumble() { |
304 |
return this.sideTumble; |
305 |
} |
306 |
|
307 |
public void setSideTumble(boolean sideTumble) { |
308 |
boolean oldSideTumble = this.sideTumble; |
309 |
this.sideTumble = sideTumble; |
310 |
firePropertyChange(PROPERTY_SIDES_TUMBLE, oldSideTumble, |
311 |
this.sideTumble); |
312 |
} |
313 |
|
314 |
public boolean isSideDuplex() { |
315 |
return this.sideDuplex; |
316 |
} |
317 |
|
318 |
public void setSideDuplex(boolean sideDuplex) { |
319 |
boolean oldSideDuplex = this.sideDuplex; |
320 |
this.sideDuplex = sideDuplex; |
321 |
firePropertyChange(PROPERTY_SIDES_DUPLEX, oldSideDuplex, |
322 |
this.sideDuplex); |
323 |
} |
281 |
} |
324 |
} |