Interface GeoObjectClickNotifier<E>

Type Parameters:
E - item type
All Known Implementing Classes:
DataVectorSource, HeatmapDataVectorSource

public interface GeoObjectClickNotifier<E>
Interface to be implemented by sources that support clicks on geo-objects.
  • Method Details

    • addGeoObjectClickListener

      com.vaadin.flow.shared.Registration addGeoObjectClickListener(Consumer<GeoObjectClickNotifier.GeoObjectClickEvent<E>> listener)
      Adds geo-object click listener. Note, if the user makes double click, the GeoObjectClickNotifier.GeoObjectClickEvent will be fired twice.
      Parameters:
      listener - listener to add
      Returns:
      a registration object for removing an event listener
    • addGeoObjectSingleClickListener

      com.vaadin.flow.shared.Registration addGeoObjectSingleClickListener(Consumer<GeoObjectClickNotifier.GeoObjectSingleClickEvent<E>> listener)
      Adds geo-object single click listener. Single click means that an event won't be fired if the user makes double click.
      Parameters:
      listener - listener to add
      Returns:
      a registration object for removing an event listener
    • addGeoObjectDoubleClickListener

      com.vaadin.flow.shared.Registration addGeoObjectDoubleClickListener(Consumer<GeoObjectClickNotifier.GeoObjectDoubleClickEvent<E>> listener)
      Adds geo-object double click listener.
      Parameters:
      listener - listener to add
      Returns:
      a registration object for removing an event listener