public static class MapPaintPreference.MapPaintPrefHelper extends SourceEditor.SourcePrefHelper
| Modifier and Type | Field and Description |
|---|---|
static MapPaintPreference.MapPaintPrefHelper |
INSTANCE
The unique instance.
|
| Constructor and Description |
|---|
MapPaintPrefHelper()
Constructs a new
MapPaintPrefHelper. |
| Modifier and Type | Method and Description |
|---|---|
SourceEntry |
deserialize(java.util.Map<java.lang.String,java.lang.String> s)
Deserializes the given map as a source entry.
|
java.util.List<SourceEntry> |
get()
Returns the list of sources.
|
java.util.Collection<SourceEditor.ExtendedSourceEntry> |
getDefault()
Returns the default sources provided by JOSM core.
|
private boolean |
insertNewDefaults(java.util.List<SourceEntry> list)
If the selection of default styles changes in future releases, add
the new entries to the user-configured list.
|
java.util.Map<java.lang.String,java.lang.String> |
serialize(SourceEntry entry)
Serializes the given source entry as a map.
|
getActiveUrls, putpublic static final MapPaintPreference.MapPaintPrefHelper INSTANCE
public MapPaintPrefHelper()
MapPaintPrefHelper.public java.util.List<SourceEntry> get()
SourceEditor.SourcePrefHelperget in class SourceEditor.SourcePrefHelperprivate boolean insertNewDefaults(java.util.List<SourceEntry> list)
list - new defaultstrue if a change occurredpublic java.util.Collection<SourceEditor.ExtendedSourceEntry> getDefault()
SourceEditor.SourcePrefHelpergetDefault in class SourceEditor.SourcePrefHelperpublic java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
SourceEditor.SourcePrefHelperserialize in class SourceEditor.SourcePrefHelperentry - source entry to serializepublic SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
SourceEditor.SourcePrefHelperdeserialize in class SourceEditor.SourcePrefHelpers - map (key=value)