public class PersistentStringProperty extends StringProperty
.properties file.properties| Constructor and Description |
|---|
PersistentStringProperty(Properties properties,
String path,
String defaultValue,
StringProperty propertyFileLocation)
Creates a persistent string property.
|
| Modifier and Type | Method and Description |
|---|---|
String |
set(String value)
Sets the value of this property.
|
get, get, getaddTrigger, booleanValue, getDefaultValue, getInternal, getPath, getString, isSet, onChange, removeTrigger, setString, stringValue, toBooleanpublic PersistentStringProperty(Properties properties, String path, String defaultValue, StringProperty propertyFileLocation)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".defaultValue - Default value, null if there is no default.propertyFileLocation - Location of the property file where this
property's value should be persisted.public String set(String value)
This method is synchronized to prevent multiple threads from
attempting to initialize the property storage (storage)
simultaneously.
set in class StringPropertyCopyright © 2012–2015 Julian Hyde. All rights reserved.