Interface GeoObjectClickNotifier<E>
- Type Parameters:
E
- item type
- All Known Implementing Classes:
DataVectorSource
public interface GeoObjectClickNotifier<E>
Interface to be implemented by sources that support clicks on geo-objects.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
An event that is fired when geo-object is clicked.static class
An event is fired when user makes double click.static class
An event is fired after 250 ms to ensure that it is not a double click. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
Adds geo-object click listener.com.vaadin.flow.shared.Registration
addGeoObjectDoubleClickListener
(Consumer<GeoObjectClickNotifier.GeoObjectDoubleClickEvent<E>> listener) Adds geo-object double click listener.com.vaadin.flow.shared.Registration
addGeoObjectSingleClickListener
(Consumer<GeoObjectClickNotifier.GeoObjectSingleClickEvent<E>> listener) Adds geo-object single click listener.
-
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, theGeoObjectClickNotifier.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
-