Class HasGeoObjectSelect.SourceGeoObjectSelectEvent<E>
java.lang.Object
java.util.EventObject
io.jmix.mapsflowui.component.model.source.HasGeoObjectSelect.SourceGeoObjectSelectEvent<E>
- Type Parameters:
E
- item type
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- HasGeoObjectSelect<E>
The event is fired when items are selected or deselected.
Note that only newly selected or deselected items will be included in the event.
For instance, if one item is currently selected from a total of three, and the
HasGeoObjectSelect.selectAllGeoObjects()
method is invoked, only the two other items will be
included in the event.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<E>
protected final boolean
protected final Collection<E>
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionSourceGeoObjectSelectEvent
(Source source, Collection<E> selected, Collection<E> 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
-
SourceGeoObjectSelectEvent
public SourceGeoObjectSelectEvent(Source source, Collection<E> selected, Collection<E> deselected, boolean fromClient)
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
- Returns:
- source that contains selected and deselected items
-
getSelected
- Returns:
- selected items or empty collection
-
getDeselected
- Returns:
- deselected items 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
-