Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:44 Go to next message
Klaus Reger is currently offline Klaus RegerFriend
Messages: 13
Registered: December 2016
Junior Member
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 12:16 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 47
Registered: March 2020
Member
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 13:28 Go to previous message
Klaus Reger is currently offline Klaus RegerFriend
Messages: 13
Registered: December 2016
Junior Member
Thank you, Dirk
Previous Topic:NatTable 2.0 Release Plans
Next Topic:update/refresh NatTable after updating the POJO
Goto Forum:
  


Current Time: Thu Apr 25 19:49:28 GMT 2024

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

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

Back to the top