0 Replies Latest reply on Mar 5, 2009 2:40 PM by deepa subramaniam (adobe)

    [svn:fx-trunk] 5181: List work:

    deepa subramaniam (adobe) Level 2
      Revision: 5181
      Author: dsubrama@adobe.com
      Date: 2009-03-05 14:40:12 -0800 (Thu, 05 Mar 2009)

      Log Message:
      -----------
      List work:

      -Introduction of two new interfaces that formalize communication between a component and its renderers: IItemRenderer, IItemRendererOwner
      -Removed ISelectableRenderer from use by ButtonBar. ButtonBar now works with the above-mentioned interfaces.
      -Added labelField/labelFunction to ListBase - usable by List and ButtonBar.
      -Introduced new utility class, LabelUtils, which returns the correct text for a data item's renderer given a labelField and labelFunction.
      -Removed data-binding from FxDefaultItemRenderer - the new interfaces determine how a component stuffs the right text into the renderer's optional part, labelElement.

      Checkintests: Pass
      Mustella: ButtonBar and List tests pass
      Reviewer: Ryan

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ButtonBarButton.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButtonBar.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml

      Added Paths:
      -----------
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/IItemRenderer.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/IItemRendererOwner.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/LabelUtil.as

      Removed Paths:
      -------------
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/ISelectableRenderer.as