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 Details

  • Constructor Details

  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • bind

      public void bind()
      Specified by:
      bind in interface JmixBinding
    • unbind

      public void unbind()
      Specified by:
      unbind in interface JmixBinding
    • onItemSetChange

      protected void onItemSetChange(DataVectorSourceItems.ItemSetChangeEvent<E> event)
    • onGeometryChange

      protected void onGeometryChange(DataVectorSourceItems.GeometryChangeEvent<E> event)
    • addGeoObject

      protected void addGeoObject(E entity)
    • removeGeoObject

      protected void removeGeoObject(E entity)
    • mergeGeoObject

      protected void mergeGeoObject(E entity)
      Invoked in case of replacing an existing entity with a new instance.

      Assumes that the previous item belongs to the layer.

    • refreshGeoObjects

      protected void refreshGeoObjects(Collection<E> entities)
    • removeGeoObjectByKey

      protected void removeGeoObjectByKey(Object geoObjectKey)
    • removeWrapper

      protected void removeWrapper(GeoObjectWrapper<E> wrapper)
    • geoObjectKey

      protected static Object geoObjectKey(Object entity)
      Returns a key for the given geo-object to be used in geoObjectsMap. Returns entity id whenever possible, otherwise returns entity.
    • applyClickListeners

      protected void applyClickListeners(GeoObjectWrapper<E> geoObjectWrapper)
    • onGeoObjectClick

      protected void onGeoObjectClick(GeoObjectWrapper.GeoObjectWrapperClickEvent<E> event)