KeyedItem.MatchType, KeyedItem.Usage| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
alternative_autocomplete_keys
A comma separated list of alternative keys to use for autocompletion.
|
java.lang.String |
auto_increment
May contain a comma separated list of integer increments or decrements, e.g.
|
private static int |
auto_increment_selected |
java.lang.String |
default_
The default value for the item.
|
java.lang.String |
length
The length of the text box (number of characters allowed).
|
java.lang.String |
locale_text
The localized version of
KeyedItem.text. |
java.lang.String |
originalValue
The original value
|
java.lang.String |
use_last_as_default
whether the last value is used as default.
|
private javax.swing.JComponent |
value |
DIFFERENT, key, LAST_VALUES, match, PROP_FILL_DEFAULT, text, text_context| Constructor and Description |
|---|
Text() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommands(java.util.List<Tag> changedTags)
Adds the new tags to apply to selected OSM primitives when the preset holding this item is applied.
|
boolean |
addToPanel(javax.swing.JPanel p,
java.util.Collection<OsmPrimitive> sel,
boolean presetInitiallyMatches)
Called by
TaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>) during tagging preset panel creation. |
KeyedItem.MatchType |
getDefaultMatch()
Returns the default match.
|
private static java.lang.String |
getValue(java.awt.Component comp) |
java.util.Collection<java.lang.String> |
getValues()
Returns the list of values.
|
private static void |
saveHorizontalSpace(javax.swing.AbstractButton button) |
determineBooleanUsage, determineTextUsage, getKeyTooltipText, isKeyRequired, matches, toStringfixPresetString, getLocaleText, getType, initAutoCompletionField, initAutoCompletionField, loadImageIcon, matches, parseIntegerprivate static int auto_increment_selected
public java.lang.String locale_text
KeyedItem.text.public java.lang.String default_
public java.lang.String originalValue
public java.lang.String use_last_as_default
public java.lang.String auto_increment
use_last_as_default.public java.lang.String length
public java.lang.String alternative_autocomplete_keys
private javax.swing.JComponent value
public Text()
public boolean addToPanel(javax.swing.JPanel p, java.util.Collection<OsmPrimitive> sel, boolean presetInitiallyMatches)
TaggingPresetItemTaggingPreset.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 TaggingPresetItemp - 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 static void saveHorizontalSpace(javax.swing.AbstractButton button)
private static java.lang.String getValue(java.awt.Component comp)
public void addCommands(java.util.List<Tag> changedTags)
TaggingPresetItemaddCommands in class TaggingPresetItemchangedTags - The list of changed tags to modify if neededpublic KeyedItem.MatchType getDefaultMatch()
KeyedItemgetDefaultMatch in class KeyedItem