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.spi.preferences |
Service for preferences and base directory lookup.
|
Modifier and Type | Class and Description |
---|---|
class |
Preferences
This class holds all preferences for JOSM.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
PreferencesUtils.getBoolean(IPreferences prefs,
java.lang.String key,
java.lang.String specName,
boolean def)
Gets an boolean that may be specialized
|
static int |
PreferencesUtils.getInteger(IPreferences prefs,
java.lang.String key,
java.lang.String specName,
int def)
Gets an integer that may be specialized
|
static <T> java.util.List<T> |
StructUtils.getListOfStructs(IPreferences preferences,
java.lang.String key,
java.lang.Class<T> klass)
Get a list of hashes which are represented by a struct-like class.
|
static <T> java.util.List<T> |
StructUtils.getListOfStructs(IPreferences preferences,
java.lang.String key,
java.util.Collection<T> def,
java.lang.Class<T> klass)
same as above, but returns def if nothing was found
|
static boolean |
PreferencesUtils.putListBounded(IPreferences prefs,
java.lang.String key,
int maxsize,
java.util.List<java.lang.String> val)
Saves at most
maxsize items of list val . |
static <T> boolean |
StructUtils.putListOfStructs(IPreferences preferences,
java.lang.String key,
java.util.Collection<T> val,
java.lang.Class<T> klass)
Convenience method that saves a MapListSetting which is provided as a collection of objects.
|
static void |
PreferencesUtils.removeFromList(IPreferences prefs,
java.lang.String key,
java.lang.String value)
Removes a value from a given String list
|
Modifier and Type | Field and Description |
---|---|
protected IPreferences |
AbstractProperty.preferences
The preferences object this property is for.
|
Modifier and Type | Method and Description |
---|---|
protected IPreferences |
AbstractProperty.getPreferences()
Gets the preferences used for this property.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPreferences
Abstract implementation of the
IPreferences interface. |
class |
MemoryPreferences
Preferences implementation that keeps all settings in memory.
|
Modifier and Type | Field and Description |
---|---|
private static IPreferences |
Config.preferences |
Modifier and Type | Method and Description |
---|---|
static IPreferences |
Config.getPref()
Get the preferences.
|
Modifier and Type | Method and Description |
---|---|
static void |
Config.setPreferencesInstance(IPreferences preferences)
Install the global preference instance.
|