0 Replies Latest reply on Oct 1, 2008 8:54 PM by (Ryan_Frishberg)

    [svn] 3450: Couple of changes to Group and DataGroup:

    Level 1
      Revision: 3450
      Author: rfrishbe@adobe.com
      Date: 2008-10-01 21:54:40 -0700 (Wed, 01 Oct 2008)

      Log Message:
      -----------
      Couple of changes to Group and DataGroup:

      1. Got rid of content_changing, content_changed, dataProvider_changing, and dataProvider_changed events. The events both group and datagroup emit are the item add and item remove events. Fixed up Selector, DataComponent, and ItemsComponent to not key off of these events anymore.

      2. Clean up Group's canShareDisplayObject from the blendMode change

      3. Fix up DataGroup to deal with a case where a GraphicElement's itemRenderer's group was holding on to the display object. When the graphic element was pushed into another itemRenderer, we tried to remove the graphic element's display object from its parent, but calling removeChild() on a Group RTE's. We need to revisit the fix here, and possibly add methods for removing display objects to Group, or don't RTE in Group on removeChild/addChild, or add some code so itemRenderer's can clean themselves up afterwards...at any rate, this fix will be revisited.

      QE: Yes
      Doc: Yes - event removed
      Bugs: SDK-17135
      Reviewer: Deepa

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

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/DataComponent.as
      flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as
      flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Selector.as
      flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/DataGroup.as
      flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as
      flex/sdk/trunk/frameworks/projects/flex4/src/flex/events/FlexEvent.as