Class CollectionFieldDelegate<C extends com.vaadin.flow.component.AbstractField<?,Set<P>>,P,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,Collection<V>,Set<P>>
io.jmix.flowui.component.delegate.CollectionFieldDelegate<C,P,V>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Component("flowui_CollectionFieldDelegate")
@Scope("prototype")
public class CollectionFieldDelegate<C extends com.vaadin.flow.component.AbstractField<?,Set<P>>,P,V>
extends AbstractFieldDelegate<C,Collection<V>,Set<P>>
-
Field Summary
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 TypeMethodDescriptionconvertToModel
(Set<V> presentationValue, Stream<V> options) convertToPresentation
(Collection<V> modelValue) protected AbstractValueBinding<Collection<V>>
createValueBinding
(ValueSource<Collection<V>> valueSource) boolean
equalCollections
(Collection<V> a, Collection<V> b) 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
getValueSource, setValueSource
Methods inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegate
getComponent
-
Constructor Details
-
CollectionFieldDelegate
-
-
Method Details
-
createValueBinding
protected AbstractValueBinding<Collection<V>> createValueBinding(ValueSource<Collection<V>> valueSource) - Specified by:
createValueBinding
in classAbstractValueComponentDelegate<C extends com.vaadin.flow.component.AbstractField<?,
Set<P>>, Collection<V>, Set<P>>
-
applyDefaultCollectionItemFormat
-
convertToModel
@Nullable public Collection<V> convertToModel(Set<V> presentationValue, @Nullable Stream<V> options) throws ConversionException - Throws:
ConversionException
-
convertToPresentation
-
equalCollections
-