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 classThe event is fired when items are selected or deselected. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddSourceGeoObjectSelectListener(Consumer<HasGeoObjectSelect.SourceGeoObjectSelectEvent<E>> listener) Adds geo-object select listener.voidDeselects all items in the source.voiddeselectGeoObject(E item) Deselects the provided item.voiddeselectGeoObjects(Collection<E> items) Deselects the collection of items.booleanisGeoObjetSelected(E item) Checks whether an item is selected.voidSelects all items in the source.voidselectGeoObject(E item) Selects the provided item.voidselectGeoObjects(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:
trueif 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
-