Class AbstractFieldDelegate<C extends com.vaadin.flow.component.AbstractField<?,V>,T,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,T,V>  
- Type Parameters:
- C- component type
- T- value source value type
- V- component value type
- All Implemented Interfaces:
- ValueBindingDelegate<T>,- org.springframework.beans.factory.Aware,- org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
- AbstractDateTimeFieldDelegate,- AbstractNumberFieldDelegate,- AbstractTextInputFieldDelegate,- CollectionFieldDelegate,- EntityCollectionFieldDelegate,- EntityFieldDelegate,- FieldDelegate,- FileFieldDelegate,- RichTextEditorDelegate,- TextAreaFieldDelegate,- TwinColumnDelegate
public abstract class AbstractFieldDelegate<C extends com.vaadin.flow.component.AbstractField<?,V>,T,V>   
extends AbstractValueComponentDelegate<C,T,V>
implements org.springframework.context.ApplicationContextAware  
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.jmix.flowui.component.delegate.ValueBindingDelegateValueBindingDelegate.ValueBindingChangeEvent<T>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected booleanprotected Stringprotected booleanprotected booleanprotected Messagesprotected MetadataToolsstatic final Stringprotected Stringprotected Consumer<SupportsStatusChangeHandler.StatusContext<C>>protected UiComponentPropertiesFields inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegatevalueBindingFields inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegatecomponent
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddValidator(Validator<? super T> validator) applyDefaultValueFormat(Object value) voidprotected StringformatMessage(String key, Object... params) protected Tprotected StringgetMessage(String key) protected Stringprotected booleanbooleanprotected booleanvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) protected voidvoidsetConversionInvalid(boolean conversionInvalid) voidsetDatatype(Datatype<T> datatype) voidsetErrorMessage(String errorMessage) voidsetInvalid(boolean invalid) protected voidsetInvalidInternal(boolean invalid) voidsetMessages(Messages messages) voidsetMetadataTools(MetadataTools metadataTools) voidsetRequiredMessage(String requiredMessage) voidsetStatusChangeHandler(Consumer<SupportsStatusChangeHandler.StatusContext<C>> statusChangeHandler) voidsetToModelConverter(Function<V, T> toModelConverter) voidsetUiComponentProperties(UiComponentProperties uiComponentProperties) voidvoidprotected booleanMethods inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegateaddValueBindingChangeListener, createValueBinding, getEventBus, getValueBinding, getValueSource, setupProperties, setValueSource, valueBindingChangedMethods inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegategetComponent
- 
Field Details- 
PROPERTY_INVALID- See Also:
 
- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
- 
messages
- 
metadataTools
- 
uiComponentProperties
- 
validators
- 
datatype
- 
toModelConverter
- 
statusChangeHandlerprotected Consumer<SupportsStatusChangeHandler.StatusContext<C extends com.vaadin.flow.component.AbstractField<?,V>>> statusChangeHandler
- 
errorMessage
- 
requiredMessage
- 
explicitlyInvalidprotected boolean explicitlyInvalid
- 
conversionInvalidprotected boolean conversionInvalid
- 
immediateRequiredValidationEnabledprotected boolean immediateRequiredValidationEnabled
 
- 
- 
Constructor Details- 
AbstractFieldDelegate
 
- 
- 
Method Details- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
setMessages
- 
setMetadataTools
- 
setUiComponentProperties
- 
setToModelConverter
- 
applyDefaultValueFormat
- 
addValidator
- 
executeValidators- Throws:
- ValidationException
 
- 
getComponentValue
- 
getRequiredMessage
- 
setRequiredMessage
- 
getDatatype
- 
setDatatype
- 
setErrorMessage
- 
getErrorMessage
- 
setStatusChangeHandlerpublic void setStatusChangeHandler(@Nullable Consumer<SupportsStatusChangeHandler.StatusContext<C>> statusChangeHandler) 
- 
isInvalidpublic boolean isInvalid()
- 
setInvalidpublic void setInvalid(boolean invalid) 
- 
setConversionInvalidpublic void setConversionInvalid(boolean conversionInvalid) 
- 
updateRequiredStatepublic void updateRequiredState()
- 
updateInvalidStatepublic void updateInvalidState()
- 
isInvalidInternalprotected boolean isInvalidInternal()
- 
setInvalidInternalprotected void setInvalidInternal(boolean invalid) 
- 
validatorsPassedprotected boolean validatorsPassed()
- 
setComponentRequiredErrorStateprotected void setComponentRequiredErrorState()
- 
getRequiredErrorMessage
- 
getMessage
- 
formatMessage
- 
isEmptyAndRequiredprotected boolean isEmptyAndRequired()
 
-