[SPAM] Re: [flexcoders] Passing an object to a rendererProvider
--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote: Tracy, I understood from the original e-mail that he was using a component as an itemRenderer. If his 'item object' is being used an itemRenderer he would have to create numerous mods to the list based classes to pass in properties other than data or listData. That's what styleFunction on ADG is for. And why the Data Visualization Components take things that would be properties on other components (like dataProvider) as styles.
RE: [SPAM] Re: [flexcoders] Passing an object to a rendererProvider
When (in its life cycle) do you need this object in the renderer? What does it do? When is it initialized or updated? Do you have a good understanding of itemRenderer recycling? Typically, there are two kinds of data in a renderer. Static data, which can be compiled in, and item data, which comes from the dataProvider item. Dynamic data that is not from the item raises questions. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of InvertedSpear Sent: Wednesday, November 18, 2009 10:15 AM To: flexcoders@yahoogroups.com Subject: [SPAM] Re: [flexcoders] Passing an object to a rendererProvider Passing the data as part of the data object seems like what I need to do, in fact if I can do that then I can pass the simple string instead of the entire object, but how do I do that? Thanks ~Mike Jeffry Houser-2 wrote: What component are you using? Most list based classes have a ListData property passed into itemRenderers. You can extend ListData to contain your custom data, and extend the List class to use your new ListData class with new data. You could also pass in the relevant data as part of your itemRenderer's data object. -- View this message in context: http://old.nabble. http://old.nabble.com/Passing-an-object-to-a-rendererProvider-tp26396466p26 408398.html com/Passing-an-object-to-a-rendererProvider-tp26396466p26408398.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [SPAM] Re: [flexcoders] Passing an object to a rendererProvider
Why not include the string in a property in the item object? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of InvertedSpear Sent: Wednesday, November 18, 2009 10:15 AM To: flexcoders@yahoogroups.com Subject: [SPAM] Re: [flexcoders] Passing an object to a rendererProvider Passing the data as part of the data object seems like what I need to do, in fact if I can do that then I can pass the simple string instead of the entire object, but how do I do that? Thanks ~Mike Jeffry Houser-2 wrote: What component are you using? Most list based classes have a ListData property passed into itemRenderers. You can extend ListData to contain your custom data, and extend the List class to use your new ListData class with new data. You could also pass in the relevant data as part of your itemRenderer's data object. -- View this message in context: http://old.nabble. http://old.nabble.com/Passing-an-object-to-a-rendererProvider-tp26396466p26 408398.html com/Passing-an-object-to-a-rendererProvider-tp26396466p26408398.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [SPAM] Re: [flexcoders] Passing an object to a rendererProvider
Tracy, I understood from the original e-mail that he was using a component as an itemRenderer. If his 'item object' is being used an itemRenderer he would have to create numerous mods to the list based classes to pass in properties other than data or listData. Mike, I'm not sure which class you're using, nor how your dataProvider is structured. But, if you just need to add the value to the objects in your dataProvider. If you have simple objects (like Strings) in your dataProvider, you'll need to wrap up them up in an object, probably by creating a Value Object style class. Tracy Spratt wrote: Why not include the string in a property in the item object? Tracy Spratt, Lariat Services, development services available *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *InvertedSpear *Sent:* Wednesday, November 18, 2009 10:15 AM *To:* flexcoders@yahoogroups.com *Subject:* [SPAM] Re: [flexcoders] Passing an object to a rendererProvider Passing the data as part of the data object seems like what I need to do, in fact if I can do that then I can pass the simple string instead of the entire object, but how do I do that? Thanks ~Mike Jeffry Houser-2 wrote: What component are you using? Most list based classes have a ListData property passed into itemRenderers. You can extend ListData to contain your custom data, and extend the List class to use your new ListData class with new data. You could also pass in the relevant data as part of your itemRenderer's data object. -- View this message in context: http://old.nabble.com/Passing-an-object-to-a-rendererProvider-tp26396466p26408398.html http://old.nabble.com/Passing-an-object-to-a-rendererProvider-tp26396466p26408398.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust