javafx.beans.binding
Class When.NumberConditionBuilder
- javafx.beans.binding.When.NumberConditionBuilder
Enclosing class:
public class When.NumberConditionBuilder extends Object
If-then-else expression returning a number.
Since:
JavaFX 2.0
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description DoubleBindingotherwise(double otherwiseValue)Defines a constant value of the ternary expression, that is returned if the condition isfalse.NumberBindingotherwise(float otherwiseValue)Defines a constant value of the ternary expression, that is returned if the condition isfalse.NumberBindingotherwise(int otherwiseValue)Defines a constant value of the ternary expression, that is returned if the condition isfalse.NumberBindingotherwise(long otherwiseValue)Defines a constant value of the ternary expression, that is returned if the condition isfalse.NumberBindingotherwise(ObservableNumberValue otherwiseValue)Defines theObservableNumberValuewhich value is returned by the ternary expression if the condition isfalse.
-
Method Detail
-
otherwise
public NumberBinding otherwise(ObservableNumberValue otherwiseValue)
Defines theObservableNumberValuewhich value is returned by the ternary expression if the condition isfalse.Parameters:
otherwiseValue- the valueReturns:
the complete
DoubleBinding
-
otherwise
public DoubleBinding otherwise(double otherwiseValue)
Defines a constant value of the ternary expression, that is returned if the condition isfalse.Parameters:
otherwiseValue- the valueReturns:
the complete
DoubleBinding
-
otherwise
public NumberBinding otherwise(float otherwiseValue)
Defines a constant value of the ternary expression, that is returned if the condition isfalse.Parameters:
otherwiseValue- the valueReturns:
the complete
NumberBinding
-
otherwise
public NumberBinding otherwise(long otherwiseValue)
Defines a constant value of the ternary expression, that is returned if the condition isfalse.Parameters:
otherwiseValue- the valueReturns:
the complete
NumberBinding
-
otherwise
public NumberBinding otherwise(int otherwiseValue)
Defines a constant value of the ternary expression, that is returned if the condition isfalse.Parameters:
otherwiseValue- the valueReturns:
the complete
NumberBinding
-
© 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.