Package javafx.beans.value
Interface ObservableNumberValue
- All Superinterfaces:
Observable
,ObservableValue<Number>
- All Known Subinterfaces:
NumberBinding
,NumberExpression
,ObservableDoubleValue
,ObservableFloatValue
,ObservableIntegerValue
,ObservableLongValue
- All Known Implementing Classes:
DoubleBinding
,DoubleExpression
,DoubleProperty
,DoublePropertyBase
,IntegerBinding
,IntegerConstant
,IntegerExpression
,IntegerProperty
,IntegerPropertyBase
,LongBinding
,LongExpression
,LongProperty
,LongPropertyBase
,NumberExpressionBase
,ReadOnlyDoubleProperty
,ReadOnlyIntegerProperty
,ReadOnlyIntegerPropertyBase
,ReadOnlyLongProperty
,SimpleDoubleProperty
,SimpleIntegerProperty
,SimpleLongProperty
,StyleableIntegerProperty
A common interface of all sub-interfaces of
ObservableValue
that wrap
a number.- Since:
- JavaFX 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of thisObservableNumberValue
as adouble
.float
Returns the value of thisObservableNumberValue
as afloat
.int
intValue()
Returns the value of thisObservableNumberValue
as anint
.long
Returns the value of thisObservableNumberValue
as along
.Methods inherited from interface javafx.beans.Observable
addListener, removeListener
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Method Details
-
intValue
int intValue()Returns the value of thisObservableNumberValue
as anint
. If the value is not anint
, a standard cast is performed.- Returns:
- The value of this
ObservableNumberValue
as anint
-
longValue
long longValue()Returns the value of thisObservableNumberValue
as along
. If the value is not along
, a standard cast is performed.- Returns:
- The value of this
ObservableNumberValue
as along
-
floatValue
float floatValue()Returns the value of thisObservableNumberValue
as afloat
. If the value is not afloat
, a standard cast is performed.- Returns:
- The value of this
ObservableNumberValue
as afloat
-
doubleValue
double doubleValue()Returns the value of thisObservableNumberValue
as adouble
. If the value is not adouble
, a standard cast is performed.- Returns:
- The value of this
ObservableNumberValue
as adouble
-