- bugfix: Fixed errors in horizontal centering and right alignment for in-flow positioned elements

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@769 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/ui/layoutmanagers/CSSBoxModelLayoutManager.as
+++ src/reprise/ui/layoutmanagers/CSSBoxModelLayoutManager.as
@@ -144,14 +144,14 @@
 						if (child.autoFlags.marginRight)
 						{
 							//center horizontally
-							child.x = Math.round(totalAvailableWidth / 2 -
-								child.outerWidth / 2);
+							child.x = elementStyle.paddingLeft +
+								Math.round(totalAvailableWidth / 2 - child.outerWidth / 2);
 						}
 						else
 						{
 							//align right
-							child.x = totalAvailableWidth - child.outerWidth -
-								childStyle.marginRight - elementStyle.paddingRight;
+							child.x = elementStyle.paddingLeft + totalAvailableWidth -
+								child.outerWidth - childStyle.marginRight;
 						}
 					}
 					else


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@1253149 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.as
+++ frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 12026
Author:   gosmith@adobe.com
Date:     2009-11-20T02:13:33.060081Z

Log Message:
-----------
Added the SELFLAG_ constants from MSAA 1.0 and some new EVENT_ constants from MSAA 2.0 to the new AccConst class.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: None
Tests run: None
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextInputAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccConst.as</path>

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

--- frameworks/projects/framework/src/mx/accessibility/AccConst.as
+++ frameworks/projects/framework/src/mx/accessibility/AccConst.as
@@ -772,14 +772,124 @@

 	/**
 	 *  An MSAA state flag indicating that the object
-	 *  has a pop-up menu (MSAA 2.0).
+	 *  has a pop-up menu. (MSAA 2.0)
 	 */
 	public static const STATE_SYSTEM_HASPOPUP:uint = 0x40000000;

 	/**
 	 *  A bitmask representing all valid MSAA state flags.
 	 */
-	public static const STATE_SYSTEM_VALID:uint = 0x7fffffff;
+	public static const STATE_SYSTEM_VALID:uint = 0x7FFFFFFF;
+
+	//--------------------------------------
+	//  MSAA selection flags
+	//--------------------------------------
+
+	/**
+	 *  A constant representing the absence of any MSAA selection flags.
+	 */
+	public static const SELFLAG_NONE:uint = 0;
+
+	/**
+	 *  An MSAA selection flag that sets the focus to the object
+	 *  and makes it the selection anchor.
+	 *
+	 *
Used by itself, this flag does not alter the selection,
+	 *  and its behavior is similar to moving the focus manually
+	 *  by pressing the arrow keys while holding down the CTRL key
+	 *  in Windows Explorer or in any multiple-selection list box.

+	 *
+	 *
With objects that have the state STATE_SYSTEM_MULTISELECTABLE,
+	 *  SELFLAG_TAKEFOCUS can be combined with the following values:
+	 *

+	 *
SELFLAG_TAKESELECTION

+	 *
SELFLAG_EXTENDSELECTION

+	 *
SELFLAG_ADDSELECTION

+	 *
SELFLAG_REMOVESELECTION

+	 *
SELFLAG_ADDSELECTION | SELFLAG_EXTENDSELECTION

+	 *
SELFLAG_REMOVESELECTION | SELFLAG_EXTENDSELECTION

+	 *

+	 */
+	public static const SELFLAG_TAKEFOCUS:uint = 0x1;
+
+	/**
+	 *  An MSAA selection flag that selects the object
+	 *  and removes the selection from all other objects in the container.
+	 *
+	 *
This flag does not change the focus or the selection anchor
+	 *  unless it is combined with SELFLAG_TAKEFOCUS.
+	 *  The behavior of SELFLAG_TAKESELECTION | SELFLAG_TAKEFOCUS
+	 *  is equivalent to single-clicking an item in Windows Explorer.

+	 *
+	 *
This flag must not be combined with the following flags:
+	 *

+	 *
SELFLAG_ADDSELECTION

+	 *
SELFLAG_REMOVESELECTION

+	 *
SELFLAG_EXTENDSELECTION

+	 *

+	 */
+	public static const SELFLAG_TAKESELECTION:uint = 0x2;
+
+	/**
+	 *  An MSAA selection flag that alters the selection
+	 *  so that all objects between the selection anchor
+	 *  and this object take on the anchor object's selection state.
+	 *
+	 *
That is, if the anchor object is not selected,
+	 *  the objects are removed from the selection;
+	 *  if the anchor object is selected,
+	 *  the selection is extended to include this object
+	 *  and all the objects in between.
+	 *  You can set the selection state by combining this flag with
+	 *  SELFLAG_ADDSELECTION or SELFLAG_REMOVESELECTION.

+	 *
+	 *
This flag does not change the focus or the selection anchor
+	 *  unless it is combined with SELFLAG_TAKEFOCUS.
+	 *  The behavior of SELFLAG_EXTENDSELECTION | SELFLAG_TAKEFOCUS
+	 *  is equivalent to addding an item to a selection manually
+	 *  by holding down the SHIFT key and clicking an unselected object
+	 *  in Windows Explorer.

+	 *
+	 *
This flag may not be combined with SELFLAG_TAKESELECTION.

+	 */
+	public static const SELFLAG_EXTENDSELECTION:uint = 0x4;
+
+	/**
+	 *  An MSAA selection flag that adds the object to the current selection,
+	 *  possibly resulting in a noncontiguous selection.
+	 *
+	 *
This flag does not change the focus or the selection anchor
+	 *  unless it is combined with SELFLAG_TAKEFOCUS.
+	 *  The behavior of SELFLAG_ADDSELECTION | SELFLAG_TAKEFOCUS
+	 *  is equivalent to adding an item to a selection manually
+	 *  by holding down the CTRL key and clicking an unselected object
+	 *  in Windows Explorer.

+	 *
+	 *
This flag may not be combined with SELFLAG_REMOVESELECTION
+	 *  or with SELFLAG_TAKESELECTION.

+	 */
+	public static const SELFLAG_ADDSELECTION:uint = 0x8;
+
+	/**
+	 *  An MSAA selection flag that removes the object from the current
+	 *  selection, possibly resulting in a noncontiguous selection.
+	 *
+	 *
This flag does not change the focus or the selection anchor
+	 *  unless it is combined with SELFLAG_TAKEFOCUS.
+	 *  The behavior of SELFLAG_REMOVESELECTION | SELFLAG_TAKEFOCUS
+	 *  is equivalent to removing an item from a selection manually
+	 *  by holding down the CTRL key while clicking a selected object
+	 *  in Windows Explorer.

+	 *
+	 *
This flag may not be combined with SELFLAG_ADDSELECTION
+	 *  or with SELFLAG_TAKESELECTION.

+	 */
+	public static const SELFLAG_REMOVESELECTION:uint = 0x10;
+
+	/**
+	 *  A bitmask representing all valid MSAA selection flags.
+	 */
+	public static const SELFLAG_VALID:uint = 0x1F;

 	//--------------------------------------
 	//  MSAA system events
