Module javafx.base

Class When.ObjectConditionBuilder<T>

java.lang.Object
javafx.beans.binding.When.ObjectConditionBuilder<T>
Enclosing class:
When

public class When.ObjectConditionBuilder<T> extends Object
An intermediate class needed while assembling the ternary expression. It should not be used in another context.
Since:
JavaFX 2.0
  • Method Details

    • otherwise

      public ObjectBinding<T> otherwise(ObservableObjectValue<T> otherwiseValue)
      Defines the ObservableObjectValue which value is returned by the ternary expression if the condition is false.
      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 is false.
      Parameters:
      otherwiseValue - the value
      Returns:
      the complete ObjectBinding