I want to apply different formatting to the labels of different types of nodes 
in a Tree.

I have extended TreeItemRenderer and overrode updateDisplayList() so that I 
could call setStyle() on each node based on specific properties, something like 
what I copied below, but I dont see it happening even tho the code is hit. What 
am I missing?


override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void {
    super.updateDisplayList(unscaledWidth, unscaledHeight);
    if(super.data!=null) {
        var treeListData:TreeListData = TreeListData(super.listData);
        if(treeListData.isDirty){
            this.label.setStyle('fontStyle', 'italic');
        }
    }
}


Thank you for any pointers,

Ivo




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to