Interface OsmSearcherProgressListener


public interface OsmSearcherProgressListener
This interface defines a means by which a user of OsmSearcher can be informed of the progress of a search, and optionally pre-maturely abort a search.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Report that another search item has been inserted into the sorted search results list.
    boolean
    Report that the OsmSearcher has advanced to another tile.
  • Method Details

    • addedNewSearchItem

      boolean addedNewSearchItem(GTNWrapper match)
      Report that another search item has been inserted into the sorted search results list. This is called from the thread that invoked the search() method on the OsmSearcher.
      Parameters:
      match - GTNWrapper of a map element that matched
      Returns:
      boolean true if search is to be aborted, false otherwise.
      See Also:
    • changedSearchTile

      boolean changedSearchTile(String searchTile)
      Report that the OsmSearcher has advanced to another tile.
      Parameters:
      searchTile - String name of tile now being searched
      Returns:
      boolean true if search is to be aborted, false otherwise.