The TreeItemRenderer displays icons at some point. Use the same place for your optional items.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nikolaj Selvik Sent: Sunday, June 22, 2008 6:12 PM To: [email protected] Subject: [flexcoders] Short question about custom TreeItemRenderer Hi all, I have been unable to see what exactly is best practice when making custom TreeItemRenderer implementations. My scenario: I have specfic flags in certain nodes of my XML document I am using as dataprovider, and when a TreeItemRenderer renders such a node it will add different elements to the TreeItemRenderer, depending on what type of flag was found. I am currently checking for the flag and deleting and adding the extra elements in commitProperties() and doing resizing of any extra elements in updateDisplayList() When I look at examples a lot of people seem to use createChildren() What would be the preffered method of doing this? What exactly are the roles of updateDisplayList(), createChildren() and commitProperties() in the TreeItemRenderer?

