CHILD
- is the generic type of the children
.public class UiWidgetAdapterTestComposite<CHILD extends UiWidget> extends UiWidgetAdapterTest implements UiWidgetAdapterSwitchComposite<CHILD>, UiWidgetAdapterSingleMutableComposite<CHILD>
UiWidgetAdapterComposite
and various
sub-interfaces for testing without a native toolkit.HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
PROPERTY_TITLE
PROPERTY_SUMMARY
ATTRIBUTE_COLSPAN
Constructor and Description |
---|
UiWidgetAdapterTestComposite()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(CHILD child,
int index)
This method adds the given
child at the given index . |
void |
removeChild(CHILD child,
int index)
This method removes the given
child from the widget . |
void |
setChild(CHILD child)
This method sets the single child of this widget.
|
void |
showChild(int index)
This method shows the
child with the given index . |
clearValidationFailureSetCount, createAbsoluteImageUrl, createToplevelWidget, dispose, getHeightInPixel, getLength, getSummary, getValidationFailure, getValidationFailureSetCount, getWidthInPixel, isCollapsed, isTitleVisible, removeFromParent, setAccessKey, setAltText, setAttribute, setCollapsed, setEnabled, setEventSender, setFocused, setId, setImage, setLabel, setLength, setMaximumTextLength, setSelectionMode, setStyles, setSummary, setTitle, setTitleVisible, setTooltip, setUrl, setValidationFailure, setVisible, verifyNotDisposed
addStyle, createLabel, getAccessKey, getActiveWidget, getAltText, getAttribute, getBundle, getColumnSpan, getContext, getHeightInRows, getId, getImage, getLabel, getMaximumTextLength, getPrimaryStyle, getSelectionMode, getStyles, getTitle, getTooltip, getToplevelWidget, getUiWidget, getUiWidgetTyped, getUrl, hasStyle, isDisposed, isEnabled, isFocused, isResizable, isStyleDeltaSupported, removeStyle, setMode, setParent, setPrimaryStyle, setUiWidget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent, setVisible
setId
getId
setTooltip
getTooltip
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
setLength
getLength
getHeightInPixel, getWidthInPixel
getAttribute
setAttribute
getMaximumTextLength
getAltText
getUrl
isFocused
getAccessKey
getImage
getSelectionMode
getTitle
public UiWidgetAdapterTestComposite()
public void setChild(CHILD child)
setChild
in interface UiWidgetAdapterSingleComposite<CHILD extends UiWidget>
child
- is the new child to set.public void removeChild(CHILD child, int index)
child
from the widget
.removeChild
in interface UiWidgetAdapterDynamicComposite<CHILD extends UiWidget>
child
- is the child to remove.index
- is the index of the child to remove.public void addChild(CHILD child, int index)
child
at the given index
.addChild
in interface UiWidgetAdapterDynamicComposite<CHILD extends UiWidget>
child
- is the UiWidget
to add as child of this panel.index
- -1
to add the child
at the end, otherwise the index where to
insert the given child
.UiWidgetDynamicComposite.addChild(UiWidget, int)
,
List.add(int, Object)
public void showChild(int index)
child
with the given index
.showChild
in interface UiWidgetAdapterSwitchComposite<CHILD extends UiWidget>
index
- is the index of the child to show.Copyright © 2001–2016 mmm-Team. All rights reserved.