Class TaggingPresetSelector.PresetClassifications
- java.lang.Object
-
- org.openstreetmap.josm.gui.tagging.presets.TaggingPresetSelector.PresetClassifications
-
- All Implemented Interfaces:
Iterable<TaggingPresetSelector.PresetClassification>
- Enclosing class:
- TaggingPresetSelector
public static class TaggingPresetSelector.PresetClassifications extends Object implements Iterable<TaggingPresetSelector.PresetClassification>
A collection ofTaggingPresetSelector.PresetClassification
s with the functionality of filtering wrt. searchString.
-
-
Field Summary
Fields Modifier and Type Field Description private List<TaggingPresetSelector.PresetClassification>
classifications
-
Constructor Summary
Constructors Constructor Description PresetClassifications()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears the selector.List<TaggingPresetSelector.PresetClassification>
getMatchingPresets(String[] groupWords, String[] nameWords, boolean onlyApplicable, boolean inTags, Set<TaggingPresetType> presetTypes, Collection<? extends OsmPrimitive> selectedPrimitives)
List<TaggingPresetSelector.PresetClassification>
getMatchingPresets(String searchText, boolean onlyApplicable, boolean inTags, Set<TaggingPresetType> presetTypes, Collection<? extends OsmPrimitive> selectedPrimitives)
Iterator<TaggingPresetSelector.PresetClassification>
iterator()
void
loadPresets(Collection<TaggingPreset> presets)
Loads a given collection of presets.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
classifications
private final List<TaggingPresetSelector.PresetClassification> classifications
-
-
Constructor Detail
-
PresetClassifications
public PresetClassifications()
-
-
Method Detail
-
getMatchingPresets
public List<TaggingPresetSelector.PresetClassification> getMatchingPresets(String searchText, boolean onlyApplicable, boolean inTags, Set<TaggingPresetType> presetTypes, Collection<? extends OsmPrimitive> selectedPrimitives)
-
getMatchingPresets
public List<TaggingPresetSelector.PresetClassification> getMatchingPresets(String[] groupWords, String[] nameWords, boolean onlyApplicable, boolean inTags, Set<TaggingPresetType> presetTypes, Collection<? extends OsmPrimitive> selectedPrimitives)
-
clear
public void clear()
Clears the selector.
-
loadPresets
public void loadPresets(Collection<TaggingPreset> presets)
Loads a given collection of presets.- Parameters:
presets
- presets collection
-
iterator
public Iterator<TaggingPresetSelector.PresetClassification> iterator()
- Specified by:
iterator
in interfaceIterable<TaggingPresetSelector.PresetClassification>
-
-