org.openstreetmap.josm.gui.tagging
Class TaggingPreset.Item
java.lang.Object
org.openstreetmap.josm.gui.tagging.TaggingPreset.Item
- Direct Known Subclasses:
- TaggingPreset.KeyedItem, TaggingPreset.Label, TaggingPreset.Link, TaggingPreset.Optional, TaggingPreset.Roles, TaggingPreset.Space
- Enclosing class:
- TaggingPreset
public abstract static class TaggingPreset.Item
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaggingPreset.Item
public TaggingPreset.Item()
initAutoCompletionField
protected void initAutoCompletionField(AutoCompletingTextField field,
java.lang.String key)
addToPanel
abstract boolean addToPanel(javax.swing.JPanel p,
java.util.Collection<OsmPrimitive> sel)
addCommands
abstract void addCommands(java.util.List<Tag> changedTags)
requestFocusInWindow
boolean requestFocusInWindow()
matches
java.lang.Boolean matches(java.util.Map<java.lang.String,java.lang.String> tags)
- Tests whether the tags match this item.
Note that for a match, at least one positive and no negative is required.
- Parameters:
tags
- the tags of an OsmPrimitive
- Returns:
true
if matches (positive), null
if neutral, false
if mismatches (negative).
JOSM