ADAPTER
- is the generic type of AbstractUiWidgetNative.getWidgetAdapter()
.public abstract class AbstractUiWidgetTextFieldBase<ADAPTER extends UiWidgetAdapterTextFieldBase> extends AbstractUiWidgetTextualInputField<ADAPTER,String,String> implements AttributeWriteKeyboardFilter
UiWidgetTextField
or UiWidgetTextAreaField
.AbstractUiWidgetNative.SizeImpl
AbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer
Modifier and Type | Field and Description |
---|---|
private CharFilter |
keyboardFilter |
STYLE_FIELD, STYLE_LABEL, STYLE_MANDATORY, STYLE_VIEW
STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_LABEL
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
Constructor and Description |
---|
AbstractUiWidgetTextFieldBase(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
CharFilter |
getKeyboardFilter()
This method gets the keyboard-filter.
|
protected void |
initializeWidgetAdapter(ADAPTER adapter)
This method is called from
AbstractUiWidgetNative.getWidgetAdapter() to initialize the UiWidgetAdapter . |
void |
setKeyboardFilter(CharFilter keyboardFilter)
This method sets the
keyboard-filter . |
getMaximumTextLength, setMaximumTextLength
clearValidationFailure, convertFromValue, convertToValue, doGetValue, doSetValue, getLabel, getLabelWidget, getNullValue, getSource, getValidationFailure, getValueAsString, getValueClass, getValueDirect, isTrimValue, setId, setLabel, setMandatory, setTrimValue, setValidationFailure, setValue, setValueAsString, setVisible, toString
addFocusHandler, getAccessKey, isFocused, onAccessKeyPressed, removeFocusHandler, setAccessKey, setFocused, setFocused
addChangeHandler, addStyle, clearMessages, clearValidity, createSize, createUniqueId, createWidgetAdapter, dispose, doSetMode, doValidate, getAriaRole, getAriaRoleFixedType, getChild, getChild, getChildCount, getChildIndex, getId, getIndexOfStyle, getMode, getModeFixed, getParent, getPrimaryStyle, getSize, getStyles, getTooltip, getVisibleFlag, getWidgetAdapter, getWidgetAdapter, hasStyle, hasWidgetAdapter, isDisposed, isEnabled, isModifiedRecursive, isVisible, isVisibleRecursive, removeChangeHandler, removeFromParent, removeStyle, setAriaRole, setEnabled, setIdPrefix, setMode, setMode, setModeFixed, setParent, setPrimaryStyle, setStyles, setTooltip, setVisible, visibilityChanged
addEventHandler, addValidator, clearMessagesLocal, convertValueToString, fireEvent, fireValueChange, getBasicUtil, getContext, getDataBinding, getDataBinding, getDataBindingForWidget, getEventSender, getFactory, getLogger, getObserverSource, getOriginalValue, getRecentValue, getValueOrException, getWidgetAdapter, hasEventSender, isMandatory, isModified, removeEventHandler, removeFromParent, removeValidator, setModified, setParent
addValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLabel, getLabelWidget, setLabel
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
getValue
getValueAndValidate, getValueDirect
addChangeHandler, removeChangeHandler
resetValue, setValue, setValue, setValueForUser
getOriginalValue, getValueOrException
addValidatorMandatory, isMandatory
addValidator, removeValidator
setValueAsString
getValueAsString
setValidationFailure
getValidationFailure
setTrimValue
isTrimValue
setAccessKey
getAccessKey
addFocusHandler, removeFocusHandler
isFocused
setFocused
private CharFilter keyboardFilter
getKeyboardFilter()
public AbstractUiWidgetTextFieldBase(UiContext context, ADAPTER widgetAdapter)
context
- is the context
.widgetAdapter
- is the widget adapter
. Typically null
for
lazy initialization.protected void initializeWidgetAdapter(ADAPTER adapter)
AbstractUiWidgetNative.getWidgetAdapter()
to initialize the UiWidgetAdapter
. All
attributes of this widget need to be set in the UiWidgetAdapter
.initializeWidgetAdapter
in class AbstractUiWidgetTextualInputField<ADAPTER extends UiWidgetAdapterTextFieldBase,String,String>
adapter
- is the UiWidgetAdapter
to initialize.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 CharFilter getKeyboardFilter()
accepted
by filter can be entered into the according UI field.getKeyboardFilter
in interface AttributeReadKeyboardFilter
null
if not set.Copyright © 2001–2016 mmm-Team. All rights reserved.