public class TabListItem extends AnchorListItem implements HasDataTarget
<b:NavTabs>
<b:TabListItem/>
<b:TabListItem/>
</b:NavTabs>
NavTabs
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
IndexedPanel.ForIsWidget
HasWidgets.ForIsWidget
anchor
DEBUG_ID_PREFIX
EMPTY_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, setText
addClickHandler, 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, setTargetHistoryToken
getId, getPull, isActive, isEnabled, setActive, setHiddenOn, setId, setPull, setVisibleOn
add, insert, insert, remove, setColor, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
forEach, spliterator
public 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 HasHref
setHref
in class AbstractAnchorListItem
href
- String hrefpublic String getHref()
getHref
in interface HasHref
getHref
in class AbstractAnchorListItem
public void setDataTargetWidgets(List<Widget> widgets)
setDataTargetWidgets
in interface HasDataTarget
public void setDataTargetWidget(Widget widget)
setDataTargetWidget
in interface HasDataTarget
public void setDataTarget(String dataTarget)
setDataTarget
in interface HasDataTarget
dataTarget
- data target stringpublic String getDataTarget()
getDataTarget
in interface HasDataTarget
public void setEnabled(boolean enabled)
setEnabled
in interface HasEnabled
setEnabled
in class AbstractAnchorListItem
protected void onShow(Event evt)
evt
- EventShowEvent
protected void onShown(Event evt)
evt
- EventShownEvent
Copyright © 2017. All rights reserved.