private static class BidirectionalBinding.TypedGenericBidirectionalBinding<T> extends BidirectionalBinding<T>
BidirectionalBinding.StringConversionBidirectionalBinding<T>| Modifier and Type | Field and Description |
|---|---|
private java.lang.ref.WeakReference<Property<T>> |
propertyRef1 |
private java.lang.ref.WeakReference<Property<T>> |
propertyRef2 |
private boolean |
updating |
| Modifier | Constructor and Description |
|---|---|
private |
TypedGenericBidirectionalBinding(Property<T> property1,
Property<T> property2) |
| Modifier and Type | Method and Description |
|---|---|
void |
changed(ObservableValue<? extends T> sourceProperty,
T oldValue,
T newValue)
This method needs to be provided by an implementation of
ChangeListener. |
protected Property<T> |
getProperty1() |
protected Property<T> |
getProperty2() |
bind, bind, bind, bindNumber, bindNumber, bindNumber, bindNumber, bindNumber, bindNumber, bindNumber, bindNumber, equals, hashCode, unbind, unbind, unbindNumber, wasGarbageCollectedprotected Property<T> getProperty1()
getProperty1 in class BidirectionalBinding<T>protected Property<T> getProperty2()
getProperty2 in class BidirectionalBinding<T>public void changed(ObservableValue<? extends T> sourceProperty, T oldValue, T newValue)
ChangeListenerChangeListener. It is called if the value of an
ObservableValue changes.
In general is is considered bad practice to modify the observed value in this method.
sourceProperty - The ObservableValue which value changedoldValue - The old valuenewValue - The new value