KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencms > workplace > comparison > CmsDifferenceDialog


1 /*
2  * File : $Source: /usr/local/cvs/opencms/src/org/opencms/workplace/comparison/CmsDifferenceDialog.java,v $
3  * Date : $Date: 2006/03/30 07:50:17 $
4  * Version: $Revision: 1.4 $
5  *
6  * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
7  * All rights reserved.
8  *
9  * This source code is the intellectual property of Alkacon Software GmbH.
10  * It is PROPRIETARY and CONFIDENTIAL.
11  * Use of this source code is subject to license terms.
12  *
13  * In order to use this source code, you need written permission from
14  * Alkacon Software GmbH. Redistribution of this source code, in modified
15  * or unmodified form, is not allowed unless written permission by
16  * Alkacon Software GmbH has been given.
17  *
18  * ALKACON SOFTWARE GMBH MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
19  * OF THIS SOURCE CODE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
20  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21  * PURPOSE, OR NON-INFRINGEMENT. ALKACON SOFTWARE GMBH SHALL NOT BE LIABLE FOR ANY
22  * DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
23  * THIS SOURCE CODE OR ITS DERIVATIVES.
24  *
25  * For further information about Alkacon Software GmbH, please see the
26  * company website: http://www.alkacon.com
27  */

28
29 package org.opencms.workplace.comparison;
30
31 import org.opencms.jsp.CmsJspActionElement;
32
33 import javax.servlet.http.HttpServletRequest JavaDoc;
34 import javax.servlet.http.HttpServletResponse JavaDoc;
35 import javax.servlet.jsp.PageContext JavaDoc;
36
37 /**
38  * Provides a GUI for the file comparison dialog.<p>
39  *
40  * @author Jan Baudisch
41  *
42  * @version $Revision: 1.4 $
43  *
44  * @since 6.0.0
45  */

