Transferred from the Adobe Open Source Subversion Repository

Revision: 4106
Author:   rfrishbe@adobe.com
Date:     2008-11-14T01:56:47.949068Z

Log Message:
-----------
Mostly rename changes.  IVisualItem -> IVisualElement.  IVisualContainer -> IVisualElementContainer.  Also changed the APIs so that it's addElement, removeElement, etc.. instead of addItem, removeItem, etc...  Moreover, all of these APIs have been added to IVisualElementContainer (not just the read-only ones).  Now there's a common interface for all containers (even Halo's Container class implements it).  There's no more need to do:

if (x is Group || x is FxContainer)

Just use the IVisualElementContainer interface.

Some classes, like FxScroller (and perhaps DataGroup/FxDataContainer), will only implement the "getter" part of the API.  For now, if you call the mutation methods, we will throw an exception.  Perhaps later we'll add a separate interface for the read-only portion and the mutator interface will extend that one.

There might be a few more places in the code that need to be updated to use the new names for the methods.  I know Mustella needs cleaning up so it doesn't use getItem and uses getElement instead.  I've left the old APIs in there exactly for this purpose, so we can gradually move over to the new names (esp. QA).

At some point soon, we will remove the old methods as well as type them more strictly to only accept IVisualElements, for example addElement(element:IVisualElement).  Part of this work is dependent on updating the Flash Component Kit so that it implements IVisualElement (and perhaps IVisualElementContainer for containers).

Ran checkintests and all gumbo mustella tests.

QE Notes: Please update your tests to use addElement, removeElement, etc... along with the new IVisualElementContainer interface.  The old APIs (addItem, removeItem, etc...) will be removed soon.
Doc Notes: None
Bugs: -
Reviewer: Hans (he patiently sat through all these files...)

Modified Paths:
--------------
<path kind="file" action="D">/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/layout/LayoutItemHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemUIC.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/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/flex4/src/mx/layout/ILayoutItem.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/core/Container.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as" copyfrom-rev="4083" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IVisualContainer.as" copyfrom-rev="4083" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</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@1284179 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as
@@ -20,6 +20,7 @@
 import mx.core.mx_internal;
 import mx.effects.effectClasses.ActionEffectInstance;
 import mx.effects.AddAction;
+import mx.core.IVisualElementContainer;

 /**
  *  The AddActionInstance class implements the instance class
@@ -95,32 +96,34 @@

     private function addChild(container:*, child:*):void
     {
-        if (container is Group)
-           container.addItem(child);
+        // TODO: can remove once we're sure all parents are
+        // IVisualElementContainers (Flash Component Kit)
+        if (container is IVisualElementContainer)
+           IVisualElementContainer(container).addElement(child);
         else
            container.addChild(child);
     }

     private function removeChild(container:*, child:*):void
     {
-        if (container is Group)
-           container.removeItem(child);
+        if (container is IVisualElementContainer)
+           IVisualElementContainer(container).removeElement(child);
         else
            container.removeChild(child);
     }

     private function addChildAt(container:*, child:*, index:int):void
     {
-        if (container is Group)
-           container.addItemAt(child, index);
+        if (container is IVisualElementContainer)
+           IVisualElementContainer(container).addElementAt(child, index);
         else
            container.addChildAt(child, index);
     }

     private function getChildIndex(container:*, child:*):int
     {
-        if (container is Group)
-           return container.getItemIndex(child);
+        if (container is IVisualElementContainer)
+           return IVisualElementContainer(container).getElementIndex(child);
         else
            return container.getChildIndex(child);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3558
Author:   egeorgie@adobe.com
Date:     2008-10-10T06:51:13.082331Z

Log Message:
-----------
Fixes to the way the Ellipse calculates its bounds for the purpose of layouts

Reviewed by Ryan

Modified Paths:
--------------
<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/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2006 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.graphicsClasses
 {
@@ -1845,7 +1855,7 @@
         {
             // Calculate the vector from pre-transform top-left to
             // post-transform top-left:
-            MatrixUtil.transformBounds(new Point(_width, _height), m, topLeft);
+            computeTopLeft(topLeft, _width, _height, m);
         }
         else
         {
@@ -2613,7 +2623,18 @@
         size.y += strokeExtents.y;
         return size;
     }
-
+
+    /**
+     *  Override for graphic elements that need specific calculation of
+     *  coordinates of top-left corner of bounding box when resized to
+     *  width and height.
+     */
+    protected function computeTopLeft(topLeft:Point, width:Number, height:Number, m:Matrix):Point
+    {
+        MatrixUtil.transformBounds(new Point(_width, _height), m, topLeft);
+        return topLeft;
+    }
+
     /**
      *  @private
      */
@@ -2650,13 +2671,12 @@
         if (m)
         {
             // Calculate the origin of the element after transformation before our changes are applied.
-            var origin:Point = new Point(measuredX,measuredY);
-            MatrixUtil.transformBounds(new Point(_width, _height), m, origin);
+            var topLeft:Point = computeTopLeft(new Point(measuredX, measuredY), _width, _height, m);

             // now adjust our tx/ty values based on the difference between our current transformed position and
             // where we want to end up.
-            x = x - origin.x + layoutFeatures.layoutX;
-            y = y - origin.y + layoutFeatures.layoutY;
+            x = x - topLeft.x + layoutFeatures.layoutX;
+            y = y - topLeft.y + layoutFeatures.layoutY;
         }
         else
         {
@@ -2726,12 +2746,11 @@
             if (!isNaN(height))
                height -= strokeExtents.y;

-            var newSize:Point = MatrixUtil.fitBounds(
-                                    width, height, m,
-                                    preferredWidthPreTransform(),
-                                    preferredHeightPreTransform(),
-                                    minWidth, minHeight,
-                                    maxWidth, maxHeight);
+            var newSize:Point = MatrixUtil.fitBounds(width, height, m,
+                                                     preferredWidthPreTransform(),
+                                                     preferredHeightPreTransform(),
+                                                     minWidth, minHeight,
+                                                     maxWidth, maxHeight);

             if (newSize)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12930
Author:   egeorgie@adobe.com
Date:     2009-12-15T00:23:58.803039Z

Log Message:
-----------
Optimize transformSize and transformBounds, reduce allocation of Point objects.

This change addresses a couple of FIXMEs I had put in the internal MatrixUtil class. The parameters were changed to numbers instead of points and I unrolled the matrix multiplication to significantly reduce the number of multiplications and additions. Both methods now return reference to the same internal static Point object to further reduce dynamic object allocation.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Deepa
Tests run: checkintests, mustella tests/gumbo/layout
Is noteworthy for integration: Yes

Modified Paths:
--------------
<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/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/sparkTest/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.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/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -3991,7 +3991,7 @@
             newSize = new Point(minWidth, minHeight);

         var topLeft:Point = new Point(measuredX, measuredY);
-        MatrixUtil.transformBounds(newSize, m, topLeft);
+        MatrixUtil.transformBounds(newSize.x, newSize.y, m, topLeft);
         return strokeExtents.left + topLeft.x;
     }

@@ -4026,7 +4026,7 @@
             newSize = new Point(minWidth, minHeight);

         var topLeft:Point = new Point(measuredX, measuredY);
-        MatrixUtil.transformBounds(newSize, m, topLeft);
+        MatrixUtil.transformBounds(newSize.x, newSize.y, m, topLeft);
         return strokeExtents.top + topLeft.y;
     }

