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 java.lang.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 java.util.Collection<IPrimitive>result
-
Constructor Summary
Constructors Modifier Constructor Description privateCapturingSearchReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreceiveSearchResult(OsmData<?,?,?,?> ds, java.util.Collection<IPrimitive> result, int foundMatches, SearchSetting setting, java.awt.Component parent)Receive the search result
-
-
-
Field Detail
-
result
private java.util.Collection<IPrimitive> result
-
-
Constructor Detail
-
CapturingSearchReceiver
private CapturingSearchReceiver()
-
-
Method Detail
-
receiveSearchResult
public void receiveSearchResult(OsmData<?,?,?,?> ds, java.util.Collection<IPrimitive> result, int foundMatches, SearchSetting setting, java.awt.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
-
-