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.uif.component.Component;
19 import org.kuali.rice.krad.uif.view.View;
20 import org.kuali.rice.krad.uif.widget.Tabs;
21
22 import java.util.HashSet;
23 import java.util.List;
24 import java.util.Set;
25
26
27
28
29
30
31
32
33 public class TabGroup extends Group {
34 private static final long serialVersionUID = 3L;
35
36 private Tabs tabsWidget;
37
38 public TabGroup() {
39 super();
40 }
41
42
43
44
45 @Override
46 public List<Component> getComponentsForLifecycle() {
47 List<Component> components = super.getComponentsForLifecycle();
48
49 components.add(tabsWidget);
50
51 return components;
52 }
53
54 @Override
55 public void performFinalize(View view, Object model, Component parent) {
56 super.performFinalize(view, model,parent);
57 this.addDataAttribute("type","Uif-TabGroup");
58 }
59
60
61
62
63
64
65 @Override
66 public Set<Class<? extends Component>> getSupportedComponents() {
67 Set<Class<? extends Component>> supportedComponents = new HashSet<Class<? extends Component>>();
68 supportedComponents.add(Group.class);
69
70 return supportedComponents;
71 }
72
73
74
75
76
77
78
79 public Tabs getTabsWidget() {
80 return this.tabsWidget;
81 }
82
83
84
85
86 public void setTabsWidget(Tabs tabsWidget) {
87 this.tabsWidget = tabsWidget;
88 }
89
90 }