org.openstreetmap.josm.gui.preferences.map
Class MapPaintPreference.MapPaintPrefHelper

java.lang.Object
  extended by org.openstreetmap.josm.gui.preferences.SourceEditor.SourcePrefHelper
      extended by org.openstreetmap.josm.gui.preferences.map.MapPaintPreference.MapPaintPrefHelper
Enclosing class:
MapPaintPreference

public static class MapPaintPreference.MapPaintPrefHelper
extends SourceEditor.SourcePrefHelper


Field Summary
static MapPaintPreference.MapPaintPrefHelper INSTANCE
           
 
Constructor Summary
MapPaintPreference.MapPaintPrefHelper()
           
 
Method Summary
 SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
           
 java.util.List<SourceEntry> get()
           
 java.util.Collection<SourceEditor.ExtendedSourceEntry> getDefault()
           
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> migrate(java.util.Collection<java.lang.String> old)
           
 java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
           
 
Methods inherited from class org.openstreetmap.josm.gui.preferences.SourceEditor.SourcePrefHelper
put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MapPaintPreference.MapPaintPrefHelper INSTANCE
Constructor Detail

MapPaintPreference.MapPaintPrefHelper

public MapPaintPreference.MapPaintPrefHelper()
Method Detail

get

public java.util.List<SourceEntry> get()
Overrides:
get in class SourceEditor.SourcePrefHelper

insertNewDefaults

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. Remember the known URLs, so an item that was deleted explicitly is not added again.


getDefault

public java.util.Collection<SourceEditor.ExtendedSourceEntry> getDefault()
Specified by:
getDefault in class SourceEditor.SourcePrefHelper

serialize

public java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
Specified by:
serialize in class SourceEditor.SourcePrefHelper

deserialize

public SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
Specified by:
deserialize in class SourceEditor.SourcePrefHelper

migrate

public java.util.Map<java.lang.String,java.lang.String> migrate(java.util.Collection<java.lang.String> old)
Specified by:
migrate in class SourceEditor.SourcePrefHelper


JOSM