Yes, that sounds good too.

Cheers,

Wim

On Tue, Mar 16, 2021 at 4:38 PM Matthias Paul Scholz <
matthias.paul.sch...@gmail.com> wrote:

> Hallo Wim,
>
> Thanks for the proposal.
> I am aware of delayed databinding, but you might be interested to hear
> that I have found another workaround in the meantime:
>
> I have "slipped in" an intermediate model between the CDateTime instance
> and my wrapping widget.
> The model is hosted by a class derived from CDateTime that overrides the
> postClose() method and registers a KeyAdapter; in both cases, the model's
> value is updated with the actual selection.
> That way, the wrapping widget can bind to the model's value and fire
> change events only when the user commits the popup or enters a key stroke.
>
> This works, but is only a workaround in the end.
> It might be more desirable to support that concept natively by the
> CDateTime widget itself when it runs in graphical mode.
>
> Another option could have been to register a a selection listener on the
> green commit button in the toolbar of the picker; however, that button is
> not accessible from "outside" (with good reasons).
>
> What do you think?
>
> Best,
>   MP
>
> Am Mo., 15. März 2021 um 18:09 Uhr schrieb Wim Jongman <
> wim.jong...@gmail.com>:
> >
> > Hi Matthias,
> >
> > Another option is to throttle the selection. Databinding has support for
> that.
> > [...]
>
> _______________________________________________
> nebula-dev mailing list
> nebula-dev@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/nebula-dev
>
_______________________________________________
nebula-dev mailing list
nebula-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/nebula-dev

Reply via email to