Interface HasGeoObjectSelect<E>
- Type Parameters:
E
- item type
- All Superinterfaces:
SupportsFeatureSelect
- All Known Implementing Classes:
DataVectorSource
Interface to be implemented by sources that support geo-object selection.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
The event is fired when items are selected or deselected. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addSourceGeoObjectSelectListener
(Consumer<HasGeoObjectSelect.SourceGeoObjectSelectEvent<E>> listener) Adds geo-object select listener.void
Deselects all items in the source.void
deselectGeoObject
(E item) Deselects the provided item.void
deselectGeoObjects
(Collection<E> items) Deselects the collection of items.boolean
isGeoObjetSelected
(E item) Checks whether an item is selected.void
Selects all items in the source.void
selectGeoObject
(E item) Selects the provided item.void
selectGeoObjects
(Collection<E> items) Selects the collection of items.Methods inherited from interface io.jmix.mapsflowui.kit.component.model.source.SupportsFeatureSelect
getFeatureSelectEnabled, setFeatureSelectEnabled
-
Method Details
-
isGeoObjetSelected
Checks whether an item is selected.- Parameters:
item
- item to check- Returns:
true
if feature is selected
-
getSelectedGeoObjects
Collection<E> getSelectedGeoObjects()- Returns:
- unmodifiable collection of selected items
-
selectGeoObject
Selects the provided item.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()
is enabled.- Parameters:
item
- item to select
-
deselectGeoObject
Deselects the provided item.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()
is enabled.- Parameters:
item
- item to deselect
-
selectGeoObjects
Selects the collection of items.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()
is enabled.- Parameters:
items
- items to select
-
deselectGeoObjects
Deselects the collection of items.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()
is enabled.- Parameters:
items
- items to deselect
-
selectAllGeoObjects
void selectAllGeoObjects()Selects all items in the source.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()
is enabled. -
deselectAllGeoObjects
void deselectAllGeoObjects()Deselects all items in the source.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()
is enabled. -
addSourceGeoObjectSelectListener
com.vaadin.flow.shared.Registration addSourceGeoObjectSelectListener(Consumer<HasGeoObjectSelect.SourceGeoObjectSelectEvent<E>> listener) Adds geo-object select listener.- Parameters:
listener
- listener to add- Returns:
- a registration object for removing an event listener
-