Interface WritableDoubleValue
All Superinterfaces:
All Known Implementing Classes:
DoubleProperty, DoublePropertyBase, JavaBeanDoubleProperty, ReadOnlyDoubleWrapper, SimpleDoubleProperty, SimpleStyleableDoubleProperty, StyleableDoubleProperty
public interface WritableDoubleValue extends WritableNumberValue
Since:
JavaFX 2.0
See Also:
-
Method Summary
All MethodsInstance MethodsAbstract Methods Modifier and Type Method and Description doubleget()Get the wrapped value.voidset(double value)Set the wrapped value.voidsetValue(Number value)Set the wrapped value.-
Methods inherited from interface javafx.beans.value.WritableValue
getValue
-
-
Method Detail
-
get
double get()
Get the wrapped value. UnlikeWritableValue.getValue(), this method returns primitive double. Needs to be identical toWritableValue.getValue().Returns:
The current value
-
set
void set(double value)
Set the wrapped value. UnlikesetValue(java.lang.Number), this method uses primitive double.Parameters:
value- The new value
-
setValue
void setValue(Number value)
Set the wrapped value.Note: this method should accept null without throwing an exception, setting "0.0" instead.
Specified by:
setValuein interfaceWritableValue<Number>Parameters:
value- The new value
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.