Re: Inverse bidirectional binding for Boolean properties

2021-06-03 Thread Michael Strauß
That also looks very useful, although having a converter interface would be more similar to the existing `javafx.util.StringConverter` class and its corresponding `BidirectionalBinding` implementations. Such an interface could look like this: public interface ValueConverter { T co

Re: Inverse bidirectional binding for Boolean properties

2021-06-03 Thread Tobias Oelgarte
On 03.06.21 21:41, Michael Strauß wrote: Here's a simple thing I've come across frequently: Let's say you want to bidirectionally bind a CheckBox to a boolean property in a backend class (or any class that contains some kind of business logic). That's very easy, except if the backend property i

Inverse bidirectional binding for Boolean properties

2021-06-03 Thread Michael Strauß
Here's a simple thing I've come across frequently: Let's say you want to bidirectionally bind a CheckBox to a boolean property in a backend class (or any class that contains some kind of business logic). That's very easy, except if the backend property is worded in the "negative" (i.e. the fronte