- java.lang.Object
-
- javafx.beans.binding.Bindings
-
public final class Bindings extends Object
Bindings is a helper class with a lot of utility functions to create simple bindings.Usually there are two possibilities to define the same operation: the Fluent API and the the factory methods in this class. This allows a developer to define complex expression in a way that is most easy to understand. For instance the expression
result = a*b + c*d
can be defined using only the Fluent API:DoubleBinding result = a.multiply(b).add(c.multiply(d));
Or using only factory methods in Bindings:
NumberBinding result = add (multiply(a, b), multiply(c,d));
Or mixing both possibilities:
NumberBinding result = add (a.multiply(b), c.multiply(d));
The main difference between using the Fluent API and using the factory methods in this class is that the Fluent API requires that at least one of the operands is an Expression (see
javafx.beans.binding
). (Every Expression contains a static method that generates an Expression from anObservableValue
.)Also if you watched closely, you might have noticed that the return type of the Fluent API is different in the examples above. In a lot of cases the Fluent API allows to be more specific about the returned type (see
NumberExpression
for more details about implicit casting.Deploying an Application as a Module
If any class used in a select-binding (see the various
select*
methods) is in a named module, then it must be reflectively accessible to thejavafx.base
module. A class is reflectively accessible if the moduleopens
the containing package to at least thejavafx.base
module.For example, if
com.foo.MyClass
is in thefoo.app
module, themodule-info.java
might look like this:module foo.app { opens com.foo to javafx.base; }
Alternatively, a class is reflectively accessible if the module
exports
the containing package unconditionally.- Since:
- JavaFX 2.0
- See Also:
Binding
,NumberBinding
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DoubleBinding
add(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.static NumberBinding
add(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.static NumberBinding
add(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.static NumberBinding
add(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.static DoubleBinding
add(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.static NumberBinding
add(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.static NumberBinding
add(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.static NumberBinding
add(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.static NumberBinding
add(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the sum of the values of two instances ofObservableNumberValue
.static BooleanBinding
and(ObservableBooleanValue op1, ObservableBooleanValue op2)
Creates aBooleanBinding
that calculates the conditional-AND operation on the value of two instance ofObservableBooleanValue
.static void
bindBidirectional(Property<String> stringProperty, Property<?> otherProperty, Format format)
Generates a bidirectional binding (or "bind with inverse") between aString
-Property
and anotherProperty
using the specifiedFormat
for conversion.static <T> void
bindBidirectional(Property<String> stringProperty, Property<T> otherProperty, StringConverter<T> converter)
Generates a bidirectional binding (or "bind with inverse") between aString
-Property
and anotherProperty
using the specifiedStringConverter
for conversion.static <T> void
bindBidirectional(Property<T> property1, Property<T> property2)
Generates a bidirectional binding (or "bind with inverse") between two instances ofProperty
.static <E> void
bindContent(List<E> list1, ObservableList<? extends E> list2)
Generates a content binding between anObservableList
and aList
.static <K,V>
voidbindContent(Map<K,V> map1, ObservableMap<? extends K,? extends V> map2)
Generates a content binding between anObservableMap
and aMap
.static <E> void
bindContent(Set<E> set1, ObservableSet<? extends E> set2)
Generates a content binding between anObservableSet
and aSet
.static <E> void
bindContentBidirectional(ObservableList<E> list1, ObservableList<E> list2)
Generates a bidirectional binding (or "bind with inverse") between two instances ofObservableList
.static <K,V>
voidbindContentBidirectional(ObservableMap<K,V> map1, ObservableMap<K,V> map2)
Generates a bidirectional binding (or "bind with inverse") between two instances ofObservableMap
.static <E> void
bindContentBidirectional(ObservableSet<E> set1, ObservableSet<E> set2)
Generates a bidirectional binding (or "bind with inverse") between two instances ofObservableSet
.static BooleanBinding
booleanValueAt(ObservableList<Boolean> op, int index)
Creates a newBooleanBinding
that contains the element of anObservableList
at the specified position.static BooleanBinding
booleanValueAt(ObservableList<Boolean> op, ObservableIntegerValue index)
Creates a newBooleanBinding
that contains the element of anObservableList
at the specified position.static BooleanBinding
booleanValueAt(ObservableList<Boolean> op, ObservableNumberValue index)
Creates a newBooleanBinding
that contains the element of anObservableList
at the specified position.static <K> BooleanBinding
booleanValueAt(ObservableMap<K,Boolean> op, ObservableValue<? extends K> key)
Creates a newBooleanBinding
that contains the mapping of a specific key in anObservableMap
.static <K> BooleanBinding
booleanValueAt(ObservableMap<K,Boolean> op, K key)
Creates a newBooleanBinding
that contains the mapping of a specific key in anObservableMap
.static StringExpression
concat(Object... args)
Returns aStringExpression
that holds the value of the concatenation of multipleObjects
.static StringExpression
convert(ObservableValue<?> observableValue)
Returns aStringExpression
that wraps aObservableValue
.static BooleanBinding
createBooleanBinding(Callable<Boolean> func, Observable... dependencies)
Helper function to create a customBooleanBinding
.static DoubleBinding
createDoubleBinding(Callable<Double> func, Observable... dependencies)
Helper function to create a customDoubleBinding
.static FloatBinding
createFloatBinding(Callable<Float> func, Observable... dependencies)
Helper function to create a customFloatBinding
.static IntegerBinding
createIntegerBinding(Callable<Integer> func, Observable... dependencies)
Helper function to create a customIntegerBinding
.static LongBinding
createLongBinding(Callable<Long> func, Observable... dependencies)
Helper function to create a customLongBinding
.static <T> ObjectBinding<T>
createObjectBinding(Callable<T> func, Observable... dependencies)
Helper function to create a customObjectBinding
.static StringBinding
createStringBinding(Callable<String> func, Observable... dependencies)
Helper function to create a customStringBinding
.static DoubleBinding
divide(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the division of a constant value and the value of aObservableNumberValue
.static NumberBinding
divide(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the division of a constant value and the value of aObservableNumberValue
.static NumberBinding
divide(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the division of a constant value and the value of aObservableNumberValue
.static NumberBinding
divide(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the division of a constant value and the value of aObservableNumberValue
.static DoubleBinding
divide(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the division of the value of aObservableNumberValue
and a constant value.static NumberBinding
divide(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the division of the value of aObservableNumberValue
and a constant value.static NumberBinding
divide(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the division of the value of aObservableNumberValue
and a constant value.static NumberBinding
divide(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the division of the value of aObservableNumberValue
and a constant value.static NumberBinding
divide(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the division of the values of two instances ofObservableNumberValue
.static DoubleBinding
doubleValueAt(ObservableList<? extends Number> op, int index)
Creates a newDoubleBinding
that contains the element of anObservableList
at the specified position.static DoubleBinding
doubleValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)
Creates a newDoubleBinding
that contains the element of anObservableList
at the specified position.static DoubleBinding
doubleValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)
Creates a newDoubleBinding
that contains the element of anObservableList
at the specified position.static <K> DoubleBinding
doubleValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)
Creates a newDoubleBinding
that contains the mapping of a specific key in anObservableMap
.static <K> DoubleBinding
doubleValueAt(ObservableMap<K,? extends Number> op, K key)
Creates a newDoubleBinding
that contains the mapping of a specific key in anObservableMap
.static BooleanBinding
equal(double op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).static BooleanBinding
equal(float op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).static BooleanBinding
equal(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value.static BooleanBinding
equal(int op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).static BooleanBinding
equal(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value.static BooleanBinding
equal(long op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).static BooleanBinding
equal(Object op1, ObservableObjectValue<?> op2)
Creates a newBooleanBinding
that holdstrue
if the value of anObservableObjectValue
is equal to a constant value.static BooleanBinding
equal(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is equal to a constant value.static BooleanBinding
equal(ObservableBooleanValue op1, ObservableBooleanValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableBooleanValue
are equal.static BooleanBinding
equal(ObservableNumberValue op1, double op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).static BooleanBinding
equal(ObservableNumberValue op1, float op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).static BooleanBinding
equal(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value.static BooleanBinding
equal(ObservableNumberValue op1, int op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).static BooleanBinding
equal(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value.static BooleanBinding
equal(ObservableNumberValue op1, long op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).static BooleanBinding
equal(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableNumberValue
are equal.static BooleanBinding
equal(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableNumberValue
are equal (with a tolerance).static BooleanBinding
equal(ObservableObjectValue<?> op1, Object op2)
Creates a newBooleanBinding
that holdstrue
if the value of anObservableObjectValue
is equal to a constant value.static BooleanBinding
equal(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableObjectValue
are equal.static BooleanBinding
equal(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is equal to a constant value.static BooleanBinding
equal(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableStringValue
are equal.static BooleanBinding
equalIgnoreCase(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is equal to a constant value ignoring case.static BooleanBinding
equalIgnoreCase(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is equal to a constant value ignoring case.static BooleanBinding
equalIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableStringValue
are equal ignoring case.static FloatBinding
floatValueAt(ObservableFloatArray op, int index)
Creates a newFloatBinding
that contains the element of anObservableArray
at the specified position.static FloatBinding
floatValueAt(ObservableFloatArray op, ObservableIntegerValue index)
Creates a newFloatBinding
that contains the element of anObservableArray
at the specified position.static FloatBinding
floatValueAt(ObservableFloatArray op, ObservableNumberValue index)
Creates a newFloatBinding
that contains the element of anObservableArray
at the specified position.static FloatBinding
floatValueAt(ObservableList<? extends Number> op, int index)
Creates a newFloatBinding
that contains the element of anObservableList
at the specified position.static FloatBinding
floatValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)
Creates a newFloatBinding
that contains the element of anObservableList
at the specified position.static FloatBinding
floatValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)
Creates a newFloatBinding
that contains the element of anObservableList
at the specified position.static <K> FloatBinding
floatValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)
Creates a newFloatBinding
that contains the mapping of a specific key in anObservableMap
.static <K> FloatBinding
floatValueAt(ObservableMap<K,? extends Number> op, K key)
Creates a newFloatBinding
that contains the mapping of a specific key in anObservableMap
.static StringExpression
format(String format, Object... args)
Creates aStringExpression
that holds the value of multipleObjects
formatted according to a formatString
.static StringExpression
format(Locale locale, String format, Object... args)
Creates aStringExpression
that holds the value of multipleObjects
formatted according to a formatString
and a specifiedLocale
static BooleanBinding
greaterThan(double op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than the value of aObservableNumberValue
.static BooleanBinding
greaterThan(float op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than the value of aObservableNumberValue
.static BooleanBinding
greaterThan(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than the value of aObservableNumberValue
.static BooleanBinding
greaterThan(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than the value of aObservableNumberValue
.static BooleanBinding
greaterThan(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of a constant value is greater than the value of aObservableStringValue
.static BooleanBinding
greaterThan(ObservableNumberValue op1, double op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than a constant value.static BooleanBinding
greaterThan(ObservableNumberValue op1, float op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than a constant value.static BooleanBinding
greaterThan(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than a constant value.static BooleanBinding
greaterThan(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than a constant value.static BooleanBinding
greaterThan(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableNumberValue
is greater than the value of the second.static BooleanBinding
greaterThan(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is greater than a constant value.static BooleanBinding
greaterThan(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableStringValue
is greater than the value of the second.static BooleanBinding
greaterThanOrEqual(double op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableNumberValue
.static BooleanBinding
greaterThanOrEqual(float op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableNumberValue
.static BooleanBinding
greaterThanOrEqual(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableNumberValue
.static BooleanBinding
greaterThanOrEqual(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableNumberValue
.static BooleanBinding
greaterThanOrEqual(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableStringValue
.static BooleanBinding
greaterThanOrEqual(ObservableNumberValue op1, double op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than or equal to a constant value.static BooleanBinding
greaterThanOrEqual(ObservableNumberValue op1, float op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than or equal to a constant value.static BooleanBinding
greaterThanOrEqual(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than or equal to a constant value.static BooleanBinding
greaterThanOrEqual(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than or equal to a constant value.static BooleanBinding
greaterThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableNumberValue
is greater than or equal to the value of the second.static BooleanBinding
greaterThanOrEqual(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is greater than or equal to a constant value.static BooleanBinding
greaterThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableStringValue
is greater than or equal to the value of the second.static IntegerBinding
integerValueAt(ObservableIntegerArray op, int index)
Creates a newIntegerBinding
that contains the element of anObservableArray
at the specified position.static IntegerBinding
integerValueAt(ObservableIntegerArray op, ObservableIntegerValue index)
Creates a newIntegerBinding
that contains the element of anObservableArray
at the specified position.static IntegerBinding
integerValueAt(ObservableIntegerArray op, ObservableNumberValue index)
Creates a newIntegerBinding
that contains the element of anObservableArray
at the specified position.static IntegerBinding
integerValueAt(ObservableList<? extends Number> op, int index)
Creates a newIntegerBinding
that contains the element of anObservableList
at the specified position.static IntegerBinding
integerValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)
Creates a newIntegerBinding
that contains the element of anObservableList
at the specified position.static IntegerBinding
integerValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)
Creates a newIntegerBinding
that contains the element of anObservableList
at the specified position.static <K> IntegerBinding
integerValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)
Creates a newIntegerBinding
that contains the mapping of a specific key in anObservableMap
.static <K> IntegerBinding
integerValueAt(ObservableMap<K,? extends Number> op, K key)
Creates a newIntegerBinding
that contains the mapping of a specific key in anObservableMap
.static BooleanBinding
isEmpty(ObservableStringValue op)
static <E> BooleanBinding
isEmpty(ObservableList<E> op)
static <K,V>
BooleanBindingisEmpty(ObservableMap<K,V> op)
static <E> BooleanBinding
isEmpty(ObservableSet<E> op)
static BooleanBinding
isNotEmpty(ObservableStringValue op)
static <E> BooleanBinding
isNotEmpty(ObservableList<E> op)
static <K,V>
BooleanBindingisNotEmpty(ObservableMap<K,V> op)
static <E> BooleanBinding
isNotEmpty(ObservableSet<E> op)
static BooleanBinding
isNotNull(ObservableObjectValue<?> op)
static BooleanBinding
isNull(ObservableObjectValue<?> op)
static IntegerBinding
length(ObservableStringValue op)
Creates a newIntegerBinding
that holds the length of aObservableStringValue
.static BooleanBinding
lessThan(double op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableNumberValue
.static BooleanBinding
lessThan(float op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableNumberValue
.static BooleanBinding
lessThan(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableNumberValue
.static BooleanBinding
lessThan(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableNumberValue
.static BooleanBinding
lessThan(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableStringValue
.static BooleanBinding
lessThan(ObservableNumberValue op1, double op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than a constant value.static BooleanBinding
lessThan(ObservableNumberValue op1, float op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than a constant value.static BooleanBinding
lessThan(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than a constant value.static BooleanBinding
lessThan(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than a constant value.static BooleanBinding
lessThan(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableNumberValue
is less than the value of the second.static BooleanBinding
lessThan(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is less than a constant value.static BooleanBinding
lessThan(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableStringValue
is less than the value of the second.static BooleanBinding
lessThanOrEqual(double op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableNumberValue
.static BooleanBinding
lessThanOrEqual(float op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableNumberValue
.static BooleanBinding
lessThanOrEqual(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableNumberValue
.static BooleanBinding
lessThanOrEqual(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableNumberValue
.static BooleanBinding
lessThanOrEqual(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableStringValue
.static BooleanBinding
lessThanOrEqual(ObservableNumberValue op1, double op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than or equal to a constant value.static BooleanBinding
lessThanOrEqual(ObservableNumberValue op1, float op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than or equal to a constant value.static BooleanBinding
lessThanOrEqual(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than or equal to a constant value.static BooleanBinding
lessThanOrEqual(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than or equal to a constant value.static BooleanBinding
lessThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableNumberValue
is less than or equal to the value of the second.static BooleanBinding
lessThanOrEqual(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is less than or equal to a constant value.static BooleanBinding
lessThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableStringValue
is less than or equal to the value of the second.static LongBinding
longValueAt(ObservableList<? extends Number> op, int index)
Creates a newLongBinding
that contains the element of anObservableList
at the specified position.static LongBinding
longValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)
Creates a newLongBinding
that contains the element of anObservableList
at the specified position.static LongBinding
longValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)
Creates a newLongBinding
that contains the element of anObservableList
at the specified position.static <K> LongBinding
longValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)
Creates a newLongBinding
that contains the mapping of a specific key in anObservableMap
.static <K> LongBinding
longValueAt(ObservableMap<K,? extends Number> op, K key)
Creates a newLongBinding
that contains the mapping of a specific key in anObservableMap
.static DoubleBinding
max(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.static NumberBinding
max(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.static NumberBinding
max(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.static NumberBinding
max(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.static DoubleBinding
max(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.static NumberBinding
max(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.static NumberBinding
max(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.static NumberBinding
max(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.static NumberBinding
max(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the maximum of the values of two instances ofObservableNumberValue
.static DoubleBinding
min(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.static NumberBinding
min(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.static NumberBinding
min(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.static NumberBinding
min(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.static DoubleBinding
min(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.static NumberBinding
min(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.static NumberBinding
min(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.static NumberBinding
min(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.static NumberBinding
min(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the minimum of the values of two instances ofObservableNumberValue
.static DoubleBinding
multiply(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.static NumberBinding
multiply(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.static NumberBinding
multiply(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.static NumberBinding
multiply(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.static DoubleBinding
multiply(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.static NumberBinding
multiply(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.static NumberBinding
multiply(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.static NumberBinding
multiply(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.static NumberBinding
multiply(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the product of the values of two instances ofObservableNumberValue
.static NumberBinding
negate(ObservableNumberValue value)
Creates a newNumberBinding
that calculates the negation of aObservableNumberValue
.static BooleanBinding
not(ObservableBooleanValue op)
Creates aBooleanBinding
that calculates the inverse of the value of aObservableBooleanValue
.static BooleanBinding
notEqual(double op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).static BooleanBinding
notEqual(float op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).static BooleanBinding
notEqual(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value.static BooleanBinding
notEqual(int op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).static BooleanBinding
notEqual(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value.static BooleanBinding
notEqual(long op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).static BooleanBinding
notEqual(Object op1, ObservableObjectValue<?> op2)
Creates a newBooleanBinding
that holdstrue
if the value of anObservableObjectValue
is not equal to a constant value.static BooleanBinding
notEqual(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is not equal to a constant value.static BooleanBinding
notEqual(ObservableBooleanValue op1, ObservableBooleanValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableBooleanValue
are not equal.static BooleanBinding
notEqual(ObservableNumberValue op1, double op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).static BooleanBinding
notEqual(ObservableNumberValue op1, float op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).static BooleanBinding
notEqual(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value.static BooleanBinding
notEqual(ObservableNumberValue op1, int op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).static BooleanBinding
notEqual(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value.static BooleanBinding
notEqual(ObservableNumberValue op1, long op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).static BooleanBinding
notEqual(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableNumberValue
are not equal.static BooleanBinding
notEqual(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableNumberValue
are not equal (with a tolerance).static BooleanBinding
notEqual(ObservableObjectValue<?> op1, Object op2)
Creates a newBooleanBinding
that holdstrue
if the value of anObservableObjectValue
is not equal to a constant value.static BooleanBinding
notEqual(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableObjectValue
are not equal.static BooleanBinding
notEqual(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is not equal to a constant value.static BooleanBinding
notEqual(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableStringValue
are not equal.static BooleanBinding
notEqualIgnoreCase(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is not equal to a constant value ignoring case.static BooleanBinding
notEqualIgnoreCase(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is not equal to a constant value ignoring case.static BooleanBinding
notEqualIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableStringValue
are not equal ignoring case.static BooleanBinding
or(ObservableBooleanValue op1, ObservableBooleanValue op2)
Creates aBooleanBinding
that calculates the conditional-OR operation on the value of two instance ofObservableBooleanValue
.static <T> ObjectBinding<T>
select(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static <T> ObjectBinding<T>
select(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static BooleanBinding
selectBoolean(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static BooleanBinding
selectBoolean(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static DoubleBinding
selectDouble(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static DoubleBinding
selectDouble(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static FloatBinding
selectFloat(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static FloatBinding
selectFloat(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static IntegerBinding
selectInteger(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static IntegerBinding
selectInteger(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static LongBinding
selectLong(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static LongBinding
selectLong(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static StringBinding
selectString(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static StringBinding
selectString(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
.static IntegerBinding
size(ObservableArray op)
Creates a newIntegerBinding
that contains the size of anObservableArray
.static <E> IntegerBinding
size(ObservableList<E> op)
Creates a newIntegerBinding
that contains the size of anObservableList
.static <K,V>
IntegerBindingsize(ObservableMap<K,V> op)
Creates a newIntegerBinding
that contains the size of anObservableMap
.static <E> IntegerBinding
size(ObservableSet<E> op)
Creates a newIntegerBinding
that contains the size of anObservableSet
.static StringBinding
stringValueAt(ObservableList<String> op, int index)
Creates a newStringBinding
that contains the element of anObservableList
at the specified position.static StringBinding
stringValueAt(ObservableList<String> op, ObservableIntegerValue index)
Creates a newStringBinding
that contains the element of anObservableList
at the specified position.static StringBinding
stringValueAt(ObservableList<String> op, ObservableNumberValue index)
Creates a newStringBinding
that contains the element of anObservableList
at the specified position.static <K> StringBinding
stringValueAt(ObservableMap<K,String> op, ObservableValue<? extends K> key)
Creates a newStringBinding
that contains the mapping of a specific key in anObservableMap
.static <K> StringBinding
stringValueAt(ObservableMap<K,String> op, K key)
Creates a newStringBinding
that contains the mapping of a specific key in anObservableMap
.static DoubleBinding
subtract(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the difference of a constant value and the value of aObservableNumberValue
.static NumberBinding
subtract(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the difference of a constant value and the value of aObservableNumberValue
.static NumberBinding
subtract(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the difference of a constant value and the value of aObservableNumberValue
.static NumberBinding
subtract(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the difference of a constant value and the value of aObservableNumberValue
.static DoubleBinding
subtract(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the difference of the value of aObservableNumberValue
and a constant value.static NumberBinding
subtract(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the difference of the value of aObservableNumberValue
and a constant value.static NumberBinding
subtract(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the difference of the value of aObservableNumberValue
and a constant value.static NumberBinding
subtract(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the difference of the value of aObservableNumberValue
and a constant value.static NumberBinding
subtract(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the difference of the values of two instances ofObservableNumberValue
.static void
unbindBidirectional(Object property1, Object property2)
Delete a bidirectional binding that was previously defined withbindBidirectional(Property, Property)
orbindBidirectional(javafx.beans.property.Property, javafx.beans.property.Property, java.text.Format)
.static <T> void
unbindBidirectional(Property<T> property1, Property<T> property2)
Delete a bidirectional binding that was previously defined withbindBidirectional(Property, Property)
.static void
unbindContent(Object obj1, Object obj2)
Remove a content binding.static void
unbindContentBidirectional(Object obj1, Object obj2)
Remove a bidirectional content binding.static <E> ObjectBinding<E>
valueAt(ObservableList<E> op, int index)
Creates a newObjectBinding
that contains the element of anObservableList
at the specified position.static <E> ObjectBinding<E>
valueAt(ObservableList<E> op, ObservableIntegerValue index)
Creates a newObjectBinding
that contains the element of anObservableList
at the specified position.static <E> ObjectBinding<E>
valueAt(ObservableList<E> op, ObservableNumberValue index)
Creates a newObjectBinding
that contains the element of anObservableList
at the specified position.static <K,V>
ObjectBinding<V>valueAt(ObservableMap<K,V> op, ObservableValue<? extends K> key)
Creates a newObjectBinding
that contains the mapping of a specific key in anObservableMap
.static <K,V>
ObjectBinding<V>valueAt(ObservableMap<K,V> op, K key)
Creates a newObjectBinding
that contains the mapping of a specific key in anObservableMap
.static When
when(ObservableBooleanValue condition)
Creates a binding that calculates the result of a ternary expression.
-
-
-
Method Detail
-
createBooleanBinding
public static BooleanBinding createBooleanBinding(Callable<Boolean> func, Observable... dependencies)
Helper function to create a customBooleanBinding
.- Parameters:
func
- The function that calculates the value of this bindingdependencies
- The dependencies of this binding- Returns:
- The generated binding
- Since:
- JavaFX 2.1
-
createDoubleBinding
public static DoubleBinding createDoubleBinding(Callable<Double> func, Observable... dependencies)
Helper function to create a customDoubleBinding
.- Parameters:
func
- The function that calculates the value of this bindingdependencies
- The dependencies of this binding- Returns:
- The generated binding
- Since:
- JavaFX 2.1
-
createFloatBinding
public static FloatBinding createFloatBinding(Callable<Float> func, Observable... dependencies)
Helper function to create a customFloatBinding
.- Parameters:
func
- The function that calculates the value of this bindingdependencies
- The dependencies of this binding- Returns:
- The generated binding
- Since:
- JavaFX 2.1
-
createIntegerBinding
public static IntegerBinding createIntegerBinding(Callable<Integer> func, Observable... dependencies)
Helper function to create a customIntegerBinding
.- Parameters:
func
- The function that calculates the value of this bindingdependencies
- The dependencies of this binding- Returns:
- The generated binding
- Since:
- JavaFX 2.1
-
createLongBinding
public static LongBinding createLongBinding(Callable<Long> func, Observable... dependencies)
Helper function to create a customLongBinding
.- Parameters:
func
- The function that calculates the value of this bindingdependencies
- The dependencies of this binding- Returns:
- The generated binding
- Since:
- JavaFX 2.1
-
createObjectBinding
public static <T> ObjectBinding<T> createObjectBinding(Callable<T> func, Observable... dependencies)
Helper function to create a customObjectBinding
.- Type Parameters:
T
- the type of the boundObject
- Parameters:
func
- The function that calculates the value of this bindingdependencies
- The dependencies of this binding- Returns:
- The generated binding
- Since:
- JavaFX 2.1
-
createStringBinding
public static StringBinding createStringBinding(Callable<String> func, Observable... dependencies)
Helper function to create a customStringBinding
.- Parameters:
func
- The function that calculates the value of this bindingdependencies
- The dependencies of this binding- Returns:
- The generated binding
- Since:
- JavaFX 2.1
-
select
public static <T> ObjectBinding<T> select(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, ornull
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being the right type etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).Note: since 8.0, JavaBeans properties are supported and might be in the chain.
- Type Parameters:
T
- the type of the wrappedObject
- Parameters:
root
- The rootObservableValue
steps
- The property names to reach the final property- Returns:
- the created
ObjectBinding
-
selectDouble
public static DoubleBinding selectDouble(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or0.0
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aNumber
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).Note: since 8.0, JavaBeans properties are supported and might be in the chain.
- Parameters:
root
- The rootObservableValue
steps
- The property names to reach the final property- Returns:
- the created
DoubleBinding
-
selectFloat
public static FloatBinding selectFloat(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or0.0f
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aNumber
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).Note: since 8.0, JavaBeans properties are supported and might be in the chain.
- Parameters:
root
- The rootObservableValue
steps
- The property names to reach the final property- Returns:
- the created
FloatBinding
-
selectInteger
public static IntegerBinding selectInteger(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or0
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aNumber
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).Note: since 8.0, JavaBeans properties are supported and might be in the chain.
- Parameters:
root
- The rootObservableValue
steps
- The property names to reach the final property- Returns:
- the created
IntegerBinding
-
selectLong
public static LongBinding selectLong(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or0L
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aNumber
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).Note: since 8.0, JavaBeans properties are supported and might be in the chain.
- Parameters:
root
- The rootObservableValue
steps
- The property names to reach the final property- Returns:
- the created
LongBinding
-
selectBoolean
public static BooleanBinding selectBoolean(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, orfalse
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aboolean
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).Note: since 8.0, JavaBeans properties are supported and might be in the chain.
- Parameters:
root
- The rootObservableValue
steps
- The property names to reach the final property- Returns:
- the created
ObjectBinding
-
selectString
public static StringBinding selectString(ObservableValue<?> root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or""
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aString
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).Note: since 8.0, JavaBeans properties are supported and might be in the chain.
- Parameters:
root
- The rootObservableValue
steps
- The property names to reach the final property- Returns:
- the created
ObjectBinding
-
select
public static <T> ObjectBinding<T> select(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, ornull
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being the right type etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).If root has JavaFX properties, this call is equivalent to
select(javafx.beans.value.ObservableValue, java.lang.String[])
, with theroot
andstep[0]
being substituted with the relevant property object.- Type Parameters:
T
- the type of the wrappedObject
- Parameters:
root
- The root bean.steps
- The property names to reach the final property. The first step must be specified as it marks the property of the root bean.- Returns:
- the created
ObjectBinding
- Since:
- JavaFX 8.0
-
selectDouble
public static DoubleBinding selectDouble(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or0.0
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aNumber
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).If root has JavaFX properties, this call is equivalent to
selectDouble(javafx.beans.value.ObservableValue, java.lang.String[])
, with theroot
andstep[0]
being substituted with the relevant property object.- Parameters:
root
- The root bean.steps
- The property names to reach the final property. The first step must be specified as it marks the property of the root bean.- Returns:
- the created
DoubleBinding
- Since:
- JavaFX 8.0
-
selectFloat
public static FloatBinding selectFloat(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or0.0f
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aNumber
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).If root has JavaFX properties, this call is equivalent to
selectFloat(javafx.beans.value.ObservableValue, java.lang.String[])
, with theroot
andstep[0]
being substituted with the relevant property object.- Parameters:
root
- The root bean.steps
- The property names to reach the final property. The first step must be specified as it marks the property of the root bean.- Returns:
- the created
FloatBinding
- Since:
- JavaFX 8.0
-
selectInteger
public static IntegerBinding selectInteger(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or0
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aNumber
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).If root has JavaFX properties, this call is equivalent to
selectInteger(javafx.beans.value.ObservableValue, java.lang.String[])
, with theroot
andstep[0]
being substituted with the relevant property object.- Parameters:
root
- The root bean.steps
- The property names to reach the final property. The first step must be specified as it marks the property of the root bean.- Returns:
- the created
IntegerBinding
- Since:
- JavaFX 8.0
-
selectLong
public static LongBinding selectLong(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or0L
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aNumber
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).If root has JavaFX properties, this call is equivalent to
selectLong(javafx.beans.value.ObservableValue, java.lang.String[])
, with theroot
andstep[0]
being substituted with the relevant property object.- Parameters:
root
- The root bean.steps
- The property names to reach the final property. The first step must be specified as it marks the property of the root bean.- Returns:
- the created
LongBinding
- Since:
- JavaFX 8.0
-
selectBoolean
public static BooleanBinding selectBoolean(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, orfalse
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aboolean
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).If root has JavaFX properties, this call is equivalent to
selectBoolean(javafx.beans.value.ObservableValue, java.lang.String[])
, with theroot
andstep[0]
being substituted with the relevant property object.- Parameters:
root
- The root bean.steps
- The property names to reach the final property. The first step must be specified as it marks the property of the root bean.- Returns:
- the created
ObjectBinding
- Since:
- JavaFX 8.0
-
selectString
public static StringBinding selectString(Object root, String... steps)
Creates a binding used to get a member, such asa.b.c
. The value of the binding will bec
, or""
ifc
could not be reached (due tob
not having ac
property,b
beingnull
, orc
not being aString
etc.).All classes and properties used in a select-binding have to be declared public. Additionally, if any class is in a named module, then it must be reflectively accessible to the
javafx.base
module (see Deploying an Application as a Module).If root has JavaFX properties, this call is equivalent to
selectString(javafx.beans.value.ObservableValue, java.lang.String[])
, with theroot
andstep[0]
being substituted with the relevant property object.- Parameters:
root
- The root bean.steps
- The property names to reach the final property. The first step must be specified as it marks the property of the root bean.- Returns:
- the created
ObjectBinding
- Since:
- JavaFX 8.0
-
when
public static When when(ObservableBooleanValue condition)
Creates a binding that calculates the result of a ternary expression. See the description of classWhen
for details.- Parameters:
condition
- the condition of the ternary expression- Returns:
- an intermediate class to build the complete binding
- See Also:
When
-
bindBidirectional
public static <T> void bindBidirectional(Property<T> property1, Property<T> property2)
Generates a bidirectional binding (or "bind with inverse") between two instances ofProperty
.A bidirectional binding is a binding that works in both directions. If two properties
a
andb
are linked with a bidirectional binding and the value ofa
changes,b
is set to the same value automatically. And vice versa, ifb
changes,a
is set to the same value.A bidirectional binding can be removed with
unbindBidirectional(Property, Property)
.Note: this implementation of a bidirectional binding behaves differently from all other bindings here in two important aspects. A property that is linked to another property with a bidirectional binding can still be set (usually bindings would throw an exception). Secondly bidirectional bindings are calculated eagerly, i.e. a bound property is updated immediately.
- Type Parameters:
T
- the types of the properties- Parameters:
property1
- the firstProperty<T>
property2
- the secondProperty<T>
- Throws:
NullPointerException
- if one of the properties isnull
IllegalArgumentException
- if both properties are equal
-
unbindBidirectional
public static <T> void unbindBidirectional(Property<T> property1, Property<T> property2)
Delete a bidirectional binding that was previously defined withbindBidirectional(Property, Property)
.- Type Parameters:
T
- the types of the properties- Parameters:
property1
- the firstProperty<T>
property2
- the secondProperty<T>
- Throws:
NullPointerException
- if one of the properties isnull
IllegalArgumentException
- if both properties are equal
-
unbindBidirectional
public static void unbindBidirectional(Object property1, Object property2)
Delete a bidirectional binding that was previously defined withbindBidirectional(Property, Property)
orbindBidirectional(javafx.beans.property.Property, javafx.beans.property.Property, java.text.Format)
.- Parameters:
property1
- the firstProperty<T>
property2
- the secondProperty<T>
- Throws:
NullPointerException
- if one of the properties isnull
IllegalArgumentException
- if both properties are equal- Since:
- JavaFX 2.1
-
bindBidirectional
public static void bindBidirectional(Property<String> stringProperty, Property<?> otherProperty, Format format)
Generates a bidirectional binding (or "bind with inverse") between aString
-Property
and anotherProperty
using the specifiedFormat
for conversion.A bidirectional binding is a binding that works in both directions. If two properties
a
andb
are linked with a bidirectional binding and the value ofa
changes,b
is set to the same value automatically. And vice versa, ifb
changes,a
is set to the same value.A bidirectional binding can be removed with
unbindBidirectional(Object, Object)
.Note: this implementation of a bidirectional binding behaves differently from all other bindings here in two important aspects. A property that is linked to another property with a bidirectional binding can still be set (usually bindings would throw an exception). Secondly bidirectional bindings are calculated eagerly, i.e. a bound property is updated immediately.
- Parameters:
stringProperty
- theString
Property
otherProperty
- the other (non-String
)Property
format
- theFormat
used to convert between the properties- Throws:
NullPointerException
- if one of the properties or theformat
isnull
IllegalArgumentException
- if both properties are equal- Since:
- JavaFX 2.1
-
bindBidirectional
public static <T> void bindBidirectional(Property<String> stringProperty, Property<T> otherProperty, StringConverter<T> converter)
Generates a bidirectional binding (or "bind with inverse") between aString
-Property
and anotherProperty
using the specifiedStringConverter
for conversion.A bidirectional binding is a binding that works in both directions. If two properties
a
andb
are linked with a bidirectional binding and the value ofa
changes,b
is set to the same value automatically. And vice versa, ifb
changes,a
is set to the same value.A bidirectional binding can be removed with
unbindBidirectional(Object, Object)
.Note: this implementation of a bidirectional binding behaves differently from all other bindings here in two important aspects. A property that is linked to another property with a bidirectional binding can still be set (usually bindings would throw an exception). Secondly bidirectional bindings are calculated eagerly, i.e. a bound property is updated immediately.
- Type Parameters:
T
- the type of the wrappedObject
- Parameters:
stringProperty
- theString
Property
otherProperty
- the other (non-String
)Property
converter
- theStringConverter
used to convert between the properties- Throws:
NullPointerException
- if one of the properties or theconverter
isnull
IllegalArgumentException
- if both properties are equal- Since:
- JavaFX 2.1
-
bindContentBidirectional
public static <E> void bindContentBidirectional(ObservableList<E> list1, ObservableList<E> list2)
Generates a bidirectional binding (or "bind with inverse") between two instances ofObservableList
.A bidirectional binding is a binding that works in both directions. If two properties
a
andb
are linked with a bidirectional binding and the value ofa
changes,b
is set to the same value automatically. And vice versa, ifb
changes,a
is set to the same value.Only the content of the two lists is synchronized, which means that both lists are different, but they contain the same elements.
A bidirectional content-binding can be removed with
unbindContentBidirectional(Object, Object)
.Note: this implementation of a bidirectional binding behaves differently from all other bindings here in two important aspects. A property that is linked to another property with a bidirectional binding can still be set (usually bindings would throw an exception). Secondly bidirectional bindings are calculated eagerly, i.e. a bound property is updated immediately.
- Type Parameters:
E
- the type of the list elements- Parameters:
list1
- the firstObservableList<E>
list2
- the secondObservableList<E>
- Throws:
NullPointerException
- if one of the lists isnull
IllegalArgumentException
- iflist1
==list2
- Since:
- JavaFX 2.1
-
bindContentBidirectional
public static <E> void bindContentBidirectional(ObservableSet<E> set1, ObservableSet<E> set2)
Generates a bidirectional binding (or "bind with inverse") between two instances ofObservableSet
.A bidirectional binding is a binding that works in both directions. If two properties
a
andb
are linked with a bidirectional binding and the value ofa
changes,b
is set to the same value automatically. And vice versa, ifb
changes,a
is set to the same value.Only the content of the two sets is synchronized, which means that both sets are different, but they contain the same elements.
A bidirectional content-binding can be removed with
unbindContentBidirectional(Object, Object)
.Note: this implementation of a bidirectional binding behaves differently from all other bindings here in two important aspects. A property that is linked to another property with a bidirectional binding can still be set (usually bindings would throw an exception). Secondly bidirectional bindings are calculated eagerly, i.e. a bound property is updated immediately.
- Type Parameters:
E
- the type of the set elements- Parameters:
set1
- the firstObservableSet<E>
set2
- the secondObservableSet<E>
- Throws:
NullPointerException
- if one of the sets isnull
IllegalArgumentException
- ifset1
==set2
- Since:
- JavaFX 2.1
-
bindContentBidirectional
public static <K,V> void bindContentBidirectional(ObservableMap<K,V> map1, ObservableMap<K,V> map2)
Generates a bidirectional binding (or "bind with inverse") between two instances ofObservableMap
.A bidirectional binding is a binding that works in both directions. If two properties
a
andb
are linked with a bidirectional binding and the value ofa
changes,b
is set to the same value automatically. And vice versa, ifb
changes,a
is set to the same value.Only the content of the two maps is synchronized, which means that both maps are different, but they contain the same elements.
A bidirectional content-binding can be removed with
unbindContentBidirectional(Object, Object)
.Note: this implementation of a bidirectional binding behaves differently from all other bindings here in two important aspects. A property that is linked to another property with a bidirectional binding can still be set (usually bindings would throw an exception). Secondly bidirectional bindings are calculated eagerly, i.e. a bound property is updated immediately.
- Type Parameters:
K
- the type of the key elementsV
- the type of the value elements- Parameters:
map1
- the firstObservableMap<K, V>
map2
- the secondObservableMap<K, V>
- Since:
- JavaFX 2.1
-
unbindContentBidirectional
public static void unbindContentBidirectional(Object obj1, Object obj2)
Remove a bidirectional content binding.- Parameters:
obj1
- the firstObject
obj2
- the secondObject
- Since:
- JavaFX 2.1
-
bindContent
public static <E> void bindContent(List<E> list1, ObservableList<? extends E> list2)
Generates a content binding between anObservableList
and aList
.A content binding ensures that the
List
contains the same elements as theObservableList
. If the content of theObservableList
changes, theList
will be updated automatically.Once a
List
is bound to anObservableList
, theList
must not be changed directly anymore. Doing so would lead to unexpected results.A content-binding can be removed with
unbindContent(Object, Object)
.- Type Parameters:
E
- the type of theList
elements- Parameters:
list1
- theList
list2
- theObservableList
- Since:
- JavaFX 2.1
-
bindContent
public static <E> void bindContent(Set<E> set1, ObservableSet<? extends E> set2)
Generates a content binding between anObservableSet
and aSet
.A content binding ensures that the
Set
contains the same elements as theObservableSet
. If the content of theObservableSet
changes, theSet
will be updated automatically.Once a
Set
is bound to anObservableSet
, theSet
must not be changed directly anymore. Doing so would lead to unexpected results.A content-binding can be removed with
unbindContent(Object, Object)
.- Type Parameters:
E
- the type of theSet
elements- Parameters:
set1
- theSet
set2
- theObservableSet
- Throws:
NullPointerException
- if one of the sets isnull
IllegalArgumentException
- ifset1
==set2
- Since:
- JavaFX 2.1
-
bindContent
public static <K,V> void bindContent(Map<K,V> map1, ObservableMap<? extends K,? extends V> map2)
Generates a content binding between anObservableMap
and aMap
.A content binding ensures that the
Map
contains the same elements as theObservableMap
. If the content of theObservableMap
changes, theMap
will be updated automatically.Once a
Map
is bound to anObservableMap
, theMap
must not be changed directly anymore. Doing so would lead to unexpected results.A content-binding can be removed with
unbindContent(Object, Object)
.- Type Parameters:
K
- the type of the key elements of theMap
V
- the type of the value elements of theMap
- Parameters:
map1
- theMap
map2
- theObservableMap
- Throws:
NullPointerException
- if one of the maps isnull
IllegalArgumentException
- ifmap1
==map2
- Since:
- JavaFX 2.1
-
unbindContent
public static void unbindContent(Object obj1, Object obj2)
Remove a content binding.- Parameters:
obj1
- the firstObject
obj2
- the secondObject
- Throws:
NullPointerException
- if one of theObjects
isnull
IllegalArgumentException
- ifobj1
==obj2
- Since:
- JavaFX 2.1
-
negate
public static NumberBinding negate(ObservableNumberValue value)
Creates a newNumberBinding
that calculates the negation of aObservableNumberValue
.- Parameters:
value
- the operand- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if the value isnull
-
add
public static NumberBinding add(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the sum of the values of two instances ofObservableNumberValue
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
add
public static DoubleBinding add(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
add
public static DoubleBinding add(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
add
public static NumberBinding add(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
add
public static NumberBinding add(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
add
public static NumberBinding add(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
add
public static NumberBinding add(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
add
public static NumberBinding add(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
add
public static NumberBinding add(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the sum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
subtract
public static NumberBinding subtract(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the difference of the values of two instances ofObservableNumberValue
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
subtract
public static DoubleBinding subtract(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the difference of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
subtract
public static DoubleBinding subtract(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the difference of a constant value and the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
subtract
public static NumberBinding subtract(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the difference of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
subtract
public static NumberBinding subtract(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the difference of a constant value and the value of aObservableNumberValue
.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
subtract
public static NumberBinding subtract(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the difference of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
subtract
public static NumberBinding subtract(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the difference of a constant value and the value of aObservableNumberValue
.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
subtract
public static NumberBinding subtract(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the difference of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
subtract
public static NumberBinding subtract(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the difference of a constant value and the value of aObservableNumberValue
.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
multiply
public static NumberBinding multiply(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the product of the values of two instances ofObservableNumberValue
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
multiply
public static DoubleBinding multiply(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
multiply
public static DoubleBinding multiply(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
multiply
public static NumberBinding multiply(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
multiply
public static NumberBinding multiply(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
multiply
public static NumberBinding multiply(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
multiply
public static NumberBinding multiply(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
multiply
public static NumberBinding multiply(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
multiply
public static NumberBinding multiply(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the product of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
divide
public static NumberBinding divide(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the division of the values of two instances ofObservableNumberValue
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
divide
public static DoubleBinding divide(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the division of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
divide
public static DoubleBinding divide(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the division of a constant value and the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
divide
public static NumberBinding divide(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the division of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
divide
public static NumberBinding divide(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the division of a constant value and the value of aObservableNumberValue
.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
divide
public static NumberBinding divide(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the division of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
divide
public static NumberBinding divide(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the division of a constant value and the value of aObservableNumberValue
.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
divide
public static NumberBinding divide(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the division of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
divide
public static NumberBinding divide(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the division of a constant value and the value of aObservableNumberValue
.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableNumberValue
are equal (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the first operandop2
- the second operandepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableNumberValue
are equal.When comparing floating-point numbers it is recommended to use the
equal()
method that allows a small tolerance.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, double op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- theObservableNumberValue
op2
- the constant valueepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(double op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
epsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, float op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- theObservableNumberValue
op2
- the constant valueepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(float op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
epsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, long op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- theObservableNumberValue
op2
- the constant valueepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value.When comparing floating-point numbers it is recommended to use the
equal()
method that allows a small tolerance.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(long op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
epsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value.When comparing floating-point numbers it is recommended to use the
equal()
method that allows a small tolerance.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, int op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- theObservableNumberValue
op2
- the constant valueepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value.When comparing floating-point numbers it is recommended to use the
equal()
method that allows a small tolerance.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(int op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
epsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
equal
public static BooleanBinding equal(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is equal to a constant value.When comparing floating-point numbers it is recommended to use the
equal()
method that allows a small tolerance.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableNumberValue
are not equal (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the first operandop2
- the second operandepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableNumberValue
are not equal.When comparing floating-point numbers it is recommended to use the
notEqual()
method that allows a small tolerance.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, double op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- theObservableNumberValue
op2
- the constant valueepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(double op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
epsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, float op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- theObservableNumberValue
op2
- the constant valueepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(float op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
epsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, long op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- theObservableNumberValue
op2
- the constant valueepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value.When comparing floating-point numbers it is recommended to use the
notEqual()
method that allows a small tolerance.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(long op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
epsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value.When comparing floating-point numbers it is recommended to use the
notEqual()
method that allows a small tolerance.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, int op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- theObservableNumberValue
op2
- the constant valueepsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value.When comparing floating-point numbers it is recommended to use the
notEqual()
method that allows a small tolerance.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(int op1, ObservableNumberValue op2, double epsilon)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value (with a tolerance).Two operands
a
andb
are considered equal ifMath.abs(a-b) <= epsilon
.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
epsilon
- the permitted tolerance- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
notEqual
public static BooleanBinding notEqual(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is not equal to a constant value.When comparing floating-point numbers it is recommended to use the
notEqual()
method that allows a small tolerance.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableNumberValue
is greater than the value of the second.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, double op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(double op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, float op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(float op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableNumberValue
is less than the value of the second.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, double op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThan
public static BooleanBinding lessThan(double op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, float op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThan
public static BooleanBinding lessThan(float op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThan
public static BooleanBinding lessThan(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThan
public static BooleanBinding lessThan(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableNumberValue
is greater than or equal to the value of the second.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, double op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than or equal to a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(double op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, float op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than or equal to a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(float op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than or equal to a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is greater than or equal to a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableNumberValue
is less than or equal to the value of the second.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, double op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than or equal to a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(double op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, float op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than or equal to a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(float op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, long op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than or equal to a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(long op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, int op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableNumberValue
is less than or equal to a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(int op1, ObservableNumberValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableNumberValue
.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
min
public static NumberBinding min(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the minimum of the values of two instances ofObservableNumberValue
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
min
public static DoubleBinding min(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
min
public static DoubleBinding min(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
min
public static NumberBinding min(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
min
public static NumberBinding min(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
min
public static NumberBinding min(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
min
public static NumberBinding min(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
min
public static NumberBinding min(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
min
public static NumberBinding min(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the minimum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
max
public static NumberBinding max(ObservableNumberValue op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the maximum of the values of two instances ofObservableNumberValue
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
max
public static DoubleBinding max(ObservableNumberValue op1, double op2)
Creates a newDoubleBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
max
public static DoubleBinding max(double op1, ObservableNumberValue op2)
Creates a newDoubleBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
max
public static NumberBinding max(ObservableNumberValue op1, float op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
max
public static NumberBinding max(float op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
max
public static NumberBinding max(ObservableNumberValue op1, long op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
max
public static NumberBinding max(long op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
max
public static NumberBinding max(ObservableNumberValue op1, int op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- theObservableNumberValue
op2
- the constant value- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
max
public static NumberBinding max(int op1, ObservableNumberValue op2)
Creates a newNumberBinding
that calculates the maximum of the value of aObservableNumberValue
and a constant value.- Parameters:
op1
- the constant valueop2
- theObservableNumberValue
- Returns:
- the new
NumberBinding
- Throws:
NullPointerException
- if theObservableNumberValue
isnull
-
and
public static BooleanBinding and(ObservableBooleanValue op1, ObservableBooleanValue op2)
Creates aBooleanBinding
that calculates the conditional-AND operation on the value of two instance ofObservableBooleanValue
.- Parameters:
op1
- firstObservableBooleanValue
op2
- secondObservableBooleanValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
or
public static BooleanBinding or(ObservableBooleanValue op1, ObservableBooleanValue op2)
Creates aBooleanBinding
that calculates the conditional-OR operation on the value of two instance ofObservableBooleanValue
.- Parameters:
op1
- firstObservableBooleanValue
op2
- secondObservableBooleanValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
not
public static BooleanBinding not(ObservableBooleanValue op)
Creates aBooleanBinding
that calculates the inverse of the value of aObservableBooleanValue
.- Parameters:
op
- theObservableBooleanValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if the operand isnull
-
equal
public static BooleanBinding equal(ObservableBooleanValue op1, ObservableBooleanValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableBooleanValue
are equal.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableBooleanValue op1, ObservableBooleanValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableBooleanValue
are not equal.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
convert
public static StringExpression convert(ObservableValue<?> observableValue)
Returns aStringExpression
that wraps aObservableValue
. If theObservableValue
is already aStringExpression
, it will be returned. Otherwise a newStringBinding
is created that holds the value of theObservableValue
converted to aString
.- Parameters:
observableValue
- The sourceObservableValue
- Returns:
- A
StringExpression
that wraps theObservableValue
if necessary - Throws:
NullPointerException
- ifobservableValue
isnull
-
concat
public static StringExpression concat(Object... args)
Returns aStringExpression
that holds the value of the concatenation of multipleObjects
.If one of the arguments implements
ObservableValue
and the value of thisObservableValue
changes, the change is automatically reflected in theStringExpression
.If
null
or an empty array is passed to this method, aStringExpression
that contains an emptyString
is returned- Parameters:
args
- theObjects
that should be concatenated- Returns:
- the new
StringExpression
-
format
public static StringExpression format(String format, Object... args)
Creates aStringExpression
that holds the value of multipleObjects
formatted according to a formatString
.If one of the arguments implements
ObservableValue
and the value of thisObservableValue
changes, the change is automatically reflected in theStringExpression
.See
java.util.Formatter
for formatting rules.- Parameters:
format
- the formattingString
args
- theObjects
that should be inserted in the formattingString
- Returns:
- the new
StringExpression
-
format
public static StringExpression format(Locale locale, String format, Object... args)
Creates aStringExpression
that holds the value of multipleObjects
formatted according to a formatString
and a specifiedLocale
If one of the arguments implements
ObservableValue
and the value of thisObservableValue
changes, the change is automatically reflected in theStringExpression
.See
java.util.Formatter
for formatting rules. Seejava.util.Locale
for details onLocale
.- Parameters:
locale
- theLocale
to use during formattingformat
- the formattingString
args
- theObjects
that should be inserted in the formattingString
- Returns:
- the new
StringExpression
-
equal
public static BooleanBinding equal(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableStringValue
are equal.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
equal
public static BooleanBinding equal(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is equal to a constant value.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- theObservableStringValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
equal
public static BooleanBinding equal(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is equal to a constant value.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the constant valueop2
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
notEqual
public static BooleanBinding notEqual(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableStringValue
are not equal.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is not equal to a constant value.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- theObservableStringValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
notEqual
public static BooleanBinding notEqual(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is not equal to a constant value.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the constant valueop2
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
equalIgnoreCase
public static BooleanBinding equalIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableStringValue
are equal ignoring case.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
equalIgnoreCase
public static BooleanBinding equalIgnoreCase(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is equal to a constant value ignoring case.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- theObservableStringValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
equalIgnoreCase
public static BooleanBinding equalIgnoreCase(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is equal to a constant value ignoring case.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the constant valueop2
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
notEqualIgnoreCase
public static BooleanBinding notEqualIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableStringValue
are not equal ignoring case.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
notEqualIgnoreCase
public static BooleanBinding notEqualIgnoreCase(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is not equal to a constant value ignoring case.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- theObservableStringValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
notEqualIgnoreCase
public static BooleanBinding notEqualIgnoreCase(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is not equal to a constant value ignoring case.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the constant valueop2
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableStringValue
is greater than the value of the second.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is greater than a constant value.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- theObservableStringValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
greaterThan
public static BooleanBinding greaterThan(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of a constant value is greater than the value of aObservableStringValue
.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the constant valueop2
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
lessThan
public static BooleanBinding lessThan(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableStringValue
is less than the value of the second.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
lessThan
public static BooleanBinding lessThan(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is less than a constant value.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- theObservableStringValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
lessThan
public static BooleanBinding lessThan(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than the value of aObservableStringValue
.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the constant valueop2
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableStringValue
is greater than or equal to the value of the second.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is greater than or equal to a constant value.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- theObservableStringValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is greater than or equal to the value of aObservableStringValue
.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the constant valueop2
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if the value of the firstObservableStringValue
is less than or equal to the value of the second.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableStringValue op1, String op2)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is less than or equal to a constant value.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- theObservableStringValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(String op1, ObservableStringValue op2)
Creates a newBooleanBinding
that holdstrue
if a constant value is less than or equal to the value of aObservableStringValue
.Note: In this comparison a
String
that isnull
is considered equal to an emptyString
.- Parameters:
op1
- the constant valueop2
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
-
length
public static IntegerBinding length(ObservableStringValue op)
Creates a newIntegerBinding
that holds the length of aObservableStringValue
.Note: In this comparison a
String
that isnull
is considered to have a length of0
.- Parameters:
op
- theObservableStringValue
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
- Since:
- JavaFX 8.0
-
isEmpty
public static BooleanBinding isEmpty(ObservableStringValue op)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is empty.Note: In this comparison a
String
that isnull
is considered to be empty.- Parameters:
op
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
- Since:
- JavaFX 8.0
-
isNotEmpty
public static BooleanBinding isNotEmpty(ObservableStringValue op)
Creates a newBooleanBinding
that holdstrue
if the value of aObservableStringValue
is not empty.Note: In this comparison a
String
that isnull
is considered to be empty.- Parameters:
op
- theObservableStringValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableStringValue
isnull
- Since:
- JavaFX 8.0
-
equal
public static BooleanBinding equal(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableObjectValue
are equal.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
equal
public static BooleanBinding equal(ObservableObjectValue<?> op1, Object op2)
Creates a newBooleanBinding
that holdstrue
if the value of anObservableObjectValue
is equal to a constant value.- Parameters:
op1
- theObservableObjectValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableObjectValue
isnull
-
equal
public static BooleanBinding equal(Object op1, ObservableObjectValue<?> op2)
Creates a newBooleanBinding
that holdstrue
if the value of anObservableObjectValue
is equal to a constant value.- Parameters:
op1
- the constant valueop2
- theObservableObjectValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableObjectValue
isnull
-
notEqual
public static BooleanBinding notEqual(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)
Creates a newBooleanBinding
that holdstrue
if the values of two instances ofObservableObjectValue
are not equal.- Parameters:
op1
- the first operandop2
- the second operand- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableObjectValue<?> op1, Object op2)
Creates a newBooleanBinding
that holdstrue
if the value of anObservableObjectValue
is not equal to a constant value.- Parameters:
op1
- theObservableObjectValue
op2
- the constant value- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableObjectValue
isnull
-
notEqual
public static BooleanBinding notEqual(Object op1, ObservableObjectValue<?> op2)
Creates a newBooleanBinding
that holdstrue
if the value of anObservableObjectValue
is not equal to a constant value.- Parameters:
op1
- the constant valueop2
- theObservableObjectValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableObjectValue
isnull
-
isNull
public static BooleanBinding isNull(ObservableObjectValue<?> op)
- Parameters:
op
- theObservableObjectValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableObjectValue
isnull
-
isNotNull
public static BooleanBinding isNotNull(ObservableObjectValue<?> op)
- Parameters:
op
- theObservableObjectValue
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableObjectValue
isnull
-
size
public static <E> IntegerBinding size(ObservableList<E> op)
Creates a newIntegerBinding
that contains the size of anObservableList
.- Type Parameters:
E
- type of theList
elements- Parameters:
op
- theObservableList
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableList
isnull
- Since:
- JavaFX 2.1
-
isEmpty
public static <E> BooleanBinding isEmpty(ObservableList<E> op)
- Type Parameters:
E
- type of theList
elements- Parameters:
op
- theObservableList
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableList
isnull
- Since:
- JavaFX 2.1
-
isNotEmpty
public static <E> BooleanBinding isNotEmpty(ObservableList<E> op)
- Type Parameters:
E
- type of theList
elements- Parameters:
op
- theObservableList
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableList
isnull
- Since:
- JavaFX 8.0
-
valueAt
public static <E> ObjectBinding<E> valueAt(ObservableList<E> op, int index)
Creates a newObjectBinding
that contains the element of anObservableList
at the specified position. TheObjectBinding
will containnull
if theindex
points behind theObservableList
.- Type Parameters:
E
- the type of theList
elements- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
ObjectBinding
- Throws:
NullPointerException
- if theObservableList
isnull
IllegalArgumentException
- if (@code index < 0)- Since:
- JavaFX 2.1
-
valueAt
public static <E> ObjectBinding<E> valueAt(ObservableList<E> op, ObservableIntegerValue index)
Creates a newObjectBinding
that contains the element of anObservableList
at the specified position. TheObjectBinding
will containnull
if theindex
is outside of theObservableList
.- Type Parameters:
E
- the type of theList
elements- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
ObjectBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 2.1
-
valueAt
public static <E> ObjectBinding<E> valueAt(ObservableList<E> op, ObservableNumberValue index)
Creates a newObjectBinding
that contains the element of anObservableList
at the specified position. TheObjectBinding
will containnull
if theindex
is outside of theObservableList
.- Type Parameters:
E
- the type of theList
elements- Parameters:
op
- theObservableList
index
- the position in theList
, converted to int- Returns:
- the new
ObjectBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 8.0
-
booleanValueAt
public static BooleanBinding booleanValueAt(ObservableList<Boolean> op, int index)
Creates a newBooleanBinding
that contains the element of anObservableList
at the specified position. TheBooleanBinding
will holdfalse
if theindex
points behind theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableList
isnull
IllegalArgumentException
- if (@code index < 0)- Since:
- JavaFX 2.1
-
booleanValueAt
public static BooleanBinding booleanValueAt(ObservableList<Boolean> op, ObservableIntegerValue index)
Creates a newBooleanBinding
that contains the element of anObservableList
at the specified position. TheBooleanBinding
will holdfalse
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 2.1
-
booleanValueAt
public static BooleanBinding booleanValueAt(ObservableList<Boolean> op, ObservableNumberValue index)
Creates a newBooleanBinding
that contains the element of anObservableList
at the specified position. TheBooleanBinding
will holdfalse
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
, converted to int- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 8.0
-
doubleValueAt
public static DoubleBinding doubleValueAt(ObservableList<? extends Number> op, int index)
Creates a newDoubleBinding
that contains the element of anObservableList
at the specified position. TheDoubleBinding
will hold0.0
if theindex
points behind theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableList
isnull
IllegalArgumentException
- if (@code index < 0)- Since:
- JavaFX 2.1
-
doubleValueAt
public static DoubleBinding doubleValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)
Creates a newDoubleBinding
that contains the element of anObservableList
at the specified position. TheDoubleBinding
will hold0.0
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 2.1
-
doubleValueAt
public static DoubleBinding doubleValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)
Creates a newDoubleBinding
that contains the element of anObservableList
at the specified position. TheDoubleBinding
will hold0.0
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
, converted to int- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 8.0
-
floatValueAt
public static FloatBinding floatValueAt(ObservableList<? extends Number> op, int index)
Creates a newFloatBinding
that contains the element of anObservableList
at the specified position. TheFloatBinding
will hold0.0f
if theindex
points behind theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
FloatBinding
- Throws:
NullPointerException
- if theObservableList
isnull
IllegalArgumentException
- if (@code index < 0)- Since:
- JavaFX 2.1
-
floatValueAt
public static FloatBinding floatValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)
Creates a newFloatBinding
that contains the element of anObservableList
at the specified position. TheFloatBinding
will hold0.0f
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
FloatBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 2.1
-
floatValueAt
public static FloatBinding floatValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)
Creates a newFloatBinding
that contains the element of anObservableList
at the specified position. TheFloatBinding
will hold0.0f
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
, converted to int- Returns:
- the new
FloatBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 8.0
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableList<? extends Number> op, int index)
Creates a newIntegerBinding
that contains the element of anObservableList
at the specified position. TheIntegerBinding
will hold0
if theindex
points behind theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableList
isnull
IllegalArgumentException
- if (@code index < 0)- Since:
- JavaFX 2.1
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)
Creates a newIntegerBinding
that contains the element of anObservableList
at the specified position. TheIntegerBinding
will hold0
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 2.1
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)
Creates a newIntegerBinding
that contains the element of anObservableList
at the specified position. TheIntegerBinding
will hold0
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
, converted to int- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 8.0
-
longValueAt
public static LongBinding longValueAt(ObservableList<? extends Number> op, int index)
Creates a newLongBinding
that contains the element of anObservableList
at the specified position. TheLongBinding
will hold0L
if theindex
points behind theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
LongBinding
- Throws:
NullPointerException
- if theObservableList
isnull
IllegalArgumentException
- if (@code index < 0)- Since:
- JavaFX 2.1
-
longValueAt
public static LongBinding longValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)
Creates a newLongBinding
that contains the element of anObservableList
at the specified position. TheLongBinding
will hold0L
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
LongBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 2.1
-
longValueAt
public static LongBinding longValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)
Creates a newLongBinding
that contains the element of anObservableList
at the specified position. TheLongBinding
will hold0L
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
, converted to int- Returns:
- the new
LongBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 8.0
-
stringValueAt
public static StringBinding stringValueAt(ObservableList<String> op, int index)
Creates a newStringBinding
that contains the element of anObservableList
at the specified position. TheStringBinding
will holdnull
if theindex
points behind theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
StringBinding
- Throws:
NullPointerException
- if theObservableList
isnull
IllegalArgumentException
- if (@code index < 0)- Since:
- JavaFX 2.1
-
stringValueAt
public static StringBinding stringValueAt(ObservableList<String> op, ObservableIntegerValue index)
Creates a newStringBinding
that contains the element of anObservableList
at the specified position. TheStringBinding
will hold""
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
- Returns:
- the new
StringBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 2.1
-
stringValueAt
public static StringBinding stringValueAt(ObservableList<String> op, ObservableNumberValue index)
Creates a newStringBinding
that contains the element of anObservableList
at the specified position. TheStringBinding
will hold""
if theindex
is outside of theObservableList
.- Parameters:
op
- theObservableList
index
- the position in theList
, converted to int- Returns:
- the new
StringBinding
- Throws:
NullPointerException
- if theObservableList
orindex
isnull
- Since:
- JavaFX 8.0
-
size
public static <E> IntegerBinding size(ObservableSet<E> op)
Creates a newIntegerBinding
that contains the size of anObservableSet
.- Type Parameters:
E
- the type of theSet
elements- Parameters:
op
- theObservableSet
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableSet
isnull
- Since:
- JavaFX 2.1
-
isEmpty
public static <E> BooleanBinding isEmpty(ObservableSet<E> op)
- Type Parameters:
E
- the type of theSet
elements- Parameters:
op
- theObservableSet
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableSet
isnull
- Since:
- JavaFX 2.1
-
isNotEmpty
public static <E> BooleanBinding isNotEmpty(ObservableSet<E> op)
- Type Parameters:
E
- the type of theSet
elements- Parameters:
op
- theObservableSet
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableSet
isnull
- Since:
- JavaFX 8.0
-
size
public static IntegerBinding size(ObservableArray op)
Creates a newIntegerBinding
that contains the size of anObservableArray
.- Parameters:
op
- theObservableArray
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableArray
isnull
- Since:
- JavaFX 8.0
-
floatValueAt
public static FloatBinding floatValueAt(ObservableFloatArray op, int index)
Creates a newFloatBinding
that contains the element of anObservableArray
at the specified position. TheFloatBinding
will hold0.0f
if theindex
points behind theObservableArray
.- Parameters:
op
- theObservableArray
index
- the position in theObservableArray
- Returns:
- the new
FloatBinding
- Throws:
NullPointerException
- if theObservableArray
isnull
IllegalArgumentException
- if (@code index < 0)- Since:
- JavaFX 8.0
-
floatValueAt
public static FloatBinding floatValueAt(ObservableFloatArray op, ObservableIntegerValue index)
Creates a newFloatBinding
that contains the element of anObservableArray
at the specified position. TheFloatBinding
will hold0.0f
if theindex
is outside of theObservableArray
.- Parameters:
op
- theObservableArray
index
- the position in theObservableArray
- Returns:
- the new
FloatBinding
- Throws:
NullPointerException
- if theObservableArray
orindex
isnull
- Since:
- JavaFX 8.0
-
floatValueAt
public static FloatBinding floatValueAt(ObservableFloatArray op, ObservableNumberValue index)
Creates a newFloatBinding
that contains the element of anObservableArray
at the specified position. TheFloatBinding
will hold0.0f
if theindex
is outside of theObservableArray
.- Parameters:
op
- theObservableArray
index
- the position in theObservableArray
, converted to int- Returns:
- the new
FloatBinding
- Throws:
NullPointerException
- if theObservableArray
orindex
isnull
- Since:
- JavaFX 8.0
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableIntegerArray op, int index)
Creates a newIntegerBinding
that contains the element of anObservableArray
at the specified position. TheIntegerBinding
will hold0
if theindex
points behind theObservableArray
.- Parameters:
op
- theObservableArray
index
- the position in theObservableArray
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableArray
isnull
IllegalArgumentException
- if (@code index < 0)- Since:
- JavaFX 8.0
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableIntegerArray op, ObservableIntegerValue index)
Creates a newIntegerBinding
that contains the element of anObservableArray
at the specified position. TheIntegerBinding
will hold0
if theindex
is outside of theObservableArray
.- Parameters:
op
- theObservableArray
index
- the position in theObservableArray
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableArray
orindex
isnull
- Since:
- JavaFX 8.0
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableIntegerArray op, ObservableNumberValue index)
Creates a newIntegerBinding
that contains the element of anObservableArray
at the specified position. TheIntegerBinding
will hold0
if theindex
is outside of theObservableArray
.- Parameters:
op
- theObservableArray
index
- the position in theObservableArray
, converted to int- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableArray
orindex
isnull
- Since:
- JavaFX 8.0
-
size
public static <K,V> IntegerBinding size(ObservableMap<K,V> op)
Creates a newIntegerBinding
that contains the size of anObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
V
- type of the value elements of theMap
- Parameters:
op
- theObservableMap
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 2.1
-
isEmpty
public static <K,V> BooleanBinding isEmpty(ObservableMap<K,V> op)
- Type Parameters:
K
- type of the key elements of theMap
V
- type of the value elements of theMap
- Parameters:
op
- theObservableMap
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 2.1
-
isNotEmpty
public static <K,V> BooleanBinding isNotEmpty(ObservableMap<K,V> op)
- Type Parameters:
K
- type of the key elements of theMap
V
- type of the value elements of theMap
- Parameters:
op
- theObservableMap
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 8.0
-
valueAt
public static <K,V> ObjectBinding<V> valueAt(ObservableMap<K,V> op, K key)
Creates a newObjectBinding
that contains the mapping of a specific key in anObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
V
- type of the value elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
ObjectBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 2.1
-
valueAt
public static <K,V> ObjectBinding<V> valueAt(ObservableMap<K,V> op, ObservableValue<? extends K> key)
Creates a newObjectBinding
that contains the mapping of a specific key in anObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
V
- type of the value elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
ObjectBinding
- Throws:
NullPointerException
- if theObservableMap
orkey
isnull
- Since:
- JavaFX 2.1
-
booleanValueAt
public static <K> BooleanBinding booleanValueAt(ObservableMap<K,Boolean> op, K key)
Creates a newBooleanBinding
that contains the mapping of a specific key in anObservableMap
. TheBooleanBinding
will holdfalse
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 2.1
-
booleanValueAt
public static <K> BooleanBinding booleanValueAt(ObservableMap<K,Boolean> op, ObservableValue<? extends K> key)
Creates a newBooleanBinding
that contains the mapping of a specific key in anObservableMap
. TheBooleanBinding
will holdfalse
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
BooleanBinding
- Throws:
NullPointerException
- if theObservableMap
orkey
isnull
- Since:
- JavaFX 2.1
-
doubleValueAt
public static <K> DoubleBinding doubleValueAt(ObservableMap<K,? extends Number> op, K key)
Creates a newDoubleBinding
that contains the mapping of a specific key in anObservableMap
. TheDoubleBinding
will hold0.0
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 2.1
-
doubleValueAt
public static <K> DoubleBinding doubleValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)
Creates a newDoubleBinding
that contains the mapping of a specific key in anObservableMap
. TheDoubleBinding
will hold0.0
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
DoubleBinding
- Throws:
NullPointerException
- if theObservableMap
orkey
isnull
- Since:
- JavaFX 2.1
-
floatValueAt
public static <K> FloatBinding floatValueAt(ObservableMap<K,? extends Number> op, K key)
Creates a newFloatBinding
that contains the mapping of a specific key in anObservableMap
. TheFloatBinding
will hold0.0f
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
FloatBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 2.1
-
floatValueAt
public static <K> FloatBinding floatValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)
Creates a newFloatBinding
that contains the mapping of a specific key in anObservableMap
. TheFloatBinding
will hold0.0f
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
FloatBinding
- Throws:
NullPointerException
- if theObservableMap
orkey
isnull
- Since:
- JavaFX 2.1
-
integerValueAt
public static <K> IntegerBinding integerValueAt(ObservableMap<K,? extends Number> op, K key)
Creates a newIntegerBinding
that contains the mapping of a specific key in anObservableMap
. TheIntegerBinding
will hold0
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 2.1
-
integerValueAt
public static <K> IntegerBinding integerValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)
Creates a newIntegerBinding
that contains the mapping of a specific key in anObservableMap
. TheIntegerBinding
will hold0
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
IntegerBinding
- Throws:
NullPointerException
- if theObservableMap
orkey
isnull
- Since:
- JavaFX 2.1
-
longValueAt
public static <K> LongBinding longValueAt(ObservableMap<K,? extends Number> op, K key)
Creates a newLongBinding
that contains the mapping of a specific key in anObservableMap
. TheLongBinding
will hold0L
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
LongBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 2.1
-
longValueAt
public static <K> LongBinding longValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)
Creates a newLongBinding
that contains the mapping of a specific key in anObservableMap
. TheLongBinding
will hold0L
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
LongBinding
- Throws:
NullPointerException
- if theObservableMap
orkey
isnull
- Since:
- JavaFX 2.1
-
stringValueAt
public static <K> StringBinding stringValueAt(ObservableMap<K,String> op, K key)
Creates a newStringBinding
that contains the mapping of a specific key in anObservableMap
. TheStringBinding
will holdnull
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
StringBinding
- Throws:
NullPointerException
- if theObservableMap
isnull
- Since:
- JavaFX 2.1
-
stringValueAt
public static <K> StringBinding stringValueAt(ObservableMap<K,String> op, ObservableValue<? extends K> key)
Creates a newStringBinding
that contains the mapping of a specific key in anObservableMap
. TheStringBinding
will hold""
if thekey
cannot be found in theObservableMap
.- Type Parameters:
K
- type of the key elements of theMap
- Parameters:
op
- theObservableMap
key
- the key in theMap
- Returns:
- the new
StringBinding
- Throws:
NullPointerException
- if theObservableMap
orkey
isnull
- Since:
- JavaFX 2.1
-
-