public class UiWidgetAdapterTestStringField extends UiWidgetAdapterTestField<String,String> implements UiWidgetAdapterTextField, UiWidgetAdapterPasswordField, UiWidgetAdapterTextAreaField, UiWidgetAdapterRichTextField, UiWidgetAdapterCodeAreaField
UiWidgetAdapterTextField
for testing without a native toolkit.Modifier and Type | Field and Description |
---|---|
private CharFilter |
keyboardFilter |
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
PROPERTY_TITLE
PROPERTY_SUMMARY
ATTRIBUTE_COLSPAN
Constructor and Description |
---|
UiWidgetAdapterTestStringField()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
convertValueFromString(String value) |
CharFilter |
getKeyboardFilter()
This method gets the keyboard-filter.
|
void |
setAvailableFeatures(RichTextFeature... features) |
void |
setHeightInRows(int rows)
This method sets the
height in rows of this object. |
void |
setKeyboardFilter(CharFilter keyboardFilter)
This method sets the
keyboard-filter . |
getValue, getValueAsString, setValue, setValueAsString
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
setValue
getValue
setValueAsString
getValueAsString
setValidationFailure
getValidationFailure
setMaximumTextLength
getMaximumTextLength
getHeightInRows
getAltText
getUrl
getImage
getSelectionMode
getTitle
private CharFilter keyboardFilter
getKeyboardFilter()
public UiWidgetAdapterTestStringField()
public CharFilter getKeyboardFilter()
accepted
by filter can be entered into the according UI field.getKeyboardFilter
in interface AttributeReadKeyboardFilter
null
if not set.public void setKeyboardFilter(CharFilter keyboardFilter)
keyboard-filter
. Typically such filter is only set once
(e.g. to build custom datatype fields based on generic text input widgets) and then never changed. setKeyboardFilter
in interface AttributeWriteKeyboardFilter
keyboardFilter
- is the keyboard filter to set. An existing filter will be replaced. May be
null
to remove an existing filter.public void setHeightInRows(int rows)
height in rows
of this object.setHeightInRows
in interface AttributeWriteHeightInRows
rows
- is the new value for height in text lines
to set.public void setAvailableFeatures(RichTextFeature... features)
setAvailableFeatures
in interface UiWidgetAdapterRichTextField
features
- are the available RichTextFeature
s.UiWidgetRichTextField
protected String convertValueFromString(String value)
convertValueFromString
in class UiWidgetAdapterTestField<String,String>
value
- is the value as String
.Copyright © 2001–2016 mmm-Team. All rights reserved.