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 org.kuali.rice.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
20 import org.kuali.rice.krad.datadictionary.parse.BeanTags;
21 import org.kuali.rice.krad.uif.component.Component;
22 import org.kuali.rice.krad.uif.widget.Reorderer;
23
24 import java.util.List;
25
26
27
28
29
30
31
32
33
34
35 @BeanTags({@BeanTag(name = "reorderGroup", parent = "Uif-ReorderGroup"),
36 @BeanTag(name = "reorderSection", parent = "Uif-ReorderSection")})
37 public class ReorderingGroup extends Group {
38 private static final long serialVersionUID = -9069458348367183223L;
39
40 private Reorderer reorderer;
41
42 public ReorderingGroup() {
43 super();
44 }
45
46
47
48
49 @Override
50 public List<Component> getComponentsForLifecycle() {
51 List<Component> components = super.getComponentsForLifecycle();
52
53 components.add(reorderer);
54
55 return components;
56 }
57
58
59
60
61
62
63 @BeanTagAttribute(name = "reorderer", type = BeanTagAttribute.AttributeType.SINGLEBEAN)
64 public Reorderer getReorderer() {
65 return reorderer;
66 }
67
68
69
70
71
72
73 public void setReorderer(Reorderer reorderer) {
74 this.reorderer = reorderer;
75 }
76 }