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 @BeanTags({@BeanTag(name = "verticalRadioControl", parent = "Uif-VerticalRadioControl"),
33 @BeanTag(name = "horizontalRadioControl", parent = "Uif-HorizontalRadioControl")})
34 public class RadioGroupControl extends MultiValueControlBase {
35 private static final long serialVersionUID = 8800478332086081970L;
36 private List<String> fieldsetClasses;
37
38 private String delimiter;
39
40 public RadioGroupControl() {
41 super();
42 fieldsetClasses = new ArrayList<String>();
43 }
44
45
46
47
48
49
50
51 @BeanTagAttribute
52 public String getDelimiter() {
53 return this.delimiter;
54 }
55
56
57
58
59
60
61 public void setDelimiter(String delimiter) {
62 this.delimiter = delimiter;
63 }
64
65
66
67
68
69
70 @BeanTagAttribute
71 public List<String> getFieldsetClasses() {
72 return fieldsetClasses;
73 }
74
75
76
77
78
79
80 public void setFieldsetClasses(List<String> fieldsetClasses) {
81 this.fieldsetClasses = fieldsetClasses;
82 }
83
84
85
86
87
88
89
90 public String getFieldsetClassesAsString() {
91 if (fieldsetClasses != null) {
92 return StringUtils.join(fieldsetClasses, " ");
93 }
94
95 return "";
96 }
97 }