Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » ListDataProvider update/remove elements
ListDataProvider update/remove elements [message #1013460] Sat, 23 February 2013 18:05
Daya D is currently offline Daya D
Messages: 4
Registered: February 2013
Junior Member
Hi,

In Natable, I'm faced with one problem that i cannot remove element from DataProvider directly by passing Object. Is there way, i can do update/remove of objects from dataprovider without iterating through it. I don't see remove taking object instead it takes index and this means I need to first find index and then update/remove (I thought there would be something based on equals implementation to find it).

I'm thinking if there is way to keep a map with mapping(HashMap<UniqueIdWithInObject,Index>,) between Object's UniqueID and ListProvider index. however, this would mean if ListDataProvider updated/sorted/removed then this map has to be in sync. That is bigger problem.

Any suggestion to handle it in better way ?
Previous Topic:NatTable getColumnIndexByPosition returns -1 before
Next Topic:Updating or removing elemetns from DataProvider
Goto Forum:
  


Current Time: Wed Oct 22 09:40:05 GMT 2014

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

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