private class When.BooleanCondition extends BooleanBinding
Modifier and Type | Field and Description |
---|---|
private ObservableBooleanValue |
falseResult |
private boolean |
falseResultValue |
private InvalidationListener |
observer |
private ObservableBooleanValue |
trueResult |
private boolean |
trueResultValue |
Modifier | Constructor and Description |
---|---|
private |
BooleanCondition(boolean then,
ObservableBooleanValue otherwise) |
private |
BooleanCondition(ObservableBooleanValue then,
boolean otherwise) |
private |
BooleanCondition(ObservableBooleanValue then,
ObservableBooleanValue otherwise) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
computeValue()
Calculates the current value of this binding.
|
void |
dispose()
A default implementation of
dispose() that is empty. |
<any> |
getDependencies()
A default implementation of
getDependencies() that returns an
empty javafx.collections.ObservableList . |
addListener, addListener, bind, get, invalidate, isValid, onInvalidating, removeListener, removeListener, toString, unbind
and, asObject, asString, booleanExpression, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, or
private final ObservableBooleanValue trueResult
private final boolean trueResultValue
private final ObservableBooleanValue falseResult
private final boolean falseResultValue
private final InvalidationListener observer
private BooleanCondition(ObservableBooleanValue then, ObservableBooleanValue otherwise)
private BooleanCondition(boolean then, ObservableBooleanValue otherwise)
private BooleanCondition(ObservableBooleanValue then, boolean otherwise)
protected boolean computeValue()
BooleanBinding
Classes extending BooleanBinding
have to provide an
implementation of computeValue
.
computeValue
in class BooleanBinding
public void dispose()
BooleanBinding
dispose()
that is empty.dispose
in interface Binding<java.lang.Boolean>
dispose
in class BooleanBinding
public <any> getDependencies()
BooleanBinding
getDependencies()
that returns an
empty javafx.collections.ObservableList
.getDependencies
in interface Binding<java.lang.Boolean>
getDependencies
in class BooleanBinding
ObservableList