private class When.ObjectCondition<T> extends ObjectBinding<T>
Modifier and Type | Field and Description |
---|---|
private <any> |
falseResult |
private T |
falseResultValue |
private InvalidationListener |
observer |
private <any> |
trueResult |
private T |
trueResultValue |
Modifier | Constructor and Description |
---|---|
private |
ObjectCondition(<any> then,
<any> otherwise) |
private |
ObjectCondition(<any> then,
T otherwise) |
private |
ObjectCondition(T then,
<any> 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. |
<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
asString, asString, asString, getValue, isEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
private final <any> trueResult
private final T trueResultValue
private final <any> falseResult
private final T falseResultValue
private final InvalidationListener observer
private ObjectCondition(<any> then, <any> otherwise)
private ObjectCondition(T then, <any> otherwise)
private ObjectCondition(<any> 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 <any> getDependencies()
ObjectBinding
getDependencies()
that returns an
empty javafx.collections.ObservableList
.getDependencies
in interface Binding<T>
getDependencies
in class ObjectBinding<T>
ObservableList