@@ -4048,7 +4048,7 @@
             return stroke + this.measuredX + this.x;

         var topLeft:Point = new Point(measuredX, measuredY);
-        MatrixUtil.transformBounds(new Point(_width, _height), m, topLeft);
+        MatrixUtil.transformBounds(_width, _height, m, topLeft);
         return stroke + topLeft.x;
     }

@@ -4070,7 +4070,7 @@
             return stroke + this.measuredY + this.y;

         var topLeft:Point = new Point(measuredX, measuredY);
-        MatrixUtil.transformBounds(new Point(_width, _height), m, topLeft);
+        MatrixUtil.transformBounds(_width, _height, m, topLeft);
         return stroke + topLeft.y;
     }

@@ -4120,7 +4120,7 @@
                                                postLayoutTransform:Boolean = true):Number
     {
         if (postLayoutTransform && hasComplexLayoutMatrix)
-            width = MatrixUtil.transformSize(new Point(width, height),
+            width = MatrixUtil.transformSize(width, height,
                                              layoutFeatures.layoutMatrix).x;

         // Take stroke into account
@@ -4150,7 +4150,7 @@
                                                 postLayoutTransform:Boolean = true):Number
     {
         if (postLayoutTransform && hasComplexLayoutMatrix)
-            height = MatrixUtil.transformSize(new Point(width, height),
+            height = MatrixUtil.transformSize(width, height,
                                               layoutFeatures.layoutMatrix).y;

         // Take stroke into account


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

--- frameworks/projects/mx/src/mx/skins/halo/AccordionHeaderSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/AccordionHeaderSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-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: 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@1265453 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/SplitViewNavigatorSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/SplitViewNavigatorSkin.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2011 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.skins.mobile
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22606
Author:   mhorn@adobe.com
Date:     2011-09-16T15:41:49.539150Z

Log Message:
-----------
asdoc updates

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListScrollerSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as
@@ -15,6 +15,7 @@
  *  The SpinnerListContainerSkin displays a frame, shadow gradients and a selection indicator.
  *
  * @see spark.components.SpinnerList
+ * @see spark.skins.mobile.SpinnerListContainerSkin
  *
  *  @includeExample examples/SpinnerListExample.mxml -noswf
  *  @includeExample examples/SpinnerListContainerExample.mxml -noswf


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/AdvancedDataGridItemRendererAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/AdvancedDataGridItemRendererAutomationImpl.as
@@ -0,0 +1,133 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.advancedDataGrid
+{
+	import flash.display.DisplayObject;
+	import flash.events.Event;
+	import mx.automation.Automation;
+
+	import mx.automation.delegates.core.UITextFieldAutomationImpl;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.automation.delegates.core.UIComponentAutomationImpl;
+	import mx.controls.listClasses.ListItemRenderer;
+	import mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer;
+	import mx.core.mx_internal;
+	import mx.core.IUITextField;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  AdvancedDataGridItemRenderer class.
+	 *
+	 *  @see mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class  AdvancedDataGridItemRendererAutomationImpl extends UITextFieldAutomationImpl
+	{
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(AdvancedDataGridItemRenderer, AdvancedDataGridItemRendererAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj AdvancedDataGridItemRenderer object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function AdvancedDataGridItemRendererAutomationImpl(obj:AdvancedDataGridItemRenderer)
+		{
+			super(obj);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Variables
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get listItemRend():AdvancedDataGridItemRenderer
+		{
+			return uiTextField as AdvancedDataGridItemRenderer;
+		}
+
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  automationName
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+			return listItemRend.getRawText() || super.automationName;
+		}
+
+		//----------------------------------
+		//  automationValue
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			return [automationName];
+		}
+
+	}
+}


Error messages are in sentence case.

Error messages are in sentence case.

--- exporter/src/main/as/flump/xfl/XflKeyframe.as
+++ exporter/src/main/as/flump/xfl/XflKeyframe.as
@@ -40,7 +40,7 @@
         if (symbolXml == null) return kf; // Purely labelled frame

         if (XmlUtil.getBooleanAttr(xml, "motionTweenOrientToPath", false)) {
-            lib.addError(location, ParseError.WARN, "motion paths are not supported");
+            lib.addError(location, ParseError.WARN, "Motion paths are not supported");
         }

         if (XmlUtil.getBooleanAttr(xml, "hasCustomEase", false)) {


[SequenceAssembler] updated AssemblyProject data structure

git-svn-id: adbdea8fc1759bd16b0eaf24a244a7e5f870a654@221 fe3f0490-d73e-11de-a956-c71e7d3a9d2f

--- SequenceAssemblerStandalone/src/org/jbei/registry/models/AssemblyProject.as
+++ SequenceAssemblerStandalone/src/org/jbei/registry/models/AssemblyProject.as
@@ -4,81 +4,19 @@
      * @author Zinovii Dmytriv
      */
     [RemoteClass(alias="org.jbei.ice.lib.vo.AssemblyProject")]
-    public class AssemblyProject
+    public class AssemblyProject extends Project
     {
-        private var _name:String;
-        private var _description:String;
-        private var _uuid:String;
-        private var _ownerName:String;
-        private var _ownerEmail:String;
         private var _assemblyTable:AssemblyTable;
-        private var _creationTime:Date;
-        private var _modificationTime:Date;

         // Contructor
-        public function AssemblyProject(name:String = "", description:String = "", uuid:String = "", ownerName:String = "", ownerEmail:String = "", assemblyTable:AssemblyTable = null, creationTime:Date = null, modificationTime:Date = null)
+        public function AssemblyProject(name:String = "", description:String = "", uuid:String = "", ownerName:String = "", ownerEmail:String = "", creationTime:Date = null, modificationTime:Date = null, assemblyTable:AssemblyTable = null)
         {
-            _name = name;
-            _description = description;
-            _uuid = uuid;
-            _ownerName = ownerName;
-            _ownerEmail = ownerEmail;
+            super(name, description, uuid, ownerName, ownerEmail, creationTime, modificationTime);
+
             _assemblyTable = assemblyTable;
-            _creationTime = creationTime;
-            _modificationTime = modificationTime;
         }

         // Properties
-        public function get name():String
-        {
-            return _name;
-        }
-
-        public function set name(value:String):void
-        {
-            _name = value;
-        }
-
-        public function get description():String
-        {
-            return _description;
-        }
-
-        public function set description(value:String):void
-        {
-            _description = value;
-        }
-
-        public function get uuid():String
-        {
-            return _uuid;
-        }
-
-        public function set uuid(value:String):void
-        {
-            _uuid = value;
-        }
-
-        public function get ownerName():String
-        {
-            return _ownerName;
-        }
-
-        public function set ownerName(value:String):void
-        {
-            _ownerName = value;
-        }
-
-        public function get ownerEmail():String
-        {
-            return _ownerEmail;
-        }
-
-        public function set ownerEmail(value:String):void
-        {
-            _ownerEmail = value;
-        }
-
         public function get assemblyTable():AssemblyTable
         {
             return _assemblyTable;
@@ -88,25 +26,5 @@
         {
             _assemblyTable = value;
         }
-
-        public function get creationTime():Date
-        {
-            return _creationTime;
-        }
-
-        public function set creationTime(value:Date):void
-        {
-            _creationTime = value;
-        }
-
-        public function get modificationTime():Date
-        {
-            return _modificationTime;
-        }
-
-        public function set modificationTime(value:Date):void
-        {
-            _modificationTime = value;
-        }
     }
 }


To avoid cluttering the editor view when selecting a skeleton hierarchy, do not debug draw the child nodes.

--- Bin/Data/Scripts/Editor/EditorView.as
+++ Bin/Data/Scripts/Editor/EditorView.as
@@ -1340,9 +1340,10 @@
     ViewRaycast(false);
 }

-void DrawNodeDebug(Node@ node, DebugRenderer@ debug)
-{
-    debug.AddNode(node, 1.0, false);
+void DrawNodeDebug(Node@ node, DebugRenderer@ debug, bool drawNode = true)
+{
+    if (drawNode)
+        debug.AddNode(node, 1.0, false);

     // Exception for the scene to avoid bringing the editor to its knees: drawing either the whole hierarchy or the subsystem-
     // components can have a large performance hit
@@ -1351,8 +1352,9 @@
         for (uint j = 0; j < node.numComponents; ++j)
             node.components[j].DrawDebugGeometry(debug, false);

+        // To avoid cluttering the view, do not draw the node axes for child nodes
         for (uint k = 0; k < node.numChildren; ++k)
-            DrawNodeDebug(node.children[k], debug);
+            DrawNodeDebug(node.children[k], debug, false);
     }
 }


Remove redundant test data class: ClassLevelCopyableSubclass.

--- dolly-framework/src/test/resources/dolly/data/ClassLevelCopyableSubclass.as
+++ dolly-framework/src/test/resources/dolly/data/ClassLevelCopyableSubclass.as
@@ -1,22 +0,0 @@
-package dolly.data {
-
-[Copyable]
-public class ClassLevelCopyableSubclass extends CopyableClass {
-
-	private var _writableField2:String;
-
-	public var property4:String;
-	public var property5:String;
-
-	public function ClassLevelCopyableSubclass() {
-	}
-
-	public function get writableField2():String {
-		return _writableField2;
-	}
-
-	public function set writableField2(value:String):void {
-		_writableField2 = value;
-	}
-}
-}


header

header

--- examples/flexjs/FlexWebsiteStatsViewer/src/controllers/GAJSONInputParser.as
+++ examples/flexjs/FlexWebsiteStatsViewer/src/controllers/GAJSONInputParser.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
 package controllers
 {
 	import org.apache.flex.collections.parsers.JSONInputParser;


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

--- frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
+++ frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
@@ -1,14 +1,22 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
 //
 ////////////////////////////////////////////////////////////////////////////////
-
+
 package mx.controls
 {

@@ -8241,4 +8249,4 @@
     }
 }

-}+}


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

--- frameworks/projects/charts/src/mx/charts/renderers/ShadowBoxItemRenderer.as
+++ frameworks/projects/charts/src/mx/charts/renderers/ShadowBoxItemRenderer.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.charts.renderers
 {


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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: 8448
Author:   gruehle@adobe.com
Date:     2009-07-08T14:51:52.491024Z

Log Message:
-----------
Item renderer shouldn't pick up borderSkin from the List.

Bugs: SDK-15002
Doc Notes: none
QE Notes: none
Reviewer: Alex

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

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBaseContentHolder.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBaseContentHolder.as
@@ -83,6 +83,7 @@

         setStyle("backgroundColor", "");
         setStyle("borderStyle", "none");
+        setStyle("borderSkin", null);

         // This invisible layer, which is a child of listContent
         // catches mouse events for all items


editor: more space in status text

editor: more space in status text

--- bin/Data/Scripts/Editor/EditorView.as
+++ bin/Data/Scripts/Editor/EditorView.as
@@ -1103,8 +1103,6 @@

 void CreateStatsBar()
 {
-    Font@ font = cache.GetResource("Font", "Fonts/Anonymous Pro.ttf");
-
     editorModeText = Text();
     ui.root.AddChild(editorModeText);
     renderStatsText = Text();
@@ -1148,7 +1146,7 @@

     // Relayout stats bar
     Font@ font = cache.GetResource("Font", "Fonts/Anonymous Pro.ttf");
-    if (graphics.width >= editorModeText.size.x + renderStatsText.size.x + 35)
+    if (graphics.width >= editorModeText.size.x + renderStatsText.size.x + 45)
     {
         SetupStatsBarText(editorModeText, font, 35, 64, HA_LEFT, VA_TOP);
         SetupStatsBarText(renderStatsText, font, -4, 64, HA_RIGHT, VA_TOP);


Added rudimentary sizing to FlareVis

Added rudimentary sizing to FlareVis

git-svn-id: 6aa7ccb0a2048310a30f08a72aaff4ca39d980ed@113 91848ab2-c4ae-4e4f-8e6a-6a52ea0dccc3

--- flare.flex/flare/flex/FlareVis.as
+++ flare.flex/flare/flex/FlareVis.as
@@ -1,12 +1,11 @@
 package flare.flex
 {
 	import flare.data.DataSet;
+	import flare.display.DirtySprite;
 	import flare.vis.Visualization;
 	import flare.vis.axis.Axes;
 	import flare.vis.axis.CartesianAxes;
 	import flare.vis.data.Data;
-
-	import flash.geom.Rectangle;

 	import mx.containers.Canvas;

@@ -19,10 +18,6 @@
 	public class FlareVis extends Canvas
 	{
 		private var _vis:Visualization;
-
-		/** The bounds for the data display area of this visualization. */
-		public function get bounds():Rectangle { return _vis.bounds; }
-		public function set bounds(b:Rectangle):void { _vis.bounds = b; }

 		/** The visualization operators used by this visualization. This
 		 *  should be an array of IOperator instances. */
@@ -63,7 +58,23 @@
 			return _vis;
 		}

+		public function get visWidth():Number { return _vis.bounds.width; }
+		public function set visWidth(w:Number):void {
+			_vis.bounds.width = w;
+			_vis.update();
+			invalidateSize();
+		}
+
+		public function get visHeight():Number { return _vis.bounds.height; }
+		public function set visHeight(h:Number):void {
+			_vis.bounds.height = h;
+			_vis.update();
+			invalidateSize();
+		}
+
 		// --------------------------------------------------------------------
+
+		private var _margin:int = 10;

 		/**
 		 * Creates a new FlareVis component. By default, a new visualization
@@ -75,6 +86,29 @@
 			this.rawChildren.addChild(
 				_vis = new Visualization(data==null ? new Data() : data)
 			);
+			_vis.x = _margin;
+		}
+
+		// -- Flex Overrides --------------------------------------------------
+
+		/** @private */
+		public override function getExplicitOrMeasuredWidth():Number {
+			DirtySprite.renderDirty(); // make sure everything is current
+			var w:Number = _vis.bounds.width;
+			if (_vis.width > w) {
+				// TODO: this is a temporary hack. fix later!
+				_vis.x = _margin + Math.abs(_vis.getBounds(_vis).x);
+				w = _vis.width;
+			}
+			return 2*_margin + Math.max(super.getExplicitOrMeasuredWidth(), w);
+		}
+
+		/** @private */
+		public override function getExplicitOrMeasuredHeight():Number {
+			DirtySprite.renderDirty(); // make sure everything is current
+			return Math.max(super.getExplicitOrMeasuredHeight(),
+							_vis.bounds.height,
+							_vis.height);
 		}

 	} // end of class FlareVis


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

--- frameworks/projects/framework/src/mx/controls/colorPickerClasses/WebSafePalette.as
+++ frameworks/projects/framework/src/mx/controls/colorPickerClasses/WebSafePalette.as
@@ -32,6 +32,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function WebSafePalette()
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7154
Author:   srahim@adobe.com
Date:     2009-05-20T21:20:01.377159Z

Log Message:
-----------
ASDoc updates; bug fix.
QE Notes: None
Doc Notes: None
Bugs: FLEXDOCS-831 (for the filter classes and RichEditableTextContainerManager.as)
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.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/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextInput.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -102,7 +102,8 @@

 /**
- *  Documentation is not currently available.
+ *  The base class for skinnable components that include RichEditableText
+ *  in their skin.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -342,7 +343,7 @@
     /**
      *  Specifies whether the user is allowed to edit the text in this control.
      *
-     *  @default true;
+     *  @default true
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


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

--- frameworks/projects/charts/src/mx/charts/renderers/HLOCItemRenderer.as
+++ frameworks/projects/charts/src/mx/charts/renderers/HLOCItemRenderer.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.charts.renderers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12557
Author:   egeorgie@adobe.com
Date:     2009-12-04T22:51:10.865570Z

Log Message:
-----------
Fix http://bugs.adobe.com/jira/browse/SDK-24324 Dragging an item from a DataGrid that is in an application loaded into SWFLoader causes a RTE

Problem: The DragProxy and DragManagerImpl/NativeDragManagerImpl are looking up the styles from the top level app.
Fix: Make them look up the styles from the module of the drag initiator.

Credits go to Darrell for this fix!

QE notes: None
Doc notes: None
Bugs: SDK-24324
Reviewer: Darrell
Tests run: checkintests, mustella cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<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/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
+++ frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
@@ -15,30 +15,34 @@
 import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
 import flash.display.InteractiveObject;
+import flash.events.Event;
 import flash.events.IEventDispatcher;
-import flash.events.Event;
 import flash.events.KeyboardEvent;
 import flash.events.MouseEvent;
 import flash.geom.Point;
 import flash.system.ApplicationDomain;
 import flash.utils.getQualifiedClassName;
+
 import mx.core.DragSource;
+import mx.core.IFlexModule;
 import mx.core.IUIComponent;
+import mx.core.UIComponent;
 import mx.core.mx_internal;
-import mx.core.UIComponent;
 import mx.effects.EffectInstance;
 import mx.effects.Move;
 import mx.effects.Zoom;
 import mx.events.DragEvent;
 import mx.events.EffectEvent;
 import mx.events.InterDragManagerEvent;
+import mx.events.InterManagerRequest;
 import mx.events.SandboxMouseEvent;
-import mx.events.InterManagerRequest;
 import mx.managers.CursorManager;
 import mx.managers.DragManager;
 import mx.managers.ISystemManager;
 import mx.managers.SystemManager;
 import mx.styles.CSSStyleDeclaration;
+import mx.styles.IStyleManager2;
+import mx.styles.StyleManager;

 use namespace mx_internal;

@@ -115,6 +119,21 @@
 			setFocus();
 	}

+    /**
+     *  @private
+     */
+    override public function get styleManager():IStyleManager2
+    {
+        // If the dragInitiator has a styleManager, use that one.
+        // In a situation where a main application that loads a module with drag initiator,
+        // the main application may not link in the DragManager and appropriate styles.
+        // We want to use the styles of the module of the dragInitiator. See SDK-24324.
+        if (this.dragInitiator is IFlexModule)
+            return StyleManager.getStyleManager(IFlexModule(dragInitiator).moduleFactory);
+
+        return super.styleManager;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Variables


Transferred from the Adobe Open Source Subversion Repository

Revision: 20644
Author:   mhorn@adobe.com
Date:     2011-03-07T18:49:20.181589Z

Log Message:
-----------
ASDoc updates

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorTabBarFirstTabSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorTabBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorTabBarLastTabSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonBarButtonClassFactory.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
@@ -109,6 +109,14 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  Scroller skin part.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
     public var scroller:Scroller;

     //--------------------------------------------------------------------------
@@ -167,7 +175,7 @@
             textDisplay.editable = true;
             textDisplay.lineBreak = getStyle("lineBreak");
             textDisplay.useTightTextBounds = false;
-			textDisplay.scrollToRangeDelegate = scrollToRange;
+            textDisplay.scrollToRangeDelegate = scrollToRange;

             // on iOS, resize the TextField and let the native control handle scrolling
             _isIOS = (Capabilities.version.indexOf("IOS") == 0);
@@ -180,11 +188,11 @@
             textDisplay.addEventListener(Event.SCROLL, textDisplay_scrollHandler);
             textDisplay.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE, textDisplay_softKeyboardActivateHandler);

-			textDisplay.left = getStyle("paddingLeft");
-			textDisplay.top = getStyle("paddingTop");
-			textDisplay.right = getStyle("paddingRight");
-			textDisplay.bottom = getStyle("paddingBottom");
-
+            textDisplay.left = getStyle("paddingLeft");
+            textDisplay.top = getStyle("paddingTop");
+            textDisplay.right = getStyle("paddingRight");
+            textDisplay.bottom = getStyle("paddingBottom");
+
             // wrap StyleableTextComponent in Group for viewport
             textDisplayGroup = new Group();
             textDisplayGroup.clipAndEnableScrolling = true;
@@ -197,7 +205,7 @@
             scroller.minViewportInset = 0;
             scroller.measuredSizeIncludesScrollBars = false;
             scroller.ensureElementIsVisibleForSoftKeyboard = false;
-
+
             addChild(scroller);
         }

@@ -254,19 +262,22 @@
         // Use the old textDisplay width as an estimte for the new one.
         // If we are wrong, we'll find out in updateDisplayList()
         textDisplay.commitStyles();
-
-		// Clear min sizes first.
-		textDisplay.minWidth = textDisplay.minHeight = NaN;
-
-		// If lineBreak == explicit, always use NaN for estimated width
-		if (getStyle("lineBreak") == "explicit")
-			textDisplayEstimatedWidth = NaN;
-
+
+        // Clear min sizes first.
+        textDisplay.minWidth = textDisplay.minHeight = NaN;
+
+        // If lineBreak == explicit, always use NaN for estimated width
+        if (getStyle("lineBreak") == "explicit")
+            textDisplayEstimatedWidth = NaN;
+
         setElementSize(textDisplay, textDisplayEstimatedWidth, NaN);

         measuredHeight = getElementPreferredHeight(textDisplay) + paddingTop + paddingBottom;
     }

+    /**
+     *  @private
+     */
     override protected function layoutContents(unscaledWidth:Number,
                                                unscaledHeight:Number):void
     {
@@ -283,7 +294,7 @@
         setElementPosition(scroller, 0, 0);

         // position & size the text
-		var explicitLineBreak:Boolean = getStyle("lineBreak") == "explicit";
+        var explicitLineBreak:Boolean = getStyle("lineBreak") == "explicit";
         var paddingLeft:Number = getStyle("paddingLeft");
         var paddingRight:Number = getStyle("paddingRight");
         var paddingTop:Number = getStyle("paddingTop");
@@ -292,7 +303,7 @@
         var unscaledTextWidth:Number = unscaledWidth - paddingLeft - paddingRight;
         var unscaledTextHeight:Number = unscaledHeight - paddingTop - paddingBottom;
         var textHeight:Number = unscaledTextHeight;
-		var textWidth:Number = explicitLineBreak ? textDisplay.measuredTextSize.x : unscaledTextWidth;
+        var textWidth:Number = explicitLineBreak ? textDisplay.measuredTextSize.x : unscaledTextWidth;

         // grab old measured textDisplay height before resizing it
         var oldPreferredTextHeight:Number = getElementPreferredHeight(textDisplay);
@@ -327,11 +338,11 @@
         // set the height to oldTextHeight.  If the height's actually wrong,
         // we'll invalidateSize() and go through this layout pass again anyways
         setElementSize(textDisplay, textWidth, textHeight);
-
-		// Set minWidth/Height on the text so the textDisplayGroup sizes accordingly
-		textDisplay.minWidth = textWidth;
-		textDisplay.minHeight = textHeight;
-		textDisplayGroup.invalidateDisplayList();
+
+        // Set minWidth/Height on the text so the textDisplayGroup sizes accordingly
+        textDisplay.minWidth = textWidth;
+        textDisplay.minHeight = textHeight;
+        textDisplayGroup.invalidateDisplayList();

         // grab new measured textDisplay height after the textDisplay has taken its final width
         var newPreferredTextHeight:Number = getElementPreferredHeight(textDisplay);
@@ -354,11 +365,11 @@
             // getCharBoundaries() returns null for new lines
             if (!caretBounds)
             {
-				// temporarily insert a character at the caretIndex
-				textDisplay.replaceText(charIndex, charIndex, "W");
-				caretBounds = textDisplay.getCharBoundaries(charIndex);
-				lineIndex = textDisplay.getLineIndexOfChar(charIndex);
-				textDisplay.replaceText(charIndex, charIndex + 1, "");
+                // temporarily insert a character at the caretIndex
+                textDisplay.replaceText(charIndex, charIndex, "W");
+                caretBounds = textDisplay.getCharBoundaries(charIndex);
+                lineIndex = textDisplay.getLineIndexOfChar(charIndex);
+                textDisplay.replaceText(charIndex, charIndex + 1, "");
             }

             if (caretBounds)
@@ -436,29 +447,29 @@

             invalidateCaretPosition = false;
         }
-
-		// Make sure final scroll position is valid
-		snapTextScrollPosition();
-    }
-
-	/**
-	 *  @private
-	 *  Make sure the scroll positions are valid, and adjust if needed.
-	 */
-	private function snapTextScrollPosition():void
-	{
-		var maxHsp:Number = textDisplayGroup.contentWidth > textDisplayGroup.width ?
-			textDisplayGroup.contentWidth-textDisplayGroup.width : 0;
-		textDisplayGroup.horizontalScrollPosition =
-			Math.min(Math.max(0,textDisplayGroup.horizontalScrollPosition),maxHsp);
-
-		var maxVsp:Number = textDisplayGroup.contentHeight > textDisplayGroup.height ?
-			textDisplayGroup.contentHeight-textDisplayGroup.height : 0;
+
+        // Make sure final scroll position is valid
+        snapTextScrollPosition();
+    }
+
+    /**
+     *  @private
+     *  Make sure the scroll positions are valid, and adjust if needed.
+     */
+    private function snapTextScrollPosition():void
+    {
+        var maxHsp:Number = textDisplayGroup.contentWidth > textDisplayGroup.width ?
+            textDisplayGroup.contentWidth-textDisplayGroup.width : 0;
+        textDisplayGroup.horizontalScrollPosition =
+            Math.min(Math.max(0,textDisplayGroup.horizontalScrollPosition),maxHsp);
+
+        var maxVsp:Number = textDisplayGroup.contentHeight > textDisplayGroup.height ?
+            textDisplayGroup.contentHeight-textDisplayGroup.height : 0;

         textDisplayGroup.verticalScrollPosition =
-			Math.min(Math.max(0,textDisplayGroup.verticalScrollPosition),maxVsp);
- 	}
-
+            Math.min(Math.max(0,textDisplayGroup.verticalScrollPosition),maxVsp);
+    }
+
     /**
      *  @private
      *  Get the bounds of the caret
@@ -494,25 +505,25 @@
         }
     }

-	/**
-	 *  @private
-	 */
-	private function scrollToRange(anchorPosition:int, activePosition:int):void
-	{
-		var pos:int = Math.min(anchorPosition, activePosition);
-		var bounds:Rectangle = textDisplay.getCharBoundaries(pos);
-		var vsp:int = textDisplayGroup.verticalScrollPosition;
-		var paddingTop:Number = getStyle("paddingTop");
-		var paddingBottom:Number = getStyle("paddingBottom");
-
-		if (bounds && (bounds.top < vsp - paddingTop ||
-			 bounds.bottom > vsp + unscaledHeight - paddingTop - paddingBottom))
-		{
-			textDisplayGroup.verticalScrollPosition = bounds.top + paddingTop;
-			snapTextScrollPosition();
-		}
-	}
-
+    /**
+     *  @private
+     */
+    private function scrollToRange(anchorPosition:int, activePosition:int):void
+    {
+        var pos:int = Math.min(anchorPosition, activePosition);
+        var bounds:Rectangle = textDisplay.getCharBoundaries(pos);
+        var vsp:int = textDisplayGroup.verticalScrollPosition;
+        var paddingTop:Number = getStyle("paddingTop");
+        var paddingBottom:Number = getStyle("paddingBottom");
+
+        if (bounds && (bounds.top < vsp - paddingTop ||
+             bounds.bottom > vsp + unscaledHeight - paddingTop - paddingBottom))
+        {
+            textDisplayGroup.verticalScrollPosition = bounds.top + paddingTop;
+            snapTextScrollPosition();
+        }
+    }
+
     /**
      *  @private
      *  Handle size and caret position changes that occur when text content
@@ -528,9 +539,9 @@
         // the text width is different and we aren't word wrapping
         if (tH != lastTextHeight || ( explicitLineBreak && tW != lastTextWidth))
         {
-    		invalidateSize();
-	        invalidateDisplayList();
-	        invalidateCaretPosition = true;
+            invalidateSize();
+            invalidateDisplayList();
+            invalidateCaretPosition = true;
         }

         lastTextHeight = tH;
@@ -570,13 +581,13 @@
             invalidateDisplayList();
             invalidateCaretPosition = true;
         }
-
-		// Change event is not always sent when delete key is pressed, so
-		// invalidate the size here
-		if (event.keyCode == Keyboard.BACKSPACE)
-		{
-			invalidateSize();
-		}
+
+        // Change event is not always sent when delete key is pressed, so
+        // invalidate the size here
+        if (event.keyCode == Keyboard.BACKSPACE)
+        {
+            invalidateSize();
+        }
     }

     /**
@@ -620,18 +631,18 @@
         // propogate styleChanged explicitly to textDisplay
         if (textDisplay)
             textDisplay.styleChanged(styleProp);
-
-		// Check for padding style changes
-		if (!styleProp || styleProp == "styleName" || styleProp.indexOf("padding") >= 0)
-		{
-			if (textDisplay)
-			{
-				textDisplay.left = getStyle("paddingLeft");
-				textDisplay.top = getStyle("paddingTop");
-				textDisplay.right = getStyle("paddingRight");
-				textDisplay.bottom = getStyle("paddingBottom");
-			}
-		}
+
+        // Check for padding style changes
+        if (!styleProp || styleProp == "styleName" || styleProp.indexOf("padding") >= 0)
+        {
+            if (textDisplay)
+            {
+                textDisplay.left = getStyle("paddingLeft");
+                textDisplay.top = getStyle("paddingTop");
+                textDisplay.right = getStyle("paddingRight");
+                textDisplay.bottom = getStyle("paddingBottom");
+            }
+        }
     }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 21732
Author:   jszeto@adobe.com
Date:     2011-07-27T17:06:17.394878Z

Log Message:
-----------
NumericDataProvider initial checkin and SpinnerList fixes

- Added new class NumericDataProvider
- Added resource strings for the NumericDataProvider
- Fixed virtual layout bug in VerticalSpinnerLayout
- Made SpinnerList resizable

QE notes: none
Doc notes: Need ASDoc pass on NumericDataProvider
Bugs: none
Reviewer: Tom K
Tests run: checkintests, cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/bundles/en_US/collections.properties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/build.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>

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

--- frameworks/projects/spark/src/spark/collections/NumericDataProvider.as
+++ frameworks/projects/spark/src/spark/collections/NumericDataProvider.as
@@ -0,0 +1,391 @@
+////////////////////////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2011 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.collections
+{
+import flash.events.Event;
+
+import mx.collections.IList;
+import mx.events.CollectionEvent;
+import mx.events.CollectionEventKind;
+import mx.resources.IResourceManager;
+import mx.resources.ResourceManager;
+import mx.utils.OnDemandEventDispatcher;
+
+/**
+ *  This IList class generates items that are a sequential series of numbers.
+ *  The numbers range between the minimum and maximum
+ *  properties. The stepSize property defines the difference between
+ *  an item and the next item.
+ *
+ *  The advantage of this class is that the item values are calculated on demand,
+ *  instead of stored.
+ *
+ *  Since the values are calculated instead of stored, the addItem, addItemAt,
+ *  removeAll, removeItemAt, itemUpdated and setItemAt IList functions are not
+ *  supported.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 11
+ *  @playerversion AIR 3
+ *  @productversion Flex 4.5.2
+ *
+ *  @see
+ */
+public class NumericDataProvider extends OnDemandEventDispatcher implements IList
+{
+	//----------------------------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//----------------------------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function NumericDataProvider()
+	{
+		super();
+	}
+
+
+	//----------------------------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//----------------------------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Used for accessing localized Error messages.
+	 */
+	private var resourceManager:IResourceManager =
+		ResourceManager.getInstance();
+
+	//----------------------------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//----------------------------------------------------------------------------------------------
+
+	//----------------------------------
+	//  length
+	//----------------------------------
+	/**
+	 *  @inherit
+	 */
+	public function get length():int
+	{
+		normalizeMinMax();
+		return (_maximum - _minimum) / stepSize + 1;
+	}
+
+	//----------------------------------
+	//  maximum
+	//----------------------------------
+
+	private var _maximum:Number = 100;
+
+	/**
+	 *  The value of the last item. This value must be
+	 *  larger than the minimum value.
+	 *
+	 *  @default 100
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function get maximum():Number
+	{
+		normalizeMinMax();
+		return _maximum;
+	}
+
+	public function set maximum(value:Number):void
+	{
+		if (_maximum == value)
+			return;
+
+		_maximum = value;
+
+		reset();
+	}
+
+	//----------------------------------
+	//  minimum
+	//----------------------------------
+
+	private var _minimum:Number = 0;
+
+	/**
+	 *  The value of the first item. This value must be
+	 *  smaller than the minimum value.
+	 *
+	 *  @default 0
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function get minimum():Number
+	{
+		normalizeMinMax();
+		return _minimum;
+	}
+
+	public function set minimum(value:Number):void
+	{
+		if (_minimum == value)
+			return;
+
+		_minimum = value;
+
+		reset();
+	}
+
+	//----------------------------------
+	//  stepSize
+	//----------------------------------
+
+	private var _stepSize:Number = 1;
+
+	/**
+	 *  The stepSize property controls the values of items between the first and last items.
+     *
+     *  For each item, the value is calculated as the sum of the minimum
+	 *  and the item's index multiplied by this property.
+     *
+     *
For example, if minimum is 10, maximum is 20, and this property is 3, then the
+     *  item values of this data provider are 10, 13, 16, 19, and 20.

+	 *
+	 *  @default 1
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function get stepSize():Number
+	{
+		return _stepSize;
+	}
+
+	public function set stepSize(value:Number):void
+	{
+		if (_stepSize == value)
+			return;
+
+		if (value <= 0)
+		{
+			var message:String = resourceManager.getString(
+				"collections", "stepSizeError");
+			throw new Error(message);
+		}
+
+		_stepSize = value;
+
+		reset();
+	}
+
+	//----------------------------------------------------------------------------------------------
+	//
+	//  Interface Methods
+	//
+	//----------------------------------------------------------------------------------------------
+
+	/**
+	 *  This function is not supported
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function addItem(item:Object):void
+	{
+		var message:String = resourceManager.getString(
+			"collections", "addItemError");
+		throw new Error(message);
+	}
+
+	/**
+	 *  This function is not supported
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function addItemAt(item:Object, index:int):void
+	{
+		var message:String = resourceManager.getString(
+			"collections", "addItemAtError");
+		throw new Error(message);
+	}
+
+	/**
+	 *  @inherit
+	 */
+	public function getItemAt(index:int, prefetch:int=0):Object
+	{
+		if (index < 0 || index >= length)
+		{
+			var message:String = resourceManager.getString(
+				"collections", "outOfBounds", [ index ]);
+			throw new RangeError(message);
+		}
+
+		var scale:Number = 1;
+		var value:Number;
+		var scaledStepSize:Number = stepSize;
+
+		// If stepSize isn't an integer, there's a possibility that the floating point
+		// approximation of value will be slightly larger or smaller
+		// than the real value.  This can lead to errors in calculations like
+		// index * stepSize. To avoid problems, we scale by the implicit precision
+		// of the stepSize and then round. For example if stepSize=0.01, then
+		// we scale by 100.
+		// TODO (jszeto) Refactor into a util class?
+		if (stepSize != Math.round(stepSize))
+		{
+			const parts:Array = (new String(1 + stepSize)).split(".");
+			scale = Math.pow(10, parts[1].length);
+			scaledStepSize = Math.round(stepSize * scale);
+
+			value = Math.round(index * scaledStepSize) / scale;
+		}
+		else
+		{
+			value = index * stepSize;
+		}
+
+		return Math.min(Math.max(value + minimum, minimum), maximum);
+	}
+
+	/**
+	 *  @inherit
+	 */
+	public function getItemIndex(item:Object):int
+	{
+		// Calculate the index by subtracting the item from the minimum and
+		// dividing by the stepSize. Make sure the index is between
+		// 0 and length - 1.
+		return Math.max(Math.min((Number(item) - minimum) / stepSize, length - 1), 0);
+	}
+
+	/**
+	 *  This function is not supported
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function itemUpdated(item:Object, property:Object=null, oldValue:Object=null, newValue:Object=null):void
+	{
+		var message:String = resourceManager.getString(
+			"collections", "itemUpdatedError");
+		throw new Error(message);
+	}
+
+	/**
+	 *  This function is not supported
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function removeAll():void
+	{
+		var message:String = resourceManager.getString(
+			"collections", "removeAllError");
+		throw new Error(message);
+	}
+
+	/**
+	 *  This function is not supported
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function removeItemAt(index:int):Object
+	{
+		var message:String = resourceManager.getString(
+			"collections", "removeItemAtError");
+		throw new Error(message);
+		return null;
+	}
+
+	/**
+	 *  This function is not supported
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 11
+	 *  @playerversion AIR 3
+	 *  @productversion Flex 4.5.2
+	 */
+	public function setItemAt(item:Object, index:int):Object
+	{
+		var message:String = resourceManager.getString(
+			"collections", "setItemAtError");
+		throw new Error(message);
+		return null;
+	}
+
+	/**
+	 *  @inherit
+	 */
+	public function toArray():Array
+	{
+		var result:Array = [];
+		var numItems:int = length;
+
+		// TODO (jszeto) Add in floating point error logic
+		for (var i:int = 0; i < numItems; i++)
+			result.push(Math.min(Math.max(minimum + (i * stepSize), minimum), maximum));
+		return result;
+	}
+
+	//----------------------------------------------------------------------------------------------
+	//
+	//  Functions
+	//
+	//----------------------------------------------------------------------------------------------
+
+	private function normalizeMinMax():void
+	{
+		if (_minimum > _maximum)
+			_maximum = _minimum;
+	}
+
+	private function reset():void
+	{
+		// Easier to just reset the collection instead of
+		// calculating the delta of which items have been
+		// added, removed or updated
+		var event:CollectionEvent =
+			new CollectionEvent(CollectionEvent.COLLECTION_CHANGE);
+		event.kind = CollectionEventKind.RESET;
+		dispatchEvent(event);
+	}
+}
+
+}


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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
@@ -23,10 +23,10 @@
     <fx:Script>
         <![CDATA[

-            override public function set labelText(value:String):void
+            override public function set label(value:String):void
             {
-                super.labelText = value;
-                labelDisplay.text = labelText;
+                super.label = value;
+                labelDisplay.text = label;
             }
         ]]>
     </fx:Script>
