Class AbstractTextInputFieldDelegate<C extends com.vaadin.flow.component.AbstractField<?,String>,V>
java.lang.Object
io.jmix.flowui.component.delegate.AbstractComponentDelegate<C>
io.jmix.flowui.component.delegate.AbstractValueComponentDelegate<C,T,V>
io.jmix.flowui.component.delegate.AbstractFieldDelegate<C,V,String>
io.jmix.flowui.component.delegate.AbstractTextInputFieldDelegate<C,V>
- Type Parameters:
C- component typeV- component value type
- All Implemented Interfaces:
ValueBindingDelegate<V>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
EmailFieldDelegate,TextInputFieldDelegate
public abstract class AbstractTextInputFieldDelegate<C extends com.vaadin.flow.component.AbstractField<?,String>,V>
extends AbstractFieldDelegate<C,V,String>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.component.delegate.ValueBindingDelegate
ValueBindingDelegate.ValueBindingChangeEvent<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataAwareComponentsToolsprotected intprotected intprotected Stringprotected RegexpValidatorprotected SizeValidator<? super V>Fields inherited from class io.jmix.flowui.component.delegate.AbstractFieldDelegate
applicationContext, conversionInvalid, datatype, errorMessage, explicitlyInvalid, messages, metadataTools, PROPERTY_INVALID, requiredMessage, statusChangeHandler, toModelConverter, uiComponentProperties, validatorsFields inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegate
valueBindingFields inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegate
component -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RegexpValidatorcreateRegexpValidator(String pattern) protected SizeValidator<V>protected AbstractValueBinding<V>createValueBinding(ValueSource<V> valueSource) intintprotected booleanvoidsetDataAwareComponentsTools(DataAwareComponentsTools dataAwareComponentsTools) voidsetMaxLength(int maxLength) voidsetMinLength(int minLength) voidsetPattern(String pattern) protected voidsetupProperties(ValueSource<V> valueSource) protected voidprotected voidMethods inherited from class io.jmix.flowui.component.delegate.AbstractFieldDelegate
addValidator, applyDefaultValueFormat, executeValidators, formatMessage, getComponentValue, getDatatype, getErrorMessage, getMessage, getRequiredErrorMessage, getRequiredMessage, isEmptyAndRequired, isInvalid, isInvalidInternal, setApplicationContext, setComponentRequiredErrorState, setConversionInvalid, setDatatype, setErrorMessage, setInvalid, setInvalidInternal, setMessages, setMetadataTools, setRequiredMessage, setStatusChangeHandler, setToModelConverter, setUiComponentProperties, updateInvalidState, validatorsPassedMethods inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegate
addValueBindingChangeListener, getEventBus, getValueBinding, getValueSource, setValueSource, valueBindingChangedMethods inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegate
getComponent
-
Field Details
-
sizeValidator
-
regexpValidator
-
dataAwareComponentsTools
-
pattern
-
maxLength
protected int maxLength -
minLength
protected int minLength
-
-
Constructor Details
-
AbstractTextInputFieldDelegate
-
-
Method Details
-
setDataAwareComponentsTools
@Autowired public void setDataAwareComponentsTools(DataAwareComponentsTools dataAwareComponentsTools) -
getPattern
-
setPattern
-
getMaxLength
public int getMaxLength() -
setMaxLength
public void setMaxLength(int maxLength) -
getMinLength
public int getMinLength() -
setMinLength
public void setMinLength(int minLength) -
setupRegexpValidation
protected void setupRegexpValidation() -
setupSizeValidation
protected void setupSizeValidation() -
setupProperties
- Overrides:
setupPropertiesin classAbstractValueComponentDelegate<C extends com.vaadin.flow.component.AbstractField<?,String>, V, String>
-
isStringDatatype
protected boolean isStringDatatype() -
createValueBinding
- Specified by:
createValueBindingin classAbstractValueComponentDelegate<C extends com.vaadin.flow.component.AbstractField<?,String>, V, String>
-
createSizeValidator
-
createRegexpValidator
-