Re: Bidirectional binding enhancement

2021-11-12 Thread Kevin Rushforth
In addition to the points John raises, I also agree with the comment Tom added to the Draft PR: I don't think the object bindings in javafx.base should have UI concepts like Action or Focus, even if you abstract them a bit. -- Kevin On 11/10/2021 3:10 AM, John Hendrikx wrote: Although I

Re: Bidirectional binding enhancement

2021-11-12 Thread Eric Bresie
Regarding the enumeration… As was touched on separately, would a “TIMER” or “TIME” based case be worth considering? For the FOCUS/ACTION…with ACTION It does FOCUS + Event, should there be one that is just “Event” (I.e. not accounting for loss of focus)? Would it need to account for “multiple

Re: Bidirectional binding enhancement

2021-11-10 Thread Michael Strauß
If you're interested in the implementation, please have a look at the draft PR: https://github.com/openjdk/jfx/pull/663 This feature is implemented on the FX beans level in javafx.base, so there's no need to have access to javafx.graphics. On Wed, Nov 10, 2021 at 8:52 AM Tom Schindl wrote: > >

Re: Bidirectional binding enhancement

2021-11-10 Thread Michael Strauß
On Wed, Nov 10, 2021 at 12:12 PM John Hendrikx wrote: > > Although I think you have a valid use case, I don't think JavaFX should > facilitate this exact scenario; it is a high level concern that you want > to solve in a very low level mechanism. A similar scenario also applies > to

Re: Bidirectional binding enhancement

2021-11-10 Thread John Hendrikx
Although I think you have a valid use case, I don't think JavaFX should facilitate this exact scenario; it is a high level concern that you want to solve in a very low level mechanism. A similar scenario also applies to uni-directional bindings, so I think it would have to apply there as well.

Re: Bidirectional binding enhancement

2021-11-10 Thread Andrea Vacondio
In my latest project I felt the need for a built in debounce which is fairly common for search fields or similar. Andrea Il giorno mer 10 nov 2021 alle ore 08:51 Tom Schindl < tom.schi...@bestsolution.at> ha scritto: > Hi, > > We had

Re: Bidirectional binding enhancement

2021-11-09 Thread Tom Schindl
Hi, We had something very similar in Eclipse-Databinding so I think something like that makes a lot of sense but I wonder how you want to implement this FOCUS, ACTION. Another thing we had was a delayed-Observable where the sync only happened if there hasn't been a change with a user

Bidirectional binding enhancement

2021-11-09 Thread Michael Strauß
JavaFX developers routinely use programming patterns like MVC, MVP, or MVVM to separate views from their associated business logic. Bindings can be used to connect the values of UI controls (like Label or TextField) to properties on a business logic class. A typical (simplified) scenario may look