public class TabPanel extends DivWidget
Modifier and Type | Class and Description |
---|---|
static class |
TabPanel.ShowEvent |
static class |
TabPanel.ShownEvent |
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_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, setStyle
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, 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, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex
public 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 HasWidgets
add
in interface InsertPanel
add
in class FlowPanel
public void clear()
clear
in interface HasWidgets
clear
in class FlowPanel
public boolean remove(int index)
If Tablink has TabPane,romve TabPane with TabLink.
remove
in interface IndexedPanel
remove
in class ComplexPanel
public boolean remove(Widget w)
remove
in interface HasWidgets
remove
in class ComplexPanel
public boolean remove(IsWidget child)
remove
in interface HasWidgets.ForIsWidget
remove
in class Panel
public 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.