Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Updating a single row?
Updating a single row? [message #1006069] Tue, 29 January 2013 17:26 Go to next message
Alex Kipling is currently offline Alex Kipling
Messages: 257
Registered: July 2012
Senior Member
Can I make the NatTable to retrieve the Data from the IDataProvider for one single row?
Re: Updating a single row? [message #1006140 is a reply to message #1006069] Wed, 30 January 2013 07:47 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1339
Registered: July 2012
Senior Member
I don't understand. Do you want to tell the IDataProvider to retrieve new data (as you explained that you are doing database requests) or do you want to update the view for a single row. The last one should be achievable by fireing a RowUpdateEvent.
Re: Updating a single row? [message #1006203 is a reply to message #1006140] Wed, 30 January 2013 12:53 Go to previous messageGo to next message
Alex Kipling is currently offline Alex Kipling
Messages: 257
Registered: July 2012
Senior Member
Thnx, I think RowUpdateEvent was, what i was looking for.

My workflow is the following:
- I trigger a RowUpdateEvent
- the NatTable asks the Body IDataProvider for new Data for this row
- IDataProvider looks up the DB
- the NatTable repaints the row with new data from IDataProvider
Re: Updating a single row? [message #1006206 is a reply to message #1006203] Wed, 30 January 2013 12:57 Go to previous messageGo to next message
Alex Kipling is currently offline Alex Kipling
Messages: 257
Registered: July 2012
Senior Member
One more question:
assuming I found a type of event, which I would like to listen for (ScrollEvent). Is there any mechanism, how I would listen for this events?
Re: Updating a single row? [message #1006218 is a reply to message #1006206] Wed, 30 January 2013 13:45 Go to previous message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1339
Registered: July 2012
Senior Member
The documentation is not finished for this part. But you can find some basic information here http://eclipse.org/nattable/documentation.php?page=basics

You need to know that events are fired the layer stack upwards and that you can listen to events by creating and registering a ILayerEventHandler to the layer where you want to process it.
Previous Topic:How to get preferred size for a custom cell correctly?
Next Topic:BlinkLayer - how to redraw cell?
Goto Forum:
  


Current Time: Fri Oct 24 16:57:36 GMT 2014

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

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