But somehow I doubt that's the best way. In Senchas gxt demo explorer you can see, that they are using more than one icon for leaves (open some UI Binder example and switch to source tab. You can see different icons for different file types in a file tree), but there are no examples on achieving this.

p.s. This is definitively not the correct way to do this, because it does not behave like I suspected. Another way of doing it is to append the icon to SafeHtmlBuilder in render method, but still, not sure that's the way it should be.

Last edited by raivis; 25 Nov 2011 at 1:36 AM.
Reason: src code is not doing what I suspected it would

As I am new to all this stuff, it took me a while to figure that out. If I have understood it right, you have to make your own TreeAppearance class (base one BlueTreeAppearance can be extended as well). Most likely several of them to support all the base themes (currently blue and gray).

edit
I still don't know what would be the best solution overall, but I found out that in my case that would be by overriding Tree's method: