public static class TaggingPresetItems.Text extends TaggingPresetItems.KeyedItem
Modifier and Type | Field and Description |
---|---|
String |
auto_increment |
String |
default_ |
String |
length |
String |
locale_text |
String |
originalValue |
String |
use_last_as_default |
private JComponent |
value |
key, match, text, text_context
Constructor and Description |
---|
Text() |
Modifier and Type | Method and Description |
---|---|
void |
addCommands(List<Tag> changedTags)
Adds the new tags to apply to selected OSM primitives when the preset holding this item is applied.
|
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. |
TaggingPresetItems.MatchType |
getDefaultMatch() |
private static String |
getValue(Component comp) |
Collection<String> |
getValues() |
(package private) boolean |
requestFocusInWindow() |
matches, toString
initAutoCompletionField
public String locale_text
public String originalValue
public String use_last_as_default
public String auto_increment
private JComponent value
public Text()
public boolean addToPanel(JPanel p, Collection<OsmPrimitive> sel)
TaggingPresetItem
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.addToPanel
in class TaggingPresetItem
p
- The panel where components must be addedsel
- The related selected OSM primitivestrue
if this item adds semantic tagging elements, false
otherwise.public void addCommands(List<Tag> changedTags)
TaggingPresetItem
addCommands
in class TaggingPresetItem
changedTags
- The list of changed tags to modify if neededboolean requestFocusInWindow()
requestFocusInWindow
in class TaggingPresetItem
public TaggingPresetItems.MatchType getDefaultMatch()
getDefaultMatch
in class TaggingPresetItems.KeyedItem
public Collection<String> getValues()
getValues
in class TaggingPresetItems.KeyedItem