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
@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 int
protected int
protected String
protected RegexpValidator
protected SizeValidator<? super V>
Fields inherited from class io.jmix.flowui.component.delegate.AbstractFieldDelegate
applicationContext, datatype, explicitlyInvalid, messages, metadataTools, PROPERTY_INVALID, requiredMessage, 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
setMaxLength
(int maxLength) void
setMinLength
(int minLength) void
setPattern
(String pattern) protected void
protected void
Methods inherited from class io.jmix.flowui.component.delegate.AbstractFieldDelegate
addValidator, applyDefaultValueFormat, executeValidators, formatMessage, getComponentErrorMessage, getComponentValue, getDatatype, getMessage, getRequiredErrorMessage, getRequiredMessage, isInvalid, isInvalidInternal, setApplicationContext, setComponentErrorMessage, setComponentRequiredErrorState, setDatatype, setInvalid, setInvalidInternal, setMessages, setMetadataTools, setRequiredMessage, 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
-
pattern
-
maxLength
protected int maxLength -
minLength
protected int minLength
-
-
Constructor Details
-
TextInputFieldDelegate
-
-
Method Details
-
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() -
isStringDatatype
protected boolean isStringDatatype() -
createValueBinding
- Specified by:
createValueBinding
in classAbstractValueComponentDelegate<C extends com.vaadin.flow.component.AbstractField<?,
String>, V, String>
-
createSizeValidator
-
createRegexpValidator
-