public class DoubleProperty extends AbstractToStringProperty<java.lang.Double>
Double value.AbstractToStringProperty.ChildProperty<T>AbstractProperty.InvalidPreferenceValueException, AbstractProperty.ValueChangeEvent<T>, AbstractProperty.ValueChangeListener<T>defaultValue, key, preferences| Constructor and Description |
|---|
DoubleProperty(java.lang.String key,
double defaultValue)
Constructs a new
DoubleProperty. |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Double |
fromString(java.lang.String string)
Converts the string to an object of the given type.
|
java.lang.Double |
get()
Replies the value of this property.
|
boolean |
parseAndPut(java.lang.String value)
parses and saves a double precision value
|
boolean |
put(java.lang.Double value)
Sets this property to the specified value.
|
protected java.lang.String |
toString(java.lang.Double t)
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 DoubleProperty(java.lang.String key, double defaultValue)
DoubleProperty.key - The property keydefaultValue - The default valuepublic java.lang.Double get()
AbstractPropertyget in class AbstractToStringProperty<java.lang.Double>public boolean put(java.lang.Double value)
AbstractPropertyput in class AbstractToStringProperty<java.lang.Double>value - The new value of this propertyprotected java.lang.Double fromString(java.lang.String string)
AbstractToStringPropertyfromString in class AbstractToStringProperty<java.lang.Double>string - The stringprotected java.lang.String toString(java.lang.Double t)
AbstractToStringPropertytoString in class AbstractToStringProperty<java.lang.Double>t - The object.public boolean parseAndPut(java.lang.String value)
value - the value to be parsed