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 typeT
- value source value typeV
- 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 Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.component.delegate.ValueBindingDelegate
ValueBindingDelegate.ValueBindingChangeEvent<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected boolean
protected String
protected boolean
protected boolean
protected Messages
protected MetadataTools
static final String
protected String
protected Consumer<SupportsStatusChangeHandler.StatusContext<C>>
protected UiComponentProperties
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 TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addValidator
(Validator<? super T> validator) applyDefaultValueFormat
(Object value) void
protected String
formatMessage
(String key, Object... params) protected T
protected String
getMessage
(String key) protected String
protected boolean
boolean
protected boolean
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) protected void
void
setConversionInvalid
(boolean conversionInvalid) void
setDatatype
(Datatype<T> datatype) void
setErrorMessage
(String errorMessage) void
setInvalid
(boolean invalid) protected void
setInvalidInternal
(boolean invalid) void
setMessages
(Messages messages) void
setMetadataTools
(MetadataTools metadataTools) void
setRequiredMessage
(String requiredMessage) void
setStatusChangeHandler
(Consumer<SupportsStatusChangeHandler.StatusContext<C>> statusChangeHandler) void
setToModelConverter
(Function<V, T> toModelConverter) void
setUiComponentProperties
(UiComponentProperties uiComponentProperties) void
void
protected boolean
Methods inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegate
addValueBindingChangeListener, createValueBinding, getEventBus, getValueBinding, getValueSource, setupProperties, setValueSource, valueBindingChanged
Methods inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegate
getComponent
-
Field Details
-
PROPERTY_INVALID
- See Also:
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
messages
-
metadataTools
-
uiComponentProperties
-
validators
-
datatype
-
toModelConverter
-
statusChangeHandler
protected Consumer<SupportsStatusChangeHandler.StatusContext<C extends com.vaadin.flow.component.AbstractField<?,V>>> statusChangeHandler -
errorMessage
-
requiredMessage
-
explicitlyInvalid
protected boolean explicitlyInvalid -
conversionInvalid
protected boolean conversionInvalid -
immediateRequiredValidationEnabled
protected boolean immediateRequiredValidationEnabled
-
-
Constructor Details
-
AbstractFieldDelegate
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
setMessages
-
setMetadataTools
-
setUiComponentProperties
-
setToModelConverter
-
applyDefaultValueFormat
-
addValidator
-
executeValidators
- Throws:
ValidationException
-
getComponentValue
-
getRequiredMessage
-
setRequiredMessage
-
getDatatype
-
setDatatype
-
setErrorMessage
-
getErrorMessage
-
setStatusChangeHandler
public void setStatusChangeHandler(@Nullable Consumer<SupportsStatusChangeHandler.StatusContext<C>> statusChangeHandler) -
isInvalid
public boolean isInvalid() -
setInvalid
public void setInvalid(boolean invalid) -
setConversionInvalid
public void setConversionInvalid(boolean conversionInvalid) -
updateRequiredState
public void updateRequiredState() -
updateInvalidState
public void updateInvalidState() -
isInvalidInternal
protected boolean isInvalidInternal() -
setInvalidInternal
protected void setInvalidInternal(boolean invalid) -
validatorsPassed
protected boolean validatorsPassed() -
setComponentRequiredErrorState
protected void setComponentRequiredErrorState() -
getRequiredErrorMessage
-
getMessage
-
formatMessage
-
isEmptyAndRequired
protected boolean isEmptyAndRequired()
-