Uses of Interface
org.openstreetmap.josm.spi.preferences.Setting
-
Packages that use Setting Package Description org.openstreetmap.josm.data Provides the classes for JOSM managed data.org.openstreetmap.josm.data.preferences Provides the classes for storing JOSM user preferences.org.openstreetmap.josm.gui.io Provides GUI classes for handling input/output operations (download, upload, save).org.openstreetmap.josm.gui.preferences.advanced Provides classes for handling advanced preferences.org.openstreetmap.josm.spi.preferences Service for preferences and base directory lookup. -
-
Uses of Setting in org.openstreetmap.josm.data
Fields in org.openstreetmap.josm.data with type parameters of type Setting Modifier and Type Field Description protected SortedMap<String,Setting<?>>
Preferences. defaultsMap
Maps the setting name to the default value of the setting.protected SortedMap<String,Setting<?>>
Preferences. settingsMap
Maps the setting name to the current value of the setting.Methods in org.openstreetmap.josm.data with type parameters of type Setting Modifier and Type Method Description <T extends Setting<?>>
TPreferences. getSetting(String key, T def, Class<T> klass)
Get settings value for a certain key and provide default a value.Methods in org.openstreetmap.josm.data that return Setting Modifier and Type Method Description Setting<?>
Preferences. getSetting(String key, Setting<?> def)
Get a setting of any typeMethods in org.openstreetmap.josm.data that return types with arguments of type Setting Modifier and Type Method Description Map<String,Setting<?>>
Preferences. getAllDefaults()
Gets a map of all currently known defaultsMap<String,Setting<?>>
Preferences. getAllSettings()
Methods in org.openstreetmap.josm.data with parameters of type Setting Modifier and Type Method Description protected void
Preferences. firePreferenceChanged(String key, Setting<?> oldValue, Setting<?> newValue)
Setting<?>
Preferences. getSetting(String key, Setting<?> def)
Get a setting of any typeboolean
Preferences. putSetting(String key, Setting<?> setting)
Set a value for a certain setting.Method parameters in org.openstreetmap.josm.data with type arguments of type Setting Modifier and Type Method Description protected void
Preferences. save(File prefFile, Stream<Map.Entry<String,Setting<?>>> settings, boolean defaults)
String
Preferences. toXML(Collection<Map.Entry<String,Setting<?>>> settings, boolean nopass, boolean defaults)
Returns XML describing the given preferences. -
Uses of Setting in org.openstreetmap.josm.data.preferences
Fields in org.openstreetmap.josm.data.preferences with type parameters of type Setting Modifier and Type Field Description private SortedMap<String,Setting<?>>
PreferencesReader. settings
Methods in org.openstreetmap.josm.data.preferences that return types with arguments of type Setting Modifier and Type Method Description SortedMap<String,Setting<?>>
PreferencesReader. getSettings()
Return the parsed preferences as a settings mapMethods in org.openstreetmap.josm.data.preferences with parameters of type Setting Modifier and Type Method Description private void
PreferencesWriter. addTime(Setting<?> setting)
Method parameters in org.openstreetmap.josm.data.preferences with type arguments of type Setting Modifier and Type Method Description void
PreferencesWriter. write(Collection<Map.Entry<String,Setting<?>>> settings)
Write preferences.void
PreferencesWriter. write(Stream<Map.Entry<String,Setting<?>>> settings)
Write preferences. -
Uses of Setting in org.openstreetmap.josm.gui.io
Methods in org.openstreetmap.josm.gui.io with parameters of type Setting Modifier and Type Method Description private void
UploadDialog. osmServerUrlChanged(Setting<?> newValue)
-
Uses of Setting in org.openstreetmap.josm.gui.preferences.advanced
Fields in org.openstreetmap.josm.gui.preferences.advanced declared as Setting Modifier and Type Field Description private Setting<?>
PrefEntry. defaultValue
private Setting<?>
PrefEntry. value
Methods in org.openstreetmap.josm.gui.preferences.advanced that return Setting Modifier and Type Method Description Setting<?>
PrefEntry. getDefaultValue()
Returns the preference default value.Setting<?>
PrefEntry. getValue()
Returns the preference value.Methods in org.openstreetmap.josm.gui.preferences.advanced with parameters of type Setting Modifier and Type Method Description void
PrefEntry. setValue(Setting<?> value)
Sets the preference value.Method parameters in org.openstreetmap.josm.gui.preferences.advanced with type arguments of type Setting Modifier and Type Method Description private List<PrefEntry>
AdvancedPreference. prepareData(Map<String,Setting<?>> loaded, Map<String,Setting<?>> orig, Map<String,Setting<?>> defaults)
Constructors in org.openstreetmap.josm.gui.preferences.advanced with parameters of type Setting Constructor Description PrefEntry(String key, Setting<?> value, Setting<?> defaultValue, boolean isDefault)
Constructs a newPrefEntry
. -
Uses of Setting in org.openstreetmap.josm.spi.preferences
Classes in org.openstreetmap.josm.spi.preferences that implement Setting Modifier and Type Class Description class
AbstractSetting<T>
Base abstract class of all settings, holding the setting value.class
ListListSetting
class
ListSetting
class
MapListSetting
class
StringSetting
Setting containing aString
value.Fields in org.openstreetmap.josm.spi.preferences declared as Setting Modifier and Type Field Description private Setting<?>
DefaultPreferenceChangeEvent. newValue
private Setting<?>
DefaultPreferenceChangeEvent. oldValue
Fields in org.openstreetmap.josm.spi.preferences with type parameters of type Setting Modifier and Type Field Description private Map<String,Setting<?>>
MemoryPreferences. settings
Methods in org.openstreetmap.josm.spi.preferences with type parameters of type Setting Modifier and Type Method Description abstract <T extends Setting<?>>
TAbstractPreferences. getSetting(String key, T def, Class<T> klass)
Get settings value for a certain key and provide default a value.<T extends Setting<?>>
TMemoryPreferences. getSetting(String key, T def, Class<T> klass)
Methods in org.openstreetmap.josm.spi.preferences that return Setting Modifier and Type Method Description Setting<T>
Setting. copy()
Clone the current object.Setting<?>
DefaultPreferenceChangeEvent. getNewValue()
Setting<?>
PreferenceChangeEvent. getNewValue()
Returns the new preference value.Setting<T>
Setting. getNullInstance()
Returns a setting whose value is null.Setting<?>
DefaultPreferenceChangeEvent. getOldValue()
Setting<?>
PreferenceChangeEvent. getOldValue()
Returns the old preference value.Methods in org.openstreetmap.josm.spi.preferences that return types with arguments of type Setting Modifier and Type Method Description abstract Map<String,Setting<?>>
AbstractPreferences. getAllSettings()
Gets a map of all settings that are currently storedMap<String,Setting<?>>
MemoryPreferences. getAllSettings()
Methods in org.openstreetmap.josm.spi.preferences with parameters of type Setting Modifier and Type Method Description abstract boolean
AbstractPreferences. putSetting(String key, Setting<?> setting)
Set a value for a certain setting.boolean
MemoryPreferences. putSetting(String key, Setting<?> setting)
Constructors in org.openstreetmap.josm.spi.preferences with parameters of type Setting Constructor Description DefaultPreferenceChangeEvent(Class<?> source, String key, Setting<?> oldValue, Setting<?> newValue)
Constructs a newDefaultPreferenceChangeEvent
.
-