@@ -36,35 +36,35 @@
         <s:State name="normal" />
         <s:State name="hovered" />
         <s:State name="selected" />
-        <s:State name="normalAndCaret"/>
-        <s:State name="hoveredAndCaret"/>
-        <s:State name="selectedAndCaret"/>
+        <s:State name="normalAndShowsCaret"/>
+        <s:State name="hoveredAndShowsCaret"/>
+        <s:State name="selectedAndShowsCaret"/>
     </s:states>

     <s:Rect left="0" right="0" top="0" bottom="0">
-        <s:stroke.normalAndCaret>
+        <s:stroke.normalAndShowsCaret>
             <s:SolidColorStroke
                 color="{selectionColor}"
                 weight="1"/>
-        </s:stroke.normalAndCaret>
-        <s:stroke.hoveredAndCaret>
+        </s:stroke.normalAndShowsCaret>
+        <s:stroke.hoveredAndShowsCaret>
             <s:SolidColorStroke
                 color="{selectionColor}"
                 weight="1"/>
-        </s:stroke.hoveredAndCaret>
-        <s:stroke.selectedAndCaret>
+        </s:stroke.hoveredAndShowsCaret>
+        <s:stroke.selectedAndShowsCaret>
             <s:SolidColorStroke
                 color="{selectionColor}"
                 weight="1"/>
