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
Modifier and TypeFieldDescriptionprotected com.vaadin.flow.shared.Registration
protected Map<Object,
GeoObjectWrapper<E>> protected Consumer<GeoObjectWrapper.GeoObjectWrapperClickEvent<E>>
protected DataVectorSourceItems<E>
protected com.vaadin.flow.shared.Registration
protected MetaPropertyPath
protected AbstractDataVectorSource<E>
-
Constructor Summary
ConstructorDescriptionAbstractDataVectorSourceBinding
(AbstractDataVectorSource<E> source, DataVectorSourceItems<E> items) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addGeoObject
(E entity) protected void
applyClickListeners
(GeoObjectWrapper<E> geoObjectWrapper) protected abstract void
applyFeatureProperties
(GeoObjectWrapper<E> geoObjectWrapper, E entity) protected abstract void
applyFeatureStyleProvider
(GeoObjectWrapper<E> geoObjectWrapper, E entity) void
bind()
protected static Object
geoObjectKey
(Object entity) Returns a key for the given geo-object to be used ingeoObjectsMap
.protected void
mergeGeoObject
(E entity) Invoked in case of replacing an existing entity with a new instance.protected void
protected void
protected void
protected void
refreshGeoObjects
(Collection<E> entities) protected void
removeGeoObject
(E entity) protected void
removeGeoObjectByKey
(Object geoObjectKey) protected void
removeWrapper
(GeoObjectWrapper<E> wrapper) void
unbind()
-
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:
bind
in interfaceJmixBinding
-
unbind
public void unbind()- Specified by:
unbind
in 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
-