Class HasFeatureSelect.SourceFeatureSelectEvent
java.lang.Object
java.util.EventObject
io.jmix.mapsflowui.component.model.source.HasFeatureSelect.SourceFeatureSelectEvent
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- HasFeatureSelect
The event is fired when features are selected or deselected.
Note that only newly selected or deselected features will be included in the event.
For instance, if one feature is currently selected from a total of three, and the
HasFeatureSelect.selectAllFeatures()
method is invoked, only the two other features will be
included in the event.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<Feature>
protected final boolean
protected final Collection<Feature>
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionSourceFeatureSelectEvent
(Source source, Collection<Feature> selected, List<Feature> deselected, boolean fromClient) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this event originated from the client side.Methods inherited from class java.util.EventObject
toString
-
Field Details
-
selected
-
deselected
-
fromClient
protected final boolean fromClient
-
-
Constructor Details
-
SourceFeatureSelectEvent
public SourceFeatureSelectEvent(Source source, Collection<Feature> selected, List<Feature> deselected, boolean fromClient)
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
- Returns:
- source that contains selected and deselected features
-
getSelected
- Returns:
- selected features or empty collection
-
getDeselected
- Returns:
- deselected features or empty collection
-
isFromClient
public boolean isFromClient()Checks if this event originated from the client side.- Returns:
true
if the event originated from the client side,false
otherwise
-