开发者

Spark List Itemrenderer focus defaults the currentState

开发者 https://www.devze.com 2023-02-01 11:29 出处:网络
I am using a spark list control with an itemrenderer. Whenever I set an itemrenderer\'s currentState, the moment I mouse out of the itemrenderer, it gets reset to its default state. How can I make an

I am using a spark list control with an itemrenderer. Whenever I set an itemrenderer's currentState, the moment I mouse out of the itemrenderer, it gets reset to its default state. How can I make an itemrenderer keep its currentState unless I explicitly t开发者_C百科ell it to change?


You can do this by overriding the getCurrentRendererState method on your renderer and returning whatever state you like, including your custom state. Hope that helps.

0

精彩评论

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

关注公众号