public abstract class TaggingPresetItem extends Object
| Constructor and Description |
|---|
TaggingPresetItem() |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract void |
addCommands(List<Tag> changedTags)
Adds the new tags to apply to selected OSM primitives when the preset holding this item is applied.
|
(package private) abstract boolean |
addToPanel(JPanel p,
Collection<OsmPrimitive> sel)
Called by
TaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>) during tagging preset panel creation. |
protected void |
initAutoCompletionField(AutoCompletingTextField field,
String key) |
(package private) Boolean |
matches(Map<String,String> tags)
Tests whether the tags match this item.
|
(package private) boolean |
requestFocusInWindow() |
public TaggingPresetItem()
protected void initAutoCompletionField(AutoCompletingTextField field, String key)
abstract boolean addToPanel(JPanel p, Collection<OsmPrimitive> sel)
TaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>) during tagging preset panel creation.
All components defining this tagging preset item must be added to given panel.p - The panel where components must be addedsel - The related selected OSM primitivestrue if this item adds semantic tagging elements, false otherwise.abstract void addCommands(List<Tag> changedTags)
changedTags - The list of changed tags to modify if neededboolean requestFocusInWindow()