|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.base.AbstractListItem
org.gwtbootstrap3.client.ui.base.AbstractAnchorListItem
org.gwtbootstrap3.client.ui.AnchorListItem
org.gwtbootstrap3.client.ui.TabListItem
public class TabListItem
List item for the nav tabs, needs special toggle and JS to make it work properly
Bootstrap Documentation
<b:NavTabs>
<b:TabListItem/>
<b:TabListItem/>
</b:NavTabs>
NavTabs| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
IndexedPanel.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class org.gwtbootstrap3.client.ui.base.AbstractAnchorListItem |
|---|
anchor |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Fields inherited from interface org.gwtbootstrap3.client.ui.base.HasHref |
|---|
EMPTY_HREF, HREF |
| Constructor Summary | |
|---|---|
TabListItem()
Creates the default widget with no text |
|
TabListItem(String text)
Creates the default widget with the desired text |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addShowHandler(TabShowHandler showHandler)
Add a show handler for the tab |
HandlerRegistration |
addShownHandler(TabShownHandler shownHandler)
Add a shown handler for the tab |
String |
getDataTarget()
Gets the data target of the widget |
String |
getHref()
Get the HREF of the widget |
String |
getHTML()
|
protected void |
onLoad()
|
protected void |
onShow(Event evt)
Can be override by subclasses to handle Tabs's "show" event however it's recommended to add an event handler to the tab. |
protected void |
onShown(Event evt)
Can be override by subclasses to handle Tabs's "shown" event however it's recommended to add an event handler to the tab. |
protected void |
onUnload()
|
void |
setDataTarget(String dataTarget)
Sets the data target for the widget |
void |
setDataTargetWidget(Widget widget)
|
void |
setDataTargetWidgets(List<Widget> widgets)
|
void |
setEnabled(boolean enabled)
|
void |
setHref(String href)
We override set href here because we want to ensure that projects with gwt places and gwtp don't try to execute a place change event with it being clicked |
void |
setHTML(String html)
|
void |
showTab()
Forces the tab pane associated with this list item to be shown and default fires the events |
void |
showTab(boolean fireEvents)
Forces the tab pane associated with this list item to be shown |
| Methods inherited from class org.gwtbootstrap3.client.ui.AnchorListItem |
|---|
getText, setText |
| Methods inherited from class org.gwtbootstrap3.client.ui.base.AbstractAnchorListItem |
|---|
addClickHandler, getDataToggle, getIcon, getIconFlip, getIconPosition, getIconRotate, getIconSize, getTabIndex, getTargetHistoryToken, isIconBordered, isIconFixedWidth, isIconLight, isIconMuted, isIconSpin, setAccessKey, setDataToggle, setFocus, setIcon, setIconBordered, setIconFixedWidth, setIconFlip, setIconLight, setIconMuted, setIconPosition, setIconRotate, setIconSize, setIconSpin, setTabIndex, setTargetHistoryToken |
| Methods inherited from class org.gwtbootstrap3.client.ui.base.AbstractListItem |
|---|
getId, getPull, isActive, isEnabled, setActive, setHiddenOn, setId, setPull, setVisibleOn |
| Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget |
|---|
add, insert, setColor, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop |
| 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.Panel |
|---|
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, 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, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public TabListItem()
public TabListItem(String text)
text - text for the list item| Method Detail |
|---|
public void showTab()
public void showTab(boolean fireEvents)
fireEvents - true=fire show/hide events, false=don't fire show/hide eventspublic HandlerRegistration addShowHandler(TabShowHandler showHandler)
showHandler - show handler
public HandlerRegistration addShownHandler(TabShownHandler shownHandler)
shownHandler - show handler
public void setHref(String href)
setHref in interface HasHrefsetHref in class AbstractAnchorListItemhref - String hrefpublic String getHref()
getHref in interface HasHrefgetHref in class AbstractAnchorListItempublic void setDataTargetWidgets(List<Widget> widgets)
setDataTargetWidgets in interface HasDataTargetpublic void setDataTargetWidget(Widget widget)
setDataTargetWidget in interface HasDataTargetpublic void setDataTarget(String dataTarget)
setDataTarget in interface HasDataTargetdataTarget - data target stringpublic String getDataTarget()
getDataTarget in interface HasDataTargetpublic void setEnabled(boolean enabled)
setEnabled in interface HasEnabledsetEnabled in class AbstractAnchorListItemprotected void onLoad()
onLoad in class Widgetprotected void onUnload()
onUnload in class Widgetpublic String getHTML()
public void setHTML(String html)
protected void onShow(Event evt)
evt - EventShowEventprotected void onShown(Event evt)
evt - EventShownEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||