Skip to main content



      Home
Home » Eclipse Projects » NatTable » How to detect, if underlying data has changed, when editing a cell
How to detect, if underlying data has changed, when editing a cell [message #1826956] Tue, 05 May 2020 06:44 Go to next message
Eclipse UserFriend
Hello,

I want to detect, when the underlying data of a cell, that is currently edited, was changed or resetted in the data-model.

In this case the editing-mode should be closed. I did not find any hints in the documentation therefore.

Any ideas / hints?

Thanks in advance,

Klaus
Re: How to detect, if underlying data has changed, when editing a cell [message #1826964 is a reply to message #1826956] Tue, 05 May 2020 08:16 Go to previous messageGo to next message
Eclipse UserFriend
IIUC you want to track if the underlying data model is changed from some background task while a cell editor is open. And if that case happens, the editor should close automatically. Is that correct?

There is no real built-in support for that case. You probably need to implement some PropertyChangeListener that you attach to every object of your data model. And that listener triggers the editor close operation. You should be able to access the current active cell editor via the NatTable instance.
Re: How to detect, if underlying data has changed, when editing a cell [message #1826969 is a reply to message #1826964] Tue, 05 May 2020 09:28 Go to previous message
Eclipse UserFriend
Thank you, Dirk
Previous Topic:NatTable 2.0 Release Plans
Next Topic:update/refresh NatTable after updating the POJO
Goto Forum:
  


Current Time: Thu May 22 07:08:47 EDT 2025

Powered by FUDForum. Page generated in 0.10938 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top