Item renderers are reused instead of being recreated ... That is why your state 
is inconsistent...
C




________________________________
From: leds usop <[email protected]>
To: [email protected]
Sent: Monday, July 6, 2009 10:59:58 AM
Subject: Re: [flexcoders] My itemrenderer is mercurial!!





how are you setting the selection status of the checkbox? override the setter 
method for data, then place a default value (an if else perhaps) if the data is 
null, or is int's default state.

--- On Mon, 7/6/09, j2me_soul <j2me_s...@163. com> wrote:


>From: j2me_soul <j2me_s...@163. com>
>Subject: [flexcoders] My itemrenderer is mercurial!!
>To: "flexcoders" <flexcod...@yahoogro ups.com>
>Date: Monday, July 6, 2009, 7:59 AM
>
>
>The itemrenderer is a HBox. There is a check and a label in the HBox.
>When I selected any of the checkbox and scrolled the scrollbar of the List 
>which used the itemrenderer, the stange thing happened, the selected checkbox 
>is no longer the same checkbox !! Maybe the last one, maybe the second one ~~~ 
> How can I fix this ?
>
>
>
>
________________________________
 200万种商品,最低价格,疯狂诱惑你  >
>  

   


      

Reply via email to