public final class TaggingPresetItems extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TaggingPresetItems.Check
Checkbox type.
|
static class |
TaggingPresetItems.CheckGroup
A group of
TaggingPresetItems.Check s. |
static class |
TaggingPresetItems.Combo
Combobox type.
|
static class |
TaggingPresetItems.ComboMultiSelect
Abstract superclass for combo box and multi-select list types.
|
private static class |
TaggingPresetItems.ConcatenatingJList
Class that allows list values to be assigned and retrieved as a comma-delimited
string (extracted from TaggingPreset)
|
static class |
TaggingPresetItems.ItemSeparator
Class used to represent a
JSeparator inside tagging preset window. |
static class |
TaggingPresetItems.Key
Invisible type allowing to hardcode an OSM key/value from the preset definition.
|
static class |
TaggingPresetItems.KeyedItem
Preset item associated to an OSM key.
|
static class |
TaggingPresetItems.Label
Label type.
|
static class |
TaggingPresetItems.Link
Hyperlink type.
|
static class |
TaggingPresetItems.MatchType
Enum denoting how a match (see
TaggingPresetItem.matches(java.util.Map<java.lang.String, java.lang.String>) ) is performed. |
static class |
TaggingPresetItems.MultiSelect
Multi-select list type.
|
static class |
TaggingPresetItems.Optional |
static class |
TaggingPresetItems.PresetLink |
static class |
TaggingPresetItems.PresetListEntry |
static class |
TaggingPresetItems.Role |
static class |
TaggingPresetItems.Roles |
static class |
TaggingPresetItems.Space
Horizontal separator type.
|
static class |
TaggingPresetItems.TaggingPresetTextItem
A tagging preset item displaying a localizable text.
|
static class |
TaggingPresetItems.Text
Text field type.
|
static class |
TaggingPresetItems.Usage |
Modifier and Type | Field and Description |
---|---|
private static int |
auto_increment_selected |
static java.lang.String |
DIFFERENT
Translatation of "<different>".
|
private static java.util.Map<java.lang.String,java.lang.String> |
LAST_VALUES
Last value of each key used in presets, used for prefilling corresponding fields
|
private static BooleanProperty |
PROP_FILL_DEFAULT |
private static java.util.Map<java.lang.String,java.util.EnumSet<TaggingPresetType>> |
TYPE_CACHE |
Modifier | Constructor and Description |
---|---|
private |
TaggingPresetItems() |
Modifier and Type | Method and Description |
---|---|
(package private) static TaggingPresetItems.Usage |
determineBooleanUsage(java.util.Collection<OsmPrimitive> sel,
java.lang.String key) |
(package private) static TaggingPresetItems.Usage |
determineTextUsage(java.util.Collection<OsmPrimitive> sel,
java.lang.String key) |
(package private) static java.lang.String |
fixPresetString(java.lang.String s) |
private static java.lang.String |
getLocaleText(java.lang.String text,
java.lang.String text_context,
java.lang.String defaultText) |
static java.util.EnumSet<TaggingPresetType> |
getType(java.lang.String types) |
protected static javax.swing.ImageIcon |
loadImageIcon(java.lang.String iconName,
java.io.File zipIcons,
java.lang.Integer maxSize) |
protected static java.lang.Integer |
parseInteger(java.lang.String str) |
private static java.lang.String[] |
splitEscaped(char delimiter,
java.lang.String s)
allow escaped comma in comma separated list:
"A\, B\, C,one\, two" --> ["A, B, C", "one, two"]
|
private static int auto_increment_selected
public static final java.lang.String DIFFERENT
private static final BooleanProperty PROP_FILL_DEFAULT
private static final java.util.Map<java.lang.String,java.util.EnumSet<TaggingPresetType>> TYPE_CACHE
private static final java.util.Map<java.lang.String,java.lang.String> LAST_VALUES
private TaggingPresetItems()
public static java.util.EnumSet<TaggingPresetType> getType(java.lang.String types) throws org.xml.sax.SAXException
org.xml.sax.SAXException
static java.lang.String fixPresetString(java.lang.String s)
private static java.lang.String getLocaleText(java.lang.String text, java.lang.String text_context, java.lang.String defaultText)
private static java.lang.String[] splitEscaped(char delimiter, java.lang.String s)
delimiter
- the delimiter, e.g. a comma. separates the entries and
must be escaped within one entrys
- the stringstatic TaggingPresetItems.Usage determineTextUsage(java.util.Collection<OsmPrimitive> sel, java.lang.String key)
static TaggingPresetItems.Usage determineBooleanUsage(java.util.Collection<OsmPrimitive> sel, java.lang.String key)
protected static javax.swing.ImageIcon loadImageIcon(java.lang.String iconName, java.io.File zipIcons, java.lang.Integer maxSize)
protected static java.lang.Integer parseInteger(java.lang.String str)