Class TextInputFieldDelegate<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.TextInputFieldDelegate<C,V>
- All Implemented Interfaces:
ValueBindingDelegate<V>
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
EmailFieldDelegate
@Primary
@Component("flowui_TextFieldDelegate")
@Scope("prototype")
public class TextInputFieldDelegate<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
Modifier and TypeFieldDescriptionprotected DataAwareComponentsTools
protected int
protected int
protected String
protected RegexpValidator
protected 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, validators
Fields inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegate
valueBinding
Fields inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegate
component
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected RegexpValidator
createRegexpValidator
(String pattern) protected SizeValidator<V>
protected AbstractValueBinding<V>
createValueBinding
(ValueSource<V> valueSource) int
int
protected boolean
void
setDataAwareComponentsTools
(DataAwareComponentsTools dataAwareComponentsTools) void
setMaxLength
(int maxLength) void
setMinLength
(int minLength) void
setPattern
(String pattern) protected void
setupProperties
(EntityValueSource<?, V> valueSource) protected void
protected void
Methods inherited from class io.jmix.flowui.component.delegate.AbstractFieldDelegate
addValidator, applyDefaultValueFormat, executeValidators, formatMessage, getComponentValue, getDatatype, getErrorMessage, getMessage, getRequiredErrorMessage, getRequiredMessage, isInvalid, isInvalidInternal, setApplicationContext, setComponentRequiredErrorState, setConversionInvalid, setDatatype, setErrorMessage, setInvalid, setInvalidInternal, setMessages, setMetadataTools, setRequiredMessage, setStatusChangeHandler, setToModelConverter, updateInvalidState, validatorsPassed
Methods inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegate
addValueBindingChangeListener, getEventBus, getValueBinding, getValueSource, setValueSource, valueBindingChanged
Methods 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
-
TextInputFieldDelegate
-
-
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:
setupProperties
in classAbstractValueComponentDelegate<C extends com.vaadin.flow.component.AbstractField<?,
String>, V, String>
-
isStringDatatype
protected boolean isStringDatatype() -
createValueBinding
- Specified by:
createValueBinding
in classAbstractValueComponentDelegate<C extends com.vaadin.flow.component.AbstractField<?,
String>, V, String>
-
createSizeValidator
-
createRegexpValidator
-