public abstract static class TaggingPresetItems.KeyedItem extends TaggingPresetItem
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
key |
java.lang.String |
match |
java.lang.String |
text
The text to display
|
java.lang.String |
text_context
The context used for translating
text |
| Constructor and Description |
|---|
KeyedItem() |
| Modifier and Type | Method and Description |
|---|---|
abstract TaggingPresetItems.MatchType |
getDefaultMatch() |
abstract java.util.Collection<java.lang.String> |
getValues() |
(package private) java.lang.Boolean |
matches(java.util.Map<java.lang.String,java.lang.String> tags)
Tests whether the tags match this item.
|
java.lang.String |
toString() |
addCommands, addToPanel, initAutoCompletionField, initAutoCompletionField, requestFocusInWindowpublic java.lang.String key
public java.lang.String text
public java.lang.String text_context
textpublic java.lang.String match
public KeyedItem()
public abstract TaggingPresetItems.MatchType getDefaultMatch()
public abstract java.util.Collection<java.lang.String> getValues()
java.lang.Boolean matches(java.util.Map<java.lang.String,java.lang.String> tags)
TaggingPresetItemmatches in class TaggingPresetItemtags - the tags of an OsmPrimitivetrue if matches (positive), null if neutral, false if mismatches (negative).public java.lang.String toString()
toString in class java.lang.Object