org.openstreetmap.josm.gui.tagging
Class TaggingPreset.Item

java.lang.Object
  extended by 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


Constructor Summary
TaggingPreset.Item()
           
 
Method Summary
(package private) abstract  void addCommands(java.util.List<Tag> changedTags)
           
(package private) abstract  boolean addToPanel(javax.swing.JPanel p, java.util.Collection<OsmPrimitive> sel)
           
protected  void initAutoCompletionField(AutoCompletingTextField field, java.lang.String key)
           
(package private)  java.lang.Boolean matches(java.util.Map<java.lang.String,java.lang.String> tags)
          Tests whether the tags match this item.
(package private)  boolean requestFocusInWindow()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaggingPreset.Item

public TaggingPreset.Item()
Method Detail

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