public final class TaggingPresetItems extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TaggingPresetItems.Check |
static class |
TaggingPresetItems.CheckGroup
A group of
TaggingPresetItems.Check s. |
static class |
TaggingPresetItems.Combo |
static class |
TaggingPresetItems.ComboMultiSelect |
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 |
static class |
TaggingPresetItems.KeyedItem |
static class |
TaggingPresetItems.Label |
static class |
TaggingPresetItems.Link |
static class |
TaggingPresetItems.MatchType
Enum denoting how a match (see
Item#matches ) is performed. |
static class |
TaggingPresetItems.MultiSelect |
static class |
TaggingPresetItems.Optional |
static class |
TaggingPresetItems.PresetListEntry |
static class |
TaggingPresetItems.Role |
static class |
TaggingPresetItems.Roles |
static class |
TaggingPresetItems.Space |
static class |
TaggingPresetItems.TaggingPresetTextItem
A tagging preset item displaying a localizable text.
|
static class |
TaggingPresetItems.Text |
static class |
TaggingPresetItems.Usage |
Modifier and Type | Field and Description |
---|---|
private static int |
auto_increment_selected |
static String |
DIFFERENT |
private static Map<String,String> |
lastValue
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>> |
typeCache |
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) |
static EnumSet<TaggingPresetType> |
getType(String types) |
protected static ImageIcon |
loadImageIcon(String iconName,
File zipIcons,
Integer maxSize) |
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
private static final BooleanProperty PROP_FILL_DEFAULT
private static final Map<String,EnumSet<TaggingPresetType>> typeCache
private TaggingPresetItems()
public static EnumSet<TaggingPresetType> getType(String types) throws SAXException
SAXException
static String fixPresetString(String s)
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)