46 public class CmsDifferenceDialog extends A_CmsDiffViewDialog {
47
48     /** The content of the second file to compare. */
49     private String JavaDoc m_copySource;
50     
51     /** The content of the first file to compare. */
52     private String JavaDoc m_originalSource;
53
54     /** Parameter value indicating wether to compare properties, attributes or elements. */
55     private String JavaDoc m_paramCompare;
56
57     /** Parameter value for the element name. */
58     private String JavaDoc m_paramElement;
59
60     /** Parameter value for the locale. */
61     private String JavaDoc m_paramLocale;
62
63     /** Parameter value for the path of the first file. */
64     private String JavaDoc m_paramPath1;
65
66     /** Parameter value for the path of the second file. */
67     private String JavaDoc m_paramPath2;
68
69     /** Parameter value for the tag id of the first file. */
70     private String JavaDoc m_paramTagId1;
71
72     /** Parameter value for the tag id of the second file. */
73     private String JavaDoc m_paramTagId2;
74
75     /** Parameter value for the text mode. */
76     private String JavaDoc m_paramTextmode;
77
78     /** Parameter value for the version of the first file. */
79     private String JavaDoc m_paramVersion1;
80
81     /** Parameter value for the version of the second file. */
82     private String JavaDoc m_paramVersion2;
83
84     /**
85      * Default constructor.<p>
86      *
87      * @param jsp an initialized JSP action element
88      */

89     public CmsDifferenceDialog(CmsJspActionElement jsp) {
90
91         super(jsp);
92     }
93
94     /**
95      * Public constructor with JSP variables.<p>
96      *
97      * @param context the JSP page context
98      * @param req the JSP request
99      * @param res the JSP response
100      */

101     public CmsDifferenceDialog(PageContext JavaDoc context, HttpServletRequest JavaDoc req, HttpServletResponse JavaDoc res) {
102
103         this(new CmsJspActionElement(context, req, res));
104     }
105
106     /**
107      * Returns the paramCompare.<p>
108      *
109      * @return the paramCompare
110      */

111     public String JavaDoc getParamCompare() {
112
113         return m_paramCompare;
114     }
115
116     /**
117      * Returns the paramElement.<p>
118      *
119      * @return the paramElement
120      */

121     public String JavaDoc getParamElement() {
122
123         return m_paramElement;
124     }
125
126     /**
127      * Returns the paramLocale.<p>
128      *
129      * @return the paramLocale
130      */

131     public String JavaDoc getParamLocale() {
132
133         return m_paramLocale;
134     }
135
136     /**
137      * Returns the paramPath1.<p>
138      *
139      * @return the paramPath1
140      */

141     public String JavaDoc getParamPath1() {
142
143         return m_paramPath1;
144     }
145
146     /**
147      * Returns the paramPath2.<p>
148      *
149      * @return the paramPath2
150      */

151     public String JavaDoc getParamPath2() {
152
153         return m_paramPath2;
154     }
155
156     /**
157      * Returns the paramTagId1.<p>
158      *
159      * @return the paramTagId1
160      */

161     public String JavaDoc getParamTagId1() {
162
163         return m_paramTagId1;
164     }
165
166     /**
167      * Returns the paramTagId2.<p>
168      *
169      * @return the paramTagId2
170      */

171     public String JavaDoc getParamTagId2() {
172
173         return m_paramTagId2;
174     }
175
176     /**
177      * Returns the paramTextmode.<p>
178      *
179      * @return the paramTextmode
180      */

181     public String JavaDoc getParamTextmode() {
182
183         return m_paramTextmode;
184     }
185
186     /**
187      * Returns the paramVersion1.<p>
188      *
189      * @return the paramVersion1
190      */

191     public String JavaDoc getParamVersion1() {
192
193         return m_paramVersion1;
194     }
195
196     /**
197      * Returns the paramVersion2.<p>
198      *
199      * @return the paramVersion2
200      */

201     public String JavaDoc getParamVersion2() {
202
203         return m_paramVersion2;
204     }
205
206     /**
207      * Sets the copySource.<p>
208      *
209      * @param copySource the copySource to set
210      */

211     public void setCopySource(String JavaDoc copySource) {
212
213         m_copySource = copySource;
214     }
215
216     /**
217      * Sets the originalSource.<p>
218      *
219      * @param originalSource the originalSource to set
220      */

221     public void setOriginalSource(String JavaDoc originalSource) {
222
223         m_originalSource = originalSource;
224     }
225
226     /**
227      * Sets the paramCompare.<p>
228      *
229      * @param paramCompare the paramCompare to set
230      */

231     public void setParamCompare(String JavaDoc paramCompare) {
232
233         m_paramCompare = paramCompare;
234     }
235
236     /**
237      * Sets the paramElement.<p>
238      *
239      * @param paramElement the paramElement to set
240      */

241     public void setParamElement(String JavaDoc paramElement) {
242
243         m_paramElement = paramElement;
244     }
245
246     /**
247      * Sets the paramLocale.<p>
248      *
249      * @param paramLocale the paramLocale to set
250      */

251     public void setParamLocale(String JavaDoc paramLocale) {
252
253         m_paramLocale = paramLocale;
254     }
255
256     /**
257      * Sets the paramPath1.<p>
258      *
259      * @param paramPath1 the paramPath1 to set
260      */

261     public void setParamPath1(String JavaDoc paramPath1) {
262
263         m_paramPath1 = paramPath1;
264     }
265
266     /**
267      * Sets the paramPath2.<p>
268      *
269      * @param paramPath2 the paramPath2 to set
270      */

271     public void setParamPath2(String JavaDoc paramPath2) {
272
273         m_paramPath2 = paramPath2;
274     }
275
276     /**
277      * Sets the paramTagId1.<p>
278      *
279      * @param paramTagId1 the paramTagId1 to set
280      */

281     public void setParamTagId1(String JavaDoc paramTagId1) {
282
283         m_paramTagId1 = paramTagId1;
284     }
285
286     /**
287      * Sets the paramTagId2.<p>
288      *
289      * @param paramTagId2 the paramTagId2 to set
290      */

291     public void setParamTagId2(String JavaDoc paramTagId2) {
292
293         m_paramTagId2 = paramTagId2;
294     }
295
296     /**
297      * Sets the paramTextmode.<p>
298      *
299      * @param paramTextmode the paramTextmode to set
300      */

301     public void setParamTextmode(String JavaDoc paramTextmode) {
302
303         m_paramTextmode = paramTextmode;
304     }
305
306     /**
307      * Sets the paramVersion1.<p>
308      *
309      * @param paramVersion1 the paramVersion1 to set
310      */

311     public void setParamVersion1(String JavaDoc paramVersion1) {
312
313         m_paramVersion1 = paramVersion1;
314     }
315
316     /**
317      * Sets the paramVersion2.<p>
318      *
319      * @param paramVersion2 the paramVersion2 to set
320      */

321     public void setParamVersion2(String JavaDoc paramVersion2) {
322
323         m_paramVersion2 = paramVersion2;
324     }
325
326     /**
327      *
328      * @see org.opencms.workplace.comparison.A_CmsDiffViewDialog#getCopySource()
329      */

330     protected String JavaDoc getCopySource() {
331
332         return m_copySource;
333     }
334
335     /**
336      *
337      * @see org.opencms.workplace.comparison.A_CmsDiffViewDialog#getLinesBeforeSkip()
338      */

339     protected int getLinesBeforeSkip() {
340
341         return 2;
342     }
343
344     /**
345      *
346      * @see org.opencms.workplace.comparison.A_CmsDiffViewDialog#getOriginalSource()
347      */

348     protected String JavaDoc getOriginalSource() {
349
350         return m_originalSource;
351     }
352
353     /**
354      *
355      * @see org.opencms.workplace.comparison.A_CmsDiffViewDialog#validateParamaters()
356      */

357     protected void validateParamaters() {
358
359         // noop
360
}
361 }
Popular Tags