public interface UiWidgetTabPanel extends UiWidgetDynamicPanel<UiWidgetTab>, UiWidgetSwitchComposite<UiWidgetTab>, UiWidgetNative
panel widget
that represents a tab panel
. It
contains a number of children
but only shows one of them at a time. On the top it
shows a tab header with the labels
of its children
.
The user can click on one of these tabs in order to see the actual content
of the according tab. tab
. For convenience usage there is also
addChild(UiWidgetRegular, String)
.Modifier and Type | Field and Description |
---|---|
static String |
STYLE_PRIMARY
The default
primary style of this widget. |
STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
Modifier and Type | Method and Description |
---|---|
UiWidgetTab |
addChild(UiWidgetRegular child,
String label)
This method adds the given
UiWidgetRegular as new tab on the right of all existing tabs. |
showChild, showChild, showChild
addChild, addChild
removeChild, removeChild
getChild, getChild
getChildCount, getChildIndex
getContext, getParent, getSize
clearMessages
addEventHandler, removeEventHandler
setMode
getMode
setModeFixed
getModeFixed
setId
getId
setTooltip
getTooltip
getVisibleFlag, isVisible, setVisible, setVisible
isVisibleRecursive
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
isModified
getAriaRole
validate
static final String STYLE_PRIMARY
primary style
of this widget.UiWidgetTab addChild(UiWidgetRegular child, String label)
UiWidgetRegular
as new tab on the right of all existing tabs. This is
a convenience method for the following code:
UiWidgetTab
tab =widgetFactory
.create(UiWidgetTab
.class); tab.setTitle(title); tab.setChild(child);tabPanel
.addChild(tab);
child
- is the child widget
to add. The given component instance must be
created by the same factory.label
- is the label that will be displayed to identify the tab.UiWidgetTab
for this tab. It allows to change the title, set tooltip or image (icon),
etc.Copyright © 2001–2016 mmm-Team. All rights reserved.