Interface VectorLayerItems<E>

Type Parameters:
E - geo object type
All Superinterfaces:
DataUnit, EntityDataUnit
All Known Implementing Classes:
ContainerVectorLayerItems

public interface VectorLayerItems<E> extends EntityDataUnit
A common interface for providing data for VectorLayer.
  • Method Details

    • getSelectedItem

      @Nullable E getSelectedItem()
      Returns:
      the current item contained in the source
    • setSelectedItem

      void setSelectedItem(@Nullable E item)
      Set current item in the source.
      Parameters:
      item - the item to set
    • getItems

      Collection<E> getItems()
      Returns:
      collection of items contained in the source
    • addGeometryChangeListener

      Subscription addGeometryChangeListener(Consumer<VectorLayerItems.GeometryChangeEvent<E>> listener)
      Registers a new geometry change listener.
      Parameters:
      listener - the listener to be added
      Returns:
      a registration object for removing an event listener added to a source
    • addSelectedItemChangeListener

      Subscription addSelectedItemChangeListener(Consumer<VectorLayerItems.SelectedItemChangeEvent<E>> listener)
      Registers a new selected item change listener.
      Parameters:
      listener - the listener to be added
      Returns:
      a registration object for removing an event listener added to a source
    • addItemSetChangeListener

      Subscription addItemSetChangeListener(Consumer<VectorLayerItems.ItemSetChangeEvent<E>> listener)
      Registers a new item set change listener.
      Parameters:
      listener - the listener to be added
      Returns:
      a registration object for removing an event listener added to a source