Interface HasFeatureSelect
- All Superinterfaces:
SupportsFeatureSelect
- All Known Implementing Classes:
VectorSource
Interface to be implemented by sources that support feature selection.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe event is fired when features are selected or deselected. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationAdds feature select listener.voidDeselects all features in the source.voiddeselectFeature(Feature feature) Deselects the provided feature.voiddeselectFeatures(Collection<Feature> features) Deselects the collection of features.booleanisFeatureSelected(Feature feature) Checks whether a feature is selected.voidSelects all features in the source.voidselectFeature(Feature feature) Selects the provided feature.voidselectFeatures(Collection<Feature> features) Selects the collection of features.Methods inherited from interface io.jmix.mapsflowui.kit.component.model.source.SupportsFeatureSelect
getFeatureSelectEnabled, setFeatureSelectEnabled
-
Method Details
-
isFeatureSelected
Checks whether a feature is selected.- Parameters:
feature- feature to check- Returns:
trueif feature is selected
-
getSelectedFeatures
Collection<Feature> getSelectedFeatures()- Returns:
- unmodifiable collection of selected feature
-
selectFeature
Selects the provided feature.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()is enabled.- Parameters:
feature- feature to select
-
deselectFeature
Deselects the provided feature.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()is enabled.- Parameters:
feature- feature to deselect
-
selectFeatures
Selects the collection of features.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()is enabled.- Parameters:
features- feature to select
-
deselectFeatures
Deselects the collection of features.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()is enabled.- Parameters:
features- features to deselect
-
selectAllFeatures
void selectAllFeatures()Selects all features in the source.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()is enabled. -
deselectAllFeatures
void deselectAllFeatures()Deselects all features in the source.Note that selection works only when
SupportsFeatureSelect.getFeatureSelectEnabled()is enabled. -
addSourceFeatureSelectListener
com.vaadin.flow.shared.Registration addSourceFeatureSelectListener(Consumer<HasFeatureSelect.SourceFeatureSelectEvent> listener) Adds feature select listener.- Parameters:
listener- listener to add- Returns:
- a registration object for removing an event listener
-