Can we prevent tree from reusing item-rendrer?
i was in situation that tree is re-using my custom item-renderer.. is there any method or way around we can stop tree to reuse.. and always create a new item-renderer for new i开发者_StackOverflowtem.. thanx in advance..
Are you sure you need to keep track of the selected renderer and not the selectedItem ? If you have a selected renderer, then you also have a selectedItem. You can add a property to whatever data you have like "lastSelected=true" and then do your graphical processing in the renderer.
精彩评论