Interface NumberExpression
- All Superinterfaces:
Observable,ObservableNumberValue,ObservableValue<Number>
- All Known Subinterfaces:
NumberBinding
- 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
NumberExpression is an
ObservableNumberValue plus additional convenience
methods to generate bindings in a fluent style.
This API allows to mix types when defining arithmetic operations. The type of the result is defined by the same rules as in the Java Language.
- If one of the operands is a double, the result is a double.
- If not and one of the operands is a float, the result is a float.
- If not and one of the operands is a long, the result is a long.
- The result is an integer otherwise.
To be able to deal with an unspecified return type, two interfaces
NumberExpression and its counterpart
NumberBinding were introduced. That means if the
return type is specified as NumberBinding, the method will either
return a DoubleBinding,
FloatBinding,
LongBinding or
IntegerBinding, depending on the types of the
operands.
The API tries to do its best in determining the correct return type, e.g.
combining a ObservableNumberValue with a primitive
double will always result in a DoubleBinding. In
cases where the return type is not known by the API, it is the responsibility
of the developer to call the correct getter (ObservableNumberValue.intValue() etc.). If
the internal representation does not match the type of the getter, a standard
cast is done.
- Since:
- JavaFX 2.0
-
Method Summary
Modifier and TypeMethodDescriptionadd(double other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.add(float other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.add(int other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.add(long other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.add(ObservableNumberValue other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand anotherObservableNumberValue.asString()divide(double other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.divide(float other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.divide(int other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.divide(long other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.divide(ObservableNumberValue other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand anotherObservableNumberValue.greaterThan(double other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.greaterThan(float other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.greaterThan(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.greaterThan(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.greaterThan(ObservableNumberValue other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than anotherObservableNumberValue.greaterThanOrEqualTo(double other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.greaterThanOrEqualTo(float other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.greaterThanOrEqualTo(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.greaterThanOrEqualTo(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to anotherObservableNumberValue.isEqualTo(double other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).isEqualTo(float other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).isEqualTo(int other) isEqualTo(int other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).isEqualTo(long other) isEqualTo(long other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).isEqualTo(ObservableNumberValue other) isEqualTo(ObservableNumberValue other, double epsilon) Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare equal (with a tolerance).isNotEqualTo(double other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).isNotEqualTo(float other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).isNotEqualTo(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.isNotEqualTo(int other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).isNotEqualTo(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.isNotEqualTo(long other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal.isNotEqualTo(ObservableNumberValue other, double epsilon) Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal (with a tolerance).lessThan(double other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.lessThan(float other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.lessThan(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.lessThan(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.lessThan(ObservableNumberValue other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than anotherObservableNumberValue.lessThanOrEqualTo(double other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.lessThanOrEqualTo(float other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.lessThanOrEqualTo(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.lessThanOrEqualTo(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to anotherObservableNumberValue.multiply(double other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.multiply(float other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.multiply(int other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.multiply(long other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.multiply(ObservableNumberValue other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand anotherObservableNumberValue.negate()Creates a newNumberBindingthat calculates the negation ofNumberExpression.subtract(double other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.subtract(float other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.subtract(int other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.subtract(long other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.subtract(ObservableNumberValue other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand anotherObservableNumberValue.Methods declared in interface javafx.beans.Observable
addListener, removeListener, subscribeMethods declared in interface javafx.beans.value.ObservableNumberValue
doubleValue, floatValue, intValue, longValueMethods declared in interface javafx.beans.value.ObservableValue
addListener, flatMap, getValue, map, orElse, removeListener, subscribe, subscribe, when
-
Method Details
-
negate
NumberBinding negate()Creates a newNumberBindingthat calculates the negation ofNumberExpression.- Returns:
- the new
NumberBinding
-
add
Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand anotherObservableNumberValue.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
NumberBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
add
Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
add
Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
add
Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
add
Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
subtract
Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand anotherObservableNumberValue.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
NumberBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
subtract
Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
subtract
Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
subtract
Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
subtract
Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
multiply
Creates a newNumberBindingthat calculates the product of thisNumberExpressionand anotherObservableNumberValue.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
NumberBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
multiply
Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
multiply
Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
multiply
Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
multiply
Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
divide
Creates a newNumberBindingthat calculates the division of thisNumberExpressionand anotherObservableNumberValue.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
NumberBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
divide
Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
divide
Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
divide
Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
divide
Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.- Parameters:
other- the constant value- Returns:
- the new
NumberBinding
-
isEqualTo
Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare equal.When comparing floating-point numbers it is recommended to use the
isEqualTo()method that allows a small tolerance.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
isEqualTo
Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare equal (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
other- the secondObservableNumberValueepsilon- the tolerance- Returns:
- the new
BooleanBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
isEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value.When comparing floating-point numbers it is recommended to use the
isEqualTo()method that allows a small tolerance.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
isEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value.When comparing floating-point numbers it is recommended to use the
isEqualTo()method that allows a small tolerance.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
isEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isNotEqualTo
Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal.When comparing floating-point numbers it is recommended to use the
isNotEqualTo()method that allows a small tolerance.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
isNotEqualTo
Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
other- the secondObservableNumberValueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
isNotEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isNotEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isNotEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.When comparing floating-point numbers it is recommended to use the
isNotEqualTo()method that allows a small tolerance.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
isNotEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isNotEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.When comparing floating-point numbers it is recommended to use the
isNotEqualTo()method that allows a small tolerance.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
isNotEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
greaterThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than anotherObservableNumberValue.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
greaterThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than anotherObservableNumberValue.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
lessThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThan
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to anotherObservableNumberValue.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
greaterThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to anotherObservableNumberValue.- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding - Throws:
NullPointerException- if the otherObservableNumberValueisnull
-
lessThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThanOrEqualTo
Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
asString
StringBinding asString()Creates aStringBindingthat holds the value of theNumberExpressionturned into aString. If the value of thisNumberExpressionchanges, the value of theStringBindingwill be updated automatically.The conversion is done without any formatting applied.
- Returns:
- the new
StringBinding
-
asString
Creates aStringBindingthat holds the value of theNumberExpressionturned into aString. If the value of thisNumberExpressionchanges, the value of theStringBindingwill be updated automatically.The result is formatted according to the formatting
String. Seejava.util.Formatterfor formatting rules.- Parameters:
format- the formattingString- Returns:
- the new
StringBinding
-
asString
Creates aStringBindingthat holds the value of theNumberExpressionturned into aString. If the value of thisNumberExpressionchanges, the value of theStringBindingwill be updated automatically.The result is formatted according to the formatting
Stringand the passed inLocale. Seejava.util.Formatterfor formatting rules. Seejava.util.Localefor details onLocale.- Parameters:
locale- the Locale to be usedformat- the formattingString- Returns:
- the new
StringBinding
-