1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.control;
17
18 import org.kuali.rice.core.api.util.KeyValue;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
20 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
21 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
22 import org.kuali.rice.krad.uif.field.InputField;
23 import org.kuali.rice.krad.uif.view.ViewModel;
24
25 import java.util.List;
26
27
28
29
30 @BeanTag(name = "keyValuesFinder-bean")
31 public abstract class UifKeyValuesFinderBase extends KeyValuesBase implements UifKeyValuesFinder {
32
33 private boolean addBlankOption;
34
35 public UifKeyValuesFinderBase() {
36 addBlankOption = true;
37 }
38
39
40
41
42 public List<KeyValue> getKeyValues() {
43 return null;
44 }
45
46
47
48
49 @Override
50 public List<KeyValue> getKeyValues(ViewModel model) {
51 return getKeyValues();
52 }
53
54
55
56
57 @Override
58 public List<KeyValue> getKeyValues(ViewModel model, InputField field){
59 return getKeyValues(model);
60 }
61
62
63
64
65 @BeanTagAttribute(name="addBlankOption")
66 public boolean isAddBlankOption() {
67 return addBlankOption;
68 }
69
70
71
72
73
74
75 public void setAddBlankOption(boolean addBlankOption) {
76 this.addBlankOption = addBlankOption;
77 }
78 }