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?

Reply via email to