View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.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/ecl2.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.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.element.Action;
23  
24  import java.util.HashSet;
25  import java.util.Set;
26  
27  /**
28   * Special <code>Group</code> that renders a tab navigation section
29   *
30   * <p>
31   * Only supports <code>Action</code> instances within the container. These
32   * are used to provide the items (or individual links) within the navigation.
33   * </p>
34   *
35   * @author Kuali Rice Team (rice.collab@kuali.org)
36   */
37  @BeanTag(name = "tabNavigationGroup-bean", parent = "Uif-TabNavigationGroup")
38  public class TabNavigationGroup extends GroupBase {
39      private static final long serialVersionUID = -7263923392768546340L;
40  
41      public TabNavigationGroup() {
42          super();
43      }
44  
45      /**
46       * {@inheritDoc}
47       */
48      @Override
49      public Set<Class<? extends Component>> getSupportedComponents() {
50          Set<Class<? extends Component>> supportedComponents = new HashSet<Class<? extends Component>>();
51          supportedComponents.add(Action.class);
52  
53          return supportedComponents;
54      }
55  }