Hi Mike,

well seems as if you can create such a method using StringBinding with 4-5 lines of code. Personally I wished that StringConverter was a SAM interface so that I can just provide a lambda for it. In many cases - like yours - it is sufficient to implement the toString method...

Werner

On 23.07.2014 16:28, Mike Hearn wrote:
Yes createStringBinding helps but is verbose and repetitive. format()
requires the formatting to be specifiable with format codes, not Java.
What I want is basically

bindBidirectional(Property<String> stringProperty, Property<T>
otherProperty, StringConverter<T> converter)

but with a signature of

bind(Property<String> stringProperty, ReadOnlyProperty<T> otherProperty,
StringConverter<T> converter)

as in practice this is often what's wanted when converting data model
objects into labels.

Reply via email to