Class Bindings
- javafx.beans.binding.Bindings
public final class Bindings extends Object
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 an ObservableValue.)
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.
Since:
JavaFX 2.0
See Also:
-
Method Summary
All MethodsStatic MethodsConcrete Methods Modifier and Type Method and Description static DoubleBindingadd(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.static NumberBindingadd(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.static NumberBindingadd(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.static NumberBindingadd(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.static DoubleBindingadd(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.static NumberBindingadd(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.static NumberBindingadd(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.static NumberBindingadd(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.static NumberBindingadd(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the sum of the values of two instances ofObservableNumberValue.static BooleanBindingand(ObservableBooleanValue op1, ObservableBooleanValue op2)Creates aBooleanBindingthat calculates the conditional-AND operation on the value of two instance ofObservableBooleanValue.static voidbindBidirectional(Property<String> stringProperty, Property<?> otherProperty, Format format)Generates a bidirectional binding (or "bind with inverse") between aString-Propertyand anotherPropertyusing the specifiedFormatfor conversion.static <T> voidbindBidirectional(Property<String> stringProperty, Property<T> otherProperty, StringConverter<T> converter)Generates a bidirectional binding (or "bind with inverse") between aString-Propertyand anotherPropertyusing the specifiedStringConverterfor conversion.static <T> voidbindBidirectional(Property<T> property1, Property<T> property2)Generates a bidirectional binding (or "bind with inverse") between two instances ofProperty.static <E> voidbindContent(List<E> list1, ObservableList<? extends E> list2)Generates a content binding between anObservableListand aList.static <K,V> voidbindContent(Map<K,V> map1, ObservableMap<? extends K,? extends V> map2)Generates a content binding between anObservableMapand aMap.static <E> voidbindContent(Set<E> set1, ObservableSet<? extends E> set2)Generates a content binding between anObservableSetand aSet.static <E> voidbindContentBidirectional(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> voidbindContentBidirectional(ObservableSet<E> set1, ObservableSet<E> set2)Generates a bidirectional binding (or "bind with inverse") between two instances ofObservableSet.static BooleanBindingbooleanValueAt(ObservableList<Boolean> op, int index)Creates a newBooleanBindingthat contains the element of anObservableListat the specified position.static BooleanBindingbooleanValueAt(ObservableList<Boolean> op, ObservableIntegerValue index)Creates a newBooleanBindingthat contains the element of anObservableListat the specified position.static BooleanBindingbooleanValueAt(ObservableList<Boolean> op, ObservableNumberValue index)Creates a newBooleanBindingthat contains the element of anObservableListat the specified position.static <K> BooleanBindingbooleanValueAt(ObservableMap<K,Boolean> op, K key)Creates a newBooleanBindingthat contains the mapping of a specific key in anObservableMap.static <K> BooleanBindingbooleanValueAt(ObservableMap<K,Boolean> op, ObservableValue<? extends K> key)Creates a newBooleanBindingthat contains the mapping of a specific key in anObservableMap.static StringExpressionconcat(Object... args)Returns aStringExpressionthat holds the value of the concatenation of multipleObjects.static StringExpressionconvert(ObservableValue<?> observableValue)Returns aStringExpressionthat wraps aObservableValue.static BooleanBindingcreateBooleanBinding(Callable<Boolean> func, Observable... dependencies)Helper function to create a customBooleanBinding.static DoubleBindingcreateDoubleBinding(Callable<Double> func, Observable... dependencies)Helper function to create a customDoubleBinding.static FloatBindingcreateFloatBinding(Callable<Float> func, Observable... dependencies)Helper function to create a customFloatBinding.static IntegerBindingcreateIntegerBinding(Callable<Integer> func, Observable... dependencies)Helper function to create a customIntegerBinding.static LongBindingcreateLongBinding(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 StringBindingcreateStringBinding(Callable<String> func, Observable... dependencies)Helper function to create a customStringBinding.static DoubleBindingdivide(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the division of a constant value and the value of aObservableNumberValue.static NumberBindingdivide(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the division of a constant value and the value of aObservableNumberValue.static NumberBindingdivide(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the division of a constant value and the value of aObservableNumberValue.static NumberBindingdivide(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the division of a constant value and the value of aObservableNumberValue.static DoubleBindingdivide(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the division of the value of aObservableNumberValueand a constant value.static NumberBindingdivide(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the division of the value of aObservableNumberValueand a constant value.static NumberBindingdivide(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the division of the value of aObservableNumberValueand a constant value.static NumberBindingdivide(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the division of the value of aObservableNumberValueand a constant value.static NumberBindingdivide(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the division of the values of two instances ofObservableNumberValue.static DoubleBindingdoubleValueAt(ObservableList<? extends Number> op, int index)Creates a newDoubleBindingthat contains the element of anObservableListat the specified position.static DoubleBindingdoubleValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)Creates a newDoubleBindingthat contains the element of anObservableListat the specified position.static DoubleBindingdoubleValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)Creates a newDoubleBindingthat contains the element of anObservableListat the specified position.static <K> DoubleBindingdoubleValueAt(ObservableMap<K,? extends Number> op, K key)Creates a newDoubleBindingthat contains the mapping of a specific key in anObservableMap.static <K> DoubleBindingdoubleValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)Creates a newDoubleBindingthat contains the mapping of a specific key in anObservableMap.static BooleanBindingequal(double op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).static BooleanBindingequal(float op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).static BooleanBindingequal(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value.static BooleanBindingequal(int op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).static BooleanBindingequal(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value.static BooleanBindingequal(long op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).static BooleanBindingequal(Object op1, ObservableObjectValue<?> op2)Creates a newBooleanBindingthat holdstrueif the value of anObservableObjectValueis equal to a constant value.static BooleanBindingequal(ObservableBooleanValue op1, ObservableBooleanValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableBooleanValueare equal.static BooleanBindingequal(ObservableNumberValue op1, double op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).static BooleanBindingequal(ObservableNumberValue op1, float op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).static BooleanBindingequal(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value.static BooleanBindingequal(ObservableNumberValue op1, int op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).static BooleanBindingequal(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value.static BooleanBindingequal(ObservableNumberValue op1, long op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).static BooleanBindingequal(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableNumberValueare equal.static BooleanBindingequal(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableNumberValueare equal (with a tolerance).static BooleanBindingequal(ObservableObjectValue<?> op1, Object op2)Creates a newBooleanBindingthat holdstrueif the value of anObservableObjectValueis equal to a constant value.static BooleanBindingequal(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableObjectValueare equal.static BooleanBindingequal(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableStringValueare equal.static BooleanBindingequal(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis equal to a constant value.static BooleanBindingequal(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis equal to a constant value.static BooleanBindingequalIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableStringValueare equal ignoring case.static BooleanBindingequalIgnoreCase(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis equal to a constant value ignoring case.static BooleanBindingequalIgnoreCase(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis equal to a constant value ignoring case.static FloatBindingfloatValueAt(ObservableFloatArray op, int index)Creates a newFloatBindingthat contains the element of anObservableArrayat the specified position.static FloatBindingfloatValueAt(ObservableFloatArray op, ObservableIntegerValue index)Creates a newFloatBindingthat contains the element of anObservableArrayat the specified position.static FloatBindingfloatValueAt(ObservableFloatArray op, ObservableNumberValue index)Creates a newFloatBindingthat contains the element of anObservableArrayat the specified position.static FloatBindingfloatValueAt(ObservableList<? extends Number> op, int index)Creates a newFloatBindingthat contains the element of anObservableListat the specified position.static FloatBindingfloatValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)Creates a newFloatBindingthat contains the element of anObservableListat the specified position.static FloatBindingfloatValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)Creates a newFloatBindingthat contains the element of anObservableListat the specified position.static <K> FloatBindingfloatValueAt(ObservableMap<K,? extends Number> op, K key)Creates a newFloatBindingthat contains the mapping of a specific key in anObservableMap.static <K> FloatBindingfloatValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)Creates a newFloatBindingthat contains the mapping of a specific key in anObservableMap.static StringExpressionformat(Locale locale, String format, Object... args)Creates aStringExpressionthat holds the value of multipleObjectsformatted according to a formatStringand a specifiedLocalestatic StringExpressionformat(String format, Object... args)Creates aStringExpressionthat holds the value of multipleObjectsformatted according to a formatString.static BooleanBindinggreaterThan(double op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than the value of aObservableNumberValue.static BooleanBindinggreaterThan(float op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than the value of aObservableNumberValue.static BooleanBindinggreaterThan(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than the value of aObservableNumberValue.static BooleanBindinggreaterThan(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than the value of aObservableNumberValue.static BooleanBindinggreaterThan(ObservableNumberValue op1, double op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than a constant value.static BooleanBindinggreaterThan(ObservableNumberValue op1, float op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than a constant value.static BooleanBindinggreaterThan(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than a constant value.static BooleanBindinggreaterThan(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than a constant value.static BooleanBindinggreaterThan(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableNumberValueis greater than the value of the second.static BooleanBindinggreaterThan(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableStringValueis greater than the value of the second.static BooleanBindinggreaterThan(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis greater than a constant value.static BooleanBindinggreaterThan(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of a constant value is greater than the value of aObservableStringValue.static BooleanBindinggreaterThanOrEqual(double op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableNumberValue.static BooleanBindinggreaterThanOrEqual(float op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableNumberValue.static BooleanBindinggreaterThanOrEqual(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableNumberValue.static BooleanBindinggreaterThanOrEqual(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableNumberValue.static BooleanBindinggreaterThanOrEqual(ObservableNumberValue op1, double op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than or equal to a constant value.static BooleanBindinggreaterThanOrEqual(ObservableNumberValue op1, float op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than or equal to a constant value.static BooleanBindinggreaterThanOrEqual(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than or equal to a constant value.static BooleanBindinggreaterThanOrEqual(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than or equal to a constant value.static BooleanBindinggreaterThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableNumberValueis greater than or equal to the value of the second.static BooleanBindinggreaterThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableStringValueis greater than or equal to the value of the second.static BooleanBindinggreaterThanOrEqual(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis greater than or equal to a constant value.static BooleanBindinggreaterThanOrEqual(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableStringValue.static IntegerBindingintegerValueAt(ObservableIntegerArray op, int index)Creates a newIntegerBindingthat contains the element of anObservableArrayat the specified position.static IntegerBindingintegerValueAt(ObservableIntegerArray op, ObservableIntegerValue index)Creates a newIntegerBindingthat contains the element of anObservableArrayat the specified position.static IntegerBindingintegerValueAt(ObservableIntegerArray op, ObservableNumberValue index)Creates a newIntegerBindingthat contains the element of anObservableArrayat the specified position.static IntegerBindingintegerValueAt(ObservableList<? extends Number> op, int index)Creates a newIntegerBindingthat contains the element of anObservableListat the specified position.static IntegerBindingintegerValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)Creates a newIntegerBindingthat contains the element of anObservableListat the specified position.static IntegerBindingintegerValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)Creates a newIntegerBindingthat contains the element of anObservableListat the specified position.static <K> IntegerBindingintegerValueAt(ObservableMap<K,? extends Number> op, K key)Creates a newIntegerBindingthat contains the mapping of a specific key in anObservableMap.static <K> IntegerBindingintegerValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)Creates a newIntegerBindingthat contains the mapping of a specific key in anObservableMap.static <E> BooleanBindingisEmpty(ObservableList<E> op)static <K,V> BooleanBindingisEmpty(ObservableMap<K,V> op)static <E> BooleanBindingisEmpty(ObservableSet<E> op)static BooleanBindingisEmpty(ObservableStringValue op)static <E> BooleanBindingisNotEmpty(ObservableList<E> op)static <K,V> BooleanBindingisNotEmpty(ObservableMap<K,V> op)static <E> BooleanBindingisNotEmpty(ObservableSet<E> op)static BooleanBindingisNotEmpty(ObservableStringValue op)static BooleanBindingisNotNull(ObservableObjectValue<?> op)static BooleanBindingisNull(ObservableObjectValue<?> op)static IntegerBindinglength(ObservableStringValue op)Creates a newIntegerBindingthat holds the length of aObservableStringValue.static BooleanBindinglessThan(double op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableNumberValue.static BooleanBindinglessThan(float op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableNumberValue.static BooleanBindinglessThan(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableNumberValue.static BooleanBindinglessThan(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableNumberValue.static BooleanBindinglessThan(ObservableNumberValue op1, double op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than a constant value.static BooleanBindinglessThan(ObservableNumberValue op1, float op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than a constant value.static BooleanBindinglessThan(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than a constant value.static BooleanBindinglessThan(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than a constant value.static BooleanBindinglessThan(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableNumberValueis less than the value of the second.static BooleanBindinglessThan(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableStringValueis less than the value of the second.static BooleanBindinglessThan(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis less than a constant value.static BooleanBindinglessThan(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableStringValue.static BooleanBindinglessThanOrEqual(double op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableNumberValue.static BooleanBindinglessThanOrEqual(float op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableNumberValue.static BooleanBindinglessThanOrEqual(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableNumberValue.static BooleanBindinglessThanOrEqual(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableNumberValue.static BooleanBindinglessThanOrEqual(ObservableNumberValue op1, double op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than or equal to a constant value.static BooleanBindinglessThanOrEqual(ObservableNumberValue op1, float op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than or equal to a constant value.static BooleanBindinglessThanOrEqual(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than or equal to a constant value.static BooleanBindinglessThanOrEqual(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than or equal to a constant value.static BooleanBindinglessThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableNumberValueis less than or equal to the value of the second.static BooleanBindinglessThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableStringValueis less than or equal to the value of the second.static BooleanBindinglessThanOrEqual(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis less than or equal to a constant value.static BooleanBindinglessThanOrEqual(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableStringValue.static LongBindinglongValueAt(ObservableList<? extends Number> op, int index)Creates a newLongBindingthat contains the element of anObservableListat the specified position.static LongBindinglongValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)Creates a newLongBindingthat contains the element of anObservableListat the specified position.static LongBindinglongValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)Creates a newLongBindingthat contains the element of anObservableListat the specified position.static <K> LongBindinglongValueAt(ObservableMap<K,? extends Number> op, K key)Creates a newLongBindingthat contains the mapping of a specific key in anObservableMap.static <K> LongBindinglongValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)Creates a newLongBindingthat contains the mapping of a specific key in anObservableMap.static DoubleBindingmax(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.static NumberBindingmax(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.static NumberBindingmax(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.static NumberBindingmax(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.static DoubleBindingmax(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.static NumberBindingmax(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.static NumberBindingmax(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.static NumberBindingmax(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.static NumberBindingmax(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the maximum of the values of two instances ofObservableNumberValue.static DoubleBindingmin(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.static NumberBindingmin(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.static NumberBindingmin(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.static NumberBindingmin(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.static DoubleBindingmin(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.static NumberBindingmin(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.static NumberBindingmin(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.static NumberBindingmin(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.static NumberBindingmin(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the minimum of the values of two instances ofObservableNumberValue.static DoubleBindingmultiply(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the product of the value of aObservableNumberValueand a constant value.static NumberBindingmultiply(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.static NumberBindingmultiply(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.static NumberBindingmultiply(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.static DoubleBindingmultiply(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the product of the value of aObservableNumberValueand a constant value.static NumberBindingmultiply(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.static NumberBindingmultiply(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.static NumberBindingmultiply(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.static NumberBindingmultiply(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the product of the values of two instances ofObservableNumberValue.static NumberBindingnegate(ObservableNumberValue value)Creates a newNumberBindingthat calculates the negation of aObservableNumberValue.static BooleanBindingnot(ObservableBooleanValue op)Creates aBooleanBindingthat calculates the inverse of the value of aObservableBooleanValue.static BooleanBindingnotEqual(double op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).static BooleanBindingnotEqual(float op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).static BooleanBindingnotEqual(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value.static BooleanBindingnotEqual(int op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).static BooleanBindingnotEqual(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value.static BooleanBindingnotEqual(long op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).static BooleanBindingnotEqual(Object op1, ObservableObjectValue<?> op2)Creates a newBooleanBindingthat holdstrueif the value of anObservableObjectValueis not equal to a constant value.static BooleanBindingnotEqual(ObservableBooleanValue op1, ObservableBooleanValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableBooleanValueare not equal.static BooleanBindingnotEqual(ObservableNumberValue op1, double op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).static BooleanBindingnotEqual(ObservableNumberValue op1, float op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).static BooleanBindingnotEqual(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value.static BooleanBindingnotEqual(ObservableNumberValue op1, int op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).static BooleanBindingnotEqual(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value.static BooleanBindingnotEqual(ObservableNumberValue op1, long op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).static BooleanBindingnotEqual(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableNumberValueare not equal.static BooleanBindingnotEqual(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableNumberValueare not equal (with a tolerance).static BooleanBindingnotEqual(ObservableObjectValue<?> op1, Object op2)Creates a newBooleanBindingthat holdstrueif the value of anObservableObjectValueis not equal to a constant value.static BooleanBindingnotEqual(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableObjectValueare not equal.static BooleanBindingnotEqual(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableStringValueare not equal.static BooleanBindingnotEqual(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis not equal to a constant value.static BooleanBindingnotEqual(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis not equal to a constant value.static BooleanBindingnotEqualIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableStringValueare not equal ignoring case.static BooleanBindingnotEqualIgnoreCase(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis not equal to a constant value ignoring case.static BooleanBindingnotEqualIgnoreCase(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis not equal to a constant value ignoring case.static BooleanBindingor(ObservableBooleanValue op1, ObservableBooleanValue op2)Creates aBooleanBindingthat 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 BooleanBindingselectBoolean(Object root, String... steps)Creates a binding used to get a member, such asa.b.c.static BooleanBindingselectBoolean(ObservableValue<?> root, String... steps)Creates a binding used to get a member, such asa.b.c.static DoubleBindingselectDouble(Object root, String... steps)Creates a binding used to get a member, such asa.b.c.static DoubleBindingselectDouble(ObservableValue<?> root, String... steps)Creates a binding used to get a member, such asa.b.c.static FloatBindingselectFloat(Object root, String... steps)Creates a binding used to get a member, such asa.b.c.static FloatBindingselectFloat(ObservableValue<?> root, String... steps)Creates a binding used to get a member, such asa.b.c.static IntegerBindingselectInteger(Object root, String... steps)Creates a binding used to get a member, such asa.b.c.static IntegerBindingselectInteger(ObservableValue<?> root, String... steps)Creates a binding used to get a member, such asa.b.c.static LongBindingselectLong(Object root, String... steps)Creates a binding used to get a member, such asa.b.c.static LongBindingselectLong(ObservableValue<?> root, String... steps)Creates a binding used to get a member, such asa.b.c.static StringBindingselectString(Object root, String... steps)Creates a binding used to get a member, such asa.b.c.static StringBindingselectString(ObservableValue<?> root, String... steps)Creates a binding used to get a member, such asa.b.c.static IntegerBindingsize(ObservableArray op)Creates a newIntegerBindingthat contains the size of anObservableArray.static <E> IntegerBindingsize(ObservableList<E> op)Creates a newIntegerBindingthat contains the size of anObservableList.static <K,V> IntegerBindingsize(ObservableMap<K,V> op)Creates a newIntegerBindingthat contains the size of anObservableMap.static <E> IntegerBindingsize(ObservableSet<E> op)Creates a newIntegerBindingthat contains the size of anObservableSet.static StringBindingstringValueAt(ObservableList<String> op, int index)Creates a newStringBindingthat contains the element of anObservableListat the specified position.static StringBindingstringValueAt(ObservableList<String> op, ObservableIntegerValue index)Creates a newStringBindingthat contains the element of anObservableListat the specified position.static StringBindingstringValueAt(ObservableList<String> op, ObservableNumberValue index)Creates a newStringBindingthat contains the element of anObservableListat the specified position.static <K> StringBindingstringValueAt(ObservableMap<K,String> op, K key)Creates a newStringBindingthat contains the mapping of a specific key in anObservableMap.static <K> StringBindingstringValueAt(ObservableMap<K,String> op, ObservableValue<? extends K> key)Creates a newStringBindingthat contains the mapping of a specific key in anObservableMap.static DoubleBindingsubtract(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the difference of a constant value and the value of aObservableNumberValue.static NumberBindingsubtract(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the difference of a constant value and the value of aObservableNumberValue.static NumberBindingsubtract(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the difference of a constant value and the value of aObservableNumberValue.static NumberBindingsubtract(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the difference of a constant value and the value of aObservableNumberValue.static DoubleBindingsubtract(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the difference of the value of aObservableNumberValueand a constant value.static NumberBindingsubtract(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the difference of the value of aObservableNumberValueand a constant value.static NumberBindingsubtract(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the difference of the value of aObservableNumberValueand a constant value.static NumberBindingsubtract(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the difference of the value of aObservableNumberValueand a constant value.static NumberBindingsubtract(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the difference of the values of two instances ofObservableNumberValue.static voidunbindBidirectional(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> voidunbindBidirectional(Property<T> property1, Property<T> property2)Delete a bidirectional binding that was previously defined withbindBidirectional(Property, Property).static voidunbindContent(Object obj1, Object obj2)Remove a content binding.static voidunbindContentBidirectional(Object obj1, Object obj2)Remove a bidirectional content binding.static <E> ObjectBinding<E>valueAt(ObservableList<E> op, int index)Creates a newObjectBindingthat contains the element of anObservableListat the specified position.static <E> ObjectBinding<E>valueAt(ObservableList<E> op, ObservableIntegerValue index)Creates a newObjectBindingthat contains the element of anObservableListat the specified position.static <E> ObjectBinding<E>valueAt(ObservableList<E> op, ObservableNumberValue index)Creates a newObjectBindingthat contains the element of anObservableListat the specified position.static <K,V> ObjectBinding<V>valueAt(ObservableMap<K,V> op, K key)Creates a newObjectBindingthat contains the mapping of a specific key in anObservableMap.static <K,V> ObjectBinding<V>valueAt(ObservableMap<K,V> op, ObservableValue<? extends K> key)Creates a newObjectBindingthat contains the mapping of a specific key in anObservableMap.static Whenwhen(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 bindingReturns:
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 bindingReturns:
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 bindingReturns:
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 bindingReturns:
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 bindingReturns:
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.Parameters:
func- The function that calculates the value of this bindingReturns:
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 bindingReturns:
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, ornullifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being the right type etc.).All classes and properties used in a select-binding have to be public. Note: since 8.0, JavaBeans properties are supported and might be in the chain.
Parameters:
root- The rootObservableValueReturns:
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.0ifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aNumberetc.).All classes and properties used in a select-binding have to be public. Note: since 8.0, JavaBeans properties are supported and might be in the chain.
Parameters:
root- The rootObservableValueReturns:
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.0fifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aNumberetc.).All classes and properties used in a select-binding have to be public. Note: since 8.0, JavaBeans properties are supported and might be in the chain.
Parameters:
root- The rootObservableValueReturns:
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, or0ifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aNumberetc.).All classes and properties used in a select-binding have to be public. Note: since 8.0, JavaBeans properties are supported and might be in the chain.
Parameters:
root- The rootObservableValueReturns:
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, or0Lifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aNumberetc.).All classes and properties used in a select-binding have to be public. Note: since 8.0, JavaBeans properties are supported and might be in the chain.
Parameters:
root- The rootObservableValueReturns:
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, orfalseifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being abooleanetc.).All classes and properties used in a select-binding have to be public. Note: since 8.0, JavaBeans properties are supported and might be in the chain.
Parameters:
root- The rootObservableValueReturns:
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""ifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aStringetc.).All classes and properties used in a select-binding have to be public. Note: since 8.0, JavaBeans properties are supported and might be in the chain.
Parameters:
root- The rootObservableValueReturns:
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, ornullifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being the right type etc.).All classes and properties used in a select-binding have to be public. If root has JavaFX properties, this call is equivalent to #select(javafx.beans.value.ObservableValue, java.lang.String[]), with the {@code root} and {@code step[0]} being substituted with the relevant property object.
-
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.0ifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aNumberetc.).All classes and properties used in a select-binding have to be public. If root has JavaFX properties, this call is equivalent to #selectDouble(javafx.beans.value.ObservableValue, java.lang.String[]), with the {@code root} and {@code step[0]} being substituted with the relevant property object.
-
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.0fifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aNumberetc.).All classes and properties used in a select-binding have to be public. If root has JavaFX properties, this call is equivalent to #selectFloat(javafx.beans.value.ObservableValue, java.lang.String[]), with the {@code root} and {@code step[0]} being substituted with the relevant property object.
-
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, or0ifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aNumberetc.).All classes and properties used in a select-binding have to be public. If root has JavaFX properties, this call is equivalent to #selectInteger(javafx.beans.value.ObservableValue, java.lang.String[]), with the {@code root} and {@code step[0]} being substituted with the relevant property object.
-
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, or0Lifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aNumberetc.).All classes and properties used in a select-binding have to be public. If root has JavaFX properties, this call is equivalent to #selectLong(javafx.beans.value.ObservableValue, java.lang.String[]), with the {@code root} and {@code step[0]} being substituted with the relevant property object.
-
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, orfalseifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being abooleanetc.).All classes and properties used in a select-binding have to be public. If root has JavaFX properties, this call is equivalent to #selectBoolean(javafx.beans.value.ObservableValue, java.lang.String[]), with the {@code root} and {@code step[0]} being substituted with the relevant property object.
-
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""ifccould not be reached (due tobnot having acproperty,bbeingnull, orcnot being aStringetc.).All classes and properties used in a select-binding have to be public. If root has JavaFX properties, this call is equivalent to #selectString(javafx.beans.value.ObservableValue, java.lang.String[]), with the {@code root} and {@code step[0]} being substituted with the relevant property object.
-
when
public static When when(ObservableBooleanValue condition)
Creates a binding that calculates the result of a ternary expression. See the description of classWhenfor details.Parameters:
condition- the condition of the ternary expressionReturns:
an intermediate class to build the complete binding
See Also:
-
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
aandbare linked with a bidirectional binding and the value ofachanges,bis set to the same value automatically. And vice versa, ifbchanges,ais 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 propertiesParameters:
property1- the firstProperty<T>Throws:
NullPointerException- if one of the properties isnull
-
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 propertiesParameters:
property1- the firstProperty<T>Throws:
NullPointerException- if one of the properties isnull
-
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>Throws:
NullPointerException- if one of the properties isnullSince:
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-Propertyand anotherPropertyusing the specifiedFormatfor conversion.A bidirectional binding is a binding that works in both directions. If two properties
aandbare linked with a bidirectional binding and the value ofachanges,bis set to the same value automatically. And vice versa, ifbchanges,ais 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- theStringPropertyThrows:
NullPointerException- if one of the properties or theformatisnullSince:
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-Propertyand anotherPropertyusing the specifiedStringConverterfor conversion.A bidirectional binding is a binding that works in both directions. If two properties
aandbare linked with a bidirectional binding and the value ofachanges,bis set to the same value automatically. And vice versa, ifbchanges,ais 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- theStringPropertyThrows:
NullPointerException- if one of the properties or theconverterisnullSince:
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
aandbare linked with a bidirectional binding and the value ofachanges,bis set to the same value automatically. And vice versa, ifbchanges,ais 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 elementsParameters:
list1- the firstObservableList<E>Throws:
NullPointerException- if one of the lists isnullSince:
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
aandbare linked with a bidirectional binding and the value ofachanges,bis set to the same value automatically. And vice versa, ifbchanges,ais 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 elementsParameters:
set1- the firstObservableSet<E>Throws:
NullPointerException- if one of the sets isnullSince:
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
aandbare linked with a bidirectional binding and the value ofachanges,bis set to the same value automatically. And vice versa, ifbchanges,ais 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 elementsParameters:
map1- the firstObservableMap<K, V>Since:
JavaFX 2.1
-
unbindContentBidirectional
public static void unbindContentBidirectional(Object obj1, Object obj2)Remove a bidirectional content binding.Parameters:
obj1- the firstObjectSince:
JavaFX 2.1
-
bindContent
public static <E> void bindContent(List<E> list1, ObservableList<? extends E> list2)Generates a content binding between anObservableListand aList.A content binding ensures that the
Listcontains the same elements as theObservableList. If the content of theObservableListchanges, theListwill be updated automatically.Once a
Listis bound to anObservableList, theListmust 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 theListelementsParameters:
list1- theListSince:
JavaFX 2.1
-
bindContent
public static <E> void bindContent(Set<E> set1, ObservableSet<? extends E> set2)Generates a content binding between anObservableSetand aSet.A content binding ensures that the
Setcontains the same elements as theObservableSet. If the content of theObservableSetchanges, theSetwill be updated automatically.Once a
Setis bound to anObservableSet, theSetmust 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 theSetelementsParameters:
set1- theSetThrows:
NullPointerException- if one of the sets isnullSince:
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 anObservableMapand aMap.A content binding ensures that the
Mapcontains the same elements as theObservableMap. If the content of theObservableMapchanges, theMapwill be updated automatically.Once a
Mapis bound to anObservableMap, theMapmust 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 theMapParameters:
map1- theMapThrows:
NullPointerException- if one of the maps isnullSince:
JavaFX 2.1
-
unbindContent
public static void unbindContent(Object obj1, Object obj2)Remove a content binding.Parameters:
obj1- the firstObjectThrows:
NullPointerException- if one of theObjectsisnullSince:
JavaFX 2.1
-
negate
public static NumberBinding negate(ObservableNumberValue value)
Creates a newNumberBindingthat calculates the negation of aObservableNumberValue.Parameters:
value- the operandReturns:
the new
NumberBindingThrows:
NullPointerException- if the value isnull
-
add
public static NumberBinding add(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the sum of the values of two instances ofObservableNumberValue.Parameters:
op1- the first operandReturns:
the new
NumberBindingThrows:
NullPointerException- if one of the operands isnull
-
add
public static DoubleBinding add(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
add
public static DoubleBinding add(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
add
public static NumberBinding add(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
add
public static NumberBinding add(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
add
public static NumberBinding add(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
add
public static NumberBinding add(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
add
public static NumberBinding add(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
add
public static NumberBinding add(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the sum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
subtract
public static NumberBinding subtract(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the difference of the values of two instances ofObservableNumberValue.Parameters:
op1- the first operandReturns:
the new
NumberBindingThrows:
NullPointerException- if one of the operands isnull
-
subtract
public static DoubleBinding subtract(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the difference of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
subtract
public static DoubleBinding subtract(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the difference of a constant value and the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
subtract
public static NumberBinding subtract(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the difference of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
subtract
public static NumberBinding subtract(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the difference of a constant value and the value of aObservableNumberValue.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
subtract
public static NumberBinding subtract(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the difference of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
subtract
public static NumberBinding subtract(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the difference of a constant value and the value of aObservableNumberValue.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
subtract
public static NumberBinding subtract(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the difference of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
subtract
public static NumberBinding subtract(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the difference of a constant value and the value of aObservableNumberValue.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
multiply
public static NumberBinding multiply(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the product of the values of two instances ofObservableNumberValue.Parameters:
op1- the first operandReturns:
the new
NumberBindingThrows:
NullPointerException- if one of the operands isnull
-
multiply
public static DoubleBinding multiply(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the product of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
multiply
public static DoubleBinding multiply(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the product of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
multiply
public static NumberBinding multiply(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
multiply
public static NumberBinding multiply(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
multiply
public static NumberBinding multiply(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
multiply
public static NumberBinding multiply(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
multiply
public static NumberBinding multiply(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
multiply
public static NumberBinding multiply(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the product of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
divide
public static NumberBinding divide(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the division of the values of two instances ofObservableNumberValue.Parameters:
op1- the first operandReturns:
the new
NumberBindingThrows:
NullPointerException- if one of the operands isnull
-
divide
public static DoubleBinding divide(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the division of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
divide
public static DoubleBinding divide(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the division of a constant value and the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
divide
public static NumberBinding divide(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the division of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
divide
public static NumberBinding divide(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the division of a constant value and the value of aObservableNumberValue.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
divide
public static NumberBinding divide(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the division of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
divide
public static NumberBinding divide(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the division of a constant value and the value of aObservableNumberValue.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
divide
public static NumberBinding divide(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the division of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
divide
public static NumberBinding divide(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the division of a constant value and the value of aObservableNumberValue.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableNumberValueare equal (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableNumberValueare equal.When comparing floating-point numbers it is recommended to use the
equal()method that allows a small tolerance.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, double op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(double op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, float op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(float op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, long op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis 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- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(long op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis 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 valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, int op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis 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- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(int op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
equal
public static BooleanBinding equal(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis 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 valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableNumberValueare not equal (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableNumberValueare not equal.When comparing floating-point numbers it is recommended to use the
notEqual()method that allows a small tolerance.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, double op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(double op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, float op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(float op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, long op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis 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- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(long op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis 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 valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, int op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis 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- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(int op1, ObservableNumberValue op2, double epsilon)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis not equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
notEqual
public static BooleanBinding notEqual(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis 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 valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableNumberValueis greater than the value of the second.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, double op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThan
public static BooleanBinding greaterThan(double op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, float op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThan
public static BooleanBinding greaterThan(float op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThan
public static BooleanBinding greaterThan(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThan
public static BooleanBinding greaterThan(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableNumberValueis less than the value of the second.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, double op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThan
public static BooleanBinding lessThan(double op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, float op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThan
public static BooleanBinding lessThan(float op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThan
public static BooleanBinding lessThan(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThan
public static BooleanBinding lessThan(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThan
public static BooleanBinding lessThan(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableNumberValueis greater than or equal to the value of the second.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, double op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than or equal to a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(double op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, float op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than or equal to a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(float op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than or equal to a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis greater than or equal to a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableNumberValueis less than or equal to the value of the second.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, double op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than or equal to a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(double op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, float op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than or equal to a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(float op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, long op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than or equal to a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(long op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, int op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableNumberValueis less than or equal to a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(int op1, ObservableNumberValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableNumberValue.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
min
public static NumberBinding min(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the minimum of the values of two instances ofObservableNumberValue.Parameters:
op1- the first operandReturns:
the new
NumberBindingThrows:
NullPointerException- if one of the operands isnull
-
min
public static DoubleBinding min(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
min
public static DoubleBinding min(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
min
public static NumberBinding min(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
min
public static NumberBinding min(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
min
public static NumberBinding min(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
min
public static NumberBinding min(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
min
public static NumberBinding min(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
min
public static NumberBinding min(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the minimum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
max
public static NumberBinding max(ObservableNumberValue op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the maximum of the values of two instances ofObservableNumberValue.Parameters:
op1- the first operandReturns:
the new
NumberBindingThrows:
NullPointerException- if one of the operands isnull
-
max
public static DoubleBinding max(ObservableNumberValue op1, double op2)Creates a newDoubleBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
max
public static DoubleBinding max(double op1, ObservableNumberValue op2)Creates a newDoubleBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
max
public static NumberBinding max(ObservableNumberValue op1, float op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
max
public static NumberBinding max(float op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
max
public static NumberBinding max(ObservableNumberValue op1, long op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
max
public static NumberBinding max(long op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
max
public static NumberBinding max(ObservableNumberValue op1, int op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.Parameters:
op1- theObservableNumberValueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
max
public static NumberBinding max(int op1, ObservableNumberValue op2)Creates a newNumberBindingthat calculates the maximum of the value of aObservableNumberValueand a constant value.Parameters:
op1- the constant valueReturns:
the new
NumberBindingThrows:
NullPointerException- if theObservableNumberValueisnull
-
and
public static BooleanBinding and(ObservableBooleanValue op1, ObservableBooleanValue op2)Creates aBooleanBindingthat calculates the conditional-AND operation on the value of two instance ofObservableBooleanValue.Parameters:
op1- firstObservableBooleanValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
or
public static BooleanBinding or(ObservableBooleanValue op1, ObservableBooleanValue op2)Creates aBooleanBindingthat calculates the conditional-OR operation on the value of two instance ofObservableBooleanValue.Parameters:
op1- firstObservableBooleanValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
not
public static BooleanBinding not(ObservableBooleanValue op)
Creates aBooleanBindingthat calculates the inverse of the value of aObservableBooleanValue.Parameters:
op- theObservableBooleanValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if the operand isnull
-
equal
public static BooleanBinding equal(ObservableBooleanValue op1, ObservableBooleanValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableBooleanValueare equal.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableBooleanValue op1, ObservableBooleanValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableBooleanValueare not equal.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
convert
public static StringExpression convert(ObservableValue<?> observableValue)
Returns aStringExpressionthat wraps aObservableValue. If theObservableValueis already aStringExpression, it will be returned. Otherwise a newStringBindingis created that holds the value of theObservableValueconverted to aString.Parameters:
observableValue- The sourceObservableValueReturns:
A
StringExpressionthat wraps theObservableValueif necessaryThrows:
NullPointerException- ifobservableValueisnull
-
concat
public static StringExpression concat(Object... args)
Returns aStringExpressionthat holds the value of the concatenation of multipleObjects.If one of the arguments implements
ObservableValueand the value of thisObservableValuechanges, the change is automatically reflected in theStringExpression.If
nullor an empty array is passed to this method, aStringExpressionthat contains an emptyStringis returnedParameters:
args- theObjectsthat should be concatenatedReturns:
the new
StringExpression
-
format
public static StringExpression format(String format, Object... args)Creates aStringExpressionthat holds the value of multipleObjectsformatted according to a formatString.If one of the arguments implements
ObservableValueand the value of thisObservableValuechanges, the change is automatically reflected in theStringExpression.See
java.util.Formatterfor formatting rules.Parameters:
format- the formattingStringReturns:
the new
StringExpression
-
format
public static StringExpression format(Locale locale, String format, Object... args)Creates aStringExpressionthat holds the value of multipleObjectsformatted according to a formatStringand a specifiedLocaleIf one of the arguments implements
ObservableValueand the value of thisObservableValuechanges, the change is automatically reflected in theStringExpression.See
java.util.Formatterfor formatting rules. Seejava.util.Localefor details onLocale.Parameters:
locale- theLocaleto use during formattingReturns:
the new
StringExpression
-
equal
public static BooleanBinding equal(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableStringValueare equal.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
equal
public static BooleanBinding equal(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis equal to a constant value.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
equal
public static BooleanBinding equal(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis equal to a constant value.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
notEqual
public static BooleanBinding notEqual(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableStringValueare not equal.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis not equal to a constant value.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
notEqual
public static BooleanBinding notEqual(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis not equal to a constant value.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
equalIgnoreCase
public static BooleanBinding equalIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableStringValueare equal ignoring case.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
equalIgnoreCase
public static BooleanBinding equalIgnoreCase(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis equal to a constant value ignoring case.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
equalIgnoreCase
public static BooleanBinding equalIgnoreCase(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis equal to a constant value ignoring case.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
notEqualIgnoreCase
public static BooleanBinding notEqualIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableStringValueare not equal ignoring case.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
notEqualIgnoreCase
public static BooleanBinding notEqualIgnoreCase(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis not equal to a constant value ignoring case.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
notEqualIgnoreCase
public static BooleanBinding notEqualIgnoreCase(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis not equal to a constant value ignoring case.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableStringValueis greater than the value of the second.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
greaterThan
public static BooleanBinding greaterThan(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis greater than a constant value.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
greaterThan
public static BooleanBinding greaterThan(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of a constant value is greater than the value of aObservableStringValue.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
lessThan
public static BooleanBinding lessThan(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableStringValueis less than the value of the second.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
lessThan
public static BooleanBinding lessThan(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis less than a constant value.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
lessThan
public static BooleanBinding lessThan(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than the value of aObservableStringValue.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableStringValueis greater than or equal to the value of the second.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis greater than or equal to a constant value.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
greaterThanOrEqual
public static BooleanBinding greaterThanOrEqual(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is greater than or equal to the value of aObservableStringValue.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif the value of the firstObservableStringValueis less than or equal to the value of the second.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(ObservableStringValue op1, String op2)Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis less than or equal to a constant value.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
lessThanOrEqual
public static BooleanBinding lessThanOrEqual(String op1, ObservableStringValue op2)Creates a newBooleanBindingthat holdstrueif a constant value is less than or equal to the value of aObservableStringValue.Note: In this comparison a
Stringthat isnullis considered equal to an emptyString.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnull
-
length
public static IntegerBinding length(ObservableStringValue op)
Creates a newIntegerBindingthat holds the length of aObservableStringValue.Note: In this comparison a
Stringthat isnullis considered to have a length of0.Parameters:
op- theObservableStringValueReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableStringValueisnullSince:
JavaFX 8.0
-
isEmpty
public static BooleanBinding isEmpty(ObservableStringValue op)
Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis empty.Note: In this comparison a
Stringthat isnullis considered to be empty.Parameters:
op- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnullSince:
JavaFX 8.0
-
isNotEmpty
public static BooleanBinding isNotEmpty(ObservableStringValue op)
Creates a newBooleanBindingthat holdstrueif the value of aObservableStringValueis not empty.Note: In this comparison a
Stringthat isnullis considered to be empty.Parameters:
op- theObservableStringValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableStringValueisnullSince:
JavaFX 8.0
-
equal
public static BooleanBinding equal(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableObjectValueare equal.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
equal
public static BooleanBinding equal(ObservableObjectValue<?> op1, Object op2)Creates a newBooleanBindingthat holdstrueif the value of anObservableObjectValueis equal to a constant value.Parameters:
op1- theObservableCharacterValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableCharacterValueisnull
-
equal
public static BooleanBinding equal(Object op1, ObservableObjectValue<?> op2)Creates a newBooleanBindingthat holdstrueif the value of anObservableObjectValueis equal to a constant value.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableCharacterValueisnull
-
notEqual
public static BooleanBinding notEqual(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)Creates a newBooleanBindingthat holdstrueif the values of two instances ofObservableObjectValueare not equal.Parameters:
op1- the first operandReturns:
the new
BooleanBindingThrows:
NullPointerException- if one of the operands isnull
-
notEqual
public static BooleanBinding notEqual(ObservableObjectValue<?> op1, Object op2)Creates a newBooleanBindingthat holdstrueif the value of anObservableObjectValueis not equal to a constant value.Parameters:
op1- theObservableObjectValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableObjectValueisnull
-
notEqual
public static BooleanBinding notEqual(Object op1, ObservableObjectValue<?> op2)Creates a newBooleanBindingthat holdstrueif the value of anObservableObjectValueis not equal to a constant value.Parameters:
op1- the constant valueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableObjectValueisnull
-
isNull
public static BooleanBinding isNull(ObservableObjectValue<?> op)
Parameters:
op- theObservableObjectValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableObjectValueisnull
-
isNotNull
public static BooleanBinding isNotNull(ObservableObjectValue<?> op)
Parameters:
op- theObservableObjectValueReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableObjectValueisnull
-
size
public static <E> IntegerBinding size(ObservableList<E> op)
Creates a newIntegerBindingthat contains the size of anObservableList.Type Parameters:
E- type of theListelementsParameters:
op- theObservableListReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 2.1
-
isEmpty
public static <E> BooleanBinding isEmpty(ObservableList<E> op)
Type Parameters:
E- type of theListelementsParameters:
op- theObservableListReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 2.1
-
isNotEmpty
public static <E> BooleanBinding isNotEmpty(ObservableList<E> op)
Type Parameters:
E- type of theListelementsParameters:
op- theObservableListReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 8.0
-
valueAt
public static <E> ObjectBinding<E> valueAt(ObservableList<E> op, int index)Creates a newObjectBindingthat contains the element of anObservableListat the specified position. TheObjectBindingwill containnull, if theindexpoints behind theObservableList.Type Parameters:
E- the type of theListelementsParameters:
op- theObservableListReturns:
the new
ObjectBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 2.1
-
valueAt
public static <E> ObjectBinding<E> valueAt(ObservableList<E> op, ObservableIntegerValue index)Creates a newObjectBindingthat contains the element of anObservableListat the specified position. TheObjectBindingwill containnull, if theindexis outside of theObservableList.Type Parameters:
E- the type of theListelementsParameters:
op- theObservableListReturns:
the new
ObjectBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 2.1
-
valueAt
public static <E> ObjectBinding<E> valueAt(ObservableList<E> op, ObservableNumberValue index)Creates a newObjectBindingthat contains the element of anObservableListat the specified position. TheObjectBindingwill containnull, if theindexis outside of theObservableList.Type Parameters:
E- the type of theListelementsParameters:
op- theObservableListReturns:
the new
ObjectBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 8.0
-
booleanValueAt
public static BooleanBinding booleanValueAt(ObservableList<Boolean> op, int index)Creates a newBooleanBindingthat contains the element of anObservableListat the specified position. TheBooleanBindingwill holdfalse, if theindexpoints behind theObservableList.Parameters:
op- theObservableListReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 2.1
-
booleanValueAt
public static BooleanBinding booleanValueAt(ObservableList<Boolean> op, ObservableIntegerValue index)Creates a newBooleanBindingthat contains the element of anObservableListat the specified position. TheBooleanBindingwill holdfalse, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 2.1
-
booleanValueAt
public static BooleanBinding booleanValueAt(ObservableList<Boolean> op, ObservableNumberValue index)Creates a newBooleanBindingthat contains the element of anObservableListat the specified position. TheBooleanBindingwill holdfalse, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 8.0
-
doubleValueAt
public static DoubleBinding doubleValueAt(ObservableList<? extends Number> op, int index)Creates a newDoubleBindingthat contains the element of anObservableListat the specified position. TheDoubleBindingwill hold0.0, if theindexpoints behind theObservableList.Parameters:
op- theObservableListReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 2.1
-
doubleValueAt
public static DoubleBinding doubleValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)Creates a newDoubleBindingthat contains the element of anObservableListat the specified position. TheDoubleBindingwill hold0.0, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 2.1
-
doubleValueAt
public static DoubleBinding doubleValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)Creates a newDoubleBindingthat contains the element of anObservableListat the specified position. TheDoubleBindingwill hold0.0, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 8.0
-
floatValueAt
public static FloatBinding floatValueAt(ObservableList<? extends Number> op, int index)Creates a newFloatBindingthat contains the element of anObservableListat the specified position. TheFloatBindingwill hold0.0f, if theindexpoints behind theObservableList.Parameters:
op- theObservableListReturns:
the new
FloatBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 2.1
-
floatValueAt
public static FloatBinding floatValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)Creates a newFloatBindingthat contains the element of anObservableListat the specified position. TheFloatBindingwill hold0.0f, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
FloatBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 2.1
-
floatValueAt
public static FloatBinding floatValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)Creates a newFloatBindingthat contains the element of anObservableListat the specified position. TheFloatBindingwill hold0.0f, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
FloatBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 8.0
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableList<? extends Number> op, int index)Creates a newIntegerBindingthat contains the element of anObservableListat the specified position. TheIntegerBindingwill hold0, if theindexpoints behind theObservableList.Parameters:
op- theObservableListReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 2.1
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)Creates a newIntegerBindingthat contains the element of anObservableListat the specified position. TheIntegerBindingwill hold0, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 2.1
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)Creates a newIntegerBindingthat contains the element of anObservableListat the specified position. TheIntegerBindingwill hold0, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 8.0
-
longValueAt
public static LongBinding longValueAt(ObservableList<? extends Number> op, int index)Creates a newLongBindingthat contains the element of anObservableListat the specified position. TheLongBindingwill hold0L, if theindexpoints behind theObservableList.Parameters:
op- theObservableListReturns:
the new
LongBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 2.1
-
longValueAt
public static LongBinding longValueAt(ObservableList<? extends Number> op, ObservableIntegerValue index)Creates a newLongBindingthat contains the element of anObservableListat the specified position. TheLongBindingwill hold0L, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
LongBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 2.1
-
longValueAt
public static LongBinding longValueAt(ObservableList<? extends Number> op, ObservableNumberValue index)Creates a newLongBindingthat contains the element of anObservableListat the specified position. TheLongBindingwill hold0L, if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
LongBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 8.0
-
stringValueAt
public static StringBinding stringValueAt(ObservableList<String> op, int index)Creates a newStringBindingthat contains the element of anObservableListat the specified position. TheStringBindingwill holdnull, if theindexpoints behind theObservableList.Parameters:
op- theObservableListReturns:
the new
StringBindingThrows:
NullPointerException- if theObservableListisnullSince:
JavaFX 2.1
-
stringValueAt
public static StringBinding stringValueAt(ObservableList<String> op, ObservableIntegerValue index)Creates a newStringBindingthat contains the element of anObservableListat the specified position. TheStringBindingwill hold"", if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
StringBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 2.1
-
stringValueAt
public static StringBinding stringValueAt(ObservableList<String> op, ObservableNumberValue index)Creates a newStringBindingthat contains the element of anObservableListat the specified position. TheStringBindingwill hold"", if theindexis outside of theObservableList.Parameters:
op- theObservableListReturns:
the new
StringBindingThrows:
NullPointerException- if theObservableListorindexisnullSince:
JavaFX 8.0
-
size
public static <E> IntegerBinding size(ObservableSet<E> op)
Creates a newIntegerBindingthat contains the size of anObservableSet.Type Parameters:
E- the type of theSetelementsParameters:
op- theObservableSetReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableSetisnullSince:
JavaFX 2.1
-
isEmpty
public static <E> BooleanBinding isEmpty(ObservableSet<E> op)
Type Parameters:
E- the type of theSetelementsParameters:
op- theObservableSetReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableSetisnullSince:
JavaFX 2.1
-
isNotEmpty
public static <E> BooleanBinding isNotEmpty(ObservableSet<E> op)
Type Parameters:
E- the type of theSetelementsParameters:
op- theObservableSetReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableSetisnullSince:
JavaFX 8.0
-
size
public static IntegerBinding size(ObservableArray op)
Creates a newIntegerBindingthat contains the size of anObservableArray.Parameters:
op- theObservableArrayReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableArrayisnullSince:
JavaFX 8.0
-
floatValueAt
public static FloatBinding floatValueAt(ObservableFloatArray op, int index)Creates a newFloatBindingthat contains the element of anObservableArrayat the specified position. TheFloatBindingwill hold0.0f, if theindexpoints behind theObservableArray.Parameters:
op- theObservableArrayReturns:
the new
FloatBindingThrows:
NullPointerException- if theObservableArrayisnullSince:
JavaFX 8.0
-
floatValueAt
public static FloatBinding floatValueAt(ObservableFloatArray op, ObservableIntegerValue index)Creates a newFloatBindingthat contains the element of anObservableArrayat the specified position. TheFloatBindingwill hold0.0f, if theindexis outside of theObservableArray.Parameters:
op- theObservableArrayReturns:
the new
FloatBindingThrows:
NullPointerException- if theObservableArrayorindexisnullSince:
JavaFX 8.0
-
floatValueAt
public static FloatBinding floatValueAt(ObservableFloatArray op, ObservableNumberValue index)Creates a newFloatBindingthat contains the element of anObservableArrayat the specified position. TheFloatBindingwill hold0.0f, if theindexis outside of theObservableArray.Parameters:
op- theObservableArrayReturns:
the new
FloatBindingThrows:
NullPointerException- if theObservableArrayorindexisnullSince:
JavaFX 8.0
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableIntegerArray op, int index)Creates a newIntegerBindingthat contains the element of anObservableArrayat the specified position. TheIntegerBindingwill hold0, if theindexpoints behind theObservableArray.Parameters:
op- theObservableArrayReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableArrayisnullSince:
JavaFX 8.0
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableIntegerArray op, ObservableIntegerValue index)Creates a newIntegerBindingthat contains the element of anObservableArrayat the specified position. TheIntegerBindingwill hold0, if theindexis outside of theObservableArray.Parameters:
op- theObservableArrayReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableArrayorindexisnullSince:
JavaFX 8.0
-
integerValueAt
public static IntegerBinding integerValueAt(ObservableIntegerArray op, ObservableNumberValue index)Creates a newIntegerBindingthat contains the element of anObservableArrayat the specified position. TheIntegerBindingwill hold0, if theindexis outside of theObservableArray.Parameters:
op- theObservableArrayReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableArrayorindexisnullSince:
JavaFX 8.0
-
size
public static <K,V> IntegerBinding size(ObservableMap<K,V> op)
Creates a newIntegerBindingthat contains the size of anObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 2.1
-
isEmpty
public static <K,V> BooleanBinding isEmpty(ObservableMap<K,V> op)
Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 2.1
-
isNotEmpty
public static <K,V> BooleanBinding isNotEmpty(ObservableMap<K,V> op)
Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 8.0
-
valueAt
public static <K,V> ObjectBinding<V> valueAt(ObservableMap<K,V> op, K key)Creates a newObjectBindingthat contains the mapping of a specific key in anObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
ObjectBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 2.1
-
valueAt
public static <K,V> ObjectBinding<V> valueAt(ObservableMap<K,V> op, ObservableValue<? extends K> key)Creates a newObjectBindingthat contains the mapping of a specific key in anObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
ObjectBindingThrows:
NullPointerException- if theObservableMaporkeyisnullSince:
JavaFX 2.1
-
booleanValueAt
public static <K> BooleanBinding booleanValueAt(ObservableMap<K,Boolean> op, K key)Creates a newBooleanBindingthat contains the mapping of a specific key in anObservableMap. TheBooleanBindingwill holdfalse, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 2.1
-
booleanValueAt
public static <K> BooleanBinding booleanValueAt(ObservableMap<K,Boolean> op, ObservableValue<? extends K> key)Creates a newBooleanBindingthat contains the mapping of a specific key in anObservableMap. TheBooleanBindingwill holdfalse, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
BooleanBindingThrows:
NullPointerException- if theObservableMaporkeyisnullSince:
JavaFX 2.1
-
doubleValueAt
public static <K> DoubleBinding doubleValueAt(ObservableMap<K,? extends Number> op, K key)Creates a newDoubleBindingthat contains the mapping of a specific key in anObservableMap. TheDoubleBindingwill hold0.0, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 2.1
-
doubleValueAt
public static <K> DoubleBinding doubleValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)Creates a newDoubleBindingthat contains the mapping of a specific key in anObservableMap. TheDoubleBindingwill hold0.0, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
DoubleBindingThrows:
NullPointerException- if theObservableMaporkeyisnullSince:
JavaFX 2.1
-
floatValueAt
public static <K> FloatBinding floatValueAt(ObservableMap<K,? extends Number> op, K key)Creates a newFloatBindingthat contains the mapping of a specific key in anObservableMap. TheFloatBindingwill hold0.0f, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
FloatBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 2.1
-
floatValueAt
public static <K> FloatBinding floatValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)Creates a newFloatBindingthat contains the mapping of a specific key in anObservableMap. TheFloatBindingwill hold0.0f, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
FloatBindingThrows:
NullPointerException- if theObservableMaporkeyisnullSince:
JavaFX 2.1
-
integerValueAt
public static <K> IntegerBinding integerValueAt(ObservableMap<K,? extends Number> op, K key)Creates a newIntegerBindingthat contains the mapping of a specific key in anObservableMap. TheIntegerBindingwill hold0, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 2.1
-
integerValueAt
public static <K> IntegerBinding integerValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)Creates a newIntegerBindingthat contains the mapping of a specific key in anObservableMap. TheIntegerBindingwill hold0, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
IntegerBindingThrows:
NullPointerException- if theObservableMaporkeyisnullSince:
JavaFX 2.1
-
longValueAt
public static <K> LongBinding longValueAt(ObservableMap<K,? extends Number> op, K key)Creates a newLongBindingthat contains the mapping of a specific key in anObservableMap. TheLongBindingwill hold0L, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
LongBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 2.1
-
longValueAt
public static <K> LongBinding longValueAt(ObservableMap<K,? extends Number> op, ObservableValue<? extends K> key)Creates a newLongBindingthat contains the mapping of a specific key in anObservableMap. TheLongBindingwill hold0L, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
LongBindingThrows:
NullPointerException- if theObservableMaporkeyisnullSince:
JavaFX 2.1
-
stringValueAt
public static <K> StringBinding stringValueAt(ObservableMap<K,String> op, K key)Creates a newStringBindingthat contains the mapping of a specific key in anObservableMap. TheStringBindingwill holdnull, if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
StringBindingThrows:
NullPointerException- if theObservableMapisnullSince:
JavaFX 2.1
-
stringValueAt
public static <K> StringBinding stringValueAt(ObservableMap<K,String> op, ObservableValue<? extends K> key)Creates a newStringBindingthat contains the mapping of a specific key in anObservableMap. TheStringBindingwill hold"", if thekeycannot be found in theObservableMap.Type Parameters:
K- type of the key elements of theMapParameters:
op- theObservableMapReturns:
the new
StringBindingThrows:
NullPointerException- if theObservableMaporkeyisnullSince:
JavaFX 2.1
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.