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.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
20
21
22
23
24
25
26
27 @BeanTag(name = "optionListControl-bean", parent = "Uif-OptionListControl")
28 public class OptionListControl extends MultiValueControlBase {
29 private String itemCssClass;
30 private String selectedItemCssClass;
31 private boolean showOnlySelected;
32
33
34
35
36
37
38 @BeanTagAttribute(name = "itemCssClass")
39 public String getItemCssClass() {
40 return itemCssClass;
41 }
42
43
44
45
46
47
48 public void setItemCssClass(String itemCssClass) {
49 this.itemCssClass = itemCssClass;
50 }
51
52
53
54
55
56
57
58 @BeanTagAttribute(name = "showOnlySelected")
59 public boolean isShowOnlySelected() {
60 return showOnlySelected;
61 }
62
63
64
65
66
67
68 public void setShowOnlySelected(boolean showOnlySelected) {
69 this.showOnlySelected = showOnlySelected;
70 }
71
72
73
74
75
76
77 @BeanTagAttribute(name = "selectedItemCssClass")
78 public String getSelectedItemCssClass() {
79 return selectedItemCssClass;
80 }
81
82
83
84
85
86
87 public void setSelectedItemCssClass(String selectedItemCssClass) {
88 this.selectedItemCssClass = selectedItemCssClass;
89 }
90
91
92
93
94 @Override
95 protected <T> void copyProperties(T component) {
96 super.copyProperties(component);
97 OptionListControl optionListControlCopy = (OptionListControl) component;
98 optionListControlCopy.setItemCssClass(this.itemCssClass);
99 optionListControlCopy.setSelectedItemCssClass(this.selectedItemCssClass);
100 optionListControlCopy.setShowOnlySelected(this.showOnlySelected);
101 }
102 }