tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/653-location-of-factory-builder-classes-for-creating-and-styling-componentsRobotlegs: Discussion 2018-10-18T16:35:31Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/98002232011-09-07T07:39:09Z2011-09-07T07:39:09ZLocation of factory / builder classes for creating and styling components<div><p>Well, I would place factories in thefvsame package as its
products. In your case in the view.</p>
<p>Don't really understand what you are asking for re item
renderers</p></div>neiltag:robotlegs.tenderapp.com,2009-10-18:Comment/98002232011-09-07T22:56:48Z2011-09-07T22:56:49ZLocation of factory / builder classes for creating and styling components<div><p>Thanks Neil. I'll keep it in the view. Maybe under a 'helpers'
sub folder. Plan to have Factory class that is in each view by
composition. When the view needs to draw itself it retrieves it's
component parts from this factory. Probably not strictly RL but
seesm to be a solution.</p>
<p>What I meant about item renderers was that in flex you can have
a list of data objects, loop through them and specify an item
renderer to display them in a particular way sort of what I was
trying to achieve with the factory.</p></div>Bubazinetitag:robotlegs.tenderapp.com,2009-10-18:Comment/98002232011-09-08T07:57:15Z2011-09-08T07:57:15ZLocation of factory / builder classes for creating and styling components<div><p>I usually use a ConfigurableFactory which takes a key and its
product. I then add them to a MacroFactory. Both implement an
ICreatable iface. This means you can pass any identifying object as
the key. Is that the kinda thing you mean?</p></div>neil