private class When.ObjectCondition<T> extends ObjectBinding<T>
Modifier and Type | Field and Description |
---|---|
private ObservableObjectValue<T> |
falseResult |
private T |
falseResultValue |
private InvalidationListener |
observer |
private ObservableObjectValue<T> |
trueResult |
private T |
trueResultValue |
Modifier | Constructor and Description |
---|---|
private |
ObjectCondition(ObservableObjectValue<T> then,
ObservableObjectValue<T> otherwise) |
private |
ObjectCondition(ObservableObjectValue<T> then,
T otherwise) |
private |
ObjectCondition(T then,
ObservableObjectValue<T> otherwise) |
private |
ObjectCondition(T then,
T otherwise) |
Modifier and Type | Method and Description |
---|---|
protected T |
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, unbind
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getValue
private final ObservableObjectValue<T> trueResult
private final T trueResultValue
private final ObservableObjectValue<T> falseResult
private final T falseResultValue
private final InvalidationListener observer
private ObjectCondition(ObservableObjectValue<T> then, ObservableObjectValue<T> otherwise)
private ObjectCondition(T then, ObservableObjectValue<T> otherwise)
private ObjectCondition(ObservableObjectValue<T> then, T otherwise)
protected T computeValue()
ObjectBinding
Classes extending ObjectBinding
have to provide an implementation
of computeValue
.
computeValue
in class ObjectBinding<T>
public void dispose()
ObjectBinding
dispose()
that is empty.public ObservableList<ObservableValue<?>> getDependencies()
ObjectBinding
getDependencies()
that returns an
empty ObservableList
.getDependencies
in interface Binding<T>
getDependencies
in class ObjectBinding<T>
ObservableList