public final class TaggingPresetItems extends 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 String |
DIFFERENT
Translatation of "<different>".
|
private static Map<String,String> |
LAST_VALUES
Last value of each key used in presets, used for prefilling corresponding fields
|
private static BooleanProperty |
PROP_FILL_DEFAULT |
private static Map<String,EnumSet<TaggingPresetType>> |
TYPE_CACHE |
Modifier | Constructor and Description |
---|---|
private |
TaggingPresetItems() |
Modifier and Type | Method and Description |
---|---|
(package private) static TaggingPresetItems.Usage |
determineBooleanUsage(Collection<OsmPrimitive> sel,
String key) |
(package private) static TaggingPresetItems.Usage |
determineTextUsage(Collection<OsmPrimitive> sel,
String key) |
(package private) static String |
fixPresetString(String s) |
private static String |
getLocaleText(String text,
String text_context,
String defaultText) |
static EnumSet<TaggingPresetType> |
getType(String types) |
protected static ImageIcon |
loadImageIcon(String iconName,
File zipIcons,
Integer maxSize) |
protected static Integer |
parseInteger(String str) |
private static String[] |
splitEscaped(char delimiter,
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 String DIFFERENT
private static final BooleanProperty PROP_FILL_DEFAULT
private static final Map<String,EnumSet<TaggingPresetType>> TYPE_CACHE
private static final Map<String,String> LAST_VALUES
private TaggingPresetItems()
public static EnumSet<TaggingPresetType> getType(String types) throws SAXException
SAXException
static String fixPresetString(String s)
private static String getLocaleText(String text, String text_context, String defaultText)
private static String[] splitEscaped(char delimiter, String s)
delimiter
- the delimiter, e.g. a comma. separates the entries and
must be escaped within one entrys
- the stringstatic TaggingPresetItems.Usage determineTextUsage(Collection<OsmPrimitive> sel, String key)
static TaggingPresetItems.Usage determineBooleanUsage(Collection<OsmPrimitive> sel, String key)
protected static ImageIcon loadImageIcon(String iconName, File zipIcons, Integer maxSize)
protected static Integer parseInteger(String str)