Transferred from the Adobe Open Source Subversion Repository

Revision: 12370
Author:   smgilson@adobe.com
Date:     2009-12-02T16:48:37.124467Z

Log Message:
-----------
Fix for doc bug FLEXDOCS-1150

Added a few new examples and default sizes to Spark components

QE notes: -
Doc notes: -
Bugs: -
Reviewer: -
Tests run: - FLEXDOCS-1150
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/SkinnableContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/VScrollBarExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/BorderContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/HScrollBarExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TileGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/MyBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/SkinnableDataContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/ApplicationContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1280969 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -157,11 +157,7 @@
  *

  *

  *           Default size
- *           188 pixels wide by 22 pixels high
- *

- *

- *           Minimum size
- *           2 pixels wide and 2 pixels high
+ *           128 pixels wide by 22 pixels high
  *

  *

  *           Maximum size
@@ -292,25 +288,25 @@

     /**
      *  The default width of the control, measured in em units.
-	 *
-	 *
An em is a unit of typographic measurement
-	 *  equal to the point size.
-	 *  It is not necessarily exactly the width of the "M" character,
-	 *  but in many fonts the "M" is about one em wide.
+     *
+     *
An em is a unit of typographic measurement
+     *  equal to the point size.
+     *  It is not necessarily exactly the width of the "M" character,
+     *  but in many fonts the "M" is about one em wide.
      *  The control's fontSize style is used,
-	 *  to calculate the em unit in pixels.

-	 *
-	 *
You would, for example, set this property to 20 if you want
-	 *  the width of the TextInput to be sufficient
-	 *  to input about 20 characters of text.

-	 *
-	 *
This property will be ignored if you specify an explicit width,
-	 *  a percent width, or both left and right
-	 *  constraints.

-	 *
-	 *  @default 10
-	 *
-	 *  @see spark.primitives.heightInLines
+     *  to calculate the em unit in pixels.

+     *
+     *
You would, for example, set this property to 20 if you want
+     *  the width of the TextInput to be sufficient
+     *  to input about 20 characters of text.

+     *
+     *
This property will be ignored if you specify an explicit width,
+     *  a percent width, or both left and right
+     *  constraints.

+     *
+     *  @default 10
+     *
+     *  @see spark.primitives.heightInLines
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Fix driver info reading.

Fix driver info reading.

--- src/aerys/minko/Viewport3D.as
+++ src/aerys/minko/Viewport3D.as
@@ -133,20 +133,9 @@

 		public function get renderMode() : String
 		{
-			if (_context)
-				return _context.driverInfo.split(/^(\w+) Description=(.*) Driver=.*$/gs)[1];
-
-			return null;
-		}
-
-		public function get driver() : String
-		{
-			if (_context)
-				return _context.driverInfo.split(/^(\w+) Description=(.*) Driver=.*$/gs)[2];
-
-			return null;
-		}
-
+			return _context ? _context.driverInfo : null;
+		}
+
 		/**
 		 * Creates a new Viewport object.
 		 *


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
663 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1258485 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/binding/BindabilityInfo.as
+++ frameworks/projects/framework/src/mx/binding/BindabilityInfo.as
@@ -33,32 +33,62 @@

 	/**
 	 *  Name of [Bindable] metadata.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const BINDABLE:String = "Bindable";

 	/**
 	 *  Name of [Managed] metadata.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const MANAGED:String = "Managed";

 	/**
 	 *  Name of [ChangeEvent] metadata.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const CHANGE_EVENT:String = "ChangeEvent";

 	/**
 	 *  Name of [NonCommittingChangeEvent] metadata.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const NON_COMMITTING_CHANGE_EVENT:String =
 		"NonCommittingChangeEvent";

 	/**
 	 *  Name of describeType() <accessor> element.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const ACCESSOR:String = "accessor";

 	/**
 	 *  Name of describeType() <method> element.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const METHOD:String = "method";

@@ -70,6 +100,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function BindabilityInfo(typeDescription:XML)
 	{
@@ -110,6 +145,11 @@
 	/**
 	 *  Object containing { eventName: true } for each change event
 	 *  (class- or child-level) that applies to the specified child.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function getChangeEvents(childName:String):Object
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1261002 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/graphics/BitmapFillMode.as
+++ frameworks/projects/framework/src/mx/graphics/BitmapFillMode.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 Adobe Systems Incorporated
-//  All Rights Reserved.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
 //
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 7774
Author:   jszeto@adobe.com
Date:     2009-06-12T00:38:51.011501Z

Log Message:
-----------
GradientGlowFilter bug fix for default type

http://bugs.adobe.com/jira/browse/SDK-21734 - GradientGlowFilter type should default to “outer”

The constructor was calling the super constructor at the end, which caused the class variables to get reset to the parent class backing variable default values. In the process, I also noticed that the filter classes weren’t calling super() in their constructors, so I fixed that issue as well.

QE Notes: None
Doc Notes: None
Bugs: SDK-21734
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/GradientBevelFilter.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1284735 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/filters/DropShadowFilter.as
+++ frameworks/projects/spark/src/spark/filters/DropShadowFilter.as
@@ -92,6 +92,8 @@
 									 knockout:Boolean = false,
 									 hideObject:Boolean = false)
 	 {
+	 	super();
+
 	 	this.distance = distance;
 	 	this.angle = angle;
 	 	this.color = color;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4337
Author:   egeorgie@adobe.com
Date:     2008-12-17T01:41:36.131845Z

Log Message:
-----------
ILayoutElement methods renames

Interface ILayoutElement
{
getLayoutWidth -> getLayoutBoundsWidth
getLayoutHeight -> getLayoutBoundsHeight
getLayoutPositionX -> getLayoutBoundsX
getLayoutPositionY -> getLayoutBoundsY
setLayoutSize -> setLayoutBoundsSize
setLayoutPosition -> setLayoutBoundsPosition
getPreferredWidth -> getPreferredBoundsWidth
getPreferredHeight -> getPreferredBoundsHeight
getMinWidth -> getMinBoundsWidth
getMinHeight -> getMinBoundsHeight
getMaxWidth -> getMaxBoundsWidth
getMaxHeight -> getMaxBoundsHeight

…unrelated stuff…
}

Reviewed by Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/layout/layout_tester.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/graphics/GraphicTags_checkintests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutElementUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1285090 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -40,8 +40,8 @@
     private static function calculatePercentHeight(layoutElement:ILayoutElement, height:Number):Number
     {
     	var percentHeight:Number = LayoutElementHelper.pinBetween(layoutElement.percentHeight * 0.01 * height,
-    	                                                          layoutElement.getMinHeight(),
-    	                                                          layoutElement.getMaxHeight() );
+    	                                                          layoutElement.getMinBoundsHeight(),
+    	                                                          layoutElement.getMaxBoundsHeight() );
     	return percentHeight < height ? percentHeight : height;
     }

@@ -67,9 +67,9 @@
         }

         if (variableColumnWidth)
-            layoutElement.setLayoutSize(width, newHeight);
+            layoutElement.setLayoutBoundsSize(width, newHeight);
         else
-            layoutElement.setLayoutSize(columnWidth, newHeight);
+            layoutElement.setLayoutBoundsSize(columnWidth, newHeight);
     }

     //--------------------------------------------------------------------------
@@ -220,7 +220,7 @@
         else if (!target || (target.numLayoutElements <= 0))
             return 0;
         else
-            return target.getLayoutElementAt(0).getPreferredWidth();
+            return target.getLayoutElementAt(0).getPreferredBoundsWidth();
     }

     /**
@@ -446,8 +446,8 @@
         // index is first (c0) or last (c1) visible column
         var x0:Number = g.horizontalScrollPosition;
         var x1:Number = x0 + g.width;
-        var ix0:Number = le.getLayoutPositionX();
-        var ix1:Number = ix0 + le.getLayoutWidth();
+        var ix0:Number = le.getLayoutBoundsX();
+        var ix1:Number = ix0 + le.getLayoutBoundsWidth();
         if (ix0 >= ix1)  // element has 0 or negative width
             return 1.0;
         if ((ix0 >= x0) && (ix1 <= x1))
@@ -472,9 +472,9 @@
     {
         var index:int = (i0 + i1) / 2;
         var element:ILayoutElement = g.getLayoutElementAt(index);
-        var elementX:Number = element.getLayoutPositionX();
+        var elementX:Number = element.getLayoutBoundsX();
         // TBD: deal with null element, includeInLayout false.
-        if ((x >= elementX) && (x < elementX + element.getLayoutWidth() + gap))
+        if ((x >= elementX) && (x < elementX + element.getLayoutBoundsWidth() + gap))
             return index;
         else if (i0 == i1)
             return -1;
@@ -561,8 +561,8 @@
             if (index0 != -1)
             {
                 var element0:ILayoutElement = g.getLayoutElementAt(index0);
-                var element0X:Number = element0.getLayoutPositionX();
-                var element0Width:Number = element0.getLayoutWidth();
+                var element0X:Number = element0.getLayoutBoundsX();
+                var element0Width:Number = element0.getLayoutBoundsWidth();
                 if ((element0X < x1) && ((element0X + element0Width) > x0))
                     i0 = index0;
             }
@@ -575,8 +575,8 @@
             if (index1 != -1)
             {
                 var element1:ILayoutElement = g.getLayoutElementAt(index1);
-                var element1X:Number = element1.getLayoutPositionX();
-                var element1Width:Number = element1.getLayoutWidth();
+                var element1X:Number = element1.getLayoutBoundsX();
+                var element1Width:Number = element1.getLayoutBoundsWidth();
                 if ((element1X < x1) && ((element1X + element1Width) > x0))
                     i1 = index1;
             }
@@ -596,10 +596,10 @@
         var element:ILayoutElement = g.getLayoutElementAt(i);
         if (element && element.includeInLayout)
         {
-            return new Rectangle(element.getLayoutPositionX(),
-                                 element.getLayoutPositionY(),
-                                 element.getLayoutWidth(),
-                                 element.getLayoutHeight());
+            return new Rectangle(element.getLayoutBoundsX(),
+                                 element.getLayoutBoundsY(),
+                                 element.getLayoutBoundsWidth(),
+                                 element.getLayoutBoundsHeight());
         }
         return null;
     }
@@ -763,14 +763,14 @@
                 continue;
             }

-            preferredHeight = Math.max(preferredHeight, le.getPreferredHeight());
-            preferredWidth += le.getPreferredWidth();
+            preferredHeight = Math.max(preferredHeight, le.getPreferredBoundsHeight());
+            preferredWidth += le.getPreferredBoundsWidth();

             var vcr:Boolean = (reqColumns != -1) && (visibleColumns < reqColumns);
             if (vcr || (reqColumns == -1))
             {
-                var mw:Number = hasPercentWidth(le)  ? le.getMinWidth() : le.getPreferredWidth();
-                var mh:Number = hasPercentHeight(le) ? le.getMinHeight() : le.getPreferredHeight();
+                var mw:Number = hasPercentWidth(le)  ? le.getMinBoundsWidth() : le.getPreferredBoundsWidth();
+                var mh:Number = hasPercentHeight(le) ? le.getMinBoundsHeight() : le.getPreferredBoundsHeight();
                 minWidth += mw;
                 minHeight = Math.max(minHeight, mh);
             }
@@ -818,8 +818,8 @@
 	        {
 	            var layoutElement:ILayoutElement = layoutTarget.getLayoutElementAt(i);
 	            if (!layoutElement || !layoutElement.includeInLayout) continue;
-	            rowHeight = Math.max(rowHeight, layoutElement.getPreferredHeight());
-	            var elementMinHeight:Number = hasPercentHeight(layoutElement) ? layoutElement.getMinHeight() : layoutElement.getPreferredHeight();
+	            rowHeight = Math.max(rowHeight, layoutElement.getPreferredBoundsHeight());
+	            var elementMinHeight:Number = hasPercentHeight(layoutElement) ? layoutElement.getMinBoundsHeight() : layoutElement.getPreferredBoundsHeight();
 	            minRowHeight = Math.max(minRowHeight, elementMinHeight);
 	        }
         }
@@ -881,7 +881,7 @@
                 if (hasPercentHeight(layoutElement))
                     layoutElementHeight = calculatePercentHeight(layoutElement, unscaledHeight);
                 else
-                    layoutElementHeight = layoutElement.getPreferredHeight();
+                    layoutElementHeight = layoutElement.getPreferredBoundsHeight();

                 contentHeight = Math.max(contentHeight, layoutElementHeight);
             }
@@ -928,12 +928,12 @@
                 continue;

             // Set the layout element's position
-            var y:Number = (contentHeight - layoutElement.getLayoutHeight()) * vAlign;
-            layoutElement.setLayoutPosition(x, y);
+            var y:Number = (contentHeight - layoutElement.getLayoutBoundsHeight()) * vAlign;
+            layoutElement.setLayoutBoundsPosition(x, y);

             // Update maxX,Y, first,lastVisibleIndex, and x
-            var dx:Number = layoutElement.getLayoutWidth();
-            var dy:Number = layoutElement.getLayoutHeight();
+            var dx:Number = layoutElement.getLayoutBoundsWidth();
+            var dy:Number = layoutElement.getLayoutBoundsHeight();
             maxX = Math.max(maxX, x + dx);
             maxY = Math.max(maxY, y + dy);
             if (!clipContent ||
@@ -1002,8 +1002,8 @@
                 childInfo = new HLayoutElementFlexChildInfo();
                 childInfo.layoutElement = layoutElement;
                 childInfo.percent    = layoutElement.percentWidth;
-                childInfo.min        = layoutElement.getMinWidth();
-                childInfo.max        = layoutElement.getMaxWidth();
+                childInfo.min        = layoutElement.getMinBoundsWidth();
+                childInfo.max        = layoutElement.getMaxBoundsWidth();

                 childInfoArray.push(childInfo);
             }
@@ -1012,7 +1012,7 @@
                 sizeLayoutElement(layoutElement, height, verticalAlign,
                                restrictedHeight, NaN, variableColumnWidth, cw);

-                spaceToDistribute -= layoutElement.getLayoutWidth();
+                spaceToDistribute -= layoutElement.getLayoutBoundsWidth();
             }
         }


FLEX-34625 Making it clear that the width and height of the text input are 0 for the bug to be reproduced.

--- frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Test.as
+++ frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Test.as
@@ -25,6 +25,8 @@
             focusManager.showFocusIndicator = true;

             _textInput = new TextInput();
+            _textInput.width = 0;
+            _textInput.height = 0;
             _textInput.focusManager = focusManager;

             _finishNotifier = new EventDispatcher();


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1269842 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/skins/halo/NumericStepperUpSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/NumericStepperUpSkin.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////

 package mx.skins.halo
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1274690 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as
+++ frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as
@@ -1,3 +1,21 @@
+/**************************************************************************
+ * ADOBE CONFIDENTIAL
+ *
+ * ___________________
+ *
+ *  Copyright 2010 Adobe Systems Incorporated
+ *  All Rights Reserved.
+ *
+ * NOTICE:  All information contained herein is, and remains
+ * the property of Adobe Systems Incorporated and its suppliers,
+ * if any.  The intellectual and technical concepts contained
+ * herein are proprietary to Adobe Systems Incorporated and its
+ * suppliers and may be covered by U.S. and Foreign Patents,
+ * patents in process, and are protected by trade secret or copyright law.
+ * Dissemination of this information or reproduction of this material
+ * is strictly forbidden unless prior written permission is obtained
+ * from Adobe Systems Incorporated.
+ **************************************************************************/

 package mx.utils
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4960
Author:   gosmith@adobe.com
Date:     2009-02-14T02:23:27.721068Z

Log Message:
-----------
Decreased the number of Gumbo style buckets.

Combined AdvancedCharacterFormatTextStyles.as, AdvancedParagraphFormatTextStyles.as, and AdvancedContainerFormatTextStyles.as into AdvancedTextLayoutFormatStyles.as.

Combined BasicCharacterFormatTextStyles.as, BasicParagraphFormatTextStyles.as, and BasicContainerFormatTextStyles.as into BasicTextLayoutFormatStyles.as.

The reason for doing this is that TLF combined its CharacterFormat, ParagraphFormat, and ContainerFormat classes into a single TextLayoutFormat.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: None; no functional change

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedCharacterFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicContainerFormatTextStyles.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedParagraphFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicCharacterFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicParagraphFormatTextStyles.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedContainerFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1279742 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -19,12 +19,8 @@
 import mx.events.FlexEvent;
 import mx.managers.IFocusManagerComponent;

-include "../styles/metadata/AdvancedCharacterFormatTextStyles.as"
-include "../styles/metadata/AdvancedContainerFormatTextStyles.as"
-include "../styles/metadata/AdvancedParagraphFormatTextStyles.as"
-include "../styles/metadata/BasicCharacterFormatTextStyles.as"
-include "../styles/metadata/BasicContainerFormatTextStyles.as"
-include "../styles/metadata/BasicParagraphFormatTextStyles.as"
+include "../styles/metadata/AdvancedTextLayoutFormatStyles.as"
+include "../styles/metadata/BasicTextLayoutFormatStyles.as"
 include "../styles/metadata/SelectionFormatTextStyles.as"

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 20684
Author:   rfrishbe@adobe.com
Date:     2011-03-08T19:14:07.872274Z

Log Message:
-----------
ASDoc changes: some cleanups and clarifying mobile vs. spark where appropriate

QE notes: -
Doc notes:
Bugs: SDK-29845
Reviewer: Carol F
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1279784 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -86,8 +86,6 @@
 /**
  *  @copy spark.components.supportClasses.GroupBase#style:contentBackgroundColor
  *
- *  @default 0xFFFFFF
- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1284545 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/events/GridSelectionEvent.as
+++ frameworks/projects/spark/src/spark/events/GridSelectionEvent.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////

 package spark.events
 {


Modify SimpleVirtualJoystick

Modify SimpleVirtualJoystick

--- krew-framework/krewfw/builtin_actor/ui/SimpleVirtualJoystick.as
+++ krew-framework/krewfw/builtin_actor/ui/SimpleVirtualJoystick.as
@@ -57,12 +57,13 @@
                 _setCenterPivot(defaultStick);
                 addChild(defaultHolder);
                 addChild(defaultStick);
+                _stickImage = defaultStick;
             } else {
                 addImage(holderImage);
                 addImage(stickImage);
+                _stickImage = stickImage;
             }

-            _stickImage = stickImage;

             super.addTouchMarginNode(touchSize, touchSize);
             addEventListener(TouchEvent.TOUCH, _onTouch);


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1251868 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/BubbleSeriesAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/BubbleSeriesAutomationImpl.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////

 package mx.automation.delegates.charts
 {


Refactored state classes

Refactored state classes

git-svn-id: 27326a786375daad9d33dc990c6f272e4c8f567c@937 fda5f131-174c-0410-8613-e0905860106b

--- org.openwms/trunk/source/org.openwms.common.domain.as/src/main/flex/org/openwms/common/domain/TransportUnitType.as
+++ org.openwms/trunk/source/org.openwms.common.domain.as/src/main/flex/org/openwms/common/domain/TransportUnitType.as
@@ -38,7 +38,7 @@
             }
     	}

-        public function toString()
+        public function toString():String
         {
             return this._type;
         }


Fixed small cursor issues

Fixed small cursor issues

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -717,7 +717,7 @@
 			undoButton.setAlpha(undoAlpha);
 			redoButton.setAlpha(undoAlpha);

-			deleteHint.exists = !currentWire && !currentBloc && !currentModule && !selectionArea && (findMousedModule() || findMousedWire());
+			deleteHint.exists = !currentWire && !currentBloc && !currentModule && !selectionArea && !runningDisplayTest && (findMousedModule() || findMousedWire());

 			if (loadButton) {
 				var successSave:String = findSuccessSave();
@@ -764,7 +764,7 @@
 		}

 		private function getCursor():Cursor {
-			if (listOpen != LIST_NONE || time.moment || U.buttonManager.moused)
+			if (listOpen != LIST_NONE || runningDisplayTest || U.buttonManager.moused)
 				return null;

 			if (currentWire)


Sysclock period save/load

Sysclock period save/load

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -1022,6 +1022,9 @@
 			if (!wiresExist)
 				saveString += U.SAVE_DELIM;

+			if (level.delay)
+				saveString += time.clockPeriod + U.SAVE_DELIM;
+
 			return saveString;
 		}

@@ -1059,6 +1062,12 @@
 					for each (var moduleString:String in moduleStrings.split(U.SAVE_DELIM))
 						addModule(Module.fromString(moduleString), false);

+				var miscStringsString:String = saveArray[2];
+				if (miscStringsString.length) {
+					var miscStrings:Array = miscStringsString.split(U.SAVE_DELIM);
+					if (level.delay)
+						time.clockPeriod = int(miscStrings[0]);
+				}

 				savedString = saveString;
 			}


Fixed bug in getNiceNumbersInRange that produced numbers like
0.6000000000000001 and was causing auto zoom bugs.

Change-Id: I8cc10239230dbff50575b676c2c83cb7baea5ebb

--- WeaveCore/src/weave/compiler/StandardLib.as
+++ WeaveCore/src/weave/compiler/StandardLib.as
@@ -401,7 +401,7 @@

 			for(x = graphmin; x < graphmax + 0.5*d; x += d)
 			{
-				values[i++] = x;
+				values[i++] = roundSignificant(x); // this fixes values like x = 0.6000000000000001 that may occur from x += d
 			}

 			return values;


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1248438 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/advancedgrids/src/mx/collections/HierarchicalData.as
+++ frameworks/projects/advancedgrids/src/mx/collections/HierarchicalData.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 Adobe Systems Incorporated
-//  All Rights Reserved.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
 //
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 17054
Author:   cframpto@adobe.com
Date:     2010-07-24T12:50:41.482333Z

Log Message:
-----------
PARB changes for DataGrid selection from signoff review

removed methods from DG
allSelectedCells()
allSelectedIndices()

these read-only properties have been added to DataGrid:
selectedCell
selectedCells
selectedIndex
selectedIndices
selectedItem
selectedItems
selectionLength

CellRegion counts changed from uint to int.

setSelectedIndices signature changed from Vector.<int> to startRowIndex, endRowIndex.

Peter noticed there were issues with the ASDoc for the new read-only properties in Grid - some were missing and some where in the methods section.  On Monday, after the ASdoc is built for this batch of changes I will investigate if it still looks wrong.

QE notes: API changes so expect some test breakage
Doc notes:
Bugs:
Reviewer: Hans
Tests run: none
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/CellRegion.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Tree.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridContainerBase.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1281351 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/gridClasses/CellRegion.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/CellRegion.as
@@ -51,7 +51,7 @@
      *  @productversion Flex 4.5
      */
     public function CellRegion(rowIndex:int = -1, columnIndex:int = -1,
-                               rowCount:uint = 0, columnCount:uint = 0)
+                               rowCount:int = 0, columnCount:int = 0)
     {
         super();

@@ -72,12 +72,12 @@
     //  columnCount
     //----------------------------------

-    private var _columnCount:uint;
-
-    /**
-     *  @private
-     */
-    public function get columnCount():uint
+    private var _columnCount:int;
+
+    /**
+     *  @private
+     */
+    public function get columnCount():int
     {
         return _columnCount;
     }
@@ -92,7 +92,7 @@
      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
      */
-    public function set columnCount(value:uint):void
+    public function set columnCount(value:int):void
     {
         _columnCount = value;
     }
@@ -131,12 +131,12 @@
     //  rowCount
     //----------------------------------

-    private var _rowCount:uint;
-
-    /**
-     *  @private
-     */
-    public function get rowCount():uint
+    private var _rowCount:int;
+
+    /**
+     *  @private
+     */
+    public function get rowCount():int
     {
         return _rowCount;
     }
@@ -151,7 +151,7 @@
      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
      */
-    public function set rowCount(value:uint):void
+    public function set rowCount(value:int):void
     {
         _rowCount = value;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17489
Author:   hmuller@adobe.com
Date:     2010-08-26T17:10:00.385464Z

Log Message:
-----------
Prevent the old layoutBoundsWidth width of recycled typical item renderers from affecting their computed bounds.

In Grid/generateColumns(), pass the same mysterious exclusion list to getClassInfo() as mx:DataGrid/generateCols(): ObjectUtil.getClassInfo(item, ["uid", "mx_internal_uid"])

QE notes:
Doc notes:
Bugs: SDK-27610, 27588
Reviewer: Darrel
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1281649 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -21,6 +21,7 @@
 import mx.core.IFactory;
 import mx.core.IInvalidating;
 import mx.core.ILayoutElement;
+import mx.core.IUIComponent;
 import mx.core.IVisualElement;
 import mx.core.IVisualElementContainer;
 import mx.core.UIComponent;
@@ -446,7 +447,20 @@
 		grid.itemRendererGroup.addElement(renderer);

 		initializeItemRenderer(renderer, 0 /* rowIndex */, columnIndex, grid.typicalItem, false);
-        layoutItemRenderer(renderer, 0, 0, column.width, NaN);
+
+        // If the column's width isn't specified, then use the renderer's explicit
+        // width, if any.   If that isn't specified, then use 4096, to avoid wrapping.
+
+        var columnWidth:Number = column.width;
+        if (isNaN(columnWidth))
+        {
+            const rendererUIC:IUIComponent = renderer as IUIComponent;
+            columnWidth = (rendererUIC) ? rendererUIC.explicitWidth : NaN;
+        }
+        if (isNaN(columnWidth))
+            columnWidth = 4096;
+
+        layoutItemRenderer(renderer, 0, 0, columnWidth, NaN);

 		grid.itemRendererGroup.removeElement(renderer);
 		return renderer;


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1252283 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkScrollBarBaseAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkScrollBarBaseAutomationImpl.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Code clean

Code clean

--- collect-client/src/main/flex/org/openforis/collect/presenter/CollectJobMonitor.as
+++ collect-client/src/main/flex/org/openforis/collect/presenter/CollectJobMonitor.as
@@ -1,5 +1,4 @@
 package org.openforis.collect.presenter {
-	import flash.events.EventDispatcher;
 	import flash.events.TimerEvent;
 	import flash.utils.Timer;

@@ -10,10 +9,7 @@
 	import org.openforis.collect.client.ClientFactory;
 	import org.openforis.collect.concurrency.CollectJobStatusPopUp;
 	import org.openforis.collect.event.CollectJobEvent;
-	import org.openforis.collect.i18n.Message;
-	import org.openforis.collect.remoting.service.concurrency.proxy.ApplicationLockingJobProxy;
 	import org.openforis.concurrency.proxy.JobProxy;
-	import org.openforis.concurrency.proxy.JobProxy$Status;

 	/**
 	 * @author S. Ricci
@@ -76,23 +72,15 @@
 				loadJob(_job.id, function():void {
 					onJobLoaded();
 				});
-/*			} else if (_job is ApplicationLockingJobProxy) {
-				loadApplicationJob(function():void {
-					onComplete();
-				});
-			} else if (Application.activeSurvey != null) {
-				loadSurveyJob(function():void {
-					onComplete();
-				});
-*/			}
+			}

 			function onJobLoaded():void {
 				var jobChanged:Boolean = _job != null && (oldJob == null || oldJob.id != _job.id);
 				var jobStatusChanged:Boolean = _job != null && oldJob != null && oldJob.status != _job.status;
-
+				/*
 				trace("job loaded: " + (_job == null ? null : _job.id) + " - status: " + (_job == null ? null: _job.status)
 					+ " - changed: " + jobChanged + " - status changed: " + jobStatusChanged);
-
+				*/
 				if (_job != null && (_job.running || jobChanged || jobStatusChanged)) {
 					if (_job.running) {
 						if (CollectJobStatusPopUp.popUpOpen) {
@@ -139,7 +127,7 @@

 		private function dispatchJobUpdateEvent():void {
 			if (_job != null) {
-				trace("dispatch job update event - job status: " + _job.status);
+				//trace("dispatch job update event - job status: " + _job.status);

 				eventDispatcher.dispatchEvent(new CollectJobEvent(CollectJobEvent.COLLECT_JOB_STATUS_UPDATE, _job));
 				if (_job.completed || _job.aborted || _job.failed) {


fixed return value with explicit int cast

git-svn-id: d565a5fbffec933846bf643895bf9c245569575b@2188 59b500cc-1b3d-0410-9834-0bbf25fbcc57

--- actionscript/core/src/com/google/zxing/common/flexdatatypes/HashTable.as
+++ actionscript/core/src/com/google/zxing/common/flexdatatypes/HashTable.as
@@ -20,7 +20,7 @@
 			{
 				if (this._arr[i][0] == key)
 				{
-					return i;
+					return (i as int);
 				}
 			}
 			return undefined;


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1251886 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/HLOCSeriesBaseAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/HLOCSeriesBaseAutomationImpl.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 Adobe Systems Incorporated
-//  All Rights Reserved.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
 //
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 7203
Author:   gruehle@adobe.com
Date:     2009-05-21T23:22:37.531397Z

Log Message:
-----------
Made more skin parts optional:

Panel: titleField
Scroller: horizontalScrollBar, verticalScrollBar

Bugs: SDK-20213
QA Notes: Test should be added to make sure the components function correctly with the parts missing
Doc Notes: None
Reviewer: Hans

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Panel.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1279800 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/Panel.as
+++ frameworks/projects/spark/src/spark/components/Panel.as
@@ -79,7 +79,7 @@
     //  titleField
     //----------------------------------

-    [SkinPart(required="true")]
+    [SkinPart(required="false")]

     /**
      *  The skin part that defines the appearance of the


Transferred from the Adobe Open Source Subversion Repository

Revision: 5092
Author:   gruehle@adobe.com
Date:     2009-02-26T20:31:11.499539Z

Log Message:
-----------
Spark skins for Halo components. WARNING: The appearance of ALL applications is affected by this checkin. If you want to go back to the old skins, there is a new Halo theme (in frameworks/themes/Halo) that can be used to go back to the Flex 3 appearance.

This checkin introduces a new swc - sparkskins.swc. This swc contains the spark skins for the Halo components. (these skins depend on FXG, which means they cannot live in frameworks.swc).

This checkin also introduces a new theme - Halo. This is the Flex 3 theme, packaged for easy consumption.

Known issues:
* DMV and AIR components are not reskinned yet
* Editable ComboBox skin is not final (left edge of button is wrong)
* PopUpButton/PopUpMenuButton does not differentiate over/down from popUpOver/popUpDown.
* Indeterminate progress bar is not final
* ComboBox/Menu drop shadows are incorrect (missing, actually...)
* Spark styles are mostly functional, but not entirely.
* Metadata for spark styles has not been added to the Halo components yet
* Focus drawing is off for many components
* Setting compatibilityVersion to 3.0.0 is not yet correctly loading the Halo skins (using 2.0.1 works)

There are some slight differences in appearance between some Halo and Gumbo components:
* Scroll thumb minimum size is smaller in Halo
* Height of text input is slightly different
* Slider data tips look different (this may be changing...)
* When using the halo theme and changing themeColor, you must also set rollOverColor and selectionColor

This checkin also fixes many bugs related to text styles in Gumbo components:
SDK-19476 - ID selectors don't match ids that are for a TextBox in a spark skins
SDK-18533 - color style doesn't work when set on FxList
SDK-18455 - Setting 'color' on a global selector does not affect Spark components
SDK-18343 - Spark components do not inherit some styles from their parent containers
(and possibly several others)

Modified Paths:
--------------
128 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1288131 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/sparkskins/src/SparkSkinsClasses.as
+++ frameworks/projects/sparkskins/src/SparkSkinsClasses.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package
+{
+
+/**
+ *  @private
+ *  This class is used to link additional classes into framework.swc
+ *  beyond those that are found by dependecy analysis starting
+ *  from the classes specified in manifest.xml.
+ *  For example, Button does not have a reference to ButtonSkin,
+ *  but ButtonSkin needs to be in framework.swc along with Button.
+ */
+internal class SparkSkinsClasses
+{
+	import mx.skins.spark.AccordionHeaderSkin; AccordionHeaderSkin;
+	import mx.skins.spark.BorderSkin; BorderSkin;
+	import mx.skins.spark.ButtonSkin; ButtonSkin;
+	import mx.skins.spark.ButtonBarFirstButtonSkin; ButtonBarFirstButtonSkin;
+	import mx.skins.spark.ButtonBarLastButtonSkin; ButtonBarLastButtonSkin;
+	import mx.skins.spark.ButtonBarMiddleButtonSkin; ButtonBarMiddleButtonSkin;
+	import mx.skins.spark.CheckBoxSkin; CheckBoxSkin;
+	import mx.skins.spark.ColorPickerSkin; ColorPickerSkin;
+	import mx.skins.spark.ComboBoxSkin; ComboBoxSkin;
+	import mx.skins.spark.DataGridHeaderBackgroundSkin; DataGridHeaderBackgroundSkin;
+	import mx.skins.spark.DataGridHeaderSeparatorSkin; DataGridHeaderSeparatorSkin;
+	import mx.skins.spark.DateChooserNextMonthSkin; DateChooserNextMonthSkin;
+	import mx.skins.spark.DateChooserNextYearSkin; DateChooserNextYearSkin;
+	import mx.skins.spark.DateChooserPrevMonthSkin; DateChooserPrevMonthSkin;
+	import mx.skins.spark.DateChooserPrevYearSkin; DateChooserPrevYearSkin;
+	import mx.skins.spark.DateChooserRollOverIndicatorSkin; DateChooserRollOverIndicatorSkin;
+	import mx.skins.spark.DateChooserSelectionIndicatorSkin; DateChooserSelectionIndicatorSkin;
+	import mx.skins.spark.DateChooserTodayIndicatorSkin; DateChooserTodayIndicatorSkin;
+	import mx.skins.spark.LinkButtonSkin; LinkButtonSkin;
+	import mx.skins.spark.MenuItemSkin; MenuItemSkin;
+	import mx.skins.spark.MenuSeparatorSkin; MenuSeparatorSkin;
+	import mx.skins.spark.PanelBorderSkin; PanelBorderSkin;
+	import mx.skins.spark.PopUpButtonSkin; PopUpButtonSkin;
+	import mx.skins.spark.ProgressBarSkin; ProgressBarSkin;
+	import mx.skins.spark.ProgressBarTrackSkin; ProgressBarTrackSkin;
+	import mx.skins.spark.RadioButtonSkin; RadioButtonSkin;
+	import mx.skins.spark.ScrollBarDownButtonSkin; ScrollBarDownButtonSkin;
+	import mx.skins.spark.ScrollBarThumbSkin; ScrollBarThumbSkin;
+	import mx.skins.spark.ScrollBarTrackSkin; ScrollBarTrackSkin;
+	import mx.skins.spark.ScrollBarUpButtonSkin; ScrollBarUpButtonSkin;
+	import mx.skins.spark.SliderThumbSkin; SliderThumbSkin;
+	import mx.skins.spark.SliderTrackSkin; SliderTrackSkin;
+	import mx.skins.spark.StepperDecrButtonSkin; StepperDecrButtonSkin;
+	import mx.skins.spark.StepperIncrButtonSkin; StepperIncrButtonSkin;
+	import mx.skins.spark.TabSkin; TabSkin;
+	import mx.skins.spark.TextInputBorderSkin; TextInputBorderSkin;
+	// Maintain alphabetical order
+}
+
+}
+


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1290462 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/advancedgrids/src/mx/events/AdvancedDataGridEvent.as
+++ frameworks/projects/advancedgrids/src/mx/events/AdvancedDataGridEvent.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////

 package mx.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8192
Author:   dloverin@adobe.com
Date:     2009-06-24T19:37:55.466313Z

Log Message:
-----------
Fix resizing a window with the gripper.

WindowedApplication.as, Window.as
After the click on the gripper is detected and the resized is started just return. The code was falling into the hit testing for the application border.

QE Notes: none.
Doc Notes: none.
Bugs: SDK-21631
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1250573 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -2370,6 +2370,7 @@
         {
             startResize(NativeWindowResize.BOTTOM_RIGHT);
             event.stopPropagation();
+            return;
         }

         if (systemManager.stage.nativeWindow.systemChrome != "none")


Transferred from the Adobe Open Source Subversion Repository

Revision: 8945
Author:   clucier@adobe.com
Date:     2009-07-30T23:36:09.321240Z

Log Message:
-----------
Fix layout update issue with dynamic change of maxWidth or maxHeight in WindowedApplication.

QE notes: None
Doc notes: None
Bugs: SDK-22200
Reviewer: Darrell
Tests run: Cyclone to QA
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1250581 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -1585,6 +1585,7 @@
             var newMaxWidth:Number = maxWidthChanged ? _maxWidth + chromeWidth() : nativeWindow.maxSize.x;
             var newMaxHeight:Number = maxHeightChanged ? _maxHeight + chromeHeight() : nativeWindow.maxSize.y;

+            windowBoundsChanged = true;
             nativeWindow.maxSize = new Point(newMaxWidth, newMaxHeight);

             if (maxWidthChanged)
@@ -1601,6 +1602,7 @@
                     height = maxHeight;
                 dispatchEvent(new Event("maxHeightChanged"));
             }
+
         }

         if (boundsChanged)


FLEX-34053 - MaskedTextInput - fix a bug introduced in latest commit on insertion near separator, remove unused mx_internal namespace, and format code

--- frameworks/projects/experimental/src/spark/components/MaskedTextInput.as
+++ frameworks/projects/experimental/src/spark/components/MaskedTextInput.as
@@ -27,14 +27,12 @@
     import flashx.textLayout.operations.InsertTextOperation;
     import flashx.textLayout.tlf_internal;

-    import mx.core.mx_internal;
     import mx.utils.StringUtil;

     import spark.components.RichEditableText;
     import spark.components.TextInput;
     import spark.events.TextOperationEvent;

-    use namespace mx_internal;
     use namespace tlf_internal;

     /**
@@ -378,7 +376,7 @@
                 if (insertOp.deleteSelectionState != null && !insertOp.deleteSelectionState.tlf_internal::selectionManagerOperationState) {
                     //OVERRIDING INSERT
                     if (isSeparator(ac)) {
-                        outputText = super.text.substring(0, insertOp.originalSelectionState.anchorPosition + 1) + insertOp.text + super.text.substring(insertOp.originalSelectionState.activePosition + 2);
+                        outputText = super.text.substring(0, insertOp.originalSelectionState.anchorPosition + 1) + insertOp.text + super.text.substring(insertOp.originalSelectionState.activePosition + 1);
                     } else {
                         outputText = super.text.substring(0, insertOp.originalSelectionState.anchorPosition) + insertOp.text + super.text.substring(insertOp.originalSelectionState.activePosition);
                     }
@@ -448,8 +446,7 @@
                 an = ac = selectionActivePosition - offset;
             }
             //copy
-            else if(event.operation is CopyOperation)
-            {
+            else if (event.operation is CopyOperation) {
                 return; // avoid to remove all text on copy operation
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1258547 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/binding/RepeaterComponentWatcher.as
+++ frameworks/projects/framework/src/mx/binding/RepeaterComponentWatcher.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2006-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////

 package mx.binding
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 1062
Author:   clucier@adobe.com
Date:     2008-04-01T23:27:42.508970Z

Log Message:
-----------
Adding support to DataGridColumn for multiple class names.

Bugs: SDK-15124
Reviewer: Glenn Ruehle
QA: Yes

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1268719 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
@@ -1272,12 +1272,12 @@
         {
             if (styleName is String)
             {
-                styleName =
-                    StyleManager.getStyleDeclaration("." + styleName);
+                chain = addStylesToProtoChain(String(styleName), chain, target);
             }
-
-            if (styleName is CSSStyleDeclaration)
+            else if (styleName is CSSStyleDeclaration)
+            {
                 chain = styleName.addStyleToProtoChain(chain, target);
+            }
         }

         chain = super.addStyleToProtoChain(chain, target);
@@ -1295,12 +1295,12 @@
             {
                 if (headerStyleName is String)
                 {
-                    headerStyleName =
-                        StyleManager.getStyleDeclaration("." + headerStyleName);
+                    chain = addStylesToProtoChain(String(headerStyleName), chain, target);
                 }
-
-                if (headerStyleName is CSSStyleDeclaration)
+                else if (headerStyleName is CSSStyleDeclaration)
+                {
                     chain = headerStyleName.addStyleToProtoChain(chain, target);
+                }
             }

             headerStyleName = getStyle("headerStyleName");
@@ -1308,12 +1308,12 @@
             {
                 if (headerStyleName is String)
                 {
-                    headerStyleName =
-                        StyleManager.getStyleDeclaration("." + headerStyleName);
+                    chain = addStylesToProtoChain(String(headerStyleName), chain, target);
                 }
-
-                if (headerStyleName is CSSStyleDeclaration)
+                else if (headerStyleName is CSSStyleDeclaration)
+                {
                     chain = headerStyleName.addStyleToProtoChain(chain, target);
+                }
             }
         }

@@ -1638,6 +1638,26 @@

     /**
      *  @private
+     */
+    private function addStylesToProtoChain(styles:String, chain:Object, target:DisplayObject):Object
+    {
+        var styleNames:Array = styles.split(/\s+/);
+        for (var c:int=0; c < styleNames.length; c++)
+        {
+            if (styleNames[c].length)
+            {
+                var declaration:CSSStyleDeclaration =
+                    StyleManager.getStyleDeclaration("." + styleNames[c]);
+
+                if (declaration)
+                    chain = declaration.addStyleToProtoChain(chain, target);
+            }
+        }
+        return chain;
+    }
+
+    /**
+     *  @private
      *  A hash table of objects used to calculate sizes
      */
     mx_internal var measuringObjects:Dictionary;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18136
Author:   dloverin@adobe.com
Date:     2010-10-12T18:19:52.551325Z

Log Message:
-----------
Change the DataGrid caret visibility rules.

The DataGrid caret is only visible when the DataGrid has focus and the selectionMode is not "none".

QE notes: None.
Doc notes: None.
Bugs: None.
Reviewer: Hans
Tests run: checkintests, cyclone server
Is noteworthy for integration: No.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1281668 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -1584,9 +1584,9 @@
         const factory:IFactory = grid.caretIndicator;
         caretIndicator = layoutIndicator(layer, factory, caretIndicator, rowIndex, colIndex);

-        // TODO (dloverin): enable to code to show/hide caret based on the showCaret property.
-//        if (caretIndicator)
-//            caretIndicator.visible = _showCaret;
+        // Show/hide caret based on the showCaret property.
+        if (caretIndicator)
+            caretIndicator.visible = _showCaret;
     }

     //--------------------------------------------------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 18139
Author:   hmuller@adobe.com
Date:     2010-10-12T19:02:33.052295Z

Log Message:
-----------
Data,Grid variableRowHeight is now false by default.

The DefaultGridItemRenderer and UITextFieldItemRenderer classes now configure their wordWrap property to match variableRowHeight, unless wordWrap is explicitly specified.

Fixed layoutItemRenderers() which had never (!) called the prepare()/discard() IGridItemRenderer methods.

Fixed GridDimensions/getTypicalContentHeight() - removed dependency on variableRowHeight.

QE notes: This commit's cyclone failures have been vetted
Doc notes:
Bugs: SDK-28179
Reviewer: Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridDimensions.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1281669 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -886,6 +886,8 @@

         const newVisibleRowIndices:Vector.<int> = new Vector.<int>();
         const newVisibleItemRenderers:Vector.<IGridItemRenderer> = new Vector.<IGridItemRenderer>();
+        const allocatedItemRenderers:Vector.<IGridItemRenderer> = new Vector.<IGridItemRenderer>();
+        var createdItemRenderers:Vector.<IGridItemRenderer> = null;

         var cellX:Number = startCellX;
         var cellY:Number = startCellY;
@@ -904,7 +906,19 @@
                     var dataItem:Object = getDataProviderItem(rowIndex);
                     column = getGridColumn(colIndex);
                     var factory:IFactory = itemToRenderer(column, dataItem);
-                    renderer = allocateGridElement(factory) as IGridItemRenderer;
+                    renderer = allocateGridElement(factory) as IGridItemRenderer;
+
+                    // Track which item renderers were created (uncommon) or recycled
+                    // for the sake of the IGridItemRenderer prepare() method.
+
+                    if (createdGridElement)
+                    {
+                        if (!createdItemRenderers)
+                            createdItemRenderers = new Vector.<IGridItemRenderer>();
+                        createdItemRenderers.push(renderer);
+                    }
+                    else
+                        allocatedItemRenderers.push(renderer);
                 }

                 rendererLayer.addGridElement(renderer);
@@ -952,11 +966,26 @@
             else
                 availableHeight -= rowHeight + rowGap;
         }
-
+
+        // Run the prepare() method for renderers created or recycled for this pass
+
+        if (createdItemRenderers)
+        {
+            for each (var createdRenderer:IGridItemRenderer in createdItemRenderers)
+                createdRenderer.prepare(false);
+        }
+
+        for each (var allocatedRenderer:IGridItemRenderer in allocatedItemRenderers)
+            allocatedRenderer.prepare(true);
+
         // Free renderers that aren't in use

         for each (var oldRenderer:IGridItemRenderer in visibleItemRenderers)
+        {
             freeItemRenderer(oldRenderer);
+            if (oldRenderer)
+                oldRenderer.discard(true);  // TBD(hmuller): need a scheme for shrinking the free-list
+        }

         // Update visibleItemRenderersBounds

@@ -1770,10 +1799,18 @@
     //
     //  Grid Elements
     //
-    //--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Let the allocateGridElement() caller know if the returned element was
+     *  created or recycled.
+     */
+    private var createdGridElement:Boolean = false;

     private function createGridElement(factory:IFactory):IVisualElement
     {
+        createdGridElement = true;
         const element:IVisualElement = factory.newInstance() as IVisualElement;
         elementToFactoryMap[element] = factory;
         return element;
@@ -1786,6 +1823,7 @@
      */
     private function allocateGridElement(factory:IFactory):IVisualElement
     {
+        createdGridElement = false;
         const elements:Vector.<IVisualElement> = freeElementMap[factory] as Vector.<IVisualElement>;
         if (elements)
         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17703
Author:   dthakkar@adobe.com
Date:     2010-09-14T21:06:11.351066Z

Log Message:
-----------
Added errorText property for spark formatters and included some bug fixes.

QE notes: This changelist has some behavior changes for spark formatters and will cause some failures to existing spark formatter mustell test cases. Globalization QE team knows about this and will update test cases after this submission.
Doc notes:
Bugs: SDK-27420,SDK-27449,SDK-26939,SDK-27240,SDK-27340,SDK-27341,SDK-26937,SDK-27038,SDK-26969,SDK-26970,SDK-26971,SDK-27036,SDK-27491,SDK-27037,SDK-26968,SDK-27450
Reviewer: Gordon, Craig, Dipti
Tests run: Checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/NumberFormatterTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/CurrencyFormatterTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/Formatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/NumberFormatterTests.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/DateTimeFormatterTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/CurrencyFormatterTests.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/DateTimeFormatterTests.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/IFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1284886 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as
+++ frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as
@@ -14,6 +14,10 @@

 import flash.globalization.LastOperationStatus;

+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
 /**
  *  The LastOperationStatus class enumerates constant values that represent the
  *  status of the most recent globalization service operation.
@@ -354,5 +358,29 @@
      *  @productversion Flex 4.5
      */
     public static const LOCALE_UNDEFINED_ERROR:String = "localeUndefinedError";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+    *  @private
+    *  Check if given lastOperationStatus is a fatal error.
+    *
+    *  A fatal error means errors other than no-error and warnings.
+    */
+    mx_internal static function isFatalError(lastOperationStatus:String):Boolean
+    {
+        switch (lastOperationStatus)
+        {
+            case NO_ERROR:
+            case USING_FALLBACK_WARNING:
+            case USING_DEFAULT_WARNING:
+                return false;
+        }
+        return true;
+    }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1269157 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/controls/videoClasses/NCManager.as
+++ frameworks/projects/mx/src/mx/controls/videoClasses/NCManager.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
 //
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 4600
Author:   jszeto@adobe.com
Date:     2009-01-20T21:11:33.133710Z

Log Message:
-----------
Flex SDK - Move style metadata from base class down to component classes

Previously, all spark and text styles were defined on FxComponent even though not every component supports all of those styles. So I have moved each style to the top-most base class where the style will apply to all descendant classes of that base class.

This is the set of styles that were added to the various classes:

baseColor
color
focusColor
symbolColor
selectionColor
contentBackgroundColor
rollOverColor
alternatingItemColors
basic text styles
advanced text styles

Here are some details about the implementation:
- baseColor was added to FxComponent because every component and container supports it
- FxContainer and GroupBase are containers, so their children can potentially support any of the styles. Thus the container classes support all of the styles indirectly.
- FxDataContainer doesn't support all of the styles because its subclasses (FxButtonBar, FxList) don't support all styles.
- FxList supports selectionColor, but not inactiveSelectionColor or unfocusedSelectionColor. All other components that support selectionColor, support the other two styles, and thus include styles/metadata/SelectionFormatTextStyles.as
- GroupBase contains the style declarations that have the full ASDoc. All other declarations use the @copy keyword to reference the asdoc from GroupBase.

QE Notes: Update tests to remove references to styles that are no longer allowed on various components/FxButton.as
Doc Notes: Write the ASDoc comments for the style declarations in GroupBase
Bugs: n/a
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1279740 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -19,8 +19,21 @@
 import mx.events.FlexEvent;
 import mx.managers.IFocusManagerComponent;

+include "../styles/metadata/AdvancedCharacterFormatTextStyles.as"
+include "../styles/metadata/AdvancedContainerFormatTextStyles.as"
+include "../styles/metadata/AdvancedParagraphFormatTextStyles.as"
+include "../styles/metadata/BasicCharacterFormatTextStyles.as"
+include "../styles/metadata/BasicContainerFormatTextStyles.as"
+include "../styles/metadata/BasicParagraphFormatTextStyles.as"
+include "../styles/metadata/SelectionFormatTextStyles.as"
+
+/**
+ *  @copy mx.components.baseClasses.GroupBase#contentBackgroundColor
+ */
+[Style(name="contentBackgroundColor", type="uint", format="Color", inherit="yes")]
+
+
 [IconFile("FxNumericStepper.png")]
-
 /**
  *  The FxNumericStepper control lets you select
  *  a number from an ordered set.


fix CameraController.localToWorldChangedHandler() to unlock worldToScreen (and worldToView) after the frustum has been updated in order to avoid 1-frame late frustum culling bug

--- src/aerys/minko/scene/controller/camera/CameraController.as
+++ src/aerys/minko/scene/controller/camera/CameraController.as
@@ -129,17 +129,21 @@
 			localToWorld.deltaTransformVector(Vector4.Z_AXIS, cameraData.direction);
 			localToWorld.transformVector(Vector4.ZERO, cameraData.position);

-			worldToView.lock()
+            worldToView.lock();
+            worldToScreen.lock();
+
+			worldToView
 				.copyFrom(localToWorld)
 				.invert()
-				.unlock();
-
-			worldToScreen.lock()
+
+			worldToScreen
 				.copyFrom(worldToView)
 				.append(cameraData.projection)
-				.unlock();

 			cameraData.frustum.updateFromMatrix(worldToScreen);
+
+            worldToView.unlock();
+            worldToScreen.unlock();
 		}

 		private function viewportSizeChanged(bindings 	: DataBindings,


Fixed TransformController localToWorld update

--- src/aerys/minko/scene/controller/TransformController.as
+++ src/aerys/minko/scene/controller/TransformController.as
@@ -5,6 +5,7 @@

 	import aerys.minko.ns.minko_math;
 	import aerys.minko.render.Viewport;
+	import aerys.minko.scene.node.AbstractSceneNode;
 	import aerys.minko.scene.node.Group;
 	import aerys.minko.scene.node.ISceneNode;
 	import aerys.minko.scene.node.Scene;
@@ -40,6 +41,7 @@
 		private var _flags	                : Vector.<uint>;
 		private var _localToWorldTransforms : Vector.<Matrix4x4>;
 		private var _worldToLocalTransforms : Vector.<Matrix4x4>;
+		private var _worldToLocalUpToDate	: Vector.<Boolean>;
 		private var _numChildren			: Vector.<uint>;
 		private var _firstChildId			: Vector.<uint>;
 		private var _parentId				: Vector.<int>;
@@ -253,7 +255,11 @@
 						childWorldToLocal.unlock();
 				}

-				_flags[childId] = childFlags;
+				_flags[childId]					= childFlags;
+				_worldToLocalUpToDate[childId]	= true;
+
+				if (child is Group)
+					setDescendantsAsDirty(child as Group, path);

 				var localToWorldTransformChanged : Signal = child.localToWorldTransformChanged;

@@ -261,6 +267,23 @@
 					localToWorldTransformChanged.execute(child, childLocalToWorld);

 				localToWorld = childLocalToWorld;
+			}
+		}
+
+		private function setDescendantsAsDirty(node : Group, ignoreIDs : Vector.<uint> = null) : void
+		{
+			for (var i : int = 0; i < node.numChildren; ++i)
+			{
+				var child	: ISceneNode	= node.getChildAt(i);
+				var id		: int			= _nodeToId[child];
+
+				if (ignoreIDs.indexOf(id) != -1)
+					continue;
+
+				if (child is Group)
+					setDescendantsAsDirty(child as Group, ignoreIDs);
+
+				_worldToLocalUpToDate[id] = false;
 			}
 		}

@@ -275,7 +298,8 @@
 			{
 				if ((_transforms[tmpNodeId] as Matrix4x4)._hasChanged
 					|| (tmpNodeId != nodeId && _localToWorldTransforms[tmpNodeId]._hasChanged)
-					|| !(_flags[nodeId] & FLAG_INIT_LOCAL_TO_WORLD))
+					|| !(_flags[nodeId] & FLAG_INIT_LOCAL_TO_WORLD)
+					|| !_worldToLocalUpToDate[tmpNodeId])
 					dirtyRoot = tmpNodeId;

 				path[numNodes] = tmpNodeId;
@@ -395,6 +419,7 @@
 			_flags = new <uint>[];
 			_localToWorldTransforms = new <Matrix4x4>[];
 			_worldToLocalTransforms = new <Matrix4x4>[];
+			_worldToLocalUpToDate = new Vector.<Boolean>();
 			_numChildren.length = 0;
 			_firstChildId.length = 0;
 			_idToNode.length = 0;
@@ -412,6 +437,7 @@
 				_nodeToId[node] = nodeId;
 				_idToNode[nodeId] = node;
 				_transforms[nodeId] = node.transform;
+				_worldToLocalUpToDate[nodeId] = false;

 				if (oldNodeId >= 0 && oldNodeId < oldLocalToWorldTransforms.length)
 				{


Allow command handlers to be unregistered.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@5915 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/crowd/chat/client/ChatDirector.as
+++ src/as/com/threerings/crowd/chat/client/ChatDirector.as
@@ -241,15 +241,18 @@
     public function registerCommandHandler (
         msg :MessageBundle, command :String, handler :CommandHandler) :void
     {
-        var key :String = "c." + command;
-        if (msg.exists(key)) {
-            var tokens :Array = msg.get(key).split(/\s+/);
-            for each (var cmd :String in tokens) {
-                _handlers.put(cmd, handler);
-            }
-        } else {
-            // fall back to just using the English command
-            _handlers.put(command, handler);
+        for each (var cmd :String in getCommandAliases(msg, command)) {
+            _handlers.put(cmd, handler);
+        }
+    }
+
+    /**
+     * Unregister a chat command handler.
+     */
+    public function unregisterCommandHandler (msg :MessageBundle, command :String) :void
+    {
+        for each (var cmd :String in getCommandAliases(msg, command)) {
+            _handlers.remove(cmd);
         }
     }

@@ -904,6 +907,18 @@
     }

     /**
+     * Return the translated aliases for the specified command.
+     */
+    protected function getCommandAliases (msg :MessageBundle, cmd :String) :Array /* of String */
+    {
+        var key :String = "c." + cmd;
+        if (msg.exists(key)) {
+            return msg.get(key).split(/\s+/);
+        }
+        return [ cmd ];
+    }
+
+    /**
      * Returns a hashmap containing all command handlers that match the specified command (i.e. the
      * specified command is a prefix of their registered command string).
      */


Transferred from the Adobe Open Source Subversion Repository

Revision: 4600
Author:   jszeto@adobe.com
Date:     2009-01-20T21:11:33.133710Z

Log Message:
-----------
Flex SDK - Move style metadata from base class down to component classes

Previously, all spark and text styles were defined on FxComponent even though not every component supports all of those styles. So I have moved each style to the top-most base class where the style will apply to all descendant classes of that base class.

This is the set of styles that were added to the various classes:

baseColor
color
focusColor
symbolColor
selectionColor
contentBackgroundColor
rollOverColor
alternatingItemColors
basic text styles
advanced text styles

Here are some details about the implementation:
- baseColor was added to FxComponent because every component and container supports it
- FxContainer and GroupBase are containers, so their children can potentially support any of the styles. Thus the container classes support all of the styles indirectly.
- FxDataContainer doesn't support all of the styles because its subclasses (FxButtonBar, FxList) don't support all styles.
- FxList supports selectionColor, but not inactiveSelectionColor or unfocusedSelectionColor. All other components that support selectionColor, support the other two styles, and thus include styles/metadata/SelectionFormatTextStyles.as
- GroupBase contains the style declarations that have the full ASDoc. All other declarations use the @copy keyword to reference the asdoc from GroupBase.

QE Notes: Update tests to remove references to styles that are no longer allowed on various components/FxButton.as
Doc Notes: Write the ASDoc comments for the style declarations in GroupBase
Bugs: n/a
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1282795 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -56,6 +56,25 @@
  *  @eventType mx.events.TextOperationEvent.CHANGE
  */
 [Event(name="change", type="mx.events.TextOperationEvent")]
+
+include "../../styles/metadata/AdvancedCharacterFormatTextStyles.as"
+include "../../styles/metadata/AdvancedContainerFormatTextStyles.as"
+include "../../styles/metadata/AdvancedParagraphFormatTextStyles.as"
+include "../../styles/metadata/BasicCharacterFormatTextStyles.as"
+include "../../styles/metadata/BasicContainerFormatTextStyles.as"
+include "../../styles/metadata/BasicParagraphFormatTextStyles.as"
+include "../../styles/metadata/SelectionFormatTextStyles.as"
+
+/**
+ *  @copy mx.components.baseClasses.GroupBase#contentBackgroundColor
+ */
+[Style(name="contentBackgroundColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  @copy mx.components.baseClasses.GroupBase#focusColor
+ */
+[Style(name="focusColor", type="uint", format="Color", inherit="yes")]
+

 /**
  *  Documentation is not currently available.