VALUE
- is the generic type of the value
.ADAPTER_VALUE
- is the generic type of the value
of the adapted
widget
.public abstract class UiWidgetAdapterTestField<VALUE,ADAPTER_VALUE> extends UiWidgetAdapterTest implements UiWidgetAdapterField<VALUE,ADAPTER_VALUE>
UiWidgetAdapterField
for testing without a native toolkit.Modifier and Type | Field and Description |
---|---|
private ADAPTER_VALUE |
value |
private String |
valueAsString |
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 |
---|
UiWidgetAdapterTestField()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ADAPTER_VALUE |
convertValueFromString(String stringValue) |
ADAPTER_VALUE |
getValue()
This method gets the value of this object.
|
String |
getValueAsString()
|
void |
setValue(ADAPTER_VALUE value)
This method sets the
value . |
void |
setValueAsString(String valueAsString)
This method sets the
valueAsString of this object. |
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
isFocused
setFocused
setAccessKey
getAccessKey
setValidationFailure
getValidationFailure
getMaximumTextLength
getAltText
getUrl
getImage
getSelectionMode
getTitle
private ADAPTER_VALUE value
getValue()
private String valueAsString
getValueAsString()
public ADAPTER_VALUE getValue()
getValue
in interface AttributeReadValue<ADAPTER_VALUE>
null
unless otherwise stated.protected abstract ADAPTER_VALUE convertValueFromString(String stringValue)
stringValue
- is the value as String
.public void setValue(ADAPTER_VALUE value)
value
.setValue
in interface AttributeWriteValue<ADAPTER_VALUE>
value
- is the new value
. May be null
unless otherwise stated.public String getValueAsString()
value
as
String
. It returns the value as it is entered by the end-user that may be invalid.getValueAsString
in interface AttributeReadValueAsString
String
if the field is blank.public void setValueAsString(String valueAsString)
valueAsString
of this object. setValueAsString
in interface AttributeWriteValueAsString
valueAsString
- is the new value
as it would have been entered by the user.Copyright © 2001–2016 mmm-Team. All rights reserved.