PDA

View Full Version : need help for Container's removeAll method



Avinashga
23 Feb 2011, 3:15 AM
Hi,

I have read the documentation and found out that the Container's removeAll() method will remove (destroy) all the components it contains by default and removeAll(false) removes but destroys none.


all i need is to remove and destroy all the components except one button (toogle) which i need. is there is is any way to selectively destroy the contained components apart from remove() method.


Thank You,

Condor
23 Feb 2011, 4:01 AM
You'll need to copy the code from removeAll and add an extra 'if', so it doesn't remove your button.

Avinashga
23 Feb 2011, 4:12 AM
I will definitely try that.

Thanks again