stogi
6 Aug 2009, 10:57 PM
Hi!
I have got a problem with adding / updating models in ListStore. On some app event I want to add a BeanModel instance produced from BeanModelFactory to store. If this produced model is already in store I want to update it in the store rather than add it again. So i wanted to user store.contains() method to check it model that came with event is already in my store. But this does not work. Equals() method from entity is not called.
So my question is: Does equals() method from entity class is used in instance of bean model produced by BeanModelFactory or there is some other method to handle such situation?
If some of this is not understandable I will post some code of my app.
Regards,
Stogi
I have got a problem with adding / updating models in ListStore. On some app event I want to add a BeanModel instance produced from BeanModelFactory to store. If this produced model is already in store I want to update it in the store rather than add it again. So i wanted to user store.contains() method to check it model that came with event is already in my store. But this does not work. Equals() method from entity is not called.
So my question is: Does equals() method from entity class is used in instance of bean model produced by BeanModelFactory or there is some other method to handle such situation?
If some of this is not understandable I will post some code of my app.
Regards,
Stogi