public abstract class BooleanExpression
extends java.lang.Object
BooleanExpression
is an
javafx.beans.value.ObservableBooleanValue
plus additional convenience
methods to generate bindings in a fluent style.
A concrete sub-class of BooleanExpression
has to implement the method
javafx.beans.value.ObservableBooleanValue#get()
, which provides the
actual value of this expression.
Constructor and Description |
---|
BooleanExpression()
Sole constructor
|
Modifier and Type | Method and Description |
---|---|
BooleanBinding |
and(ObservableBooleanValue other)
Creates a new
BooleanExpression that performs the conditional
AND-operation on this BooleanExpression and a
ObservableBooleanValue . |
ObjectExpression<java.lang.Boolean> |
asObject()
Creates an
ObjectExpression that holds the value
of this BooleanExpression . |
StringBinding |
asString()
|
static BooleanExpression |
booleanExpression(<any> value)
Returns a
BooleanExpression that wraps an
javafx.beans.value.ObservableValue . |
static BooleanExpression |
booleanExpression(ObservableBooleanValue value)
Returns a
BooleanExpression that wraps a
javafx.beans.value.ObservableBooleanValue . |
java.lang.Boolean |
getValue() |
BooleanBinding |
isEqualTo(ObservableBooleanValue other)
Creates a new
BooleanExpression that holds true if this and
another javafx.beans.value.ObservableBooleanValue are equal. |
BooleanBinding |
isNotEqualTo(ObservableBooleanValue other)
Creates a new
BooleanExpression that holds true if this and
another javafx.beans.value.ObservableBooleanValue are equal. |
BooleanBinding |
not()
Creates a new
BooleanExpression that calculates the negation of
this BooleanExpression . |
BooleanBinding |
or(ObservableBooleanValue other)
Creates a new
BooleanExpression that performs the conditional
OR-operation on this BooleanExpression and a
ObservableBooleanValue . |
public java.lang.Boolean getValue()
public static BooleanExpression booleanExpression(ObservableBooleanValue value)
BooleanExpression
that wraps a
javafx.beans.value.ObservableBooleanValue
. If the
ObservableBooleanValue
is already a BooleanExpression
, it
will be returned. Otherwise a new
BooleanBinding
is created that is bound to
the ObservableBooleanValue
.value
- The source ObservableBooleanValue
BooleanExpression
that wraps the
ObservableBooleanValue
if necessaryjava.lang.NullPointerException
- if value
is null
public static BooleanExpression booleanExpression(<any> value)
BooleanExpression
that wraps an
javafx.beans.value.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".value
- The source ObservableValue
BooleanExpression
that wraps the
ObservableValue
if necessaryjava.lang.NullPointerException
- if value
is null
public BooleanBinding and(ObservableBooleanValue other)
BooleanExpression
that performs the conditional
AND-operation on this BooleanExpression
and a
ObservableBooleanValue
.other
- the other ObservableBooleanValue
BooleanExpression
java.lang.NullPointerException
- if other
is null
public BooleanBinding or(ObservableBooleanValue other)
BooleanExpression
that performs the conditional
OR-operation on this BooleanExpression
and a
ObservableBooleanValue
.other
- the other ObservableBooleanValue
BooleanExpression
java.lang.NullPointerException
- if other
is null
public BooleanBinding not()
BooleanExpression
that calculates the negation of
this BooleanExpression
.BooleanExpression
public BooleanBinding isEqualTo(ObservableBooleanValue other)
BooleanExpression
that holds true
if this and
another javafx.beans.value.ObservableBooleanValue
are equal.other
- the other ObservableBooleanValue
BooleanExpression
java.lang.NullPointerException
- if other
is null
public BooleanBinding isNotEqualTo(ObservableBooleanValue other)
BooleanExpression
that holds true
if this and
another javafx.beans.value.ObservableBooleanValue
are equal.other
- the other ObservableBooleanValue
BooleanExpression
java.lang.NullPointerException
- if other
is null
public StringBinding asString()
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.StringBinding
public ObjectExpression<java.lang.Boolean> asObject()
ObjectExpression
that holds the value
of this BooleanExpression
. If the
value of this BooleanExpression
changes, the value of the
ObjectExpression
will be updated automatically.ObjectExpression