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, getSpecialized
addListener, addListenerImpl, addWeakListener, cached, equals, getDefaultValue, getKey, getPreferences, hashCode, isSet, remove, removeListener, removeListenerImpl, storeDefaultValue
public DoubleProperty(java.lang.String key, double defaultValue)
DoubleProperty
.key
- The property keydefaultValue
- The default valuepublic java.lang.Double get()
AbstractProperty
get
in class AbstractToStringProperty<java.lang.Double>
public boolean put(java.lang.Double value)
AbstractProperty
put
in class AbstractToStringProperty<java.lang.Double>
value
- The new value of this propertyprotected java.lang.Double fromString(java.lang.String string)
AbstractToStringProperty
fromString
in class AbstractToStringProperty<java.lang.Double>
string
- The stringprotected java.lang.String toString(java.lang.Double t)
AbstractToStringProperty
toString
in class AbstractToStringProperty<java.lang.Double>
t
- The object.public boolean parseAndPut(java.lang.String value)
value
- the value to be parsed