0 Replies Latest reply on Sep 29, 2008 2:27 PM by (Ryan_Frishberg)

    [svn] 3410: Here are some changes to DataGroup.

    Level 1
      Revision: 3410
      Author: rfrishbe@adobe.com
      Date: 2008-09-29 15:27:50 -0700 (Mon, 29 Sep 2008)

      Log Message:
      -----------
      Here are some changes to DataGroup.

      The big change is the way we instantiate components. We aren?\226?\128?\153t re-using the Group logic anymore. This means there?\226?\128?\153s no display object sharing going on, which reduces the complexity of the code. It also treats renderers differently now. Basically anytime a renderer is specified, it?\226?\128?\153ll attempt to wrap you up in that renderer, even if you are a GraphicElement or a DisplayObject and may not need one.

      There are some other changes, like changing an itemRenderer at runtime now works. It?\226?\128?\153s a bit heavy in what it invalidates right now, but I?\226?\128?\153ll go back and revisit some of this logic.

      Also, when no dataProvider is given, we don?\226?\128?\153t automatically create one for the user. This means I had to add some defense mechanisms where we were relying on the dataProvider, but doing a check for dataProvider != null was all that was really needed.

      QE: Yes
      Doc: Yes
      Bugs: SDK-16809, SDK-16983
      Reviewer: Glenn

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-16809
      http://bugs.adobe.com/jira/browse/SDK-16983

      Modified Paths:
      --------------
      flex/sdk/trunk/development/eclipse/flex/flex4test/src/flex4test.mxml
      flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Selector.as
      flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/DataGroup.as