public abstract static class TaggingPresetItems.ComboMultiSelect extends TaggingPresetItems.KeyedItem
Modifier and Type | Field and Description |
---|---|
protected JComponent |
component |
String |
default_ |
String |
delimiter |
String |
display_values |
private boolean |
initialized |
protected Map<String,TaggingPresetItems.PresetListEntry> |
lhm |
String |
locale_display_values
The localized version of
display_values . |
String |
locale_short_descriptions
The localized version of
short_descriptions . |
String |
locale_text
The localized version of
TaggingPresetItems.KeyedItem.text . |
protected Object |
originalValue |
private static ListCellRenderer<TaggingPresetItems.PresetListEntry> |
RENDERER |
String |
short_descriptions |
protected TaggingPresetItems.Usage |
usage |
String |
use_last_as_default |
String |
values |
String |
values_context
The context used for translating
values |
String |
values_from |
String |
values_searchable
whether to use values for search via
TaggingPresetSelector |
key, match, text, text_context
Constructor and Description |
---|
TaggingPresetItems.ComboMultiSelect() |
matches, toString
initAutoCompletionField, initAutoCompletionField
public String locale_text
TaggingPresetItems.KeyedItem.text
.public String values_from
public String values_context
values
public String display_values
public String locale_display_values
display_values
.public String short_descriptions
public String locale_short_descriptions
short_descriptions
.public String use_last_as_default
public String values_searchable
TaggingPresetSelector
protected JComponent component
protected final Map<String,TaggingPresetItems.PresetListEntry> lhm
private boolean initialized
protected TaggingPresetItems.Usage usage
protected Object originalValue
private static final ListCellRenderer<TaggingPresetItems.PresetListEntry> RENDERER
public TaggingPresetItems.ComboMultiSelect()
protected abstract Object getSelectedItem()
protected abstract void addToPanelAnchor(JPanel p, String def, boolean presetInitiallyMatches)
protected char getDelChar()
public Collection<String> getValues()
getValues
in class TaggingPresetItems.KeyedItem
public Collection<String> getDisplayValues()
public boolean addToPanel(JPanel p, Collection<OsmPrimitive> sel, boolean presetInitiallyMatches)
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 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.private void initListEntries()
private String[] initListEntriesFromAttributes()
protected String getDisplayIfNull()
public void addCommands(List<Tag> changedTags)
TaggingPresetItem
addCommands
in class TaggingPresetItem
changedTags
- The list of changed tags to modify if neededpublic void addListEntry(TaggingPresetItems.PresetListEntry e)
public void addListEntries(Collection<TaggingPresetItems.PresetListEntry> e)
boolean requestFocusInWindow()
requestFocusInWindow
in class TaggingPresetItem
protected ListCellRenderer<TaggingPresetItems.PresetListEntry> getListCellRenderer()
public TaggingPresetItems.MatchType getDefaultMatch()
getDefaultMatch
in class TaggingPresetItems.KeyedItem