CHILD
- is the generic type of the children
.public interface UiWidgetSwitchComposite<CHILD extends UiWidget> extends UiWidgetDynamicComposite<CHILD>
dynamic composite widget
that only shows a
single child
at a time. You can switch
the displayed
child
programmatically.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 |
---|---|
boolean |
showChild(CHILD child)
This method shows the given
child . |
void |
showChild(int index)
This method shows the
child with the given index. |
boolean |
showChild(String id)
This method
shows the child identified by the given id . |
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
void showChild(int index)
child
with the given index.index
- is the index
of the child to show. It has to be in the range from
0
to UiWidgetAbstractComposite.getChildCount()
- 1
.boolean showChild(String id)
shows the child
identified by the given id
.Copyright © 2001–2016 mmm-Team. All rights reserved.