public class DynamicTabPanel
extends Composite
Constructor and Description |
---|
DynamicTabPanel()
Create an empty dynamic tab panel
|
Modifier and Type | Method and Description |
---|---|
void |
add(Widget tabHeader,
Widget tabContents)
Add a tab to the panel
|
void |
addClickHandler(ClickHandler handler)
Add a handler for click events on the tabs
|
void |
clear()
Clear all tabs
|
Widget |
getTabContents(int i)
Get the
|
Widget |
getTabContents(Widget tabHeader) |
int |
getTabCount()
Get the total number of tabs
|
int |
getVisibleIndex()
Get the index of the visible widget
|
Widget |
getVisibleWidget()
Get the content widget that is currently visible
|
void |
insert(int position,
Widget tabHeader,
Widget tabContents)
Insert a tab at the specified position
|
void |
openTab(int index)
Open the tab at the specified index
|
void |
openTab(Widget tabHeader)
Open the tab with the specified header widget
|
void |
remove(Widget tabHeader)
Removed the tab matching the specified widget header
|
public void insert(int position, Widget tabHeader, Widget tabContents)
position
- positiontabHeader
- header widgettabContents
- contentspublic void add(Widget tabHeader, Widget tabContents)
tabHeader
- widget for the tabtabContents
- contents of the tabpublic void clear()
public void openTab(int index)
index
- public void openTab(Widget tabHeader)
tabHeader
- public int getTabCount()
public Widget getTabContents(int i)
i
- public Widget getTabContents(Widget tabHeader)
public Widget getVisibleWidget()
public int getVisibleIndex()
public void remove(Widget tabHeader)
tabHeader
- public void addClickHandler(ClickHandler handler)
handler
- University of Colorado Denver, Department of Biostatistics and Informatics