Module javafx.base

Class BooleanExpression

    • Constructor Detail

      • BooleanExpression

        public BooleanExpression​()
        Sole constructor
    • Method Detail

      • booleanExpression

        public static BooleanExpression booleanExpression​(ObservableBooleanValue value)
        Returns a BooleanExpression that wraps a ObservableBooleanValue. If the ObservableBooleanValue is already a BooleanExpression, it will be returned. Otherwise a new BooleanBinding is created that is bound to the ObservableBooleanValue.
        Parameters:
        value - The source ObservableBooleanValue
        Returns:
        A BooleanExpression that wraps the ObservableBooleanValue if necessary
        Throws:
        NullPointerException - if value is null
      • booleanExpression

        public static BooleanExpression booleanExpression​(ObservableValue<Boolean> value)
        Returns a BooleanExpression that wraps an ObservableValue. If the ObservableValue is already a BooleanExpression, it will be returned. Otherwise a new BooleanBinding is created that is bound to the ObservableValue. Note: null values will be interpreted as "false".
        Parameters:
        value - The source ObservableValue
        Returns:
        A BooleanExpression that wraps the ObservableValue if necessary
        Throws:
        NullPointerException - if value is null
        Since:
        JavaFX 8.0
      • not

        public BooleanBinding not​()
        Creates a new BooleanExpression that calculates the negation of this BooleanExpression.
        Returns:
        the new BooleanExpression
      • asString

        public StringBinding asString​()
        Creates a StringBinding that holds the value of this BooleanExpression turned into a String. If the value of this BooleanExpression changes, the value of the StringBinding will be updated automatically.
        Returns:
        the new StringBinding
      • asObject

        public ObjectExpression<Boolean> asObject​()
        Creates an ObjectExpression that holds the value of this BooleanExpression. If the value of this BooleanExpression changes, the value of the ObjectExpression will be updated automatically.
        Returns:
        the new ObjectExpression
        Since:
        JavaFX 8.0