public class TabPanel extends DivWidget
| Modifier and Type | Class and Description |
|---|---|
static class |
TabPanel.ShowEvent |
static class |
TabPanel.ShownEvent |
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledInsertPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| 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(Widget child) |
HandlerRegistration |
addShowHandler(TabPanel.ShowEvent.Handler handler) |
HandlerRegistration |
addShownHandler(TabPanel.ShownEvent.Handler handler) |
void |
clear() |
int |
getSelectedTab()
Get Current selected tab index.
|
protected void |
onShow(Event e,
Element target,
Element relatedTarget) |
protected void |
onShown(Event e,
Element target,
Element relatedTarget) |
boolean |
remove(int index)
Remove tab or tabpane.
|
boolean |
remove(IsWidget child) |
boolean |
remove(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, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, 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, waitaddgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndexpublic 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(Widget child)
add in interface HasWidgetsadd in interface InsertPaneladd in class FlowPanelpublic void clear()
clear in interface HasWidgetsclear in class FlowPanelpublic boolean remove(int index)
If Tablink has TabPane,romve TabPane with TabLink.
remove in interface IndexedPanelremove in class ComplexPanelpublic boolean remove(Widget w)
remove in interface HasWidgetsremove in class ComplexPanelpublic boolean remove(IsWidget child)
remove in interface HasWidgets.ForIsWidgetremove in class Panelpublic void selectTab(int index)
index - tab index.public int getSelectedTab()
if not found, return -1.
public HandlerRegistration addShowHandler(TabPanel.ShowEvent.Handler handler)
public HandlerRegistration addShownHandler(TabPanel.ShownEvent.Handler handler)
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.