Hi Manish

My listItemRenderer is an MXML component that dervies from VBox. It 
doesn't have a listData attribute.

I looked up listData renderer and found that components that wish to 
be a drop-in renderer should implement the IDropInListItemRenderer 
interface. 

I take this to mean that my VBox-based list item renderer should 
implement this interface,  but I don't know how to accomplish this. 
If my component were an AS file, it would be simple. But how can an 
MXML component implement an interface?

I tried adding "get listData" and "set listData" functions, hoping 
that they would be discovered at runtime. It would seem that they 
are, since "get listData" is being called frequently, but "set 
listData" is never called.

Any advice?

Thanks.
Tobias.

--- In [email protected], "Manish Jethani" 
<[EMAIL PROTECTED]> wrote:
>
> On 3/11/06, tobiaspatton <[EMAIL PROTECTED]> wrote:
> 
> [snip]
> 
> > When the user changes the selection in the list, 
updateDisplayList()
> > is called for the newly deselected and selected items. My first
> > thought was to inspect the selectedItems attribute of the parent
> > list and adjust the drawing accordingly. However, it seems that 
the
> > item renderer's updateDisplayList() method is invoked prior to 
the
> > list's selectedItems attribute being updated.
> [snip]
> 
> In your item renderer's updateDisplayList() you can do the 
following:
> 
>   if (ListBase(listData.owner).isItemSelected(this)) // selected
>     drawSelectedStuff();
>   else
>     drawUnselectedStuff();
> 
> Manish
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to