开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