Class DataVectorSourceBinding<E>
java.lang.Object
io.jmix.mapsflowui.component.data.binding.DataVectorSourceBinding<E>
- All Implemented Interfaces:
JmixBinding
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
@Component("map_DataVectorSourceBinding")
@Scope("prototype")
public class DataVectorSourceBinding<E>
extends Object
implements JmixBinding, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected 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 DataVectorSource<E>
-
Constructor Summary
ConstructorDescriptionDataVectorSourceBinding
(DataVectorSource<E> source, DataVectorSourceItems<E> items) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addGeoObject
(E entity) void
protected void
applyClickListeners
(GeoObjectWrapper<E> geoObjectWrapper) 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
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
unbind()
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
source
-
items
-
itemSetChangeRegistration
protected com.vaadin.flow.shared.Registration itemSetChangeRegistration -
geometryChangeRegistration
protected com.vaadin.flow.shared.Registration geometryChangeRegistration -
metaPropertyPath
-
geoObjectsMap
-
geoObjectWrapperClickListener
-
-
Constructor Details
-
DataVectorSourceBinding
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
bind
public void bind()- Specified by:
bind
in interfaceJmixBinding
-
unbind
public void unbind()- Specified by:
unbind
in interfaceJmixBinding
-
onItemSetChange
-
onGeometryChange
-
addGeoObject
-
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
-