- java.lang.Object
-
- javafx.beans.binding.When.ObjectConditionBuilder<T>
-
-
Method Summary
Modifier and Type Method Description ObjectBinding<T>
otherwise(ObservableObjectValue<T> otherwiseValue)
Defines theObservableObjectValue
which value is returned by the ternary expression if the condition isfalse
.ObjectBinding<T>
otherwise(T otherwiseValue)
Defines a constant value of the ternary expression, that is returned if the condition isfalse
.
-
-
-
Method Detail
-
otherwise
public ObjectBinding<T> otherwise(ObservableObjectValue<T> otherwiseValue)
Defines theObservableObjectValue
which value is returned by the ternary expression if the condition isfalse
.- Parameters:
otherwiseValue
- the value- Returns:
- the complete
ObjectBinding
-
otherwise
public ObjectBinding<T> otherwise(T otherwiseValue)
Defines a constant value of the ternary expression, that is returned if the condition isfalse
.- Parameters:
otherwiseValue
- the value- Returns:
- the complete
ObjectBinding
-
-