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 Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionAbstractDataVectorSourceBinding(AbstractDataVectorSource<E> source, DataVectorSourceItems<E> items)  - 
Method Summary
Modifier 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
 - 
itemSetChangeRegistration
protected com.vaadin.flow.shared.Registration itemSetChangeRegistration - 
geometryChangeRegistration
protected com.vaadin.flow.shared.Registration geometryChangeRegistration - 
geoObjectsMap
 - 
metaPropertyPath
 - 
geoObjectWrapperClickListener
 
 - 
 - 
Constructor Details
- 
AbstractDataVectorSourceBinding
public AbstractDataVectorSourceBinding(AbstractDataVectorSource<E> source, DataVectorSourceItems<E> items)  
 - 
 - 
Method Details
- 
bind
public void bind()- Specified by:
 bindin interfaceJmixBinding
 - 
unbind
public void unbind()- Specified by:
 unbindin interfaceJmixBinding
 - 
onItemSetChange
 - 
onGeometryChange
 - 
addGeoObject
 - 
applyFeatureProperties
 - 
applyFeatureStyleProvider
 - 
removeGeoObject
 - 
mergeGeoObject
Invoked in case of replacing an existing entity with a new instance.Assumes that the previous item belongs to the layer.
 - 
refreshGeoObjects
 - 
removeGeoObjectByKey
 - 
removeWrapper
 - 
geoObjectKey
Returns a key for the given geo-object to be used ingeoObjectsMap. Returns entity id whenever possible, otherwise returns entity. - 
applyClickListeners
 - 
onGeoObjectClick
 
 -