public class TabPanel extends DivWidget
| Modifier and Type | Class and Description |
|---|---|
static class |
TabPanel.ShowEvent |
static class |
TabPanel.ShownEvent |
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
TabPanel()
Create an empty
Bootstrap.Tabs#ABOVE style TabPanel. |
TabPanel(Bootstrap.Tabs position)
Create an empty TabPanel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget child) |
com.google.gwt.event.shared.HandlerRegistration |
addShowHandler(TabPanel.ShowEvent.Handler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addShownHandler(TabPanel.ShownEvent.Handler handler) |
void |
clear() |
int |
getSelectedTab()
Get Current selected tab index.
|
protected void |
onShow(com.google.gwt.user.client.Event e,
com.google.gwt.dom.client.Element target,
com.google.gwt.dom.client.Element relatedTarget) |
protected void |
onShown(com.google.gwt.user.client.Event e,
com.google.gwt.dom.client.Element target,
com.google.gwt.dom.client.Element relatedTarget) |
boolean |
remove(int index)
Remove tab or tabpane.
|
boolean |
remove(com.google.gwt.user.client.ui.IsWidget child) |
boolean |
remove(com.google.gwt.user.client.ui.Widget w)
remove TabLink or TabPane.
|
void |
selectTab(int index)
Activate tab by index.
|
void |
setTabPosition(String position)
Set tab position
|
addStyle, getId, pullRight, removeStyle, setHideOn, setId, setPullRight, setShowOn, setStyleadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iteratoradd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphanaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, setParent, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic TabPanel()
Bootstrap.Tabs#ABOVE style TabPanel.public TabPanel(Bootstrap.Tabs position)
position - tab position.public void setTabPosition(String position)
position - tab position.public void add(com.google.gwt.user.client.ui.Widget child)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in interface com.google.gwt.user.client.ui.InsertPaneladd in class com.google.gwt.user.client.ui.FlowPanelpublic void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.FlowPanelpublic boolean remove(int index)
If Tablink has TabPane,romve TabPane with TabLink.
remove in interface com.google.gwt.user.client.ui.IndexedPanelremove in class com.google.gwt.user.client.ui.ComplexPanelpublic boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.ComplexPanelpublic boolean remove(com.google.gwt.user.client.ui.IsWidget child)
remove in interface com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetremove in class com.google.gwt.user.client.ui.Panelpublic void selectTab(int index)
index - tab index.public int getSelectedTab()
if not found, return -1.
protected void onShow(com.google.gwt.user.client.Event e,
com.google.gwt.dom.client.Element target,
com.google.gwt.dom.client.Element relatedTarget)
protected void onShown(com.google.gwt.user.client.Event e,
com.google.gwt.dom.client.Element target,
com.google.gwt.dom.client.Element relatedTarget)
public com.google.gwt.event.shared.HandlerRegistration addShowHandler(TabPanel.ShowEvent.Handler handler)
public com.google.gwt.event.shared.HandlerRegistration addShownHandler(TabPanel.ShownEvent.Handler handler)
Copyright © 2016. All rights reserved.