001 /** 002 * Copyright 2010 The Kuali Foundation Licensed under the 003 * Educational Community License, Version 2.0 (the "License"); you may 004 * not use this file except in compliance with the License. You may 005 * obtain a copy of the License at 006 * 007 * http://www.osedu.org/licenses/ECL-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, 010 * software distributed under the License is distributed on an "AS IS" 011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 012 * or implied. See the License for the specific language governing 013 * permissions and limitations under the License. 014 */ 015 016 package org.kuali.student.common.ui.client.widgets; 017 018 import org.kuali.student.common.ui.client.widgets.impl.KSTabPanelImpl; 019 020 import com.google.gwt.core.client.GWT; 021 import com.google.gwt.event.logical.shared.SelectionHandler; 022 import com.google.gwt.user.client.ui.Widget; 023 024 /** 025 * This is a description of what this class does - Gary Struthers don't forget to fill this in. 026 * 027 * @author Kuali Student Team (gstruthers@berkeley.edu) 028 * 029 */ 030 @Deprecated 031 public class KSTabPanel extends KSTabPanelAbstract { 032 033 private KSTabPanelAbstract panel = GWT.create(KSTabPanelImpl.class); 034 035 /** 036 * This constructs a ... 037 * 038 */ 039 public KSTabPanel() { 040 initWidget(panel); 041 } 042 043 public void addStyleName(String style) { 044 panel.addStyleName(style); 045 } 046 047 public int getTabCount() { 048 return panel.getTabCount(); 049 } 050 051 public void selectTab(int index) { 052 panel.selectTab(index); 053 } 054 055 public void removeTab(Widget widget) { 056 panel.removeTab(widget); 057 } 058 059 public boolean removeTab(int index) { 060 return panel.removeTab(index); 061 } 062 063 public void addTab(Widget w, String tabText) { 064 panel.addTab(w, tabText); 065 } 066 067 public void addTab(Widget w, Widget tab) { 068 panel.addTab(w, tab); 069 } 070 071 @Override 072 public void addSelectionHandler(SelectionHandler<Integer> handler) { 073 panel.addSelectionHandler(handler); 074 } 075 076 @Override 077 public int getWidgetIndex(Widget widget) { 078 return panel.getWidgetIndex(widget); 079 } 080 081 }