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
,CollectionFieldDelegate
,EntityFieldDelegate
,FieldDelegate
,TextInputFieldDelegate
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 Messages
protected MetadataTools
static final String
protected String
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 String
protected T
protected String
getMessage
(String key) protected String
boolean
protected boolean
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) protected void
setComponentErrorMessage
(String errorMessage) protected void
void
setDatatype
(Datatype<T> datatype) void
setInvalid
(boolean invalid) protected void
setInvalidInternal
(boolean invalid) void
setMessages
(Messages messages) void
setMetadataTools
(MetadataTools metadataTools) void
setRequiredMessage
(String requiredMessage) void
setToModelConverter
(Function<V, T> toModelConverter) protected void
protected boolean
Methods inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegate
addValueBindingChangeListener, createValueBinding, getEventBus, getValueBinding, getValueSource, 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
-
validators
-
datatype
-
toModelConverter
-
requiredMessage
-
explicitlyInvalid
protected boolean explicitlyInvalid
-
-
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
-
setToModelConverter
-
applyDefaultValueFormat
-
addValidator
-
executeValidators
- Throws:
ValidationException
-
getComponentValue
-
getRequiredMessage
-
setRequiredMessage
-
getDatatype
-
setDatatype
-
setComponentErrorMessage
-
getComponentErrorMessage
-
isInvalid
public boolean isInvalid() -
setInvalid
public void setInvalid(boolean invalid) -
updateInvalidState
protected void updateInvalidState() -
isInvalidInternal
protected boolean isInvalidInternal() -
setInvalidInternal
protected void setInvalidInternal(boolean invalid) -
validatorsPassed
protected boolean validatorsPassed() -
setComponentRequiredErrorState
protected void setComponentRequiredErrorState() -
getRequiredErrorMessage
-
getMessage
-
formatMessage
-