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 |
String |
locale_short_descriptions |
String |
locale_text |
protected Object |
originalValue |
private static ListCellRenderer |
RENDERER |
String |
short_descriptions |
protected TaggingPresetItems.Usage |
usage |
String |
use_last_as_default |
String |
values |
String |
values_context |
String |
values_from |
String |
values_searchable
whether to use values for search via
TaggingPresetSelector |
key, match, text, text_context
Constructor and Description |
---|
ComboMultiSelect() |
matches, toString
initAutoCompletionField
public String locale_text
public String values_from
public String values_context
public String display_values
public String locale_display_values
public String short_descriptions
public String locale_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 ListCellRenderer RENDERER
public ComboMultiSelect()
protected abstract Object getSelectedItem()
protected abstract void addToPanelAnchor(JPanel p, String def)
protected char getDelChar()
public Collection<String> getValues()
getValues
in class TaggingPresetItems.KeyedItem
public Collection<String> getDisplayValues()
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.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 getListCellRenderer()
public TaggingPresetItems.MatchType getDefaultMatch()
getDefaultMatch
in class TaggingPresetItems.KeyedItem