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

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

by Kevin Day-7 :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Another option here would be to use a freezable list, but that seems like overkill for this particular behavior.
 
- K
 
----------------------- Original Message -----------------------
  
From: philk phil.kursawe@...
To: users@...
Cc: 
Date: Thu, 25 Jun 2009 06:25:31 -0700 (PDT)
Subject: Calculations.count notfies its listeners on each change of the list during a GlazedLists.replaceAllSorted
  

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?
--
View this message in context: http://www.nabble.com/Calculations.count-notfies-its-listeners-on-each-change-of-the-list-during-a-GlazedLists.replaceAllSorted-tp24203222p24203222.html
Sent from the GlazedLists - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@...

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