public static class MapPaintPreference.MapPaintPrefHelper extends SourceEditor.SourcePrefHelper
Modifier and Type | Field and Description |
---|---|
static MapPaintPreference.MapPaintPrefHelper |
INSTANCE
The unique instance.
|
Constructor and Description |
---|
MapPaintPreference.MapPaintPrefHelper()
Constructs a new
MapPaintPrefHelper . |
Modifier and Type | Method and Description |
---|---|
SourceEntry |
deserialize(java.util.Map<java.lang.String,java.lang.String> s) |
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) |
getActiveUrls, put
public static final MapPaintPreference.MapPaintPrefHelper INSTANCE
public MapPaintPreference.MapPaintPrefHelper()
MapPaintPrefHelper
.public java.util.List<SourceEntry> get()
SourceEditor.SourcePrefHelper
get
in class SourceEditor.SourcePrefHelper
private boolean insertNewDefaults(java.util.List<SourceEntry> list)
public java.util.Collection<SourceEditor.ExtendedSourceEntry> getDefault()
SourceEditor.SourcePrefHelper
getDefault
in class SourceEditor.SourcePrefHelper
public java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
serialize
in class SourceEditor.SourcePrefHelper
public SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
deserialize
in class SourceEditor.SourcePrefHelper