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, wasGarbageCollected
protected abstract T fromString(String value) throws ParseException
ParseException
protected 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)
ChangeListener
ChangeListener
. 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 © 2020. All rights reserved.