public class TabListItem extends AnchorListItem implements HasDataTarget
<b:NavTabs>
<b:TabListItem/>
<b:TabListItem/>
</b:NavTabs>
NavTabsUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledIndexedPanel.ForIsWidgetHasWidgets.ForIsWidgetanchorDEBUG_ID_PREFIXEMPTY_HREF, HREF| Constructor and Description |
|---|
TabListItem()
Creates the default widget with no text
|
TabListItem(String text)
Creates the default widget with the desired text
|
TabListItem(String text,
IconType iconType) |
TabListItem(String text,
IconType iconType,
IconSize iconSize) |
TabListItem(String text,
String badgeText) |
| Modifier and Type | Method and Description |
|---|---|
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
|
getText, setTextaddClickHandler, getBadgePosition, getBadgeText, getDataToggle, getIcon, getIconFlip, getIconPosition, getIconRotate, getIconSize, getTabIndex, getTargetHistoryToken, isIconBordered, isIconFixedWidth, isIconInverse, isIconPulse, isIconSpin, setAccessKey, setBadgePosition, setBadgeText, setDataToggle, setFocus, setIcon, setIconBordered, setIconFixedWidth, setIconFlip, setIconInverse, setIconPosition, setIconPulse, setIconRotate, setIconSize, setIconSpin, setTabIndex, setTargetHistoryTokengetId, getPull, isActive, isEnabled, setActive, setHiddenOn, setId, setPull, setVisibleOnadd, insert, insert, remove, setColor, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTopadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, removeadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventforEach, spliteratorpublic TabListItem()
public TabListItem(String text)
text - text for the list itempublic TabListItem(String text, IconType iconType)
public TabListItem(String text, IconType iconType, IconSize iconSize)
public TabListItem(String text, String badgeText)
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 handlerpublic HandlerRegistration addShownHandler(TabShownHandler shownHandler)
shownHandler - show handlerpublic 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 onShow(Event evt)
evt - EventShowEventprotected void onShown(Event evt)
evt - EventShownEventCopyright © 2017. All rights reserved.