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,
boolean otherwise) |
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. |
ObservableList<ObservableValue<?>> |
getDependencies()
A default implementation of
getDependencies() that returns an
empty ObservableList. |
addListener, addListener, bind, get, invalidate, isValid, onInvalidating, removeListener, removeListener, toString, unbindand, asObject, asString, booleanExpression, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, orclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValueprivate 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)
private BooleanCondition(boolean then,
boolean otherwise)
protected boolean computeValue()
BooleanBinding
Classes extending BooleanBinding have to provide an
implementation of computeValue.
computeValue in class BooleanBindingpublic void dispose()
BooleanBindingdispose() that is empty.dispose in interface Binding<java.lang.Boolean>dispose in class BooleanBindingpublic ObservableList<ObservableValue<?>> getDependencies()
BooleanBindinggetDependencies() that returns an
empty ObservableList.getDependencies in interface Binding<java.lang.Boolean>getDependencies in class BooleanBindingObservableList