Class ListProperty
java.lang.Object
org.openstreetmap.josm.data.preferences.AbstractProperty<List<String>>
org.openstreetmap.josm.data.preferences.ListProperty
A property containing a
List of String as value.-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
AbstractProperty.InvalidPreferenceValueException, AbstractProperty.ValueChangeEvent<T>, AbstractProperty.ValueChangeListener<T> -
Field Summary
Fields inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
defaultValue, key, preferences -
Constructor Summary
ConstructorsConstructorDescriptionListProperty(String key, List<String> defaultValue) Constructs a newCollectionProperty. -
Method Summary
Methods inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
addListener, addListenerImpl, addWeakListener, cached, equals, getDefaultValue, getKey, getPreferences, hashCode, isSet, remove, removeListener, removeListenerImpl, storeDefaultValue
-
Constructor Details
-
ListProperty
Constructs a newCollectionProperty.- Parameters:
key- The property keydefaultValue- The default value
-
-
Method Details
-
get
Description copied from class:AbstractPropertyReplies the value of this property.- Specified by:
getin classAbstractProperty<List<String>>- Returns:
- the value of this property
-
put
Description copied from class:AbstractPropertySets this property to the specified value.- Specified by:
putin classAbstractProperty<List<String>>- Parameters:
value- The new value of this property- Returns:
- true if something has changed (i.e. value is different than before)
-