Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [nebula-dev] How to receive ok event only in CDateTime widget?

Hi Matthias,

It depends on how you use the widget. CDateTime has many faces. When using the widget in its simplest form, there is no concept of Enter or OK. So it means that databinding has to be different based on the style of the widget.

image.png

Cheers,

Wim




On Mon, Mar 15, 2021 at 10:08 AM Matthias Paul Scholz <matthias.paul.scholz@xxxxxxxxx> wrote:
Hi all,

For some years we have used the CDateTime widget in our RCP application which works quite good. :)

However, we ran in some troubles lately: to get notion about changes the user made in the widget,  we use the databinding proposed by Henno Vermeulen (see https://www.eclipse.org/forums/index.php/t/172877) that binds our application to a selection event in the widget.

There's an issue with that approach, however: it seems that such a selection event is triggered always on each selection inside of the widget. For instance, when the user cycles through the months in the calendar drop down or selects another day, each time a separate selection event is fired. 
This is inconvenient for us, since we need an event only when the user explicitely commits her changes by selecting the ok button (or pressing enter).

This has become crucial for us lately since we have a new use case now where a change in the widget triggers an expensive backend operation - and it is a no go when this happens each time the user changes the month in the calendar drop down ...

Is there a possibility to listen for or to bind to ok/enter events on the CDateTime widget only?

Thanks,
  MP

_______________________________________________
nebula-dev mailing list
nebula-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/nebula-dev

Back to the top