public static class TaggingPresetItems.Key extends TaggingPresetItems.KeyedItem
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
value
The hardcoded value for key
|
key, match, text, text_context| Constructor and Description |
|---|
Key() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommands(java.util.List<Tag> changedTags)
Adds the new tags to apply to selected OSM primitives when the preset holding this item is applied.
|
boolean |
addToPanel(javax.swing.JPanel p,
java.util.Collection<OsmPrimitive> sel,
boolean presetInitiallyMatches)
Called by
TaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>) during tagging preset panel creation. |
TaggingPresetItems.MatchType |
getDefaultMatch() |
java.util.Collection<java.lang.String> |
getValues() |
java.lang.String |
toString() |
matchesinitAutoCompletionField, initAutoCompletionField, requestFocusInWindowpublic java.lang.String value
public Key()
public boolean addToPanel(javax.swing.JPanel p, java.util.Collection<OsmPrimitive> sel, boolean presetInitiallyMatches)
TaggingPresetItemTaggingPreset.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.addToPanel in class TaggingPresetItemp - The panel where components must be addedsel - The related selected OSM primitivespresetInitiallyMatches - Whether this TaggingPreset already matched before applying,
i.e. whether the map feature already existed on the primitive.true if this item adds semantic tagging elements, false otherwise.public void addCommands(java.util.List<Tag> changedTags)
TaggingPresetItemaddCommands in class TaggingPresetItemchangedTags - The list of changed tags to modify if neededpublic TaggingPresetItems.MatchType getDefaultMatch()
getDefaultMatch in class TaggingPresetItems.KeyedItempublic java.util.Collection<java.lang.String> getValues()
getValues in class TaggingPresetItems.KeyedItempublic java.lang.String toString()
toString in class TaggingPresetItems.KeyedItem