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) |
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, 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)
public java.util.Collection<SourceEditor.ExtendedSourceEntry> getDefault()
SourceEditor.SourcePrefHelpergetDefault in class SourceEditor.SourcePrefHelperpublic java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
serialize in class SourceEditor.SourcePrefHelperpublic SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
deserialize in class SourceEditor.SourcePrefHelper