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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreceiveSearchResult(OsmData<?, ?, ?, ?> ds, Collection<IPrimitive> result, int foundMatches, SearchSetting setting, Component parent) Receive the search result
-
Field Details
-
result
-
-
Constructor Details
-
CapturingSearchReceiver
private CapturingSearchReceiver()
-
-
Method Details
-
receiveSearchResult
public void receiveSearchResult(OsmData<?, ?, ?, ?> ds, Collection<IPrimitive> result, int foundMatches, SearchSetting setting, Component parent) Description copied from interface:SearchAction.SearchReceiverReceive the search result- Specified by:
receiveSearchResultin 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
-