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.apache.commons.lang.StringUtils;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
20 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
21 import org.kuali.rice.krad.datadictionary.parse.BeanTags;
22
23 import java.util.ArrayList;
24 import java.util.List;
25
26
27
28
29
30
31
32
33 @BeanTags({@BeanTag(name = "verticalCheckboxesControl", parent = "Uif-VerticalCheckboxesControl"),
34 @BeanTag(name = "horizontalCheckboxesControl", parent = "Uif-HorizontalCheckboxesControl")})
35 public class CheckboxGroupControl extends MultiValueControlBase {
36 private static final long serialVersionUID = 8800478332086081970L;
37
38 private String delimiter;
39
40 private List<String> fieldsetClasses;
41
42 public CheckboxGroupControl() {
43 super();
44
45 fieldsetClasses = new ArrayList<String>();
46 }
47
48
49
50
51
52
53
54
55
56
57 @BeanTagAttribute
58 public String getDelimiter() {
59 return this.delimiter;
60 }
61
62
63
64
65
66
67 public void setDelimiter(String delimiter) {
68 this.delimiter = delimiter;
69 }
70
71
72
73
74
75
76 @BeanTagAttribute
77 public List<String> getFieldsetClasses() {
78 return fieldsetClasses;
79 }
80
81
82
83
84
85
86 public void setFieldsetClasses(List<String> fieldsetClasses) {
87 this.fieldsetClasses = fieldsetClasses;
88 }
89
90
91
92
93
94
95
96 public String getFieldsetClassesAsString() {
97 if (fieldsetClasses != null) {
98 return StringUtils.join(fieldsetClasses, " ");
99 }
100
101 return "";
102 }
103 }