I have a class (1) extended from ListBase
which, for it's itemRenderer, uses another class (2) extended from ItemRenderer
There is a button in (2) that when clicked, sets it's itemRenderer instance to selected. This work as expected (the state changes).
The problem I have is that if then I click the button on another itemRenderer instance, I want the first itemRenderer instance to be not selected. So there is only ever 1 or 0 itemRenderers selected at one time. This is not happening and I can't work out how to do it.
I am using Spark components.
Any ideas?