Mirrored observable collections
Mike Hearn
mike at plan99.net
Wed Jul 23 14:28:52 UTC 2014
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.
On Wed, Jul 23, 2014 at 4:17 PM, Werner Lehmann <
lehmann at media-interactive.de> wrote:
> Hi,
>
> take a look at Bindings.format and Bindings.createStringBinding for that.
> I use it all the time.
>
> Werner
>
>
> On 23.07.2014 13:16, Mike Hearn wrote:
>
>> Incidentally the lack of a uni-directional string binding utility in
>> JavaFX
>> is really annoying: converting a read only observable value into a string
>> is a really common thing to want to do!
>>
>
More information about the openjfx-dev
mailing list