Coverage Report - org.kuali.student.common.ui.client.widgets.impl.KSTabPanelImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
KSTabPanelImpl
0%
0/22
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.common.ui.client.widgets.impl;
 17  
 
 18  
 import org.kuali.student.common.ui.client.widgets.KSTabPanelAbstract;
 19  
 
 20  
 import com.google.gwt.event.logical.shared.SelectionHandler;
 21  
 import com.google.gwt.user.client.ui.DecoratedTabPanel;
 22  
 import com.google.gwt.user.client.ui.TabBar;
 23  
 import com.google.gwt.user.client.ui.Widget;
 24  
 
 25  
 @Deprecated
 26  
 public class KSTabPanelImpl extends KSTabPanelAbstract {
 27  
 
 28  0
     private final DecoratedTabPanel panel = new DecoratedTabPanel();
 29  
 
 30  
     public KSTabPanelImpl() {
 31  0
         super();
 32  0
         panel.addStyleName("KS-Tab-Panel");
 33  0
         TabBar tabBar = panel.getTabBar();
 34  0
         tabBar.addStyleName("KS-Tab-Panel-BarItem");
 35  0
         initWidget(panel);
 36  0
     }
 37  
 
 38  
     @Override
 39  
     public void addTab(Widget w, String tabText){
 40  0
         panel.add(w, tabText);
 41  0
     }
 42  
 
 43  
     @Override
 44  
     public void addTab(Widget w, Widget tab){
 45  0
         panel.add(w, tab);
 46  0
     }
 47  
 
 48  
     @Override
 49  
     public boolean removeTab(int index) {
 50  0
         return panel.remove(index);
 51  
     }
 52  
 
 53  
     @Override
 54  
     public void removeTab(Widget widget) {
 55  0
         panel.remove(widget);
 56  0
     }
 57  
 
 58  
     @Override
 59  
     public void selectTab(int index) {
 60  0
         panel.selectTab(index);
 61  0
     }
 62  
 
 63  
     @Override
 64  
     public int getTabCount() {
 65  0
         return panel.getWidgetCount();
 66  
     }
 67  
 
 68  
     @Override
 69  
     public void addStyleName(String style) {
 70  0
         panel.addStyleName(style);
 71  0
     }
 72  
 
 73  
 
 74  
     @Override
 75  
     public void addSelectionHandler(SelectionHandler<Integer> handler) {
 76  0
         panel.addSelectionHandler(handler);
 77  0
     }
 78  
 
 79  
     @Override
 80  
     public int getWidgetIndex(Widget widget) {
 81  0
         return panel.getWidgetIndex(widget);
 82  
     }
 83  
 }