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.
|
getAsString, getChildProperty, getSpecializedaddListener, addListenerImpl, addWeakListener, cached, equals, getDefaultValue, getKey, getPreferences, hashCode, isSet, remove, removeListener, removeListenerImpl, storeDefaultValuepublic StringProperty(java.lang.String key, java.lang.String defaultValue)
StringProperty.key - The property keydefaultValue - The default valuepublic java.lang.String get()
AbstractPropertyget in class AbstractToStringProperty<java.lang.String>public boolean put(java.lang.String value)
AbstractPropertyput in class AbstractToStringProperty<java.lang.String>value - The new value of this propertyprotected java.lang.String fromString(java.lang.String string)
AbstractToStringPropertyfromString in class AbstractToStringProperty<java.lang.String>string - The stringprotected java.lang.String toString(java.lang.String string)
AbstractToStringPropertytoString in class AbstractToStringProperty<java.lang.String>string - The object.