View Javadoc

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.tabs;
17  
18  import org.kuali.student.common.ui.client.mvc.Callback;
19  import org.kuali.student.common.ui.client.widgets.tabs.KSTabPanel.TabPanelStyle;
20  import org.kuali.student.common.ui.client.widgets.tabs.KSTabPanel.TabPosition;
21  
22  import com.google.gwt.user.client.ui.Composite;
23  import com.google.gwt.user.client.ui.Image;
24  import com.google.gwt.user.client.ui.Widget;
25  
26  public abstract class KSTabPanelAbstract extends Composite {
27  	
28  	public abstract void addTab(String key, Widget tabWidget, Widget content, TabPosition position);
29  	
30  	public abstract void addTab(String key, String label, Widget content, TabPosition position);
31  	
32  	public abstract void addTab(String key, String label, Image image, Widget content, TabPosition position);
33  	
34  	public abstract void addTab(String key, String label, Image image, Widget content);
35  	
36  	public abstract void addTab(String key, String label, Widget content);
37  	
38  	public abstract void addTab(String key, Widget tabWidget, Widget content);
39  
40  	public abstract void selectTab(String key);
41  	
42  	public abstract void removeTab(String key);
43  	
44      public abstract void addStyleName(String style);
45  
46      public abstract int getTabCount();
47      
48      public abstract void addTabCustomCallback(String key, Callback<String> callback);
49      
50      public abstract void removeTabCustomCallbacks(String key);
51      
52      public abstract String getSelectedTabKey();
53  
54      public abstract boolean hasTabKey(String key);
55      
56      public abstract void setTabPanelStyle(TabPanelStyle style);
57  
58  }