1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.travel.document.keyvalue;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21 import org.kuali.rice.core.api.util.ConcreteKeyValue;
22 import org.kuali.rice.core.api.util.KeyValue;
23 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
24
25
26
27
28
29
30 public class SimpleTestKeyValues extends KeyValuesBase{
31
32 private boolean blankOption;
33
34
35
36
37
38
39
40 @Override
41 public List<KeyValue> getKeyValues() {
42 List<KeyValue> keyValues = new ArrayList<KeyValue>();
43 if(blankOption){
44 keyValues.add(new ConcreteKeyValue("", ""));
45 }
46 keyValues.add(new ConcreteKeyValue("1", "Option 1"));
47 keyValues.add(new ConcreteKeyValue("2", "Option 2"));
48 keyValues.add(new ConcreteKeyValue("3", "Option 3"));
49 keyValues.add(new ConcreteKeyValue("4", "Option 4"));
50 keyValues.add(new ConcreteKeyValue("5", "Option 5"));
51 return keyValues;
52 }
53
54
55
56
57 public boolean isBlankOption() {
58 return this.blankOption;
59 }
60
61
62
63
64 public void setBlankOption(boolean blankOption) {
65 this.blankOption = blankOption;
66 }
67
68
69
70 }