ListDataProvider update/remove elements [message #1013460] |
Sat, 23 February 2013 18:05 |
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 ?
|
|
|
Powered by
FUDForum. Page generated in 0.02900 seconds