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 Enums” being applied at one time 
(combination of types)?

Eric Bresie
ebre...@gmail.com

> On November 9, 2021 at 11:45:46 PM CST, Michael Strauß 
> <michaelstr...@gmail.com (mailto:michaelstr...@gmail.com)> wrote:.
>
> For this reason, I propose to add a new type of binding to the
> javafx.beans.binding.Bindings class:
>
> void bindBidirectional(Property<T> target, Property<T> source,
> UpdateSourceTrigger trigger)
>
> UpdateSourceTrigger is an enumeration that allows developers to
> specify the condition on which changes of the target property will
> update the source property. Its values are:
>
> DEFAULT: Updates the source property on every change (this is the
> default behavior of bidirectional bindings).
> FOCUS: Updates the source property when the UI control loses input focus.
> ACTION: Updates the source property when the UI control loses input
> focus or when it receives an ActionEvent (in the case of TextField,
> this corresponds to the ENTER key).
>
> Note that this setting only applies to changes of the target property.
> When the source property is changed instead, the target property is
> always immediately updated.
>
> Any feedback on this proposal is appreciated.

Reply via email to