java.lang.Object
javafx.beans.binding.NumberExpressionBase
- All Implemented Interfaces:
NumberExpression
,Observable
,ObservableNumberValue
,ObservableValue<Number>
- Direct Known Subclasses:
DoubleExpression
,FloatExpression
,IntegerExpression
,LongExpression
public abstract class NumberExpressionBase extends Object implements NumberExpression
NumberExpressionBase
contains convenience methods to generate bindings in a fluent style,
that are common to all NumberExpression subclasses.
NumberExpressionBase serves as a place for common code of specific NumberExpression subclasses for the specific number type.
- Since:
- JavaFX 2.0
- See Also:
IntegerExpression
,LongExpression
,FloatExpression
,DoubleExpression
-
Constructor Summary
Constructors Constructor Description NumberExpressionBase()
Creates a defaultNumberExpressionBase
. -
Method Summary
Modifier and Type Method Description static <S extends Number>
NumberExpressionBasenumberExpression(ObservableNumberValue value)
Returns anNumberExpressionBase
that wraps aObservableNumberValue
.Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface javafx.beans.binding.NumberExpression
add, add, add, add, add, asString, asString, asString, divide, divide, divide, divide, divide, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, multiply, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract, subtract
Methods declared in interface javafx.beans.Observable
addListener, removeListener
Methods declared in interface javafx.beans.value.ObservableNumberValue
doubleValue, floatValue, intValue, longValue
Methods declared in interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Constructor Details
-
NumberExpressionBase
public NumberExpressionBase()Creates a defaultNumberExpressionBase
.
-
-
Method Details
-
numberExpression
public static <S extends Number> NumberExpressionBase numberExpression(ObservableNumberValue value)Returns anNumberExpressionBase
that wraps aObservableNumberValue
. If theObservableNumberValue
is already an instance ofNumberExpressionBase
, it will be returned. Otherwise a newNumberBinding
is created that is bound to theObservableNumberValue
.- Type Parameters:
S
- The type of Number to be wrapped- Parameters:
value
- The sourceObservableNumberValue
- Returns:
- An
NumberExpressionBase
that wraps theObservableNumberValue
if necessary - Throws:
NullPointerException
- ifvalue
isnull
-