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.Collections;
26 import java.util.List;
27
28
29
30
31 @BeanTag(name = "keyValuesFinder")
32 public abstract class UifKeyValuesFinderBase extends KeyValuesBase implements UifKeyValuesFinder {
33
34 private boolean addBlankOption;
35
36 public UifKeyValuesFinderBase() {
37 addBlankOption = true;
38 }
39
40
41
42
43 public List<KeyValue> getKeyValues() {
44 return Collections.emptyList();
45 }
46
47
48
49
50 @Override
51 public List<KeyValue> getKeyValues(ViewModel model) {
52 return getKeyValues();
53 }
54
55
56
57
58 @Override
59 public List<KeyValue> getKeyValues(ViewModel model, InputField field){
60 return getKeyValues(model);
61 }
62
63
64
65
66 @BeanTagAttribute
67 @Override
68 public boolean isAddBlankOption() {
69 return addBlankOption;
70 }
71
72
73
74
75
76
77 public void setAddBlankOption(boolean addBlankOption) {
78 this.addBlankOption = addBlankOption;
79 }
80 }