public class StringProperty extends AbstractToStringProperty<java.lang.String>
String
value.AbstractToStringProperty.ChildProperty<T>
AbstractProperty.InvalidPreferenceValueException, AbstractProperty.ValueChangeEvent<T>, AbstractProperty.ValueChangeListener<T>
defaultValue, key, preferences
Constructor and Description |
---|
StringProperty(java.lang.String key,
java.lang.String defaultValue)
Constructs a new
StringProperty . |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
fromString(java.lang.String string)
Converts the string to an object of the given type.
|
java.lang.String |
get()
Replies the value of this property.
|
boolean |
put(java.lang.String value)
Sets this property to the specified value.
|
protected java.lang.String |
toString(java.lang.String string)
Converts the string to an object of the given type.
|
cached, getAsString, getChildProperty, getSpecialized
addListener, addListenerImpl, addWeakListener, addWeakListenerImpl, equals, getDefaultValue, getKey, getPreferences, hashCode, isSet, remove, removeListener, removeListenerImpl, storeDefaultValue
public StringProperty(java.lang.String key, java.lang.String defaultValue)
StringProperty
.key
- The property keydefaultValue
- The default valuepublic java.lang.String get()
AbstractProperty
get
in class AbstractToStringProperty<java.lang.String>
public boolean put(java.lang.String value)
AbstractProperty
put
in class AbstractToStringProperty<java.lang.String>
value
- The new value of this propertyprotected java.lang.String fromString(java.lang.String string)
AbstractToStringProperty
fromString
in class AbstractToStringProperty<java.lang.String>
string
- The stringprotected java.lang.String toString(java.lang.String string)
AbstractToStringProperty
toString
in class AbstractToStringProperty<java.lang.String>
string
- The object.