开发者

Can we prevent tree from reusing item-rendrer?

开发者 https://www.devze.com 2023-03-02 07:06 出处:网络
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.

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

精彩评论

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