Top Description Constructors Methods
javafx.beans.binding

public abstract Class NumberExpressionBase

extends Object
implements NumberExpression
Class Inheritance
All Implemented Interfaces
javafx.beans.binding.NumberExpression, javafx.beans.value.ObservableNumberValue, javafx.beans.value.ObservableValue, javafx.beans.Observable
Known Direct Subclasses
javafx.beans.binding.DoubleExpression, javafx.beans.binding.FloatExpression, javafx.beans.binding.IntegerExpression, javafx.beans.binding.LongExpression
Imports
java.util.Locale, javafx.beans.value.ObservableDoubleValue, .ObservableFloatValue, .ObservableIntegerValue, .ObservableLongValue, .ObservableNumberValue, com.sun.javafx.binding.StringFormatter

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

AccessConstructor and Description
public
NumberExpressionBase()

Creates a default NumberExpressionBase.

Method Summary

Modifier and TypeMethod and Description
public NumberBinding
add(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.add.

Creates a new javafx.beans.binding.NumberBinding that calculates the sum of this NumberExpression and another javafx.beans.value.ObservableNumberValue.

public StringBinding
asString()

Implements javafx.beans.binding.NumberExpression.asString.

Creates a javafx.beans.binding.StringBinding that holds the value of the NumberExpression turned into a String.

public StringBinding
asString(String
the formatting String
format
)

Implements javafx.beans.binding.NumberExpression.asString.

Creates a javafx.beans.binding.StringBinding that holds the value of the NumberExpression turned into a String.

public StringBinding
asString(Locale
the Locale to be used
locale
,
String
the formatting String
format
)

Implements javafx.beans.binding.NumberExpression.asString.

Creates a javafx.beans.binding.StringBinding that holds the value of the NumberExpression turned into a String.

public NumberBinding
divide(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.divide.

Creates a new javafx.beans.binding.NumberBinding that calculates the division of this NumberExpression and another javafx.beans.value.ObservableNumberValue.

public BooleanBinding
greaterThan(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.greaterThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than another javafx.beans.value.ObservableNumberValue.

public BooleanBinding
greaterThan(final double
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.greaterThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than a constant value.

public BooleanBinding
greaterThan(final float
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.greaterThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than a constant value.

public BooleanBinding
greaterThan(final long
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.greaterThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than a constant value.

public BooleanBinding
greaterThan(final int
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.greaterThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than a constant value.

public BooleanBinding
greaterThanOrEqualTo(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.greaterThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than or equal to another javafx.beans.value.ObservableNumberValue.

public BooleanBinding
greaterThanOrEqualTo(final double
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.greaterThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than or equal to a constant value.

public BooleanBinding
greaterThanOrEqualTo(final float
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.greaterThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than or equal to a constant value.

public BooleanBinding
greaterThanOrEqualTo(final long
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.greaterThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than or equal to a constant value.

public BooleanBinding
greaterThanOrEqualTo(final int
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.greaterThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is greater than or equal to a constant value.

public BooleanBinding
isEqualTo(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.isEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this and another javafx.beans.value.ObservableNumberValue are equal.

public BooleanBinding
isEqualTo(final ObservableNumberValue
the second ObservableNumberValue
other
,
double
the tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this and another javafx.beans.value.ObservableNumberValue are equal (with a tolerance).

public BooleanBinding
isEqualTo(final double
the constant value
other
,
double
the permitted tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is equal to a constant value (with a tolerance).

public BooleanBinding
isEqualTo(final float
the constant value
other
,
double
the permitted tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is equal to a constant value (with a tolerance).

public BooleanBinding
isEqualTo(final long
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.isEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is equal to a constant value.

public BooleanBinding
isEqualTo(final long
the constant value
other
,
double
the permitted tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is equal to a constant value (with a tolerance).

public BooleanBinding
isEqualTo(final int
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.isEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is equal to a constant value.

public BooleanBinding
isEqualTo(final int
the constant value
other
,
double
the permitted tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is equal to a constant value (with a tolerance).

public BooleanBinding
isNotEqualTo(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.isNotEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this and another javafx.beans.value.ObservableNumberValue are not equal.

public BooleanBinding
isNotEqualTo(final ObservableNumberValue
the second ObservableNumberValue
other
,
double
the permitted tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isNotEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this and another javafx.beans.value.ObservableNumberValue are not equal (with a tolerance).

public BooleanBinding
isNotEqualTo(final double
the constant value
other
,
double
the permitted tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isNotEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is not equal to a constant value (with a tolerance).

public BooleanBinding
isNotEqualTo(final float
the constant value
other
,
double
the permitted tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isNotEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is not equal to a constant value (with a tolerance).

public BooleanBinding
isNotEqualTo(final long
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.isNotEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is not equal to a constant value.

public BooleanBinding
isNotEqualTo(final long
the constant value
other
,
double
the permitted tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isNotEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is not equal to a constant value (with a tolerance).

public BooleanBinding
isNotEqualTo(final int
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.isNotEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is not equal to a constant value.

public BooleanBinding
isNotEqualTo(final int
the constant value
other
,
double
the permitted tolerance
epsilon
)

Implements javafx.beans.binding.NumberExpression.isNotEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is not equal to a constant value (with a tolerance).

public BooleanBinding
lessThan(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.lessThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is lesser than another javafx.beans.value.ObservableNumberValue.

public BooleanBinding
lessThan(final double
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.lessThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is lesser than a constant value.

public BooleanBinding
lessThan(final float
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.lessThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is lesser than a constant value.

public BooleanBinding
lessThan(final long
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.lessThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is lesser than a constant value.

public BooleanBinding
lessThan(final int
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.lessThan.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is lesser than a constant value.

public BooleanBinding
lessThanOrEqualTo(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.lessThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is less than or equal to another javafx.beans.value.ObservableNumberValue.

public BooleanBinding
lessThanOrEqualTo(final double
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.lessThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is less than or equal to a constant value.

public BooleanBinding
lessThanOrEqualTo(final float
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.lessThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is less than or equal to a constant value.

public BooleanBinding
lessThanOrEqualTo(final long
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.lessThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is less than or equal to a constant value.

public BooleanBinding
lessThanOrEqualTo(final int
the constant value
other
)

Implements javafx.beans.binding.NumberExpression.lessThanOrEqualTo.

Creates a new javafx.beans.binding.BooleanBinding that holds true if this NumberExpression is less than or equal to a constant value.

public NumberBinding
multiply(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.multiply.

Creates a new javafx.beans.binding.NumberBinding that calculates the product of this NumberExpression and another javafx.beans.value.ObservableNumberValue.

public static <
The type of Number to be wrapped
S extends Number
>
NumberExpressionBase

Returns:

An NumberExpressionBase that wraps the ObservableNumberValue if necessary
numberExpression
(final ObservableNumberValue
The source ObservableNumberValue
value
)

Returns an NumberExpressionBase that wraps a javafx.beans.value.ObservableNumberValue.

public NumberBinding
subtract(final ObservableNumberValue
the second ObservableNumberValue
other
)

Implements javafx.beans.binding.NumberExpression.subtract.

Creates a new javafx.beans.binding.NumberBinding that calculates the difference of this NumberExpression and another javafx.beans.value.ObservableNumberValue.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait