0 Replies Latest reply on Jan 29, 2009 10:53 AM by Peter Farland

    [svn] 4735: Fixing id selectors for non-visual components.

    Peter Farland Level 3
      Revision: 4735
      Author: pfarland@adobe.com
      Date: 2009-01-29 10:53:55 -0800 (Thu, 29 Jan 2009)

      Log Message:
      -----------
      Fixing id selectors for non-visual components. This required a special modification to the compiler to include id properties in generated code if a component was guaranteed to have an id property. A new mx.core.IID interface was introduced to opt in to the id property to be included. This change also required TextGraphicElement based components to implement IAdvancedStyleClient instead of just IStyleClient (though note that pseudo-selectors have no meaning for these components as they do not possess states).

      QE: Yes
      Doc: It's reasonably advanced, but we may want to document mx.core.IID for the case where a custom component exists that needs to be styled but is not based on UIComponent or GraphicElement.
      Checkintests: Pass
      Reviewers: Glenn, Paul R
      Bugs:
      SDK-18651 - Advanced CSS not setting styles on FXG elements correctly when styling using IDs

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

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as
      flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
      flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
      flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/AttributeHandler.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java

      Added Paths:
      -----------
      flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IID.as