| java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.Composite com.google.gwt.user.client.ui.TabPanel
Constructor Summary | |
public | TabPanel() Creates an empty tab panel. |
Method Summary | |
public void | add(Widget w) | public void | add(Widget w, String tabText) Adds a widget to the tab panel. | public void | add(Widget w, String tabText, boolean asHTML) Adds a widget to the tab panel. | public void | add(Widget w, Widget tabWidget) Adds a widget to the tab panel. | public void | addTabListener(TabListener listener) | public void | clear() | public DeckPanel | getDeckPanel() Gets the deck panel within this tab panel. | public TabBar | getTabBar() Gets the tab bar within this tab panel. | public Widget | getWidget(int index) | public int | getWidgetCount() | public int | getWidgetIndex(Widget widget) | public void | insert(Widget widget, String tabText, boolean asHTML, int beforeIndex) Inserts a widget into the tab panel. | public void | insert(Widget widget, Widget tabWidget, int beforeIndex) Inserts a widget into the tab panel. | public void | insert(Widget widget, String tabText, int beforeIndex) Inserts a widget into the tab panel. | public Iterator<Widget> | iterator() | public boolean | onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) | public void | onTabSelected(SourcesTabEvents sender, int tabIndex) | public boolean | remove(int index) | public boolean | remove(Widget widget) Removes the given widget, and its associated tab. | public void | removeTabListener(TabListener listener) | public void | selectTab(int index) Programmatically selects the specified tab. |
TabPanel | public TabPanel()(Code) | | Creates an empty tab panel.
|
add | public void add(Widget w, String tabText)(Code) | | Adds a widget to the tab panel. If the Widget is already attached to the
TabPanel, it will be moved to the right-most index.
Parameters: w - the widget to be added Parameters: tabText - the text to be shown on its tab |
add | public void add(Widget w, String tabText, boolean asHTML)(Code) | | Adds a widget to the tab panel. If the Widget is already attached to the
TabPanel, it will be moved to the right-most index.
Parameters: w - the widget to be added Parameters: tabText - the text to be shown on its tab Parameters: asHTML - true to treat the specified text as HTML |
add | public void add(Widget w, Widget tabWidget)(Code) | | Adds a widget to the tab panel. If the Widget is already attached to the
TabPanel, it will be moved to the right-most index.
Parameters: w - the widget to be added Parameters: tabWidget - the widget to be shown in the tab |
clear | public void clear()(Code) | | |
getDeckPanel | public DeckPanel getDeckPanel()(Code) | | Gets the deck panel within this tab panel. Adding or removing Widgets from
the DeckPanel is not supported and will throw
UnsupportedOperationExceptions.
the deck panel |
getTabBar | public TabBar getTabBar()(Code) | | Gets the tab bar within this tab panel. Adding or removing tabs from from
the TabBar is not supported and will throw UnsupportedOperationExceptions.
the tab bar |
getWidgetCount | public int getWidgetCount()(Code) | | |
getWidgetIndex | public int getWidgetIndex(Widget widget)(Code) | | |
insert | public void insert(Widget widget, String tabText, boolean asHTML, int beforeIndex)(Code) | | Inserts a widget into the tab panel. If the Widget is already attached to
the TabPanel, it will be moved to the requested index.
Parameters: widget - the widget to be inserted Parameters: tabText - the text to be shown on its tab Parameters: asHTML - true to treat the specified text as HTML Parameters: beforeIndex - the index before which it will be inserted |
insert | public void insert(Widget widget, Widget tabWidget, int beforeIndex)(Code) | | Inserts a widget into the tab panel. If the Widget is already attached to
the TabPanel, it will be moved to the requested index.
Parameters: widget - the widget to be inserted. Parameters: tabWidget - the widget to be shown on its tab. Parameters: beforeIndex - the index before which it will be inserted. |
insert | public void insert(Widget widget, String tabText, int beforeIndex)(Code) | | Inserts a widget into the tab panel. If the Widget is already attached to
the TabPanel, it will be moved to the requested index.
Parameters: widget - the widget to be inserted Parameters: tabText - the text to be shown on its tab Parameters: beforeIndex - the index before which it will be inserted |
remove | public boolean remove(int index)(Code) | | |
remove | public boolean remove(Widget widget)(Code) | | Removes the given widget, and its associated tab.
Parameters: widget - the widget to be removed |
selectTab | public void selectTab(int index)(Code) | | Programmatically selects the specified tab.
Parameters: index - the index of the tab to be selected |
|
|