org.openstreetmap.josm.data.preferences
Class StringProperty

java.lang.Object
  extended by org.openstreetmap.josm.data.preferences.AbstractProperty<java.lang.String>
      extended by org.openstreetmap.josm.data.preferences.StringProperty

public class StringProperty
extends AbstractProperty<java.lang.String>

A property containing an String value.


Field Summary
 
Fields inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
defaultValue, key
 
Constructor Summary
StringProperty(java.lang.String key, java.lang.String defaultValue)
          Constructs a new StringProperty.
 
Method Summary
 java.lang.String get()
          Replies the value of this property.
 boolean put(java.lang.String value)
          Sets this property to the specified value.
 
Methods inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
getDefaultValue, getKey, isSet, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringProperty

public StringProperty(java.lang.String key,
                      java.lang.String defaultValue)
Constructs a new StringProperty.

Parameters:
key - The property key
defaultValue - The default value
Method Detail

get

public java.lang.String get()
Description copied from class: AbstractProperty
Replies the value of this property.

Specified by:
get in class AbstractProperty<java.lang.String>
Returns:
the value of this property

put

public boolean put(java.lang.String value)
Description copied from class: AbstractProperty
Sets this property to the specified value.

Specified by:
put in class AbstractProperty<java.lang.String>
Parameters:
value - The new value of this property
Returns:
true if something has changed (i.e. value is different than before)


JOSM