public abstract static class BidirectionalBinding.StringConversionBidirectionalBinding<T> extends BidirectionalBinding<Object>
BidirectionalBinding.StringConversionBidirectionalBinding<T>| Constructor and Description |
|---|
StringConversionBidirectionalBinding(Property<String> stringProperty,
Property<T> otherProperty) |
| Modifier and Type | Method and Description |
|---|---|
void |
changed(ObservableValue<? extends Object> observable,
Object oldValue,
Object newValue)
This method needs to be provided by an implementation of
ChangeListener. |
protected abstract T |
fromString(String value) |
protected Object |
getProperty1() |
protected Object |
getProperty2() |
protected abstract String |
toString(T value) |
bind, bind, bind, bindNumber, bindNumber, bindNumber, bindNumber, bindNumber, bindNumber, bindNumber, bindNumber, equals, hashCode, unbind, unbind, unbindNumber, wasGarbageCollectedprotected abstract T fromString(String value) throws ParseException
ParseExceptionprotected Object getProperty1()
getProperty1 in class BidirectionalBinding<Object>protected Object getProperty2()
getProperty2 in class BidirectionalBinding<Object>public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object 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.
observable - The ObservableValue which value changedoldValue - The old valuenewValue - The new valueCopyright © 2025. All rights reserved.