Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
TabGroup |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2011 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 1.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl1.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.rice.krad.uif.container; | |
17 | ||
18 | import org.kuali.rice.krad.uif.core.Component; | |
19 | import org.kuali.rice.krad.uif.widget.Tabs; | |
20 | ||
21 | import java.util.HashSet; | |
22 | import java.util.Set; | |
23 | ||
24 | /** | |
25 | * A group that presents its child Groups as tabs. Items in this group's item list must be Groups | |
26 | * themselves. | |
27 | * | |
28 | * @see Group | |
29 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
30 | */ | |
31 | 0 | public class TabGroup extends Group{ |
32 | ||
33 | private static final long serialVersionUID = 3L; | |
34 | private Tabs tabsWidget; | |
35 | /** | |
36 | * @see org.kuali.rice.krad.uif.core.Component#getComponentTypeName() | |
37 | */ | |
38 | @Override | |
39 | public String getComponentTypeName() { | |
40 | 0 | return "tabGroup"; |
41 | } | |
42 | ||
43 | /** | |
44 | * Only groups are supported for this group. | |
45 | * @see org.kuali.rice.krad.web.view.container.ContainerBase#getSupportedComponents() | |
46 | */ | |
47 | @Override | |
48 | public Set<Class<? extends Component>> getSupportedComponents() { | |
49 | 0 | Set<Class<? extends Component>> supportedComponents = new HashSet<Class<? extends Component>>(); |
50 | 0 | supportedComponents.add(Group.class); |
51 | ||
52 | 0 | return supportedComponents; |
53 | } | |
54 | ||
55 | /** | |
56 | * Gets the widget which contains any configuration for the tab widget component used to render | |
57 | * this TabGroup | |
58 | * | |
59 | * @return the tabsWidget | |
60 | */ | |
61 | public Tabs getTabsWidget() { | |
62 | 0 | return this.tabsWidget; |
63 | } | |
64 | ||
65 | /** | |
66 | * @param tabsWidget the tabsWidget to set | |
67 | */ | |
68 | public void setTabsWidget(Tabs tabsWidget) { | |
69 | 0 | this.tabsWidget = tabsWidget; |
70 | 0 | } |
71 | ||
72 | ||
73 | } |