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>

public static class HasGeoObjectSelect.SourceGeoObjectSelectEvent<E> extends EventObject
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 Details

    • selected

      protected final Collection<E> selected
    • deselected

      protected final Collection<E> deselected
    • fromClient

      protected final boolean fromClient
  • Constructor Details

    • SourceGeoObjectSelectEvent

      public SourceGeoObjectSelectEvent(Source source, Collection<E> selected, Collection<E> deselected, boolean fromClient)
  • Method Details

    • getSource

      public Source getSource()
      Overrides:
      getSource in class EventObject
      Returns:
      source that contains selected and deselected items
    • getSelected

      public Collection<E> getSelected()
      Returns:
      selected items or empty collection
    • getDeselected

      public Collection<E> 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