You can subclass TreeItemRenderer and do those things in
updateDisplayList

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of nhid
Sent: Wednesday, September 26, 2007 7:48 AM
To: [email protected]
Subject: [flexcoders] Manipulating tree label programmatically



Hi,
 
I am trying to change the label of a tree item for when the item is
selected.  
 
branch1
     child1A
branch2
     child2A
          child2Aa
          child2Ab
 
First problem is I need to add a character, lets say #, to the label, so
when I click on child1A, it should now display #child1A.
 
Second problem is changing the style of the label, bolding it, to the
label, so when I click on branch2, it should now display branch2.
 
Any idea is greatly appreciated.
 
 
 

 

Reply via email to