private static class When.WhenListener extends java.lang.Object implements InvalidationListener
Modifier and Type | Field and Description |
---|---|
private ObservableBooleanValue |
condition |
private ObservableValue<?> |
otherwiseValue |
private java.lang.ref.WeakReference<Binding<?>> |
ref |
private ObservableValue<?> |
thenValue |
Modifier | Constructor and Description |
---|---|
private |
WhenListener(Binding<?> binding,
ObservableBooleanValue condition,
ObservableValue<?> thenValue,
ObservableValue<?> otherwiseValue) |
Modifier and Type | Method and Description |
---|---|
void |
invalidated(Observable observable)
This method needs to be provided by an implementation of
InvalidationListener . |
private final ObservableBooleanValue condition
private final ObservableValue<?> thenValue
private final ObservableValue<?> otherwiseValue
private final java.lang.ref.WeakReference<Binding<?>> ref
private WhenListener(Binding<?> binding, ObservableBooleanValue condition, ObservableValue<?> thenValue, ObservableValue<?> otherwiseValue)
public void invalidated(Observable observable)
InvalidationListener
InvalidationListener
. It is called if an Observable
becomes invalid.
In general is is considered bad practice to modify the observed value in this method.
invalidated
in interface InvalidationListener
observable
- The Observable
that became invalid