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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected Stringprotected booleanprotected Messagesprotected MetadataToolsstatic final Stringprotected Stringprotected Consumer<SupportsStatusChangeHandler.StatusContext<C>>Fields inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegate
valueBindingFields inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegate
component -
Constructor Summary
Constructors -
Method Summary
Modifier 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 Stringbooleanprotected booleanvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) protected voidvoidsetDatatype(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) protected voidprotected booleanMethods inherited from class io.jmix.flowui.component.delegate.AbstractValueComponentDelegate
addValueBindingChangeListener, createValueBinding, getEventBus, getValueBinding, getValueSource, setValueSource, valueBindingChangedMethods 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
-
statusChangeHandler
protected Consumer<SupportsStatusChangeHandler.StatusContext<C extends com.vaadin.flow.component.AbstractField<?,V>>> statusChangeHandler -
errorMessage
-
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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setMessages
-
setMetadataTools
-
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) -
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
-