Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23336

DataGroup should have a hook for augmenting item renderer creation - e.g. createRendererForItem should be overridable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Adobe Flex SDK 4.0 (Release)
    • None
    • Spark: DataGroup
    • 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.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: