« Return to Thread: Calculations.count notfies its listeners on each change of the list during a GlazedLists.replaceAllSorted

Calculations.count notfies its listeners on each change of the list during a GlazedLists.replaceAllSorted

by philk :: Rate this Message:

Reply to Author | View in Thread

I have a count calclualtion on my source even list.
If I refill the list (in a Master/Details scenario) the counter is changed for each addition. On change of the counter I refresh the number of items in my title bar. The fact the the counters change event is called for each change results in an ever increasing/decreasing counter which.
I was thinking about removing the listener during the adding process. Or is there a more elegant way to do that?

 « Return to Thread: Calculations.count notfies its listeners on each change of the list during a GlazedLists.replaceAllSorted