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_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEYPROPERTY_TITLEPROPERTY_SUMMARYATTRIBUTE_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, setValueAsStringclearValidationFailureSetCount, 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, verifyNotDisposedaddStyle, 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, setUiWidgetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent, setVisiblesetIdgetIdsetTooltipgetTooltipsetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedsetLengthgetLengthgetHeightInPixel, getWidthInPixelgetAttributesetAttributeisFocusedsetFocusedsetAccessKeygetAccessKeysetValuegetValuesetValueAsStringgetValueAsStringsetValidationFailuregetValidationFailuresetMaximumTextLengthgetMaximumTextLengthgetHeightInRowsgetAltTextgetUrlgetImagegetSelectionModegetTitleprivate CharFilter keyboardFilter
getKeyboardFilter()public UiWidgetAdapterTestStringField()
public CharFilter getKeyboardFilter()
accepted
by filter can be entered into the according UI field.getKeyboardFilter in interface AttributeReadKeyboardFilternull 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 AttributeWriteKeyboardFilterkeyboardFilter - 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 AttributeWriteHeightInRowsrows - is the new value for height in text lines to set.public void setAvailableFeatures(RichTextFeature... features)
setAvailableFeatures in interface UiWidgetAdapterRichTextFieldfeatures - are the available RichTextFeatures.UiWidgetRichTextFieldprotected String convertValueFromString(String value)
convertValueFromString in class UiWidgetAdapterTestField<String,String>value - is the value as String.Copyright © 2001–2016 mmm-Team. All rights reserved.