Top Description Methods
javafx.beans.value

public Interface ObservableNumberValue

extends ObservableValue<Number>
Known Direct Subinterfaces
javafx.beans.binding.NumberExpression, javafx.beans.value.ObservableDoubleValue, javafx.beans.value.ObservableFloatValue, javafx.beans.value.ObservableIntegerValue, javafx.beans.value.ObservableLongValue

A common interface of all sub-interfaces of ObservableValue that wrap a number.
Since
JavaFX 2.0
See Also
ObservableValue, ObservableDoubleValue, ObservableFloatValue, ObservableIntegerValue, ObservableLongValue

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

The value of this ObservableNumberValue as a double
doubleValue
()

Returns the value of this ObservableNumberValue as a double.

public float

Returns:

The value of this ObservableNumberValue as a float
floatValue
()

Returns the value of this ObservableNumberValue as a float.

public int

Returns:

The value of this ObservableNumberValue as an int
intValue
()

Returns the value of this ObservableNumberValue as an int .

public long

Returns:

The value of this ObservableNumberValue as a long
longValue
()

Returns the value of this ObservableNumberValue as a long .

Inherited from javafx.beans.value.ObservableValue:
addListenerflatMapgetValuemaporElseremoveListenersubscribesubscribewhen

Method Detail

doubleValueback to summary
public double doubleValue()

Returns the value of this ObservableNumberValue as a double. If the value is not a double, a standard cast is performed.

Returns:double

The value of this ObservableNumberValue as a double

floatValueback to summary
public float floatValue()

Returns the value of this ObservableNumberValue as a float. If the value is not a float, a standard cast is performed.

Returns:float

The value of this ObservableNumberValue as a float

intValueback to summary
public int intValue()

Returns the value of this ObservableNumberValue as an int . If the value is not an int, a standard cast is performed.

Returns:int

The value of this ObservableNumberValue as an int

longValueback to summary
public long longValue()

Returns the value of this ObservableNumberValue as a long . If the value is not a long, a standard cast is performed.

Returns:long

The value of this ObservableNumberValue as a long