Class NumberExpressionBase
- 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 and Description NumberExpressionBase()
-
Method Summary
All MethodsStatic MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description NumberBindingadd(ObservableNumberValue other)Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand anotherObservableNumberValue.StringBindingasString()StringBindingasString(Locale locale, String format)StringBindingasString(String format)NumberBindingdivide(ObservableNumberValue other)Creates a newNumberBindingthat calculates the division of thisNumberExpressionand anotherObservableNumberValue.BooleanBindinggreaterThan(double other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.BooleanBindinggreaterThan(float other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.BooleanBindinggreaterThan(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.BooleanBindinggreaterThan(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.BooleanBindinggreaterThan(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than anotherObservableNumberValue.BooleanBindinggreaterThanOrEqualTo(double other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.BooleanBindinggreaterThanOrEqualTo(float other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.BooleanBindinggreaterThanOrEqualTo(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.BooleanBindinggreaterThanOrEqualTo(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.BooleanBindinggreaterThanOrEqualTo(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to anotherObservableNumberValue.BooleanBindingisEqualTo(double other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).BooleanBindingisEqualTo(float other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).BooleanBindingisEqualTo(int other)BooleanBindingisEqualTo(int other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).BooleanBindingisEqualTo(long other)BooleanBindingisEqualTo(long other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).BooleanBindingisEqualTo(ObservableNumberValue other)BooleanBindingisEqualTo(ObservableNumberValue other, double epsilon)Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare equal (with a tolerance).BooleanBindingisNotEqualTo(double other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).BooleanBindingisNotEqualTo(float other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).BooleanBindingisNotEqualTo(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.BooleanBindingisNotEqualTo(int other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).BooleanBindingisNotEqualTo(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.BooleanBindingisNotEqualTo(long other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).BooleanBindingisNotEqualTo(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal.BooleanBindingisNotEqualTo(ObservableNumberValue other, double epsilon)Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal (with a tolerance).BooleanBindinglessThan(double other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.BooleanBindinglessThan(float other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.BooleanBindinglessThan(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.BooleanBindinglessThan(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.BooleanBindinglessThan(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than anotherObservableNumberValue.BooleanBindinglessThanOrEqualTo(double other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.BooleanBindinglessThanOrEqualTo(float other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.BooleanBindinglessThanOrEqualTo(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.BooleanBindinglessThanOrEqualTo(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.BooleanBindinglessThanOrEqualTo(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to anotherObservableNumberValue.NumberBindingmultiply(ObservableNumberValue other)Creates a newNumberBindingthat calculates the product of thisNumberExpressionand anotherObservableNumberValue.static <S extends Number>
NumberExpressionBasenumberExpression(ObservableNumberValue value)Returns anNumberExpressionBasethat wraps aObservableNumberValue.NumberBindingsubtract(ObservableNumberValue other)Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand anotherObservableNumberValue.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javafx.beans.binding.NumberExpression
add, add, add, add, divide, divide, divide, divide, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract
-
Methods inherited from interface javafx.beans.value.ObservableNumberValue
doubleValue, floatValue, intValue, longValue
-
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Methods inherited from interface javafx.beans.Observable
addListener, removeListener
-
-
Constructor Detail
-
NumberExpressionBase
public NumberExpressionBase()
-
-
Method Detail
-
numberExpression
public static <S extends Number> NumberExpressionBase numberExpression(ObservableNumberValue value)
Returns anNumberExpressionBasethat wraps aObservableNumberValue. If theObservableNumberValueis already an instance ofNumberExpressionBase, it will be returned. Otherwise a newNumberBindingis created that is bound to theObservableNumberValue.Parameters:
value- The sourceObservableNumberValueReturns:
An
NumberExpressionBasethat wraps theObservableNumberValueif necessaryThrows:
NullPointerException- ifvalueisnull
-
add
public NumberBinding add(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newNumberBindingthat calculates the sum of thisNumberExpressionand anotherObservableNumberValue.Specified by:
addin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
NumberBinding
-
subtract
public NumberBinding subtract(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newNumberBindingthat calculates the difference of thisNumberExpressionand anotherObservableNumberValue.Specified by:
subtractin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
NumberBinding
-
multiply
public NumberBinding multiply(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newNumberBindingthat calculates the product of thisNumberExpressionand anotherObservableNumberValue.Specified by:
multiplyin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
NumberBinding
-
divide
public NumberBinding divide(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newNumberBindingthat calculates the division of thisNumberExpressionand anotherObservableNumberValue.Specified by:
dividein interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
NumberBinding
-
isEqualTo
public BooleanBinding isEqualTo(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates 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.Specified by:
isEqualToin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(ObservableNumberValue other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isEqualToin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(double other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(float other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(long other)
Description copied from interface:NumberExpressionCreates 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.Specified by:
isEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(long other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(int other)
Description copied from interface:NumberExpressionCreates 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.Specified by:
isEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(int other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates 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.Specified by:
isNotEqualToin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(ObservableNumberValue other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isNotEqualToin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(double other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isNotEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(float other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isNotEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(long other)
Description copied from interface:NumberExpressionCreates 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.Specified by:
isNotEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(long other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isNotEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(int other)
Description copied from interface:NumberExpressionCreates 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.Specified by:
isNotEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(int other, double epsilon)Description copied from interface:NumberExpressionCreates 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.
Specified by:
isNotEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than anotherObservableNumberValue.Specified by:
greaterThanin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(double other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.Specified by:
greaterThanin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(float other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.Specified by:
greaterThanin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.Specified by:
greaterThanin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.Specified by:
greaterThanin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than anotherObservableNumberValue.Specified by:
lessThanin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(double other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.Specified by:
lessThanin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(float other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.Specified by:
lessThanin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.Specified by:
lessThanin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.Specified by:
lessThanin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to anotherObservableNumberValue.Specified by:
greaterThanOrEqualToin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(double other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.Specified by:
greaterThanOrEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(float other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.Specified by:
greaterThanOrEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.Specified by:
greaterThanOrEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.Specified by:
greaterThanOrEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to anotherObservableNumberValue.Specified by:
lessThanOrEqualToin interfaceNumberExpressionParameters:
other- the secondObservableNumberValueReturns:
the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(double other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.Specified by:
lessThanOrEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(float other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.Specified by:
lessThanOrEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.Specified by:
lessThanOrEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.Specified by:
lessThanOrEqualToin interfaceNumberExpressionParameters:
other- the constant valueReturns:
the new
BooleanBinding
-
asString
public StringBinding asString()
Description copied from interface:NumberExpressionCreates 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.
Specified by:
asStringin interfaceNumberExpressionReturns:
the new
StringBinding
-
asString
public StringBinding asString(String format)
Description copied from interface:NumberExpressionCreates 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.Specified by:
asStringin interfaceNumberExpressionParameters:
format- the formattingStringReturns:
the new
StringBinding
-
asString
public StringBinding asString(Locale locale, String format)Description copied from interface:NumberExpressionCreates 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.Specified by:
asStringin interfaceNumberExpressionReturns:
the new
StringBinding
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.