org.gwtbootstrap3.client.ui
Class TabPane
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
org.gwtbootstrap3.client.ui.base.ComplexWidget
org.gwtbootstrap3.client.ui.html.Div
org.gwtbootstrap3.client.ui.TabPane
- All Implemented Interfaces:
- HasAttachHandlers, HasHandlers, EventListener, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>, HasActive, HasId, HasInlineStyle, HasPull, HasResponsiveness
public class TabPane
- extends Div
- implements HasActive
Container widget for the tab pane
Bootstrap Documentation
UiBinder example
<b:TabContent>
<b:TabPane/>
<b:TabPane/>
</b:TabContent>
- Author:
- Joshua Godi
- See Also:
TabContent
|
Constructor Summary |
TabPane()
Creates the default widget with the default styles |
|
Method Summary |
boolean |
isActive()
Gets whether or not the widget has the active styles |
void |
setActive(boolean active)
Sets the widget with the active styles or not |
void |
setFade(boolean fade)
Sets whether or not to fade the tab pane in/out when clicked
Must set in="true" on the first tab if using fade!! |
void |
setIn(boolean in)
When using fade, but set the first tabpane with in="true" to work properly |
| Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget |
add, getId, getPull, insert, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
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 |
TabPane
public TabPane()
- Creates the default widget with the default styles
setFade
public void setFade(boolean fade)
- Sets whether or not to fade the tab pane in/out when clicked
Must set in="true" on the first tab if using fade!!
- Parameters:
fade - true=fade content in/out, false=don't fade
setIn
public void setIn(boolean in)
- When using fade, but set the first tabpane with in="true" to work properly
- Parameters:
in - whether or not the first tab pane will be faded properly
setActive
public void setActive(boolean active)
- Sets the widget with the active styles or not
- Specified by:
setActive in interface HasActive
- Parameters:
active - true=gets active styles, false=removes active styles
isActive
public boolean isActive()
- Gets whether or not the widget has the active styles
- Specified by:
isActive in interface HasActive
- Returns:
- true=has active styles, false=does not have active styles
Copyright © 2015. All rights reserved.