Class AbstractDataVectorSourceBinding<E>
java.lang.Object
io.jmix.mapsflowui.component.data.binding.AbstractDataVectorSourceBinding<E>
- All Implemented Interfaces:
- JmixBinding
- Direct Known Subclasses:
- ClusterDataVectorSourceBinding,- DataVectorSourceBinding,- HeatmapDataVectorSourceBinding
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.shared.Registrationprotected Map<Object,GeoObjectWrapper<E>> protected Consumer<GeoObjectWrapper.GeoObjectWrapperClickEvent<E>>protected DataVectorSourceItems<E>protected com.vaadin.flow.shared.Registrationprotected MetaPropertyPathprotected AbstractDataVectorSource<E>
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractDataVectorSourceBinding(AbstractDataVectorSource<E> source, DataVectorSourceItems<E> items) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddGeoObject(E entity) protected voidapplyClickListeners(GeoObjectWrapper<E> geoObjectWrapper) protected abstract voidapplyFeatureProperties(GeoObjectWrapper<E> geoObjectWrapper, E entity) protected abstract voidapplyFeatureStyleProvider(GeoObjectWrapper<E> geoObjectWrapper, E entity) voidbind()protected static ObjectgeoObjectKey(Object entity) Returns a key for the given geo-object to be used ingeoObjectsMap.protected voidmergeGeoObject(E entity) Invoked in case of replacing an existing entity with a new instance.protected voidprotected voidprotected voidprotected voidrefreshGeoObjects(Collection<E> entities) protected voidremoveGeoObject(E entity) protected voidremoveGeoObjectByKey(Object geoObjectKey) protected voidremoveWrapper(GeoObjectWrapper<E> wrapper) voidunbind()
- 
Field Details- 
source
- 
items
- 
itemSetChangeRegistrationprotected com.vaadin.flow.shared.Registration itemSetChangeRegistration
- 
geometryChangeRegistrationprotected com.vaadin.flow.shared.Registration geometryChangeRegistration
- 
geoObjectsMap
- 
metaPropertyPath
- 
geoObjectWrapperClickListener
 
- 
- 
Constructor Details- 
AbstractDataVectorSourceBindingpublic AbstractDataVectorSourceBinding(AbstractDataVectorSource<E> source, DataVectorSourceItems<E> items) 
 
- 
- 
Method Details- 
bindpublic void bind()- Specified by:
- bindin interface- JmixBinding
 
- 
unbindpublic void unbind()- Specified by:
- unbindin interface- JmixBinding
 
- 
onItemSetChange
- 
onGeometryChange
- 
addGeoObject
- 
applyFeatureProperties
- 
applyFeatureStyleProvider
- 
removeGeoObject
- 
mergeGeoObjectInvoked in case of replacing an existing entity with a new instance.Assumes that the previous item belongs to the layer. 
- 
refreshGeoObjects
- 
removeGeoObjectByKey
- 
removeWrapper
- 
geoObjectKeyReturns a key for the given geo-object to be used ingeoObjectsMap. Returns entity id whenever possible, otherwise returns entity.
- 
applyClickListeners
- 
onGeoObjectClick
 
-