1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.container;
17
18 import java.util.HashSet;
19 import java.util.Set;
20
21 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
22 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
23 import org.kuali.rice.krad.datadictionary.parse.BeanTags;
24 import org.kuali.rice.krad.uif.UifConstants;
25 import org.kuali.rice.krad.uif.component.Component;
26 import org.kuali.rice.krad.uif.util.LifecycleElement;
27 import org.kuali.rice.krad.uif.widget.Accordion;
28
29
30
31
32 @BeanTags({@BeanTag(name = "accordionGroup-bean", parent = "Uif-AccordionGroup"),
33 @BeanTag(name = "accordionSection-bean", parent = "Uif-AccordionSection"),
34 @BeanTag(name = "accordionSubSection-bean", parent = "Uif-AccordionSubSection"),
35 @BeanTag(name = "disclosure-accordionSection-bean", parent = "Uif-Disclosure-AccordionSection"),
36 @BeanTag(name = "disclosure-accordionSubSection-bean", parent = "Uif-Disclosure-AccordionSubSection")})
37 public class AccordionGroup extends GroupBase {
38
39 private static final long serialVersionUID = 7230145606607506418L;
40
41 private Accordion accordionWidget;
42
43
44
45
46 @Override
47 public void performFinalize(Object model, LifecycleElement parent) {
48 super.performFinalize(model, parent);
49 this.addDataAttribute(UifConstants.DataAttributes.TYPE, "Uif-AccordionGroup");
50 }
51
52
53
54
55
56
57 @Override
58 public Set<Class<? extends Component>> getSupportedComponents() {
59 Set<Class<? extends Component>> supportedComponents = new HashSet<Class<? extends Component>>();
60 supportedComponents.add(Group.class);
61
62 return supportedComponents;
63 }
64
65
66
67
68
69
70
71 @BeanTagAttribute(name = "accordionWidget", type = BeanTagAttribute.AttributeType.SINGLEBEAN)
72 public Accordion getAccordionWidget() {
73 return this.accordionWidget;
74 }
75
76
77
78
79
80
81 public void setAccordionWidget(Accordion accordionWidget) {
82 this.accordionWidget = accordionWidget;
83 }
84 }