-        </s:stroke.selectedAndCaret>
+        </s:stroke.selectedAndShowsCaret>
         <s:fill>
             <s:SolidColor
             	color.normal="{contentBackgroundColor}"
-                color.normalAndCaret="{contentBackgroundColor}"
+                color.normalAndShowsCaret="{contentBackgroundColor}"
                 color.hovered="{rollOverColor}"
-                color.hoveredAndCaret="{rollOverColor}"
+                color.hoveredAndShowsCaret="{rollOverColor}"
             	color.selected="{selectionColor}"
-                color.selectedAndCaret="{selectionColor}"
+                color.selectedAndShowsCaret="{selectionColor}"
             	/>
         </s:fill>
     </s:Rect>


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/charts/src/mx/charts/series/renderData/BarSeriesRenderData.as
+++ frameworks/projects/charts/src/mx/charts/series/renderData/BarSeriesRenderData.as
@@ -0,0 +1,171 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.charts.series.renderData
+{
+
+import mx.charts.chartClasses.RenderData;
+
+/**
+ *  Represents all the information needed by the BarSeries to render.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class BarSeriesRenderData extends RenderData
+{
+    include "../../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param cache The list of BarSeriesItem objects representing the items in the dataProvider
+     *  @param filteredCache The list of BarSeriesItem objects representing the items in the dataProvider that remain after filtering.
+     *  @param renderedBase The horizontal position of the base of the bars, in pixels.
+     *  @param renderedHalfWidth Half the width of a bar, in pixels.
+     *  @param renderedYOffset The offset of each bar from its y value, in pixels.
+     *  @param labelScale The scale factor of the labels rendered by the bar series.
+     *  @param labelData A structure of data associated with the layout of the labels rendered by the bar series.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function  BarSeriesRenderData(cache:Array /* of BarSeriesItem */ = null,
+                                         filteredCache:Array /* of BarSeriesItem */ = null,
+                                         renderedBase:Number = 0,
+                                         renderedHalfWidth:Number = 0,
+                                         renderedYOffset:Number = 0,
+                                         labelScale:Number = 1,
+                                         labelData:Object = null)
+    {
+        super(cache, filteredCache);
+
+        this.renderedBase = renderedBase;
+        this.renderedHalfWidth = renderedHalfWidth;
+        this.renderedYOffset = renderedYOffset;
+        this.labelScale = labelScale;
+        this.labelData = labelData;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  labelData
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  A structure of data associated with the layout of the labels rendered by the bar series.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var labelData:Object;
+
+    //----------------------------------
+    //  labelScale
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  The scale factor of the labels rendered by the bar series.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var labelScale:Number;
+
+    //----------------------------------
+    //  renderedBase
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  The horizontal position of the base of the bars, in pixels.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var renderedBase:Number;
+
+    //----------------------------------
+    //  renderedHalfWidth
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  Half the width of a bar, in pixels.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var renderedHalfWidth:Number;
+
+    //----------------------------------
+    //  renderedYOffset
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  The offset of each bar from its y value, in pixels.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var renderedYOffset:Number;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():RenderData
+    {
+        return new BarSeriesRenderData(cache, filteredCache, renderedBase,
+                                       renderedHalfWidth, renderedYOffset,
+                                       labelScale,labelData);
+    }
+}
+
+}


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

