Class SearchAction.CapturingSearchReceiver
- java.lang.Object
-
- org.openstreetmap.josm.actions.search.SearchAction.CapturingSearchReceiver
-
- All Implemented Interfaces:
SearchAction.SearchReceiver
- Enclosing class:
- SearchAction
private static final class SearchAction.CapturingSearchReceiver extends Object implements SearchAction.SearchReceiver
This class stores the result of the search in a local variable.
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<IPrimitive>
result
-
Constructor Summary
Constructors Modifier Constructor Description private
CapturingSearchReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
receiveSearchResult(OsmData<?,?,?,?> ds, Collection<IPrimitive> result, int foundMatches, SearchSetting setting, Component parent)
Receive the search result
-
-
-
Field Detail
-
result
private Collection<IPrimitive> result
-
-
Constructor Detail
-
CapturingSearchReceiver
private CapturingSearchReceiver()
-
-
Method Detail
-
receiveSearchResult
public void receiveSearchResult(OsmData<?,?,?,?> ds, Collection<IPrimitive> result, int foundMatches, SearchSetting setting, Component parent)
Description copied from interface:SearchAction.SearchReceiver
Receive the search result- Specified by:
receiveSearchResult
in interfaceSearchAction.SearchReceiver
- Parameters:
ds
- The data set searched on.result
- The result collection, including the initial collection.foundMatches
- The number of matches added to the result.setting
- The setting used.parent
- parent component
-
-