1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.common.kitchensink;
18
19 import org.kuali.rice.core.api.util.ConcreteKeyValue;
20 import org.kuali.rice.core.api.util.KeyValue;
21 import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase;
22 import org.kuali.rice.krad.uif.view.ViewModel;
23
24 import java.util.ArrayList;
25 import java.util.List;
26
27
28
29
30
31
32 public class KitchenSinkMockDwarfKeyValues extends UifKeyValuesFinderBase {
33
34 public KitchenSinkMockDwarfKeyValues() {
35
36 this.setAddBlankOption(false);
37 }
38
39
40
41
42
43
44 @Override
45 public List<KeyValue> getKeyValues(ViewModel model) {
46
47 KitchenSinkForm form = (KitchenSinkForm)model;
48
49 List<KeyValue> keyValues = new ArrayList<KeyValue>();
50 keyValues.add(new ConcreteKeyValue("1", "A dwarf named Bashful"));
51 keyValues.add(new ConcreteKeyValue("2", "A dwarf named Doc"));
52 keyValues.add(new ConcreteKeyValue("3", "A dwarf named Dopey"));
53 keyValues.add(new ConcreteKeyValue("4", "A dwarf named Grumpy"));
54 keyValues.add(new ConcreteKeyValue("5", "A dwarf named Happy"));
55 keyValues.add(new ConcreteKeyValue("6", "A dwarf named Sleepy"));
56 keyValues.add(new ConcreteKeyValue("7", "A dwarf named Sneezy"));
57 return keyValues;
58 }
59
60 }