@@ -1256,6 +1366,33 @@
 	 *  for their accessible objects.

 	 */
 	public static const EVENT_OBJECT_ACCELERATORCHANGE:uint = 0x8012;
+
+	/**
+	 *  An MSAA event indicating that an object has been invoked;
+	 *  for example, the user has clicked a button. (MSAA 2.0)
+	 */
+	public static const EVENT_OBJECT_INVOKED:uint = 0x8013;
+
+	/**
+	 *  An MSAA event indicating that an object's text selection has changed.
+	 *  (MSAA 2.0)
+	 */
+	public static const EVENT_OBJECT_TEXTSELECTIONCHANGED:uint = 0x8014;
+
+	/**
+	 *  An MSAA event indicating that the scrolling of a window object
+	 *  has ended. (MSAA 2.0)
+	 *
+	 *
Unlike the similar event (EVENT_SYSTEM_SCROLLEND),
+	 *  this event will be associated with the scrolling window itself.
+	 *  There is no difference between horizontal or vertical scrolling.

+	 *
+	 *
This event should be posted whenever scroll action is completed,
+	 *  including when it is scrolled by scroll bars, mouse wheel,
+	 *  or keyboard navigations.

+	 */
+	public static const EVENT_OBJECT_CONTENTSCROLLED:uint = 0x8015;
+
 }

 }


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@1259279 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/core/IDeferredInstance.as
+++ frameworks/projects/framework/src/mx/core/IDeferredInstance.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.core
 {


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@1261041 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/graphics/GradientEntry.as
+++ frameworks/projects/framework/src/mx/graphics/GradientEntry.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.graphics
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6653
Author:   dloverin@adobe.com
Date:     2009-05-05T19:04:34.755120Z

Log Message:
-----------
Modify the use of OrderObject to work around Flash Player bug #232854.

StyleProtoChain:
Use getObjectProperty and setObjectProperty instead of indexing into the OrderedObject.

OrderedObject:
Add getObjectProperty and setObjectProperty.

QE Notes: None.
Doc Notes: None.
Bugs: SDK-18975
Reviewer: Pete
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OrderedObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>

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

--- frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
+++ frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
@@ -753,7 +753,7 @@
     {
         var qualified:Boolean = StyleManager.qualifiedTypeSelectors;
         var typeHierarchy:OrderedObject = getTypeHierarchy(object, qualified);
-        return typeHierarchy[cssType] != null;
+        return typeHierarchy.object_proxy::getObjectProperty(cssType) != null;
     }

     /**
@@ -836,7 +836,7 @@
                     else
                         type = NameUtil.getUnqualifiedClassName(className);

-                    hierarchy[type] = true;
+                    hierarchy.object_proxy::setObjectProperty(type, true);
                     className = getQualifiedSuperclassName(
                         myApplicationDomain.getDefinition(className));
                 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4210
Author:   egreenfi@adobe.com
Date:     2008-12-01T23:35:46.830908Z

Log Message:
-----------
Enabled 3D effects support for Halo list based components.

Added ArrayList to the MXML manifest, with source as defaultProperty, so it can be used from MXML.

Review: Glenn
QA: None.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
@@ -3248,6 +3248,9 @@
     public override function validateDisplayList():void
     {
         // this code is nearly duplicating UIComponent.validateDisplayList();
+
+    	validateTransform();
+
         if (invalidateDisplayListFlag)
         {
             // Check if our parent is the top level system manager


Transferred from the Adobe Open Source Subversion Repository

Revision: 5063
Author:   jvroom@adobe.com
Date:     2009-02-25T00:07:49.407457Z

Log Message:
-----------
Bugs: SDK-14811 - avoid errors when strings are sent to an HTTPService operation
      - Also changed how HTTPMultiService works when argumentNames is not set.  Now this works just
      like HTTPService when called with just one argument.  If you specify more than one argument
      and do not set argument names, an error is thrown.
      - code cleanups: add braces where needed, removed a temp variable
      - do not set contentType metadata since we do not have the complete list of content types
      - fixed problems with HTTPMultiService.contentType and requestFormat not being inherited
        properly.
QE: yes: verify SDK-14811 is fixed - it would be good to have a few more HTTPService test cases:
        * send(String) with contentType = CONTENT_TYPE_FORM
        * send(XML) with contentType = CONTENT_TYPE_FORM (verify it works like in 2.0.1?)
        * send(Object) with contentType = CONTENT_TYPE_FORM where there is one property which is
          an Array.
Reviewers: Pete, Mete
Doc: no
Checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/SerializationFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/http/SerializationFilter.as
+++ frameworks/projects/rpc/src/mx/rpc/http/SerializationFilter.as
@@ -136,9 +136,8 @@
             throw new ArgumentError("HTTPMultiService operation called with " + (argNames == null ? 0 : argNames.length) + " argumentNames and " + params.length + " number of parameters.  When argumentNames is specified, it must match the number of arguments passed to the invocation");

         var obj:Object = new Object();
-        var argumentNames:Array = operation.argumentNames;
-        for (var i:int = 0; i < argumentNames.length; i++)
-            obj[argumentNames[i]] = params[i];
+        for (var i:int = 0; i < argNames.length; i++)
+            obj[argNames[i]] = params[i];

         return obj;
     }


Giving Jenkins a nudge

Giving Jenkins a nudge

--- test/robotlegs/bender/extensions/viewProcessorMap/impl/ViewProcessorMediatorsTest.as
+++ test/robotlegs/bender/extensions/viewProcessorMap/impl/ViewProcessorMediatorsTest.as
@@ -143,7 +143,6 @@
 	}
 }

-
 class ExampleMediator2
 {
 	[Inject]


added try/catch and reportError

added try/catch and reportError

--- WeaveCore/src/weave/core/ExternalSessionStateInterface.as
+++ WeaveCore/src/weave/core/ExternalSessionStateInterface.as
@@ -100,13 +100,22 @@
 		 * @return An object containing the values from the sessioned properties.
 		 */
 		public function getSessionState(objectPath:Array):Object
-		{
-			var object:ILinkableObject = getObject(objectPath);
-			if (object == null)
-				return null;
-			var state:Object = WeaveAPI.SessionManager.getSessionState(object);
-			convertSessionStateToPrimitives(state); // do not allow XML objects to be returned
-			return state;
+		{
+			try
+			{
+				var object:ILinkableObject = getObject(objectPath);
+				if (object == null)
+					return null;
+				var state:Object = WeaveAPI.SessionManager.getSessionState(object);
+				convertSessionStateToPrimitives(state); // do not allow XML objects to be returned
+				return state;
+			}
+			catch (e:Error)
+			{
+				reportError(e);
+				throw e;
+			}
+			return null; // unreachable
 		}
 		/**
 		 * This function modifies a session state, converting any nested XML objects to Strings.


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@1290545 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPHierarchy.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPHierarchy.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.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10828
Author:   jszeto@adobe.com
Date:     2009-10-02T17:41:48.523309Z

Log Message:
-----------
FXG stroke and fill translation fix

http://bugs.adobe.com/jira/browse/SDK-23257 - Gradient translation should occur from 0,0, not the upper left bounds

The current API only passes in the shape's bounds. I have added a new targetOrigin parameter to IFill.begin, IStroke.apply and IStroke.createGraphicsStroke of type Point. It is the origin (0,0) of the shape in the target graphic's coordinate space.

Changed the logic in the gradient stroke and fills. The x and y transform properties are now positioned relative to the origin instead of to the top left corner of the bounds. If no x and y are set, then the default behavior remains the same.

Removed the centering logic in LinearGradientStroke when scaleX was set.

This API change has been approved by PARB.

QE notes: Need to add tests that exercise this logic
Doc notes: Need to document additions to the API
Bugs: SDK-23257
Reviewer: Deepa
Tests run: spark/primitives, gumbo/components
Is noteworthy for integration: Yes, modifications to the API

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/GradientStroke.as
+++ frameworks/projects/framework/src/mx/graphics/GradientStroke.as
@@ -16,6 +16,7 @@
 import flash.display.GraphicsGradientFill;
 import flash.display.GraphicsStroke;
 import flash.display.JointStyle;
+import flash.geom.Point;
 import flash.geom.Rectangle;

 import mx.core.mx_internal;
@@ -438,7 +439,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 4
      */
-    public function apply(g:Graphics, bounds:Rectangle = null):void
+    public function apply(g:Graphics, targetBounds:Rectangle, targetOrigin:Point):void
     {
         // Sub-classes must implement
     }
@@ -447,7 +448,7 @@
     /**
      *  @inheritDoc
      */
-    public function createGraphicsStroke(bounds:Rectangle):GraphicsStroke
+    public function createGraphicsStroke(targetBounds:Rectangle, targetOrigin:Point):GraphicsStroke
     {
         // Construct a new GraphicsStroke object and set all of
         // its properties to match the gradient stroke's


Transferred from the Adobe Open Source Subversion Repository

Revision: 6846
Author:   smgilson@adobe.com
Date:     2009-05-12T15:00:01.869866Z

Log Message:
-----------
ASDoc updated for AIR components

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/FlexChromeSkin.mxml</path>
<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>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/WindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/TitleBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MacTitleBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/GripperSkin.mxml</path>

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -1362,7 +1362,9 @@
      *
On Mac OS X a window with systemChrome
      *  set to "standard"
      *  always has an operating system gripper, so this property is ignored
-     *  in that case.

+     *  in that case.
+     *  On other systems, the gripper button only appears when using
+     *  the Flex Chrome, not the system chrome.

      *
      *  @default true
      *
@@ -1410,6 +1412,10 @@

     /**
      *  If true, the status bar is visible.
+     *
+     *
The status bar only appears when you use Flex chrome or
+     *  when you use the WindowedApplicationSkin class as the skin
+     *  for the WindowedApplication.

      *
      *  @default true
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 5183
Author:   clucier@adobe.com
Date:     2009-03-06T00:54:23.784597Z

Log Message:
-----------
Hopefully addressing build breakage.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/RectangularBorder.as

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

--- frameworks/projects/framework/src/mx/skins/RectangularBorder.as
+++ frameworks/projects/framework/src/mx/skins/RectangularBorder.as
@@ -182,7 +182,7 @@
      */
     public function set backgroundImageBounds(value:Rectangle):void
     {
-        if (_backgroundImageBounds &&_backgroundImageBounds.equals(value))
+        if (_backgroundImageBounds && value && _backgroundImageBounds.equals(value))
             return;

         _backgroundImageBounds = value;


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@1262544 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/styles/IStyleClient.as
+++ frameworks/projects/framework/src/mx/styles/IStyleClient.as
@@ -25,6 +25,11 @@
  *
  *  @see mx.styles.ISimpleStyleClient
  *  @see mx.styles.CSSStyleDeclaration
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IStyleClient extends ISimpleStyleClient
 {
@@ -40,6 +45,11 @@

     /**
      *  The name of the component class.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get className():String;

@@ -49,6 +59,11 @@

     /**
      *  An object containing the inheritable styles for this component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get inheritingStyles():Object;

@@ -63,6 +78,11 @@

     /**
      *  An object containing the noninheritable styles for this component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get nonInheritingStyles():Object;

@@ -80,6 +100,11 @@
      *  object.
      *
      *  @see mx.styles.CSSStyleDeclaration
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get styleDeclaration():CSSStyleDeclaration;

@@ -130,6 +155,11 @@
      *  @param styleProp Name of the style property.
      *
      *  @return Style value.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getStyle(styleProp:String):*;

@@ -144,6 +174,11 @@
      *  @param styleProp Name of the style property.
      *
      *  @param newValue New value for the style.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function setStyle(styleProp:String, newValue:*):void

@@ -154,6 +189,11 @@
      *  undefined.

      *
      *  @param styleProp Name of the style property.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function clearStyle(styleProp:String):void;

@@ -166,6 +206,11 @@
      *  finally, it looks for a UIComponent type selector.

      *
      *  @return Array of CSSStyleDeclaration objects.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getClassStyleDeclarations():Array; // of CSSStyleDeclaration;

@@ -175,6 +220,11 @@
      *  @param styleProp Name of the style property.
      *
      *  @param recursive Whether to propagate the style changes to the children's children.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function notifyStyleChangeInChildren(styleProp:String,
                                          recursive:Boolean):void;
@@ -186,6 +236,11 @@
      *  style caches.
      *
      *  @param recursive Regenerate the proto chains of the children.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function regenerateStyleCache(recursive:Boolean):void;

@@ -193,6 +248,11 @@
      *  Registers the EffectManager as one of the event listeners for each effect event.
      *
      *  @param effects An Array of Strings of effect names.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function registerEffects(effects:Array /* of String */):void
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19717
Author:   aharui@adobe.com
Date:     2011-01-11T23:18:16.083178Z

Log Message:
-----------
MediaQueryParser changes to support DesignView.  Also change from using Capabilities.manufacturere to Capabilities.version

QE notes: Shouldn't require test changes.  Might need new tests for SDK-29056
Doc notes: undocumented class so shouldn't require doc changes
Bugs: SDK-29056, SDK-29038
Reviewer: Glenn
Tests run: checkintests mustella cyclone
Is noteworthy for integration: yes for Design View

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/MediaQueryParser.as</path>

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

--- frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
+++ frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
@@ -1629,8 +1629,14 @@
     public function acceptMediaList(value:String):Boolean
     {
         if (!mqp)
-            mqp = new MediaQueryParser(moduleFactory);
-
+        {
+            mqp = MediaQueryParser.instance;
+            if (!mqp)
+            {
+                mqp = new MediaQueryParser(moduleFactory);
+                MediaQueryParser.instance = mqp;
+            }
+        }
         return mqp.parse(value);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10633
Author:   dloverin@adobe.com
Date:     2009-09-28T13:24:30.559033Z

Log Message:
-----------
Use styleManager instance instead of StyleManager singleton (framework and compiler generated code)

Modified compiler generated style code for the FlexInit class. The style related changes are only available with the -keep option. AST generation is coming later.

Only the framework project is changed here. The other projects are will be changed soon.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex and Paul
Tests run: checkintests, all Mustella tests(no new failures)
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserMonthArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/ProgrammaticSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/textClasses/TextRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressBarSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>

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

--- frameworks/projects/framework/src/mx/styles/IStyleModule.as
+++ frameworks/projects/framework/src/mx/styles/IStyleModule.as
@@ -31,7 +31,25 @@
     //--------------------------------------------------------------------------

     /**
-     * Unloads the style module.
+     *  Creates and sets style declarations from the styles modules into the given
+     *  style manager.
+     *
+     *  @param styleManager The style manager where the style declarations will be
+     *  loaded into. The style declarations will be created relative to the this
+     *  style manager. The unload() function will unload styles from this style
+     *  manager. If null is passed the top-level style manager is used.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4
+     */
+//    FIXME: (dloverin) Need to generate this in AST code before it can be
+//    uncommented.
+//    function setStyleDeclarations(styleManager:IStyleManager2):void;
+
+    /**
+     *  Unloads the style module.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 8385
Author:   smgilson@adobe.com
Date:     2009-07-06T19:38:43.090419Z

Log Message:
-----------
ASDoc updates for Spark layouts and core

QE Notes: None
Doc Notes: None
Bugs: -
checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ISharedDisplayObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/MaskType.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/NavigationUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/DisplayObjectSharingMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/ColumnAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileOrientation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -29,55 +29,79 @@
 import spark.layouts.supportClasses.LinearLayoutVector;

 /**
- *  The HorizontalLayout arranges the layout elements in a horizontal sequence,
+ *  The HorizontalLayout class arranges the layout elements in a horizontal sequence,
  *  left to right, with optional gaps between the elements and optional padding
- *  around the sequence of elements.
+ *  around the elements.
  *
- *
During measure(), the default size of the container is calculated by
+ *
The horizontal position of the elements is determined by arranging them
+ *  in a horizontal sequence, left to right, taking into account the padding
+ *  before the first element and the gaps between the elements.

+ *
+ *
The vertical position of the elements is determined by the layout's
+ *  verticalAlign property.

+ *
+ *
During the execution of the measure() method,
+ *  the default size of the container is calculated by
  *  accumulating the preferred sizes of the elements, including gaps and padding.
- *  When requestedColumnCount is set, only the space for that many elements
- *  will be measured, starting from the first element.

+ *  When the requestedColumnCount property is set to a value other than -1,
+ *  only the space for that many elements
+ *  is measured, starting from the first element.

  *
- *
During updateDisplayList(), the width of each element is calculated
+ *
During the execution of the updateDisplayList() method,
+ *  the width of each element is calculated
  *  according to the following rules, listed in their respective order of
- *  precedence (element's minimum width and maximum width are always respected):
+ *  precedence (element's minimum width and maximum width are always respected):

  *

- *
If variableColumnWidth is false, then set the element's width to the
- *    value of the columnWidth property.

+ *
If variableColumnWidth is false,
+ *    then set the element's width to the
+ *    value of the columnWidth property.

  *
- *
If the element's percentWidth is set, then calculate the element's
+ *
If the element's percentWidth is set, then calculate the element's
  *    width by distributing the available container width between all
- *    elements with percentWidth setting. The available container width
+ *    elements with percentWidth setting.
+ *    The available container width
  *    is equal to the container width minus the gaps, the padding and the
- *    space occupied by the rest of the elements. The element's precentWidth
+ *    space occupied by the rest of the elements. The element's precentWidth
  *    property is ignored when the layout is virtualized.

  *
  *
Set the element's width to its preferred width.

  *

  *
- *  The height of each element is calculated according to the following rules,
- *  listed in their respective order of precedence (element's minium height and
- *  maximum height are always respected):
+ *
The height of each element is calculated according to the following rules,
+ *  listed in their respective order of precedence (element's minimum height and
+ *  maximum height are always respected):

  *

- *
If verticalAlign is "justify" then set the element's height to the
- *    container height.

+ *
If the verticalAlign property is "justify",
+ *   then set the element's height to the container height.

  *
- *
If verticalAlign is "contentJustify" then set the element's height
- *    to the maximum between the container's height and all elements' preferred
- *    height.

+ *
If the verticalAlign property is "contentJustify",
+ *    then set the element's height to the maximum between the container's height
+ *    and all elements' preferred height.

  *
- *
If the element's percentHeight is set, then calculate the element's
- *    height as a percentage of the container's height.

+ *
If the element's percentHeight property is set,
+ *    then calculate the element's height as a percentage of the container's height.

  *
  *
Set the element's height to its preferred height.

  *

  *
- *  The horizontal position of the elements is determined by arranging them
- *  in a horizontal sequence, left to right, taking into account the padding
- *  before the first element and the gaps between the elements.
+ *  @mxml
+ *
The <HorizontalLayout> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

  *
- *  The vertical position of the elements is determined by the layout's
- *  verticalAlign property.

+ *

+ *  <HorizontalLayout
+ *    Properties
+ *    columnWidth="calculated"
+ *    gap="6"
+ *    paddingBottom="0"
+ *    paddingLeft="0"
+ *    paddingRight="0"
+ *    paddingTop="0"
+ *    requestedColumnCount="-1"
+ *    variableColumnWidth="true"
+ *    verticalAlign="top"
+ *  />
+ *

  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -392,16 +416,13 @@
     [Inspectable(category="General")]

     /**
-     *  The measured size of this layout will be wide enough to display
+     *  The measured size of this layout is wide enough to display
      *  the first requestedColumnCount layout elements.
-     *
      *  If requestedColumnCount is -1, then the measured
      *  size will be big enough for all of the layout elements.
      *
-     *  This property implies the layout target's measuredWidth.
-     *
-     *  If the actual size of the target has been explicitly set,
-     *  then this property has no effect.
+     *
If the actual size of the container using this layout has been explicitly set,
+     *  then this property has no effect.

      *
      *  @default -1
      *
@@ -594,18 +615,18 @@
      *  The vertical alignment of layout elements.
      *
      *
If the value is "bottom", "middle",
-     *  or "top" then the container children are aligned relative
+     *  or "top" then the layout elements are aligned relative
      *  to the container's contentHeight property.

      *
      *
If the value is "contentJustify" then the actual
-     *  height of the container children is set to
+     *  height of the layout element is set to
      *  the container's contentHeight property.
-     *  The content height of the container is the height of the largest child.
-     *  If all children are smaller than the height of the container,
-     *  then set the height of all the children to the height of the container.

+     *  The content height of the container is the height of the largest layout element.
+     *  If all layout elements are smaller than the height of the container,
+     *  then set the height of all the layout elements to the height of the container.

      *
      *
If the value is "justify" then the actual height
-     *  of the container children is set to the container's height.

+     *  of the layout elements is set to the container's height.

      *
      *
This property does not affect the layout's measured size.

      *
@@ -690,23 +711,23 @@

     /**
      *  Returns 1.0 if the specified index is completely in view, 0.0 if
-     *  it's not, and a value in between if the index is partially
-     *  within the view.
-     *
-     *  An index is "in view" if the corresponding non-null layout element is
-     *  within the horizontal limits of the layout target's scrollRect
-     *  and included in the layout.
-     *
-     *  If the specified index is partially within the view, the
+     *  it's not, or a value between 0.0 and 1.0 that represents the percentage
+     *  of the if the index that is partially in view.
+     *
+     *
An index is "in view" if the corresponding non-null layout element is
+     *  within the horizontal limits of the container's scrollRect
+     *  and included in the layout.

+     *
+     *
If the specified index is partially within the view, the
      *  returned value is the percentage of the corresponding
-     *  layout element that's visible.
-     *
+     *  layout element that's visible.

+     *
+     *  @param index The index of the column.
+     *
+     *  @return The percentage of the specified element that's in view.
      *  Returns 0.0 if the specified index is invalid or if it corresponds to
-     *  null element, or a ILayoutElement for which includeInLayout is false.
-     *
-     *  @return the percentage of the specified element that's in view.
-     *  @see firstIndexInView
-     *  @see lastIndexInView
+     *  null element, or a ILayoutElement for which
+     *  the includeInLayout property is false.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 6459
Author:   pfarland@adobe.com
Date:     2009-05-01T14:51:21.892049Z

Log Message:
-----------
Integrating latest fxgutils which also fixes SDK-20777.

Restoring FXG TextGraphic attribute validation and overriding createGraphicContext() so that transform attributes are left to programmatic generation so that we don't duplicate them between SWF primitives and ActionScript.

Also adding an advanced command line configuration switch --qualified-type-selectors=true or false to ease migration of legacy applications to Flex 4 so that CSS type selectors can be left unqualified for the case where an application only makes use of halo components. If -compatibility-version=3, this setting will always be false, and type selectors are unqualified.

QE: Yes, please confirm fix to and add a small test case of an MXML 2006 based application that makes use of unqualified type selectors.
Doc: For the migration guide, we may want to document the advanced --qualified-type-selectors switch for folks who do not want to run with -compatibility-version=3 but cannot up all of their type selectors.
Checkintests: Pass
Reviewer: Paul
Bugs:
SDK-20777 - EmptyStackException when <private> is indirectly nested in <private>

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/fills/BitmapFillNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/swf/AbstractFXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/transforms/ColorTransformNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/AbstractFXGNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ShapeHelper.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/GraphicContext.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexTextGraphicNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/FXGException.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/MxmlConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXGSAXScanner.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/TypeHelper.java</path>

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

--- frameworks/projects/framework/src/mx/styles/StyleManager.as
+++ frameworks/projects/framework/src/mx/styles/StyleManager.as
@@ -16,6 +16,8 @@
 import flash.system.ApplicationDomain;
 import flash.system.SecurityDomain;

+import mx.core.FlexVersion;
+import mx.core.mx_internal;
 import mx.core.Singleton;

 /**
@@ -132,6 +134,32 @@
     mx_internal static function set inheritingStyles(value:Object):void
     {
         impl.inheritingStyles = value;
+    }
+
+    /**
+     *  @private
+     */
+    private static var _qualifiedTypeSelectors:Boolean = true;
+
+    /**
+     *  @private
+     *  Qualified type selectors were added in Flex 4 to support styling
+     *  components with the same local name, e.g. 'spark.components.Button'.
+     *  Prior to this type selectors were always unqualified class names  e.g.
+     *  'Button'. To ease migration of Flex 3 application, this property can
+     *  control whether CSS type selectors must be fully qualified class names
+     *  when the compatibility version is 4 or later.
+     */
+    mx_internal static function get qualifiedTypeSelectors():Boolean
+    {
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+            return false;
+        else
+            return _qualifiedTypeSelectors;
+    }
+    mx_internal static function set qualifiedTypeSelectors(value:Boolean):void
+    {
+        _qualifiedTypeSelectors = value;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 3665
Author:   hmuller@adobe.com
Date:     2008-10-15T20:42:18.087020Z

Log Message:
-----------
Fixed 17335, completed Scrollbar viewport property, fixed an FxRange::setValue() problem.

Added a special case for zero-height rows/columns to
Vertical,HorizontalLayout::updateDisplayList(),::inView()
to fix 17335.

Fixed FxRange: now FlexEvent.VALUE_COMMIT event handlers
will see the final constrained value, per
FxRange::nearestValidValue(), as they should.

Completed the ScrollBar viewport property implementation.   Now
all of the synchronization between scrollbars and a their viewport
is handled by the scrollbar.   Previously it was handled by both
FxScroller, ScrollerSkin, and the layout classes.

ScrollBar now tracks its viewport's actual size, content size, and
scroll positions.  The corresonding code and protected API has been
removed from FxScroller, notably:

  protected function vsb_valueCommitHandler(event:Event):void
  protected function hsb_valueCommitHandler(event:Event):void
  protected function viewportContentWidthChanged(event:PropertyChangeEvent):void
  protected function viewportContentHeightChanged(event:PropertyChangeEvent):void
  protected function viewportHorizontalScrollPositionChanged(event:PropertyChangeEvent):void
  protected function viewportVerticalScrollPositionChanged(event:PropertyChangeEvent):void

The protected methods for tracking the viewport have moved,
with slightly different names, to FxScrollBar:

  protected function viewportResizeHandler(event:ResizeEvent):void
  protected function viewportContentWidthChangeHandler(event:PropertyChangeEvent):void
  protected function viewportContentHeightChangeHandler(event:PropertyChangeEvent):void
  protected function viewportHorizontalScrollPositionChangeHandler(event:PropertyChangeEvent):void
  protected function viewportVerticalScrollPositionChangeHandler(event:PropertyChangeEvent):void

QE: I've made API changes
Doc: No
Checkintests: Pass
Reviewer: Ryan
Bugs:
    SDK-17335 - inView reports incorrectly when setting rowHeight to zero on a VerticalLayout

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxRange.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/skins/spark/FxScrollerSkin.mxml</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/components/FxHScrollBar.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/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -391,8 +391,8 @@
             return 0.0;

         if ((index < 0) || (index >= g.numLayoutItems))
-           return 0.0;
-
+           return 0.0;
+
         var li:ILayoutItem = g.getLayoutItemAt(index);
         if ((li == null) || !li.includeInLayout)
             return 0.0;
@@ -413,8 +413,8 @@
         var x1:Number = x0 + g.width;
         var ix0:Number = li.actualPosition.x;
         var ix1:Number = ix0 + li.actualSize.x;
-        if (ix0 >= ix1)  // item has 0 or negative height
-            return 0.0;
+        if (ix0 >= ix1)  // item has 0 or negative width
+            return 1.0;
         if ((ix0 >= x0) && (ix1 <= x1))
             return 1.0;
         return (Math.max(x0, ix0) - Math.min(x1, ix1)) / (ix1 - ix0);
@@ -888,7 +888,8 @@
             var dx:Number = layoutItem.actualSize.x;
             maxX = Math.max(maxX, x + dx);
             maxY = Math.max(maxY, y + dy);
-            if((x < maxVisibleX) && ((x + dx) > minVisibleX))
+            if (((x < maxVisibleX) && ((x + dx) > minVisibleX)) ||
+                ((dx <= 0) && ((x == maxVisibleX) || (x == minVisibleX))))
             {
                 visibleColumns += 1;
                 if (firstColInView == -1)


Added option in ColorColumn session state to associate specific records
with specific colors.

Change-Id: Ia16da149250f7d06a32374efcf45d6961e27bd85

--- WeaveData/src/weave/data/AttributeColumns/ColorColumn.as
+++ WeaveData/src/weave/data/AttributeColumns/ColorColumn.as
@@ -19,11 +19,17 @@

 package weave.data.AttributeColumns
 {
+	import flash.utils.Dictionary;
+
 	import weave.api.WeaveAPI;
 	import weave.api.data.IAttributeColumn;
 	import weave.api.data.IQualifiedKey;
+	import weave.api.detectLinkableObjectChange;
 	import weave.api.newLinkableChild;
+	import weave.api.reportError;
 	import weave.compiler.StandardLib;
+	import weave.core.LinkableString;
+	import weave.data.QKeyManager;
 	import weave.primitives.ColorRamp;

 	/**
@@ -31,27 +37,67 @@
 	 *
 	 * @author adufilie
 	 */
-	public class ColorColumn extends ExtendedDynamicColumn //implements IPrimitiveColumn
+	public class ColorColumn extends ExtendedDynamicColumn
 	{
 		public function ColorColumn()
 		{
 		}

-		public const ramp:ColorRamp = newLinkableChild(this, ColorRamp);
+		public const ramp:ColorRamp = newLinkableChild(this, ColorRamp);
+
+		/**
+		 * This is a CSV containing specific colors associated with record keys.
+		 * The format for each row in the CSV is:  keyType,localName,color
+		 */
+		public const recordColors:LinkableString = newLinkableChild(this, LinkableString);
+		private var _recordColorsMap:Dictionary;
+		private function handleRecordColors():void
+		{
+			var rows:Array = WeaveAPI.CSVParser.parseCSV(recordColors.value);
+			_recordColorsMap = new Dictionary();
+			for (var iRow:int = 0; iRow < rows.length; iRow++)
+			{
+				var row:Array = rows[iRow] as Array;
+				if (row.length != 3)
+					continue;
+				try
+				{
+					var key:IQualifiedKey = WeaveAPI.QKeyManager.getQKey(row[0], row[1]);
+					var color:Number = StandardLib.asNumber(row[2]);
+					_recordColorsMap[key] = color;
+				}
+				catch (e:Error)
+				{
+					reportError(e);
+				}
+			}
+		}

 		override public function getValueFromKey(key:IQualifiedKey, dataType:Class = null):*
-		{
-			var column:IAttributeColumn = internalDynamicColumn.internalColumn;
-			var dataMin:Number = WeaveAPI.StatisticsCache.getMin(column);
-			var dataMax:Number = WeaveAPI.StatisticsCache.getMax(column);
+		{
+			if (detectLinkableObjectChange(handleRecordColors, recordColors))
+				handleRecordColors();
+
+			var color:Number;

-			var value:Number = column ? column.getValueFromKey(key, Number) : NaN;
-			if (isNaN(value) || value < dataMin || value > dataMax)
-				return NaN;
+			var recordColor:* = _recordColorsMap[key];
+			if (recordColor !== undefined)
+			{
+				color = recordColor;
+			}
+			else
+			{
+				var column:IAttributeColumn = internalDynamicColumn.internalColumn;
+				var dataMin:Number = WeaveAPI.StatisticsCache.getMin(column);
+				var dataMax:Number = WeaveAPI.StatisticsCache.getMax(column);
+				var value:Number = column ? column.getValueFromKey(key, Number) : NaN;
+				if (isNaN(value) || value < dataMin || value > dataMax)
+					return NaN;

-			var norm:Number = (value - dataMin) / (dataMax - dataMin);
+				var norm:Number = (value - dataMin) / (dataMax - dataMin);
+				color = ramp.getColorFromNorm(norm);
+			}

-			var color:Number = ramp.getColorFromNorm(norm);
 			// return a 6-digit hex value for a String version of the color
 			if (dataType == String && !isNaN(color))
 				return '0x' + StandardLib.numberToBase(color, 16, 6);


Transferred from the Adobe Open Source Subversion Repository

Revision: 7889
Author:   dsubrama@adobe.com
Date:     2009-06-16T20:01:19.393557Z

Log Message:
-----------
First batch of PARB changes to List, ListBase, ItemRenderer and IItemRenderer as documented here: https://zerowing.corp.adobe.com/display/flex/PARB_RENAME_LIST

QA: Yes
Docs: Yes
Checkintests: Pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/DefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/IItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/DefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/IndexChangedEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -227,19 +227,19 @@
     //
     //--------------------------------------------------------------------------

-    private var requiresSelectionChanging:Boolean;
+    private var requireSelectionChanging:Boolean;

     //----------------------------------
-    //  requiresSelection
+    //  requireSelection
     //----------------------------------

     /**
      *  @private
      */
-    override public function set requiresSelection(value:Boolean):void
-    {
-        super.requiresSelection = value;
-        requiresSelectionChanging = true;
+    override public function set requireSelection(value:Boolean):void
+    {
+        super.requireSelection = value;
+        requireSelectionChanging = true;
     }

     //----------------------------------
@@ -289,16 +289,16 @@
     {
         super.commitProperties();

-        if (requiresSelectionChanging && dataProvider)
-        {
-            requiresSelectionChanging = false;
+        if (requireSelectionChanging && dataProvider)
+        {
+            requireSelectionChanging = false;
             var n:int = dataProvider.length;
             for (var i:int = 0; i < n; i++)
             {
-                var renderer:IItemRenderer =
-                    dataGroup.getElementAt(i) as IItemRenderer;
+                var renderer:ButtonBarButton =
+                    dataGroup.getElementAt(i) as ButtonBarButton;
                 if (renderer)
-                    renderer.allowDeselection = !requiresSelection;
+                    renderer.allowDeselection = !requireSelection;
             }
         }
     }
@@ -411,8 +411,8 @@
             renderer.addEventListener(MouseEvent.CLICK, item_clickHandler);
             if (renderer is IFocusManagerComponent)
                 IFocusManagerComponent(renderer).focusEnabled = false;
-            if (renderer is IItemRenderer)
-                IItemRenderer(renderer).allowDeselection = !requiresSelection;
+            if (renderer is ButtonBarButton)
+                ButtonBarButton(renderer).allowDeselection = !requireSelection;
             updateRenderer(renderer);
         }
     }
@@ -442,12 +442,12 @@
         if (focusedIndex >= 0  && !inKeyUpHandler)
         {
             currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
-            currentRenderer.caret = false;
+            currentRenderer.showsCaret = false;
         }

         if (index == selectedIndex)
         {
-            if (!requiresSelection)
+            if (!requireSelection)
                 selectedIndex = -1;
         }
         else
@@ -512,12 +512,12 @@
                 if (focusedIndex > 0 || arrowKeysWrapFocus)
                 {
                     if (currentRenderer)
-                        currentRenderer.caret = false;
+                        currentRenderer.showsCaret = false;
                     focusedIndex = (focusedIndex - 1 + length) % length;
                     adjustLayering(focusedIndex);
                     renderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
                     if (renderer)
-                        renderer.caret = true;
+                        renderer.showsCaret = true;
                 }

                 event.stopPropagation();
@@ -530,12 +530,12 @@
                 if (focusedIndex < dataProvider.length - 1 || arrowKeysWrapFocus)
                 {
                     if (currentRenderer)
-                        currentRenderer.caret = false;
+                        currentRenderer.showsCaret = false;
                     focusedIndex = (focusedIndex + 1) % length;
                     adjustLayering(focusedIndex);
                     renderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
                     if (renderer)
-                        renderer.caret = true;
+                        renderer.showsCaret = true;
                 }

                 event.stopPropagation();
@@ -544,7 +544,7 @@
             case Keyboard.SPACE:
             {
                 currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
-                if (!currentRenderer || (currentRenderer.selected && requiresSelection))
+                if (!currentRenderer || (currentRenderer.selected && requireSelection))
                     return;
                 currentRenderer.dispatchEvent(event);
                 break;
@@ -573,7 +573,7 @@
             case Keyboard.SPACE:
             {
                   currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
-                if (!currentRenderer || (currentRenderer.selected && requiresSelection))
+                if (!currentRenderer || (currentRenderer.selected && requireSelection))
                     return;
                 currentRenderer.dispatchEvent(event);
                 break;
@@ -594,7 +594,7 @@
             var renderer:IItemRenderer =
                 dataGroup.getElementAt(index) as IItemRenderer;
             if (renderer)
-                renderer.caret = focused;
+                renderer.showsCaret = focused;
         }
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.layout
+package mx.layout
 {
 import flash.display.DisplayObject;
 import flash.geom.Point;
@@ -18,9 +18,8 @@
 import flash.events.EventDispatcher;
 import flash.ui.Keyboard;

-import flex.core.GroupBase;
-import flex.graphics.IGraphicElement;
-import flex.intf.ILayoutItem;
+import mx.components.baseClasses.GroupBase;
+import mx.graphics.IGraphicElement;

 import mx.containers.utilityClasses.Flex;
 import mx.events.PropertyChangeEvent;
@@ -984,7 +983,7 @@

 [ExcludeClass]

-import flex.intf.ILayoutItem;
+import mx.layout.ILayoutItem;
 import mx.containers.utilityClasses.FlexChildInfo;

 class HLayoutItemFlexChildInfo extends FlexChildInfo


Transferred from the Adobe Open Source Subversion Repository

Revision: 3973
Author:   rfrishbe@adobe.com
Date:     2008-10-30T20:30:13.007923Z

Log Message:
-----------
Adding IVisualContainer interface.  Group, FxContainer, and FxScroller implement this interface now.  Added owner and parent to IVisualItem.  GraphicElement and UIComponent implement this interface--work had to be done in GraphicElement to do this.  In doing so, elementHost is going to be renamed to parent.  For now, I added parent in GraphicElement and left elementHost in there; however, it is removed from IGraphicElement.  I’ve removed all references to elementHost in our code; however, I think mustella needs to be updated as do mustella tests, so I’m not going to remove elementHost until later.

Most of the changes here are name changes dealing with "elementHost" -> "parent".  If we decide that Gumbo components only support IVisualItems, we should clean up some of the code, but for now, I kept any assumptions that were in the original code (meaning we may be able to support DisplayObjects and old definitions of UIComponents/IUIComponents that aren’t IVisualItems).

I ran checkin tests, Group mustella tests, DataGroup mustella tests, FxContainer mustella tests, graphic tags tests, and all effects Mustella tests.

QE Notes: We will need to update mustella and mustella tests to use elementHost rather than parent.  We can also update mustella to use IVisualContainer rather than what it's doing now.  However, let's wait on these changes for now.  I'll send out an email when we're ready to make these changes and remove elementHost from GraphicElement.
Doc Notes: None
Bugs: -
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IVisualContainer.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/effects/effectClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxFadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IUIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.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/framework/src/mx/styles/StyleProtoChain.as</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/framework/src/mx/core/IVisualItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -26,6 +26,7 @@
 import mx.core.IDataRenderer;
 import mx.core.IDeferredInstance;
 import mx.core.IFactory;
+import mx.core.IVisualItem;
 import mx.core.mx_internal;
 import mx.core.UIComponent;
 import mx.events.CollectionEvent;
@@ -258,7 +259,7 @@

         if (item === null)
             throw new Error("DataGroup content can not contain null items.");
-
+
         // Rules for lookup:
         // 1. if itemRendererFunction is defined, call it to get the renderer factory and instantiate it
         // 2. if itemRenderer is defined, instantiate one
@@ -284,7 +285,7 @@
         if (!myItemRenderer && item is GraphicElement)
         {
             var graphicItem:GraphicElement = GraphicElement(item);
-            graphicItem.elementHost = this;
+            graphicItem.parent = this;

             if (!graphicItem.displayObject)
                 graphicItem.displayObject = graphicItem.createDisplayObject();
@@ -495,7 +496,7 @@
         // release the display objects
         if (item && (item is GraphicElement))
         {
-            item.elementHost = null;
+            item.parent = null;
             item.sharedDisplayObject = null;
         }

@@ -539,8 +540,9 @@
     {
         var host:DisplayObject;

-        if (item is GraphicElement)
-            host = DisplayObject(GraphicElement(item).elementHost);
+        // TODO (rfrishbe): need to check for DisplayObject?
+        if (item is IVisualItem)
+            host = IVisualItem(item).parent;
         else if (item is DisplayObject)
             host = DisplayObject(item).parent;

@@ -696,9 +698,9 @@
             itemRemoved(items[i].oldValue, location + i);
         }

-        for (var k:int = length-1; k >= 0; k--)
-        {
-            itemAdded(items[k].newValue, location);
+        for (i = length-1; i >= 0; i--)
+        {
+            itemAdded(items[i].newValue, location);
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17485
Author:   aharui@adobe.com
Date:     2010-08-26T04:05:56.622744Z

Log Message:
-----------
Add 'typicalText' measurement to TextInput, TextArea and RET. We will update NumericStepper later.

Also add 'textInput' event metadata.

QE notes: none
Doc notes: new typicalText property
Bugs: SDK-26180, SDK-25542
Reviewer: Gordon
Tests run: checkintests mustella/gumbo/RichEditableText, TextInput, TextArea
Is noteworthy for integration: yes

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

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -105,6 +105,10 @@
  *
  *
The widthInChars property provides a convenient way
  *  to specify the width in a way that scales with the font size.
+ *  You can use the typicalText property as well.
+ *  Note that if you use typicalText, the
+ *  widthInChars and heightInLines
+ *  are ignored.
  *  Of course, you can also specify an explicit width in pixels,
  *  a percent width, or use constraints such as left
  *  and right.
@@ -183,6 +187,7 @@
  *

  *  <s:TextInput
  *    Properties
+ *    typicalText=null
  *    widthInChars="Calculated default"
  *
  *    Events
@@ -272,6 +277,33 @@
     //
     //--------------------------------------------------------------------------

+	//----------------------------------
+	//  typicalText
+	//----------------------------------
+
+	/**
+	 *  @default null
+	 *
+	 *  @see spark.components.RichEditableText#typicalText
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.0
+	 *  @productversion Flex 4.5
+	 */
+	public function get typicalText():String
+	{
+		return getTypicalText();
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set typicalText(value:String):void
+	{
+		setTypicalText(value);
+	}
+
     //----------------------------------
     //  widthInChars
     //----------------------------------
@@ -296,6 +328,9 @@
      *  a percent width, or both left and right
      *  constraints.

      *
+	 *
This property will also be ignored if the typicalText
+	 *  property is specified.

+	 *
      *  @default 10
      *
      *  @see spark.primitives.heightInLines