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