Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
Adobe Flex SDK 4.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Item renderers are created in the method createRendererForItem. Subclasses of DataGroup can't override this (it's private), but it would be useful to override.
One use-case: I want to create a SkinnableDataGroup where the item renderers are SkinnableComponents. I'd like to assign itemRendererSkinClass on my SkinnableDataGroup, and then have it set the skin class on each item renderer. But I can't, because I can't hook into item renderer creation. If I could override createRendererForItem, I could call super.createRendererForItem and then set the skin class afterwards.