Interface ObservableNumberValue
All Superinterfaces:
All Known Subinterfaces:
NumberBinding, NumberExpression, ObservableDoubleValue, ObservableFloatValue, ObservableIntegerValue, ObservableLongValue
All Known Implementing Classes:
DoubleBinding, DoubleExpression, DoubleProperty, DoublePropertyBase, FloatBinding, FloatExpression, FloatProperty, FloatPropertyBase, IntegerBinding, IntegerExpression, IntegerProperty, IntegerPropertyBase, JavaBeanDoubleProperty, JavaBeanFloatProperty, JavaBeanIntegerProperty, JavaBeanLongProperty, LongBinding, LongExpression, LongProperty, LongPropertyBase, NumberExpressionBase, ReadOnlyDoubleProperty, ReadOnlyDoublePropertyBase, ReadOnlyDoubleWrapper, ReadOnlyFloatProperty, ReadOnlyFloatPropertyBase, ReadOnlyFloatWrapper, ReadOnlyIntegerProperty, ReadOnlyIntegerPropertyBase, ReadOnlyIntegerWrapper, ReadOnlyJavaBeanDoubleProperty, ReadOnlyJavaBeanFloatProperty, ReadOnlyJavaBeanIntegerProperty, ReadOnlyJavaBeanLongProperty, ReadOnlyLongProperty, ReadOnlyLongPropertyBase, ReadOnlyLongWrapper, SimpleDoubleProperty, SimpleFloatProperty, SimpleIntegerProperty, SimpleLongProperty, SimpleStyleableDoubleProperty, SimpleStyleableFloatProperty, SimpleStyleableIntegerProperty, SimpleStyleableLongProperty, StyleableDoubleProperty, StyleableFloatProperty, StyleableIntegerProperty, StyleableLongProperty
public interface ObservableNumberValue extends ObservableValue<Number>
ObservableValue that wrap a number.Since:
JavaFX 2.0
-
Method Summary
All MethodsInstance MethodsAbstract Methods Modifier and Type Method and Description doubledoubleValue()Returns the value of thisObservableNumberValueas adouble.floatfloatValue()Returns the value of thisObservableNumberValueas afloat.intintValue()Returns the value of thisObservableNumberValueas anint.longlongValue()Returns the value of thisObservableNumberValueas along.-
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Methods inherited from interface javafx.beans.Observable
addListener, removeListener
-
-
Method Detail
-
intValue
int intValue()
Returns the value of thisObservableNumberValueas anint. If the value is not anint, a standard cast is performed.Returns:
The value of this
ObservableNumberValueas anint
-
longValue
long longValue()
Returns the value of thisObservableNumberValueas along. If the value is not along, a standard cast is performed.Returns:
The value of this
ObservableNumberValueas along
-
floatValue
float floatValue()
Returns the value of thisObservableNumberValueas afloat. If the value is not afloat, a standard cast is performed.Returns:
The value of this
ObservableNumberValueas afloat
-
doubleValue
double doubleValue()
Returns the value of thisObservableNumberValueas adouble. If the value is not adouble, a standard cast is performed.Returns:
The value of this
ObservableNumberValueas adouble
-
© 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.