--- frameworks/projects/spark/src/spark/components/supportClasses/InteractionState.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/InteractionState.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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.
 //
 ////////////////////////////////////////////////////////////////////////////////


code clean

code clean

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/InputFieldPresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/InputFieldPresenter.as
@@ -186,15 +186,6 @@
 				result = [text];
 			}
 			return result;
-			/*
-			var newAttributeValue:* = new AbstractValue();
-			newAttributeValue.text1 = _inputField.text;
-			if(value != null) {
-				//copy old informations
-				newAttributeValue.remarks = value.remarks;
-			}
-			return newAttributeValue;
-			*/
 		}

 		public function changeSymbol(symbol:AttributeSymbol, remarks:String = null):void {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18941
Author:   deeptika@adobe.com
Date:     2010-12-02T07:27:40.830630Z

Log Message:
-----------
Obtaining array length again if array has changed

QE notes:
Doc notes:
Bugs: FLEXENT-1376 (SkinnableContainerTabularData.as - flattenArray: ignoring of elemnts of the array)
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/tabularData/SkinnableDataContainerTabularData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/tabularData/SkinnableContainerTabularData.as</path>

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

--- frameworks/projects/automation_spark/src/spark/automation/tabularData/SkinnableContainerTabularData.as
+++ frameworks/projects/automation_spark/src/spark/automation/tabularData/SkinnableContainerTabularData.as
@@ -214,6 +214,7 @@

 					a = tmp;
 					i = -1;
+					n = a.length;
 				}
 			}
 			return a;


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

