| 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.kns.uif.container; | |
| 17 | ||
| 18 |  import java.util.HashSet; | |
| 19 |  import java.util.Set; | |
| 20 | ||
| 21 |  import org.kuali.rice.kns.uif.core.Component; | |
| 22 |  import org.kuali.rice.kns.uif.widget.Tabs; | |
| 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.kns.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 |           * @return the tabsWidget | |
| 59 |           */ | |
| 60 |          public Tabs getTabsWidget() { | |
| 61 | 0 |                  return this.tabsWidget; | 
| 62 | }  | |
| 63 | ||
| 64 |          /** | |
| 65 |           * @param tabsWidget the tabsWidget to set | |
| 66 |           */ | |
| 67 | public void setTabsWidget(Tabs tabsWidget) {  | |
| 68 | 0 |                  this.tabsWidget = tabsWidget; | 
| 69 | 0 |          } | 
| 70 | ||
| 71 | ||
| 72 | }  |