View Javadoc

1   /**
2    * Copyright 2005-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krad.demo.uif.form;
17  
18  import org.apache.commons.lang.StringUtils;
19  import org.kuali.rice.core.api.util.tree.Node;
20  import org.kuali.rice.core.api.util.tree.Tree;
21  import org.kuali.rice.kim.api.identity.Person;
22  import org.kuali.rice.kim.api.services.KimApiServiceLocator;
23  import org.kuali.rice.krad.web.form.UifFormBase;
24  
25  import java.util.ArrayList;
26  import java.util.Arrays;
27  import java.util.List;
28  
29  /**
30   * Basic form for the KRAD sample application
31   *
32   * @author Kuali Rice Team (rice.collab@kuali.org)
33   */
34  public class KradSampleAppForm extends UifFormBase {
35      private static final long serialVersionUID = -7525378097732916418L;
36      private String themeName;
37      private String exampleShown;
38      private String currentExampleIndex;
39  
40      //Fields separated by demonstration type below:
41  
42      //InputField
43      private String inputField1;
44      private String inputField2;
45      private String inputField3;
46      private String inputField4;
47      private String inputField5;
48      private String inputField6;
49      private String inputField7;
50      private String inputField8;
51      private String inputField9;
52      private String inputField10;
53      private String inputField11;
54      private String inputField12;
55      private String inputField13;
56      private String inputField14;
57      private String inputField15;
58      private String inputField16;
59      private String inputField17;
60      private String inputField18;
61      private String inputField19;
62      private String inputField20;
63      private String inputField21;
64      private String inputField22;
65      private String inputField23;
66      private String inputField24;
67      private String inputField25;
68  
69      private boolean booleanField1 = false;
70      private boolean booleanField2 = false;
71      private boolean booleanField3 = false;
72  
73      private List<String> checkboxesField1;
74      private List<String> checkboxesField2;
75      private List<String> checkboxesField3;
76      private List<String> checkboxesField4;
77      private List<String> multiSelectField1;
78  
79      private String testPersonId;
80      private Person testPerson;
81  
82      private String testGroupId;
83  
84      //DataField
85      private String dataField1 = "1001";
86      private String dataField2 = "";
87      private String dataField3 = "My Book Title";
88  
89      //MessageField
90      private String messageField1;
91      private String richMessageField = "[color=green][b]Message[/b][/color]";
92  
93      // Collections
94      private List<UITestObject> collection1 = new ArrayList<UITestObject>();
95      private List<UITestObject> collection1_2 = new ArrayList<UITestObject>();
96      private List<UITestObject> collection1_3 = new ArrayList<UITestObject>();
97      private List<UITestObject> collection1_4 = new ArrayList<UITestObject>();
98      private List<UITestObject> collection1_5 = new ArrayList<UITestObject>();
99      private List<UITestObject> collection1_6 = new ArrayList<UITestObject>();
100     private List<UITestObject> collection1_7 = new ArrayList<UITestObject>();
101     private List<UITestObject> collection1_8 = new ArrayList<UITestObject>();
102     private List<UITestObject> collection1_9 = new ArrayList<UITestObject>();
103     private List<UITestObject> collection2 = new ArrayList<UITestObject>();
104     private List<UITestObject> collection3 = new ArrayList<UITestObject>();
105     private List<UITestObject> collection4 = new ArrayList<UITestObject>();
106     private List<UITestObject> collection5 = new ArrayList<UITestObject>();
107 
108     private List<UIInactivatableTestObject> inactivatableCollection = new ArrayList<UIInactivatableTestObject>();
109 
110     private List<UITestObject> groupedCollection1 = new ArrayList<UITestObject>();
111     private List<UITestObject> groupedCollection2 = new ArrayList<UITestObject>();
112     private List<UITestObject> groupedCollection3 = new ArrayList<UITestObject>();
113     private List<UITestObject> doubleGroupedCollection = new ArrayList<UITestObject>();
114 
115     private Tree<String, String> tree1 = new Tree<String, String>();
116     private Tree<UITestObject, String> tree2 = new Tree<UITestObject, String>();
117 
118     private List<UITestObject> subList = new ArrayList<UITestObject>();
119 
120     private String fakeTotal = "123(server value)";
121 
122     //preset fields
123     private List<String> optionListSelection = Arrays.asList("2", "4");
124 
125     public KradSampleAppForm() {
126         super();
127 
128         messageField1 = "fruits";
129 
130         getCollection1().add(new UITestObject("13", "14", "15", "16"));
131         getCollection1().add(new UITestObject("17", "18", "19", "20"));
132         getCollection1().add(new UITestObject("5", "6", "7", "8"));
133         getCollection1().add(new UITestObject("1", "2", "3", "4"));
134         getCollection1().add(new UITestObject("9", "10", "11", "12"));
135         getCollection1().add(new UITestObject("13", "14", "15", "16"));
136         getCollection1().add(new UITestObject("213", "143", "151", "126"));
137         getCollection1().add(new UITestObject("133", "144", "155", "156"));
138         getCollection1().add(new UITestObject("25", "14", "15", "15"));
139         getCollection1().add(new UITestObject("1", "5", "5", "4"));
140         getCollection1().add(new UITestObject("5", "5", "5", "5"));
141         getCollection1().add(new UITestObject("5", "7", "3", "1"));
142 
143         collection1_2.addAll(collection1);
144         collection1_3.addAll(collection1);
145         collection1_4.addAll(collection1);
146         collection1_5.addAll(collection1);
147         collection1_6.addAll(collection1);
148         collection1_7.addAll(collection1);
149         collection1_8.addAll(collection1);
150         collection1_9.addAll(collection1);
151 
152         getCollection2().add(new UITestObject("A", "B", "C", "D"));
153         getCollection2().add(new UITestObject("1", "2", "3", "4"));
154         getCollection2().add(new UITestObject("W", "X", "Y", "Z"));
155         collection2.add(new UITestObject("a", "b", "c", "d"));
156         collection2.add(new UITestObject("a", "s", "d", "f"));
157 
158         collection3.add(new UITestObject("A", "B", "C", "D"));
159         collection3.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
160         collection3.get(0).getSubList().add(new UITestObject("1", "2", "3", "4"));
161         collection3.get(0).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
162         collection3.add(new UITestObject("1", "2", "3", "4"));
163         collection3.get(1).getSubList().add(new UITestObject("A", "B", "C", "D"));
164         collection3.get(1).getSubList().add(new UITestObject("1", "2", "3", "4"));
165         collection3.add(new UITestObject("W", "X", "Y", "Z"));
166         collection3.get(2).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
167 
168         collection4.add(new UITestObject("A", "B", "C", "D"));
169         collection4.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
170         collection4.get(0).getSubList().add(new UITestObject("1", "2", "3", "4"));
171         collection4.get(0).getSubList().add(new UITestObject("W", "X", "Y", "Z"));
172         collection4.add(new UITestObject("1", "2", "3", "4"));
173         collection4.get(1).getSubList().add(new UITestObject("a", "b", "C", "D"));
174         collection4.get(1).getSubList().add(new UITestObject("a", "s", "D", "F"));
175 
176         //triple nesting
177         collection5.add(new UITestObject("a", "a", "a", "a"));
178         collection5.get(0).getSubList().add(new UITestObject("A", "B", "C", "D"));
179         collection5.get(0).getSubList().get(0).getSubList().add(new UITestObject("a3", "3", "3", "3"));
180         collection5.get(0).getSubList().get(0).getSubList().add(new UITestObject("a3", "3", "3", "3"));
181         collection5.get(0).getSubList().add(new UITestObject("1", "2", "3", "4"));
182         collection5.get(0).getSubList().get(1).getSubList().add(new UITestObject("b3", "3", "3", "3"));
183         collection5.get(0).getSubList().get(1).getSubList().add(new UITestObject("b3", "3", "3", "3"));
184         collection5.get(0).getSubList().get(1).getSubList().add(new UITestObject("b3", "3", "3", "3"));
185         collection5.add(new UITestObject("b", "b", "b", "b"));
186         collection5.get(1).getSubList().add(new UITestObject("a", "b", "C", "D"));
187         collection5.get(1).getSubList().get(0).getSubList().add(new UITestObject("a23", "3", "3", "3"));
188         collection5.get(1).getSubList().get(0).getSubList().add(new UITestObject("a23", "3", "3", "3"));
189         collection5.get(1).getSubList().add(new UITestObject("a", "s", "D", "F"));
190         collection5.get(1).getSubList().get(1).getSubList().add(new UITestObject("b23", "3", "3", "3"));
191         collection5.get(1).getSubList().get(1).getSubList().add(new UITestObject("b23", "3", "3", "3"));
192 
193         inactivatableCollection.add(new UIInactivatableTestObject("A", "100", "200", "300", true));
194         inactivatableCollection.add(new UIInactivatableTestObject("B", "100", "200", "300", true));
195         inactivatableCollection.add(new UIInactivatableTestObject("b3", "3", "3", "3", false));
196         inactivatableCollection.add(new UIInactivatableTestObject("a", "b", "C", "D", true));
197         inactivatableCollection.add(new UIInactivatableTestObject("W", "X", "Y", "Z", false));
198         inactivatableCollection.add(new UIInactivatableTestObject("a", "s", "d", "f", true));
199         inactivatableCollection.add(new UIInactivatableTestObject("Fall", "2002", "AAA123", "3", false));
200 
201         groupedCollection1.add(new UITestObject("A", "100", "200", "300"));
202         groupedCollection1.add(new UITestObject("A", "101", "200", "300"));
203         groupedCollection1.add(new UITestObject("A", "102", "200", "300"));
204         groupedCollection1.add(new UITestObject("A", "103", "200", "300"));
205         groupedCollection1.add(new UITestObject("A", "104", "200", "300"));
206 
207         groupedCollection1.add(new UITestObject("B", "100", "200", "300"));
208         groupedCollection1.add(new UITestObject("B", "101", "200", "300"));
209         groupedCollection1.add(new UITestObject("B", "102", "200", "300"));
210 
211         groupedCollection1.add(new UITestObject("C", "100", "200", "300"));
212         groupedCollection1.add(new UITestObject("C", "101", "200", "300"));
213         groupedCollection1.add(new UITestObject("C", "102", "200", "300"));
214         groupedCollection1.add(new UITestObject("C", "103", "200", "300"));
215 
216         groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
217         groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
218         groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
219         groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
220         groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
221         groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
222         groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
223         groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
224         groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
225         groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
226         groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
227         groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
228         groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
229         groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
230         groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
231         groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
232         groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
233         groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
234         groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
235         groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
236         groupedCollection1.add(new UITestObject("D", "100", "200", "300"));
237         groupedCollection1.add(new UITestObject("D", "101", "200", "300"));
238         groupedCollection1.add(new UITestObject("D", "102", "200", "300"));
239         groupedCollection1.add(new UITestObject("D", "103", "200", "300"));
240 
241         groupedCollection2.addAll(groupedCollection1);
242         groupedCollection3.addAll(groupedCollection1);
243 
244         doubleGroupedCollection.add(new UITestObject("Fall", "2001", "AAA123", "2"));
245         doubleGroupedCollection.add(new UITestObject("Fall", "2001", "BBB123", "3"));
246         doubleGroupedCollection.add(new UITestObject("Fall", "2001", "CCC123", "4"));
247         doubleGroupedCollection.add(new UITestObject("Fall", "2001", "DDD123", "3"));
248 
249         doubleGroupedCollection.add(new UITestObject("Fall", "2002", "AAA123", "3"));
250         doubleGroupedCollection.add(new UITestObject("Fall", "2002", "BBB123", "2"));
251         doubleGroupedCollection.add(new UITestObject("Fall", "2002", "CCC123", "3"));
252 
253         doubleGroupedCollection.add(new UITestObject("Fall", "2003", "AAA123", "3"));
254         doubleGroupedCollection.add(new UITestObject("Fall", "2003", "CCC123", "3"));
255 
256         doubleGroupedCollection.add(new UITestObject("Spring", "2001", "AAA123", "3"));
257         doubleGroupedCollection.add(new UITestObject("Spring", "2001", "BBB123", "3"));
258         doubleGroupedCollection.add(new UITestObject("Spring", "2001", "CCC123", "3"));
259 
260         doubleGroupedCollection.add(new UITestObject("Spring", "2002", "AAA123", "4"));
261         doubleGroupedCollection.add(new UITestObject("Spring", "2002", "BBB123", "4"));
262         doubleGroupedCollection.add(new UITestObject("Spring", "2002", "CCC123", "2"));
263 
264         doubleGroupedCollection.add(new UITestObject("Spring", "2003", "AAA123", "4"));
265         doubleGroupedCollection.add(new UITestObject("Spring", "2003", "BBB123", "3"));
266         doubleGroupedCollection.add(new UITestObject("Spring", "2003", "CCC123", "3"));
267         doubleGroupedCollection.add(new UITestObject("Spring", "2003", "DDD123", "2"));
268 
269         { // scope for name hiding purposes
270             Node<String, String> item1 = new Node<String, String>("Item 1", "Item 1");
271             item1.addChild(new Node<String, String>("SubItem A", "SubItem A"));
272             item1.addChild(new Node<String, String>("SubItem B", "SubItem B"));
273 
274             Node<String, String> item2 = new Node<String, String>("Item 2", "Item 2");
275             item2.addChild(new Node<String, String>("SubItem A", "SubItem A"));
276             Node<String, String> sub2B = new Node<String, String>("SubItem B", "SubItem B");
277             sub2B.addChild(new Node<String, String>("Item B-1", "Item B-1"));
278             sub2B.addChild(new Node<String, String>("Item B-2", "Item B-2"));
279             sub2B.addChild(new Node<String, String>("Item B-3", "Item B-3"));
280             item2.addChild(sub2B);
281             item2.addChild(new Node<String, String>("SubItem C", "SubItem C"));
282 
283             Node<String, String> item3 = new Node<String, String>("Item 3", "Item 3");
284             item3.addChild(new Node<String, String>("SubItem A", "SubItem A"));
285             item3.addChild(new Node<String, String>("SubItem B", "SubItem B"));
286             item3.addChild(new Node<String, String>("SubItem C", "SubItem C"));
287             item3.addChild(new Node<String, String>("SubItem D", "SubItem D"));
288 
289             Node<String, String> root = new Node<String, String>("Root", "Root");
290             root.addChild(item1);
291             root.addChild(item2);
292             root.addChild(item3);
293 
294             tree1.setRootElement(root);
295         }
296 
297         { // scope for name hiding purposes
298             Node<UITestObject, String> item1 = new Node<UITestObject, String>(new UITestObject("1-A", "1-B", "1-C",
299                     "1-D"), "Item 1");
300             item1.addChild(new Node<UITestObject, String>(new UITestObject("1SA-A", "1SA-B", "1SA-C", "1SA-D"),
301                     "SubItem A"));
302             item1.addChild(new Node<UITestObject, String>(new UITestObject("1SB-A", "1SB-B", "1SB-C", "1SB-D"),
303                     "SubItem B"));
304 
305             Node<UITestObject, String> item2 = new Node<UITestObject, String>(new UITestObject("2-A", "2-B", "2-C",
306                     "2-D"), "Item 2");
307             item2.addChild(new Node<UITestObject, String>(new UITestObject("SA-a", "SA-b", "SA-c", "SA-d"),
308                     "SubItem A"));
309             Node<UITestObject, String> sub2B = new Node<UITestObject, String>(new UITestObject("SB-a", "SB-b", "SB-c",
310                     "SB-d"), "SubItem B");
311             sub2B.addChild(new Node<UITestObject, String>(new UITestObject("AA", "BB", "CC", "DD"), "Item B-1"));
312             sub2B.addChild(new Node<UITestObject, String>(new UITestObject("Aa", "Bb", "Cc", "Dd"), "Item B-2"));
313             sub2B.addChild(new Node<UITestObject, String>(new UITestObject("aA", "bB", "cC", "dD"), "Item B-3"));
314             item2.addChild(sub2B);
315             item2.addChild(new Node<UITestObject, String>(new UITestObject("SC-a", "SC-b", "SC-c", "SC-d"),
316                     "SubItem C"));
317 
318             Node<UITestObject, String> item3 = new Node<UITestObject, String>(new UITestObject("3-A", "3-B", "3-C",
319                     "3-D"), "Item 3");
320             item3.addChild(new Node<UITestObject, String>(new UITestObject("A", "B", "C", "D"), "SubItem A"));
321             item3.addChild(new Node<UITestObject, String>(new UITestObject("1", "2", "3", "4"), "SubItem B"));
322             item3.addChild(new Node<UITestObject, String>(new UITestObject("w", "x", "y", "z"), "SubItem C"));
323             item3.addChild(new Node<UITestObject, String>(new UITestObject("!", "@", "#", "$"), "SubItem D"));
324 
325             Node<UITestObject, String> root = new Node<UITestObject, String>(new UITestObject("foo", "bar", "baz",
326                     "roo"), "Root");
327             root.addChild(item1);
328             root.addChild(item2);
329             root.addChild(item3);
330 
331             tree2.setRootElement(root);
332         }
333     }
334 
335     /**
336      * Theme by name (id) currently used for the component library view
337      *
338      * @return
339      */
340     public String getThemeName() {
341         return themeName;
342     }
343 
344     /**
345      * @param themeName
346      */
347     public void setThemeName(String themeName) {
348         this.themeName = themeName;
349     }
350 
351     /**
352      * Backing property for the large example dropdown since on is required.  Stores dropdown selection
353      *
354      * @return
355      */
356     public String getExampleShown() {
357         return exampleShown;
358     }
359 
360     /**
361      * Large example selection
362      *
363      * @param exampleShown
364      */
365     public void setExampleShown(String exampleShown) {
366         this.exampleShown = exampleShown;
367     }
368 
369     /**
370      * Index of the current example, used to reselect between submit actions
371      *
372      * @return
373      */
374     public String getCurrentExampleIndex() {
375         return currentExampleIndex;
376     }
377 
378     /**
379      * Index of the current example
380      *
381      * @param currentExampleIndex
382      */
383     public void setCurrentExampleIndex(String currentExampleIndex) {
384         this.currentExampleIndex = currentExampleIndex;
385     }
386 
387     /**
388      * Below are basic getters and setters for this data object - no javadoc needed *
389      */
390 
391     public String getDataField1() {
392         return dataField1;
393     }
394 
395     public void setDataField1(String dataField1) {
396         this.dataField1 = dataField1;
397     }
398 
399     public String getDataField2() {
400         return dataField2;
401     }
402 
403     public void setDataField2(String dataField2) {
404         this.dataField2 = dataField2;
405     }
406 
407     public String getDataField3() {
408         return dataField3;
409     }
410 
411     public void setDataField3(String dataField3) {
412         this.dataField3 = dataField3;
413     }
414 
415     public String getInputField1() {
416         return inputField1;
417     }
418 
419     public void setInputField1(String inputField1) {
420         this.inputField1 = inputField1;
421     }
422 
423     public String getInputField2() {
424         return inputField2;
425     }
426 
427     public void setInputField2(String inputField2) {
428         this.inputField2 = inputField2;
429     }
430 
431     public String getInputField3() {
432 
433         return inputField3;
434     }
435 
436     public void setInputField3(String inputField3) {
437         this.inputField3 = inputField3;
438     }
439 
440     public String getInputField4() {
441         return inputField4;
442     }
443 
444     public void setInputField4(String inputField4) {
445         this.inputField4 = inputField4;
446     }
447 
448     public String getInputField5() {
449         return inputField5;
450     }
451 
452     public void setInputField5(String inputField5) {
453         this.inputField5 = inputField5;
454     }
455 
456     public String getInputField6() {
457         return inputField6;
458     }
459 
460     public void setInputField6(String inputField6) {
461         this.inputField6 = inputField6;
462     }
463 
464     public String getInputField7() {
465         return inputField7;
466     }
467 
468     public void setInputField7(String inputField7) {
469         this.inputField7 = inputField7;
470     }
471 
472     public String getInputField8() {
473         return inputField8;
474     }
475 
476     public void setInputField8(String inputField8) {
477         this.inputField8 = inputField8;
478     }
479 
480     public String getInputField9() {
481         return inputField9;
482     }
483 
484     public void setInputField9(String inputField9) {
485         this.inputField9 = inputField9;
486     }
487 
488     public String getInputField10() {
489         return inputField10;
490     }
491 
492     public void setInputField10(String inputField10) {
493         this.inputField10 = inputField10;
494     }
495 
496     public String getInputField11() {
497         return inputField11;
498     }
499 
500     public void setInputField11(String inputField11) {
501         this.inputField11 = inputField11;
502     }
503 
504     public String getInputField12() {
505         return inputField12;
506     }
507 
508     public void setInputField12(String inputField12) {
509         this.inputField12 = inputField12;
510     }
511 
512     public String getInputField13() {
513         return inputField13;
514     }
515 
516     public void setInputField13(String inputField13) {
517         this.inputField13 = inputField13;
518     }
519 
520     public String getInputField14() {
521         return inputField14;
522     }
523 
524     public void setInputField14(String inputField14) {
525         this.inputField14 = inputField14;
526     }
527 
528     public String getInputField15() {
529         return inputField15;
530     }
531 
532     public void setInputField15(String inputField15) {
533         this.inputField15 = inputField15;
534     }
535 
536     public String getInputField16() {
537         return inputField16;
538     }
539 
540     public void setInputField16(String inputField16) {
541         this.inputField16 = inputField16;
542     }
543 
544     public String getInputField17() {
545         return inputField17;
546     }
547 
548     public void setInputField17(String inputField17) {
549         this.inputField17 = inputField17;
550     }
551 
552     public String getInputField18() {
553         return inputField18;
554     }
555 
556     public void setInputField18(String inputField18) {
557         this.inputField18 = inputField18;
558     }
559 
560     public String getInputField19() {
561         return inputField19;
562     }
563 
564     public void setInputField19(String inputField19) {
565         this.inputField19 = inputField19;
566     }
567 
568     public String getInputField20() {
569         return inputField20;
570     }
571 
572     public void setInputField20(String inputField20) {
573         this.inputField20 = inputField20;
574     }
575 
576     public String getInputField21() {
577         return inputField21;
578     }
579 
580     public void setInputField21(String inputField21) {
581         this.inputField21 = inputField21;
582     }
583 
584     public String getInputField22() {
585         return inputField22;
586     }
587 
588     public void setInputField22(String inputField22) {
589         this.inputField22 = inputField22;
590     }
591 
592     public String getInputField23() {
593         return inputField23;
594     }
595 
596     public void setInputField23(String inputField23) {
597         this.inputField23 = inputField23;
598     }
599 
600     public String getInputField24() {
601         return inputField24;
602     }
603 
604     public void setInputField24(String inputField24) {
605         this.inputField24 = inputField24;
606     }
607 
608     public String getInputField25() {
609         return inputField25;
610     }
611 
612     public void setInputField25(String inputField25) {
613         this.inputField25 = inputField25;
614     }
615 
616     public String getMessageField1() {
617         return messageField1;
618     }
619 
620     public void setMessageField1(String messageField1) {
621         this.messageField1 = messageField1;
622     }
623 
624     public String getTestPersonId() {
625         return testPersonId;
626     }
627 
628     public void setTestPersonId(String testPersonId) {
629         this.testPersonId = testPersonId;
630     }
631 
632     public Person getTestPerson() {
633         if ((testPerson == null) || !StringUtils.equals(testPerson.getPrincipalId(), getTestPersonId())) {
634             testPerson = KimApiServiceLocator.getPersonService().getPerson(getTestPersonId());
635 
636             if (testPerson == null) {
637                 try {
638                     testPerson = KimApiServiceLocator.getPersonService().getPersonImplementationClass().newInstance();
639                 } catch (Exception e) {
640                     throw new RuntimeException(e);
641                 }
642             }
643         }
644 
645         return testPerson;
646     }
647 
648     public void setTestPerson(Person testPerson) {
649         this.testPerson = testPerson;
650     }
651 
652     public String getTestGroupId() {
653         return testGroupId;
654     }
655 
656     public void setTestGroupId(String testGroupId) {
657         this.testGroupId = testGroupId;
658     }
659 
660     public List<UITestObject> getCollection1() {
661         return collection1;
662     }
663 
664     public void setCollection1(List<UITestObject> collection1) {
665         this.collection1 = collection1;
666     }
667 
668     public List<UITestObject> getCollection1_2() {
669         return collection1_2;
670     }
671 
672     public void setCollection1_2(List<UITestObject> collection1_2) {
673         this.collection1_2 = collection1_2;
674     }
675 
676     public List<UITestObject> getCollection1_3() {
677         return collection1_3;
678     }
679 
680     public void setCollection1_3(List<UITestObject> collection1_3) {
681         this.collection1_3 = collection1_3;
682     }
683 
684     public List<UITestObject> getCollection1_4() {
685         return collection1_4;
686     }
687 
688     public void setCollection1_4(List<UITestObject> collection1_4) {
689         this.collection1_4 = collection1_4;
690     }
691 
692     public List<UITestObject> getCollection1_5() {
693         return collection1_5;
694     }
695 
696     public void setCollection1_5(List<UITestObject> collection1_5) {
697         this.collection1_5 = collection1_5;
698     }
699 
700     public List<UITestObject> getCollection1_6() {
701         return collection1_6;
702     }
703 
704     public void setCollection1_6(List<UITestObject> collection1_6) {
705         this.collection1_6 = collection1_6;
706     }
707 
708     public List<UITestObject> getCollection1_7() {
709         return collection1_7;
710     }
711 
712     public void setCollection1_7(List<UITestObject> collection1_7) {
713         this.collection1_7 = collection1_7;
714     }
715 
716     public List<UITestObject> getCollection1_8() {
717         return collection1_8;
718     }
719 
720     public void setCollection1_8(List<UITestObject> collection1_8) {
721         this.collection1_8 = collection1_8;
722     }
723 
724     public List<UITestObject> getCollection1_9() {
725         return collection1_9;
726     }
727 
728     public void setCollection1_9(List<UITestObject> collection1_9) {
729         this.collection1_9 = collection1_9;
730     }
731 
732     public List<UITestObject> getCollection2() {
733         return collection2;
734     }
735 
736     public void setCollection2(List<UITestObject> collection2) {
737         this.collection2 = collection2;
738     }
739 
740     public List<UITestObject> getCollection3() {
741         return collection3;
742     }
743 
744     public void setCollection3(List<UITestObject> collection3) {
745         this.collection3 = collection3;
746     }
747 
748     public List<UITestObject> getCollection4() {
749         return collection4;
750     }
751 
752     public void setCollection4(List<UITestObject> collection4) {
753         this.collection4 = collection4;
754     }
755 
756     public List<UITestObject> getCollection5() {
757         return collection5;
758     }
759 
760     public void setCollection5(List<UITestObject> collection5) {
761         this.collection5 = collection5;
762     }
763 
764     public List<UIInactivatableTestObject> getInactivatableCollection() {
765         return inactivatableCollection;
766     }
767 
768     public void setInactivatableCollection(List<UIInactivatableTestObject> inactivatableCollection) {
769         this.inactivatableCollection = inactivatableCollection;
770     }
771 
772     public List<UITestObject> getGroupedCollection1() {
773         return groupedCollection1;
774     }
775 
776     public void setGroupedCollection1(List<UITestObject> groupedCollection1) {
777         this.groupedCollection1 = groupedCollection1;
778     }
779 
780     public List<UITestObject> getGroupedCollection2() {
781         return groupedCollection2;
782     }
783 
784     public void setGroupedCollection2(List<UITestObject> groupedCollection2) {
785         this.groupedCollection2 = groupedCollection2;
786     }
787 
788     public List<UITestObject> getGroupedCollection3() {
789         return groupedCollection3;
790     }
791 
792     public void setGroupedCollection3(List<UITestObject> groupedCollection3) {
793         this.groupedCollection3 = groupedCollection3;
794     }
795 
796     public List<UITestObject> getDoubleGroupedCollection() {
797         return doubleGroupedCollection;
798     }
799 
800     public void setDoubleGroupedCollection(List<UITestObject> doubleGroupedCollection) {
801         this.doubleGroupedCollection = doubleGroupedCollection;
802     }
803 
804     public String getFakeTotal() {
805         return fakeTotal;
806     }
807 
808     public void setFakeTotal(String fakeTotal) {
809         this.fakeTotal = fakeTotal;
810     }
811 
812     public String getRichMessageField() {
813         return richMessageField;
814     }
815 
816     public void setRichMessageField(String richMessageField) {
817         this.richMessageField = richMessageField;
818     }
819 
820     public List<String> getCheckboxesField1() {
821         return checkboxesField1;
822     }
823 
824     public void setCheckboxesField1(List<String> checkboxesField1) {
825         this.checkboxesField1 = checkboxesField1;
826     }
827 
828     public List<String> getCheckboxesField2() {
829         return checkboxesField2;
830     }
831 
832     public void setCheckboxesField2(List<String> checkboxesField2) {
833         this.checkboxesField2 = checkboxesField2;
834     }
835 
836     public List<String> getCheckboxesField3() {
837         return checkboxesField3;
838     }
839 
840     public void setCheckboxesField3(List<String> checkboxesField3) {
841         this.checkboxesField3 = checkboxesField3;
842     }
843 
844     public List<String> getCheckboxesField4() {
845         return checkboxesField4;
846     }
847 
848     public void setCheckboxesField4(List<String> checkboxesField4) {
849         this.checkboxesField4 = checkboxesField4;
850     }
851 
852     public List<String> getMultiSelectField1() {
853         return multiSelectField1;
854     }
855 
856     public void setMultiSelectField1(List<String> multiSelectField1) {
857         this.multiSelectField1 = multiSelectField1;
858     }
859 
860     public boolean isBooleanField1() {
861         return booleanField1;
862     }
863 
864     public void setBooleanField1(boolean booleanField1) {
865         this.booleanField1 = booleanField1;
866     }
867 
868     public boolean isBooleanField2() {
869         return booleanField2;
870     }
871 
872     public void setBooleanField2(boolean booleanField2) {
873         this.booleanField2 = booleanField2;
874     }
875 
876     public boolean isBooleanField3() {
877         return booleanField3;
878     }
879 
880     public void setBooleanField3(boolean booleanField3) {
881         this.booleanField3 = booleanField3;
882     }
883 
884     /**
885      * @return the tree1
886      */
887     public Tree<String, String> getTree1() {
888         return this.tree1;
889     }
890 
891     /**
892      * @param tree1 the tree1 to set
893      */
894     public void setTree1(Tree<String, String> tree1) {
895         this.tree1 = tree1;
896     }
897 
898     /**
899      * @return the tree2
900      */
901     public Tree<UITestObject, String> getTree2() {
902         return tree2;
903     }
904 
905     /**
906      * @param tree1 the tree2 to set
907      */
908     public void setTree2(Tree<UITestObject, String> tree2) {
909         this.tree2 = tree2;
910     }
911 
912     /**
913      * @param subList the subList to set
914      */
915     public void setSubList(List<UITestObject> subList) {
916         this.subList = subList;
917     }
918 
919     /**
920      * @return the subList
921      */
922     public List<UITestObject> getSubList() {
923         return subList;
924     }
925 
926     public List<String> getOptionListSelection() {
927         return optionListSelection;
928     }
929 
930     public void setOptionListSelection(List<String> optionListSelection) {
931         this.optionListSelection = optionListSelection;
932     }
933 }