--- frameworks/projects/mx/src/mx/accessibility/ListAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/ListAccImpl.as
@@ -12,7 +12,6 @@
 package mx.accessibility
 {

-import mx.accessibility.AccConst;
 import mx.controls.List;
 import mx.core.UIComponent;
 import mx.core.mx_internal;


Transferred from the Adobe Open Source Subversion Repository

Revision: 6695
Author:   gosmith@adobe.com
Date:     2009-05-06T20:50:19.055934Z

Log Message:
-----------
Fixed code for drawing debugging backgrounds in SimpleText, RichText, and RichEditableText.

In SimpleText and RichText, it shouldn't do graphics.clear(), and should draw at (drawX, drawY), in order to work properly when TextGraphicElements are sharing a single DisplayObject.

In RichEditableText I moved the static var that controls background-drawing from the subclass of TextContainerManager that actually does the drawing to the RichEditableText class itself, to be consistent with how you set it on SimpleText and RichText.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -495,10 +495,9 @@
     	if (bc != null)
     	{
 	    	var g:Graphics = Sprite(drawnDisplayObject).graphics;
-	    	g.clear();
 	        g.lineStyle();
 	        g.beginFill(uint(bc));
-	       	g.drawRect(0, 0, unscaledWidth, unscaledHeight);
+	       	g.drawRect(drawX, drawY, unscaledWidth, unscaledHeight);
 	        g.endFill();
 	    }
     }