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