Optimized travers method: avoid recursion

--- collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/EntityProxy.as
+++ collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/EntityProxy.as
@@ -14,6 +14,7 @@
 	import org.openforis.collect.metamodel.proxy.EntityDefinitionProxy;
 	import org.openforis.collect.metamodel.proxy.NumberAttributeDefinitionProxy;
 	import org.openforis.collect.metamodel.proxy.NumberAttributeDefinitionProxy$Type;
+	import org.openforis.collect.util.ArrayUtil;
 	import org.openforis.collect.util.ObjectUtil;
 	import org.openforis.collect.util.StringUtil;
 	import org.openforis.collect.util.UIUtil;
@@ -83,11 +84,14 @@
 		 * Traverse each child and pass it to the argument function
 		 * */
 		public function traverse(funct:Function):void {
-			var children:IList = getChildren();
-			for each (var child:NodeProxy in children) {
-				funct(child);
-				if(child is EntityProxy) {
-					EntityProxy(child).traverse(funct);
+			var stack:Array = new Array();
+			stack.push(this);
+			while ( stack.length > 0 ) {
+				var node:NodeProxy = NodeProxy(stack.pop());
+				funct(node);
+				if ( node is EntityProxy ) {
+					var children:IList = EntityProxy(node).getChildren();
+					ArrayUtil.addAll(stack, children.toArray());
 				}
 			}
 		}
@@ -254,7 +258,7 @@
 			return required == true;
 		}

-		public function get childrenDefinitionNames():IList {
+		public function get childDefinitionNames():IList {
 			//taken from showChildrenErrorsMap that is fully populated from the server
 			//with an entry for each child definition
 			var names:ArrayCollection = showChildrenErrorsMap.keySet;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.automation.delegates.controls
 {


fixed several bugs in Dictionary2D and added forEach()

--- WeaveJS/src/weavejs/utils/Dictionary2D.as
+++ WeaveJS/src/weavejs/utils/Dictionary2D.as
@@ -6,6 +6,8 @@
 */
 package weavejs.utils
 {
+	import weavejs.Weave;
+
 	/**
 	 * This is a wrapper for a 2-dimensional Map.
 	 *
@@ -15,7 +17,7 @@
 	{
 		public function Dictionary2D(weakPrimaryKeys:Boolean = false, weakSecondaryKeys:Boolean = false, defaultType:Class = null)
 		{
-			map = weakPrimaryKeys ? new Weave.WeakMap() : new Weave.Map;
+			map = weakPrimaryKeys ? new Utils.WeakMap() : new Utils.Map;
 			weak1 = weakPrimaryKeys;
 			weak2 = weakSecondaryKeys;
 			this.defaultType = defaultType;
@@ -25,13 +27,11 @@
 		 * The primary Map object.
 		 */
 		public var map:Object;
-
 		private var weak1:Boolean;
 		private var weak2:Boolean; // used as a constructor parameter for nested Dictionaries
 		private var defaultType:Class; // used for creating objects automatically via get()

 		/**
-		 *
 		 * @param key1 The first map key.
 		 * @param key2 The second map key.
 		 * @return The value.
@@ -60,8 +60,8 @@
 		{
 			var map2:Object = map.get(key1);
 			if (map2 == null)
-				map.set(key1, map2 = weak2 ? new Weave.WeakMap() : new Weave.Map());
-			map.set(key2, value);
+				map.set(key1, map2 = weak2 ? new Utils.WeakMap() : new Utils.Map());
+			map2.set(key2, value);
 		}

 		/**
@@ -78,18 +78,17 @@
 		 * @param key2 The second dictionary key.
 		 * @private
 		 */
-		private function removeAllSecondary(key2:Object):void
+		public function removeAllSecondary(key2:Object):void
 		{
 			if (weak1)
 				throw new Error("WeakMap cannot be iterated over");
 			_key2ToRemove = key2;
 			map.forEach(removeAllSecondary_each, this);
 		}
-
 		private var _key2ToRemove:*;
-		private function removeAllSecondary_each(map1:*, key1:*):void
+		private function removeAllSecondary_each(map2:*, key1:*):void
 		{
-			map1['delete'](_key2ToRemove);
+			map2['delete'](_key2ToRemove);
 		}

 		/**
@@ -106,16 +105,53 @@
 			{
 				value = map2.get(key2);
 				map2['delete'](key2);
+
+				// if entries remain in map2, keep it
+				if (map2.size)
+					return value;
+
+				// otherwise, remove it
+				map['delete'](key1);
 			}
+			return value;
+		}
+
+		/**
+		 * Iterates over pairs of keys and corresponding values.
+		 * @param key1_key2_value A function which may return true to stop iterating.
+		 * @param thisArg The 'this' argument for the function.
+		 */
+		public function forEach(key1_key2_value:Function, thisArg:Object):void
+		{
+			if (weak1 || weak2)
+				throw new Error("WeakMap cannot be iterated over");

-			// if entries remain in map2, keep it
-			for (var v2:* in map2)
-				return value;
+			forEach_fn = key1_key2_value;
+			forEach_this = thisArg;

-			// otherwise, remove it
-			map['delete'](key1);
+			map.forEach(forEach1, this);

-			return value;
+			forEach_fn = null;
+			forEach_this = null;
+			forEach_key1 = null;
+			forEach_map2 = null;
+		}
+		private var forEach_fn:Function;
+		private var forEach_this:Object;
+		private var forEach_key1:Object;
+		private var forEach_map2:Object;
+		private function forEach1(map2:*, key1:*):void
+		{
+			if (forEach_fn == null)
+				return;
+			forEach_key1 = key1;
+			forEach_map2 = map2;
+			map2.forEach(forEach2, this);
+		}
+		private function forEach2(value:*, key2:*):void
+		{
+			if (forEach_fn != null && forEach_fn.call(forEach_this, forEach_key1, key2, value))
+				forEach_fn = null;
 		}
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.automation.delegates.charts
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/framework/src/mx/managers/IBrowserManager.as
+++ frameworks/projects/framework/src/mx/managers/IBrowserManager.as
@@ -0,0 +1,127 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.managers
+{
+
+import flash.events.IEventDispatcher;
+
+/**
+ *  Dispatched when the URL is changed either
+ *  by the user interacting with the browser, invoking an
+ *  application in AIR, or by setting the property programmatically.
+ *
+ *  @eventType flash.events.Event.CHANGE
+ */
+[Event(name="change", type="flash.events.Event")]
+
+/**
+ *  Dispatched when the URL is changed
+ *  by the browser.
+ *
+ *  @eventType mx.events.BrowserChangeEvent.BROWSER_URL_CHANGE
+ */
+[Event(name="browserURLChange", type="mx.events.BrowserChangeEvent")]
+
+/**
+ *  Dispatched when the URL is changed
+ *  by the application.
+ *
+ *  @eventType mx.events.BrowserChangeEvent.URL_CHANGE
+ */
+[Event(name="urlChange", type="mx.events.BrowserChangeEvent")]
+
+/**
+ *  The interface that the shared instance of the BrowserManager
+ *  implements. Applications listen for events,
+ *  call methods, and access properties on the shared instance
+ *  which is accessed with the BrowserManager.getInstance() method.
+ *
+ *  @see mx.managers.BrowserManager
+ */
+public interface IBrowserManager extends IEventDispatcher
+{
+
+    /**
+     *  The portion of current URL before the '#' as it appears
+     *  in the browser address bar.
+     */
+    function get base():String;
+
+    /**
+     *  The portion of current URL after the '#' as it appears
+     *  in the browser address bar. Use the setURLFragment() method to change this value.
+     */
+    function get fragment():String;
+
+    /**
+     *  The title of the application as it should appear in the
+     *  browser history.
+     */
+    function get title():String;
+
+    /**
+     *  The current URL as it appears in the browser address bar.
+     */
+    function get url():String;
+
+    /**
+     *  Changes the fragment of the URL after the '#' in the browser.
+     *  An attempt will be made to track this URL in the browser's
+     *  history.
+     *
+     *
If the title is set, the old title in the browser is replaced
+     *  by the new title.

+     *
+     *
To store the URL, a JavaScript
+     *  method named setBrowserURL() will be called.
+     *  The application's HTML wrapper must have that method which
+     *  must implement a mechanism for taking this
+     *  value and registering it with the browser's history scheme
+     *  and address bar.

+     *
+     *
When set, the APPLICATION_URL_CHANGE event is dispatched. If the event
+     *  is cancelled, the setBrowserURL() method will not be called.

+     */
+    function setFragment(value:String):void;
+
+    /**
+     *  Changes the text in the browser's title bar.
+     *  This method does not affect the browser's history.
+     */
+    function setTitle(value:String):void;
+
+    /**
+     *  Initializes the BrowserManager. The BrowserManager will get the initial URL. If it
+     *  has a fragment, it will dispatch a BROWSER_URL_CHANGE event.
+     *
+     *  This method sets the value of the Application.application.historyManagementEnabled
+     *  property to false because the HistoryManager generally interferes with your
+     *  application's handling of URL fragments.
+     *
+     *  @param defaultFragment The fragment to use if no fragment is in the initial URL.
+     *  @param defaultTitle The title to use if no fragment is in the initial URL.
+     */
+    function init(value:String = null, title:String = null):void;
+
+    /**
+     *  Initializes the BrowserManager. The HistoryManager calls this method to
+     *  prepare the BrowserManager for further calls from the HistoryManager. You cannot use
+     *  the HistoryManager and call the setFragment() method from the application.
+     *  As a result, the init() method usually sets
+     *  the value of the Application.application.historyManagementEnabled property to false to disable
+     *  the HistoryManager.
+     */
+    function initForHistoryManager():void;
+}
+
+}
+


Transferred from the Adobe Open Source Subversion Repository

Revision: 9467
Author:   gosmith@adobe.com
Date:     2009-08-21T21:46:43.117874Z

Log Message:
-----------
Completed the ASDoc for the nine documented Spark text classes. No more "Documentation is not currently available." Instead, there may now be too much of it. :)

QE notes: Please review the new doc and give me feedback
Doc notes: Please review and edit
Bugs: None
Reviewer: None
Tests run: ant checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextSelectionHighlighting.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TextOperationEvent.as</path>

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

--- frameworks/projects/spark/src/spark/events/TextOperationEvent.as
+++ frameworks/projects/spark/src/spark/events/TextOperationEvent.as
@@ -17,9 +17,10 @@
 import flashx.textLayout.operations.FlowOperation;

 /**
- *  The TextOperationEvent class represents events that are dispatched when text content
- *  changes due to user operations such as inserting characters,
- *  backspacing, pasting, changing attributes, etc.
+ *  The TextOperationEvent class represents events that are dispatched
+ *  when text content changes due to user operations
+ *  such as inserting characters, backspacing, pasting,
+ *  changing attributes, etc.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -117,9 +118,8 @@
      *  @param cancelable Specifies whether the behavior
      *  associated with the event can be prevented.
      *
-     *  @param operation Reference to the FlowOperation object
-     *  describing the editing operation being performed
-     *  on the text by the user.
+     *  @param operation The FlowOperation object representing
+	 *  the editing operation being performed on the text by the user.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -146,7 +146,12 @@
     //----------------------------------

     /**
-     *  The FlowOperation object describing the editing operation being performed by the user.
+     *  The FlowOperation object representing the editing operation
+	 *  being performed on the text by the user.
+	 *
+	 *
This might be an InsertTextOperation, a DeleteTextOperation,
+	 *  a SplitParagraphOperation, a CutOperation, a PasteOperation,
+	 *  an UndoOperation, etc.

      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 21218
Author:   chiedozi@adobe.com
Date:     2011-05-06T22:00:57.930849Z

Log Message:
-----------
Fixing an issue where persistenceManager wouldn't load its backing SharedObject if persistNavigatorState was false

QE notes:
Doc notes:
Bugs: SDK-30372
Reviewer: Tom
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as
@@ -247,9 +247,7 @@
     public function get persistenceManager():IPersistenceManager
     {
         if (!_persistenceManager)
-        {
-            _persistenceManager = createPersistenceManager();
-        }
+            initializePersistenceManager();

         return _persistenceManager;
     }
@@ -797,10 +795,9 @@
         registerClassAlias("ViewDescriptor", ViewDescriptor);
         registerClassAlias("NavigationStack", NavigationStack);

-        // Initialize and load the persisted data.  The persistence manager
-        // will automatically be allocated in the persistenceManager getter
-        // called below
-        persistenceManager.load();
+        // Initialize and load the persisted data.
+        _persistenceManager = createPersistenceManager();
+        _persistenceManager.load();

         _persistenceInitialized = true;
     }


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

--- frameworks/projects/automation/src/mx/automation/tabularData/AxisRendererTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/AxisRendererTabularData.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.automation.tabularData
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18544
Author:   rfrishbe@adobe.com
Date:     2010-11-11T21:48:17.001134Z

Log Message:
-----------
Making StyleableTextField changes.  StyleableTextField now implements ISimpleStyleClient.  styleProvider has been renamed to styleName.  Also, there's no need to call styleChanged() on StyleableTextField anymore since it implements ISimpleStyleClient and can be done automatically.

Also, fixing an issue in MobileIconItemRenderer where icons were refreshing if they were embedded.  We now handle embedded assets better in the icon setter because we set them immiedately, rather than wait for a 500ms delay.

QE notes:
Doc notes:
Bugs:
Reviewer: Eric Day, Glenn
Tests run: checkintests, mustella DataGroup, List, ListDND
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.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/mobilecomponents/src/spark/components/MobileItemRenderer.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/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileIconItemRenderer.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
@@ -148,11 +148,11 @@
     override protected function createChildren():void
     {
         labelDisplay = StyleableTextField(createInFontContext(StyleableTextField));
-        labelDisplay.styleProvider = this;
+        labelDisplay.styleName = this;
         labelDisplay.addEventListener(FlexEvent.VALUE_COMMIT, labelDisplay_valueCommitHandler);

         labelDisplayShadow = StyleableTextField(createInFontContext(StyleableTextField));
-        labelDisplayShadow.styleProvider = this;
+        labelDisplayShadow.styleName = this;

         labelDisplayShadow.colorName = "textShadowColor";

@@ -185,11 +185,6 @@
         }

         super.styleChanged(styleProp);
-
-        if (labelDisplay)
-            labelDisplay.styleChanged(styleProp);
-        if (labelDisplayShadow)
-            labelDisplayShadow.styleChanged(styleProp);
     }

     /**


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

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

 package mx.controls.fileSystemClasses
 {


Added null values if stream is not available

--- src/Player.as
+++ src/Player.as
@@ -41,6 +41,7 @@
     private var urlParsed:Object;
     private var savedSpeakerVolume:Number;
     private var fullscreenAllowed:Boolean = true;
+    private var currentState:String = "Stopped";

     public function Player() {
       var self:Player = this;
@@ -141,6 +142,7 @@
         /* RTSP over TCP */
         client = new RTSPClient(this.video, urlParsed, new RTSPoverTCPHandle(urlParsed));
         this.callAPI('streamStarted');
+        this.currentState = "Playing";
         break;

       case 'http':
@@ -166,6 +168,7 @@
     public function pause():void {
       client.pause();
       this.callAPI('streamPaused');
+      this.currentState = "Paused";
     }

     public function resume():void {
@@ -178,6 +181,7 @@
       ns = null;
       client.stop();
       this.callAPI('streamStopped');
+      this.currentState = "Stopped";
     }

     public function seek(timestamp:String):void {
@@ -190,16 +194,16 @@

     public function streamStatus():Object {
       var status:Object = {
-        'fps': Math.floor(this.ns.currentFPS + 0.5),
-        'resolution': meta.width + 'x' + meta.height,
-        'playbackSpeed': 1.0,
-        'protocol': this.urlParsed.protocol,
-        'audio': true,
-        'video': true,
-        'state': 'playing',
+        'fps': (this.ns) ? Math.floor(this.ns.currentFPS + 0.5) : null,
+        'resolution': (this.ns) ? (meta.width + 'x' + meta.height) : null,
+        'playbackSpeed': (this.ns) ? 1.0 : null,
+        'protocol': (this.urlParsed) ? this.urlParsed.protocol: null,
+        'audio': null,
+        'video': null,
+        'state': this.currentState,
         'isSeekable': false,
         'isPlaybackSpeedChangeable': false,
-        'streamURL': this.urlParsed.full
+        'streamURL': (this.urlParsed) ? this.urlParsed.full : null
       };

       return status;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package spark.accessibility
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/core/DisplayObjectSharingMode.as
+++ frameworks/projects/spark/src/spark/core/DisplayObjectSharingMode.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 spark.core
 {
 /**


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

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

 package mx.skins.spark {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20690
Author:   mhorn@adobe.com
Date:     2011-03-08T20:26:51.755036Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/Legend.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PieChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PlotChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/items/LineSeriesSegment.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/CandlestickChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/HLOCChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/InstanceCache.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/BarSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/Series.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/LineChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BubbleChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/ColumnChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/DateTimeAxis.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/AreaChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartElement.as</path>

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as
@@ -313,6 +313,9 @@
         return _totalValue;
     }

+    /**
+     * @private
+     */
     public function set totalValue(value:Number):void
     {
         _totalValue = value;


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

--- frameworks/projects/charts/src/mx/charts/styles/metadata/LeadingStyle.as
+++ frameworks/projects/charts/src/mx/charts/styles/metadata/LeadingStyle.as
@@ -0,0 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  Additional vertical space between lines of text.
+ *  The default value is 2.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="leading", type="Number", format="Length", inherit="yes")]


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

--- frameworks/projects/charts/src/mx/charts/styles/metadata/LeadingStyle.as
+++ frameworks/projects/charts/src/mx/charts/styles/metadata/LeadingStyle.as
@@ -1,21 +1,2 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////

-/**
- *  Additional vertical space between lines of text.
- *  The default value is 2.
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
- */
 [Style(name="leading", type="Number", format="Length", inherit="yes")]


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

--- frameworks/projects/mobilecomponents/src/spark/layouts/ViewMenuLayout.as
+++ frameworks/projects/mobilecomponents/src/spark/layouts/ViewMenuLayout.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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.layouts
 {


Our inherited constructor documentation didn't make much sense.

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

--- src/as/com/threerings/crowd/data/OccupantInfo.as
+++ src/as/com/threerings/crowd/data/OccupantInfo.as
@@ -73,7 +73,10 @@
     /** The status of this occupant. */
     public var status :int = ACTIVE;

-    /** A blank constructor used for unserialization. */
+    /**
+     * Constructs an occupant info record, optionally obtaining data from the
+     * supplied BodyObject.
+     */
     public function OccupantInfo (body :BodyObject = null)
     {
         if (body != null) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 15443
Author:   aharui@adobe.com
Date:     2010-04-15T18:35:51.614135Z

Log Message:
-----------
Merge SVN 15268 to trunk

QE Notes: none
Doc Notes:
Bugs: SDK-25969
Reviewer: Corey
Tests run: Checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
@@ -1870,9 +1870,13 @@
         if (rendererFactory == null && owner != null)
             rendererFactory = owner.itemRenderer;

-        if (rendererFactory is ClassFactory)
-            return new ContextualClassFactory(ClassFactory(rendererFactory).generator,
-                forHeader ? oldHeaderEmbeddedFontContext : oldEmbeddedFontContext);
+        if (rendererFactory is ClassFactory) {
+	        var contextualClassFactory: ContextualClassFactory =
+		        new ContextualClassFactory(ClassFactory(rendererFactory).generator,
+		                                   forHeader ? oldHeaderEmbeddedFontContext : oldEmbeddedFontContext);
+	        contextualClassFactory.properties = ClassFactory(rendererFactory).properties;
+	        return contextualClassFactory;
+        }

         return rendererFactory;
     }


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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 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: 15079
Author:   jszeto@adobe.com
Date:     2010-03-26T21:46:10.432430Z

Log Message:
-----------
Merging revision 15076 from 4.x to trunk

http://bugs.adobe.com/jira/browse/SDK-25635 - Slight gap in MX DataGrid columnDropIndicatorSkin when layoutDirection is rtl

If layoutDirection is rtl, pad the drop indicator position by 1 px. Move setActualSize up because the logic for positioning the drop indicator depends upon the indicator’s width.

QE notes: none
Doc notes: none
Bugs: SDK-25635
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
@@ -22,9 +22,10 @@
 import flash.geom.Matrix;
 import flash.geom.Point;
 import flash.geom.Rectangle;
+
+import mx.controls.DataGrid;
 import mx.controls.listClasses.IDropInListItemRenderer;
 import mx.controls.listClasses.IListItemRenderer;
-import mx.controls.DataGrid;
 import mx.core.EdgeMetrics;
 import mx.core.FlexSprite;
 import mx.core.IFlexDisplayObject;
@@ -32,6 +33,8 @@
 import mx.core.LayoutDirection;
 import mx.core.UIComponent;
 import mx.core.UIComponentGlobals;
+import mx.core.mx_internal;
+import mx.effects.easing.Back;
 import mx.events.DataGridEvent;
 import mx.events.SandboxMouseEvent;
 import mx.managers.CursorManager;
@@ -39,8 +42,6 @@
 import mx.skins.halo.DataGridColumnDropIndicator;
 import mx.styles.ISimpleStyleClient;
 import mx.styles.StyleManager;
-import mx.core.mx_internal;
-import mx.effects.easing.Back;

 use namespace mx_internal;

@@ -1022,9 +1023,9 @@
                     m.width = dataGrid.width / dataGrid.scaleX - m.x - dataGrid.viewMetrics.right;
                     m.height = dataGrid.height / dataGrid.scaleY - m.x - dataGrid.viewMetrics.bottom;

-                    columnDropIndicator.x = xx - columnDropIndicator.width;
-                    columnDropIndicator.y = 0;
                     columnDropIndicator.setActualSize(3, dataGrid.height / dataGrid.scaleY);
+                    columnDropIndicator.x = xx - columnDropIndicator.width + (layoutDirection == LayoutDirection.LTR ? 0 : 1);
+                    columnDropIndicator.y = 0;
                 }
                 break;
             }


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

--- frameworks/projects/mx/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 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: 18894
Author:   smgilson@adobe.com
Date:     2010-12-01T17:13:53.351835Z

Log Message:
-----------
Finish first pass of ASDoc on DataGrid/Grid.as

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

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -445,16 +445,16 @@
     }

     /**
-	 *  @private
+     *  @private
      *  Computes new values for the grid's measuredWidth,Height and
-	 *  measuredMinWidth,Height properties.
+     *  measuredMinWidth,Height properties.
      *
      *  If grid.requestedRowCount is GTE 0, then measuredHeight is estimated
-	 *  content height for as many rows.  Otherwise the measuredHeight is the estimated
-	 *  content height for all rows.  The measuredWidth calculation is similar.  The
-	 *  measuredMinWidth,Height properties are also similar however if the corresponding
-	 *  requestedMin property isn't specified, then the measuredMin size is the same
-	 *  as the measured size.
+     *  content height for as many rows.  Otherwise the measuredHeight is the estimated
+     *  content height for all rows.  The measuredWidth calculation is similar.  The
+     *  measuredMinWidth,Height properties are also similar however if the corresponding
+     *  requestedMin property isn't specified, then the measuredMin size is the same
+     *  as the measured size.
      */
     override public function measure():void
     {
@@ -479,9 +479,9 @@

         var measuredWidth:Number = gridDimensions.getTypicalContentWidth(grid.requestedColumnCount);
         var measuredHeight:Number = gridDimensions.getTypicalContentHeight(measuredRowCount);
-		var measuredMinWidth:Number = gridDimensions.getTypicalContentWidth(grid.requestedMinColumnCount);
-		var measuredMinHeight:Number = gridDimensions.getTypicalContentHeight(grid.requestedMinRowCount);
-
+        var measuredMinWidth:Number = gridDimensions.getTypicalContentWidth(grid.requestedMinColumnCount);
+        var measuredMinHeight:Number = gridDimensions.getTypicalContentHeight(grid.requestedMinRowCount);
+
         // Use Math.ceil() to make sure that if the content partially occupies
         // the last pixel, we'll count it as if the whole pixel is occupied.

@@ -673,11 +673,11 @@
         return dataProvider.getItemAt(rowIndex);
     }

-	//--------------------------------------------------------------------------
-	//
-	//  Updating the GridDimensions' typicalCell sizes and columnWidths
-	//
-	//--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
+    //
+    //  Updating the GridDimensions' typicalCell sizes and columnWidths
+    //
+    //--------------------------------------------------------------------------

     /**
      *  @private
@@ -695,30 +695,30 @@

        return width;
     }
-
-    /**
-	 *  @private
-	 *  Use the specified GridColumn's itemRenderer (IFactory) to create a temporary
-	 *  item renderer.   The returned item renderer must be freed, with freeGridElement(),
-	 *  after it's used.
-	 */
-	private function createTypicalItemRenderer(columnIndex:int):IGridItemRenderer
-	{
+
+    /**
+     *  @private
+     *  Use the specified GridColumn's itemRenderer (IFactory) to create a temporary
+     *  item renderer.   The returned item renderer must be freed, with freeGridElement(),
+     *  after it's used.
+     */
+    private function createTypicalItemRenderer(columnIndex:int):IGridItemRenderer
+    {
         const rendererLayer:GridLayer = getLayer("rendererLayer");
         if (!rendererLayer)
             return null;

-		var typicalItem:Object = grid.typicalItem;
-		if (typicalItem == null)
-			typicalItem = getDataProviderItem(0);
-
-		const column:GridColumn = getGridColumn(columnIndex);
-		const factory:IFactory = itemToRenderer(column, typicalItem);
-		const renderer:IGridItemRenderer = allocateGridElement(factory) as IGridItemRenderer;
-
-		rendererLayer.addElement(renderer);
-
-		initializeItemRenderer(renderer, 0 /* rowIndex */, columnIndex, grid.typicalItem, false);
+        var typicalItem:Object = grid.typicalItem;
+        if (typicalItem == null)
+            typicalItem = getDataProviderItem(0);
+
+        const column:GridColumn = getGridColumn(columnIndex);
+        const factory:IFactory = itemToRenderer(column, typicalItem);
+        const renderer:IGridItemRenderer = allocateGridElement(factory) as IGridItemRenderer;
+
+        rendererLayer.addElement(renderer);
+
+        initializeItemRenderer(renderer, 0 /* rowIndex */, columnIndex, grid.typicalItem, false);

         // If the column's width isn't specified, then use the renderer's explicit
         // width, if any.   If that isn't specified, then use 4096, to avoid wrapping.
@@ -742,14 +742,14 @@
             columnWidth = 4096;

         layoutItemRenderer(renderer, 0, 0, columnWidth, NaN);
-
-		rendererLayer.removeElement(renderer);
-
-		return renderer;
-	}
-
-	/**
-	 *  @private
+
+        rendererLayer.removeElement(renderer);
+
+        return renderer;
+    }
+
+    /**
+     *  @private
      *  Update the typicalCellWidth,Height for all of the columns starting
      *  with x coordinate startX and column startIndex that fit within the
      *  specified width.  Typical sizes are only updated if the current
@@ -758,21 +758,21 @@
      *  The typicalCellWidth for GridColumns with an explicit width, is just
      *  the explicit width.  Otherwise an item renderer is created for the column
      *  and the item renderer's preferred bounds become the typical cell size.
-	 */
-	private function updateVisibleTypicalCellSizes(width:Number, scrollX:Number, firstVisibleColumnIndex:int):void
-	{
-		const gridDimensions:GridDimensions = gridDimensions;
+     */
+    private function updateVisibleTypicalCellSizes(width:Number, scrollX:Number, firstVisibleColumnIndex:int):void
+    {
+        const gridDimensions:GridDimensions = gridDimensions;
         const columnCount:int = gridDimensions.columnCount;
-		const startCellX:Number = gridDimensions.getCellX(0 /* rowIndex */, firstVisibleColumnIndex);
-		const columnGap:int = gridDimensions.columnGap;
-
-		for (var columnIndex:int = firstVisibleColumnIndex;
+        const startCellX:Number = gridDimensions.getCellX(0 /* rowIndex */, firstVisibleColumnIndex);
+        const columnGap:int = gridDimensions.columnGap;
+
+        for (var columnIndex:int = firstVisibleColumnIndex;
             (width > 0) && (columnIndex >= 0) && (columnIndex < columnCount);
             columnIndex = grid.getNextVisibleColumnIndex(columnIndex))
-		{
+        {
             var cellHeight:Number = gridDimensions.getTypicalCellHeight(columnIndex);
-			var cellWidth:Number = gridDimensions.getTypicalCellWidth(columnIndex);
-
+            var cellWidth:Number = gridDimensions.getTypicalCellWidth(columnIndex);
+
             var column:GridColumn = getGridColumn(columnIndex);
             if (!isNaN(column.width))
             {
@@ -800,7 +800,7 @@
                 width -= startCellX + cellWidth - scrollX;
             else
                 width -= cellWidth + columnGap;
-		}
+        }
     }

     /**
@@ -861,18 +861,18 @@
     }

     /**
-	 *  @private
-	 *  Update the column widths for the columns visible beginning at scrollX, that will fit
-	 *  within the specified width, or for all columns if width is NaN.  The width of
+     *  @private
+     *  Update the column widths for the columns visible beginning at scrollX, that will fit
+     *  within the specified width, or for all columns if width is NaN.  The width of
      *  GridColumns that lack an explicit width is the preferred width of an item renderer
      *  for the grid's typicalItem.
      *
      *  If width is specified and all columns are visible, then we'll increase the widths
      *  of GridDimensions columns for GridColumns without an explicit width so that all of
      *  the available space is consumed.
-	 */
- 	private function layoutColumns(scrollX:Number, scrollY:Number, width:Number):void
-	{
+     */
+    private function layoutColumns(scrollX:Number, scrollY:Number, width:Number):void
+    {
         const gridDimensions:GridDimensions = gridDimensions;
         var columnCount:int = gridDimensions.columnCount;
         if (columnCount <= 0)
@@ -880,7 +880,7 @@

         // Update the GridDimensions typicalCellWidth,Height values as needed.

-		const firstVisibleColumnIndex:int = gridDimensions.getColumnIndexAt(scrollX, scrollY);
+        const firstVisibleColumnIndex:int = gridDimensions.getColumnIndexAt(scrollX, scrollY);
         updateVisibleTypicalCellSizes(width, scrollX, firstVisibleColumnIndex);

         // Set the GridDimensions columnWidth for no more than columnCount columns.
@@ -936,7 +936,7 @@
                 availableWidth -= (columnWidth - oldColumnWidth);
             }
         }
-	}
+    }

     //--------------------------------------------------------------------------
     //
@@ -1124,7 +1124,7 @@
         visibleColumnIndices = newVisibleColumnIndices;
     }

-	/**
+    /**
      *  @private
      */
     private function getVisibleItemRendererIndex(rowIndex:int, columnIndex:int):int
@@ -2230,11 +2230,7 @@
     //--------------------------------------------------------------------------

     /**
-     *  Return the dataProvider indices of the currently visible rows.  Note that the
-     *  item renderers for the first and last rows may only be partially visible.  The
-     *  returned vector's contents are in the order they're displayed.
-     *
-     *  @return A vector of the visible row indices.
+     *  @copy spark.components.Grid#getVisibleRowIndices()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2247,23 +2243,7 @@
     }

     /**
-     *  Return the indices of the currently visible columns.  Note that the
-     *  item renderers for the first and last columns may only be partially visible.  The
-     *  returned vector's contents are in the order they're displayed.
-     *
-     *
The following example function uses this method to compute a vector of
-     *  visible GridColumn objects.

-     *

-     *  function getVisibleColumns():Vector.<GridColumn>
-     *  {
-     *      var visibleColumns = new Vector.<GridColumn>;
-     *      for each (var columnIndex:int in grid.getVisibleColumnIndices())
-     *          visibleColumns.push(grid.columns.getItemAt(columnIndex));
-     *      return visibleColumns;
-     *  }
-     *

-     *
-     *  @return A vector of the visible column indices.
+     *  @copy spark.components.Grid#getVisibleColumnIndices()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2276,16 +2256,7 @@
     }

     /**
-     *  Returns the current pixel bounds of the specified cell, or null if no such cell exists.
-     *  Cell bounds are reported in grid coordinates.
-     *
-     *
If all of the columns for the the specfied row and all of the rows preceeding
-     *  it have not yet been scrolled into view, the returned bounds may only be an approximation,
-     *  based on all of the columns' typicalItems.

-     *
-     *  @param rowIndex The 0-based index of the row.
-     *  @param columnIndex The 0-based index of the column.
-     *  @return A Rectangle that represents the cell's pixel bounds, or null.
+     *  @copy spark.components.Grid#getVisibleColumnIndices()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2298,15 +2269,7 @@
     }

     /**
-     *  Returns the current pixel bounds of the specified row, or null if no such row exists.
-     *  Row bounds are reported in grid coordinates.
-
-     *
If all of the columns for the the specfied row and all of the rows preceeding
-     *  it have not yet been scrolled into view, the returned bounds may only be an approximation,
-     *  based on all of the columns' typicalItems.

-     *
-     *  @param rowIndex The 0-based index of the row.
-     *  @return A Rectangle that represents the row's pixel bounds, or null.
+     *  @copy spark.components.Grid#getRowBounds()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2319,14 +2282,7 @@
     }

     /**
-     *  Returns the current pixel bounds of the specified column, or null if no such column exists.
-     *  Column bounds are reported in grid coordinates.
-     *
-     *
If all of the cells in the specified column have not yet been scrolled into view, the
-     *  returned bounds may only be an approximation, based on the column's typicalItem.

-     *
-     *  @param columnIndex The 0-based index of the column.
-     *  @return A Rectangle that represents the column's pixel bounds, or null.
+     *  @copy spark.components.Grid#getColumnBounds()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2339,17 +2295,7 @@
     }

     /**
-     *  Returns the row index corresponding to the specified coordinates,
-     *  or -1 if the coordinates are out of bounds. The coordinates are
-     *  resolved with respect to the grid.
-     *
-     *
If all of the columns or rows for the grid have not yet been scrolled
-     *  into view, the returned index may only be an approximation,
-     *  based on all of the columns' typicalItems.

-     *
-     *  @param x The x coordinate.
-     *  @param y The y coordinate.
-     *  @return The index of the row corresponding to the specified coordinates.
+     *  @copy spark.components.Grid#getRowIndexAt()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2362,17 +2308,7 @@
     }

     /**
-     *  Returns the column index corresponding to the specified coordinates,
-     *  or -1 if the coordinates are out of bounds. The coordinates are
-     *  resolved with respect to the grid.
-     *
-     *
If all of the columns or rows for the grid have not yet been scrolled
-     *  into view, the returned index may only be an approximation,
-     *  based on all of the columns' typicalItems.

-     *
-     *  @param x The pixel's x coordinate relative to the grid.
-     *  @param y The pixel's y coordinate relative to the grid.
-     *  @return the index of the column or -1 if the coordinates are out of bounds.
+     *  @copy spark.components.Grid#getColumnIndexAt()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2385,26 +2321,7 @@
     }

     /**
-     *  Return the row and column indices of the cell that overlaps the pixel at the
-     *  specified grid coordinate.
-     *  If no such cell exists, null is returned.
-     *
-     *
The example function below uses this method to compute the value of the
-     *  dataField for a grid cell.

-     *

-     *  function getCellData(x:Number, y:Number):Object
-     *  {
-     *      var cell:CellPosition = getCellAt(x, y);
-     *      if (!cell)
-     *          return null;
-     *      var GridColumn:column = grid.columns.getItemAt(cell.columnIndex);
-     *      return grid.dataProvider.getItemAt(cell.rowIndex)[column.dataField];
-     *  }
-     *

-     *
-     *  @param x The pixel's x coordinate relative to the grid.
-     *  @param y The pixel's y coordinate relative to the grid.
-     *  @return The cell position or null.
+     *  @copy spark.components.Grid#getCellAt()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2421,13 +2338,7 @@
     }

     /**
-     *  Returns a vector of CellPosition objects whose "rowIndex" and "columnIndex" properties specify the
-     *  row and column indices of the cells that overlap the specified grid region.  If no
-     *  such cells exist, an empty vector is returned.
-     *
-     *  @param x The x coordinate of the pixel at the origin of the region, relative to the grid.
-     *  @param x The x coordinate of the pixel at the origin of the region, relative to the grid.
-     *  @return A vector of objects like Vector.<Object>([{rowIndex:0, columnIndex:0}, ...]).
+     *  @copy spark.components.Grid#getCellsAt()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2441,30 +2352,7 @@
     }

     /**
-     *  If the requested item renderer is visible, returns a reference to
-     *  the item renderer currently displayed at the specified cell.  Note
-     *  that once the returned item renderer is no longer visible it may be
-     *  recycled and its properties reset.
-     *
-     *
If the requested item renderer is not visible then,
-     *  each time this method is called, a new item renderer is created.  The
-     *  new item renderer is not visible

-     *
-     *
If the specified column doesn't have an explicit width, then the width
-     *  of this cell will be based on the typicalItem.  If a
-     *  typicalItem was not specified or hasn't been measured yet,
-     *  then the item renderer's width will default to 150.

-     *
-     *
If the grid property variableRowHeight is
-     *  true (the default) and an overall row height hasn't been
-     *  cached for the specified row, then the item renderer's height is based
-     *  on the typicalItem.  If the typicalItem wasn't
-     *  specified or has not been measured yet, then the item renderer's height
-     *  will default to its preferred height.

-     *
-     *  @param rowIndex The 0-based row index of the item renderer's cell.
-     *  @param columnIndex The 0-based column index of the item renderer's cell.
-     *  @return The item renderer or null if the cell location is invalid.
+     *  @copy spark.components.Grid#getItemRendererAt()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2513,14 +2401,7 @@
     }

     /**
-     *  True if the specified cell is at least partially visible. If columnIndex == -1 then
-     *  true is returned if the specified row is at least partially visible. If
-     *  rowIndex == -1, then true is returned if the specified column is at least partially
-     *  visible. If both columnIndex and rowIndex are -1, then false is returned.
-     *
-     *  @param rowIndex The 0-based row index of the item renderer's cell.
-     *  @param columnIndex The 0-based column index of the item renderer's cell.
-     *  @return True if the specified cell (or row if columnIndex == -1) is at least partially visible
+     *  @copy spark.components.Grid#isCellVisible()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 18131
Author:   hmuller@adobe.com
Date:     2010-10-11T22:43:35.924917Z

Log Message:
-----------
IDataGridElement and some minor Doc/API changes:

Defined IDataGridElement.  Grid and ColumnHeaderBar implement it.

Removed the Grid gridOwner property.  The IDataGridElement dataGrid property serves the same purpose.

Added public grid ColumnHeaderBar property that's set/cleared by DataGrid partAdded/Removed().  ColumnHeaderBar is now responsible for syncing its scroll position with its grid.

Removed DataGrid headerRenderer property and headerColunmSeparator skin part.  These values can be changed by reconfiguring the default skin.

Corrected GridItemEditor event type metadata in DataGrid.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IDataGridElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridItemEditorEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -422,7 +422,7 @@
         if (!columns || lastVisibleColumnIndex < 0)
         {
             // HACK: Make sure columnHeaderBar fixes itself
-            var dg:DataGrid = grid.gridOwner as DataGrid;
+            var dg:DataGrid = grid.dataGrid;
             if (dg && dg.columnHeaderBar)
                 dg.columnHeaderBar.invalidateDisplayList();
             return;
@@ -482,7 +482,7 @@
             visibleColumnSeparators, oldVisibleColumnIndices, visibleColumnIndices, layoutColumnSeparator, lastVisibleColumnIndex);

         // HACK
-        dg = grid.gridOwner as DataGrid;
+        dg = grid.dataGrid;
         if (dg && dg.columnHeaderBar)
             dg.columnHeaderBar.invalidateDisplayList();

@@ -1066,15 +1066,15 @@

             gridRenderer.data = dataItem;

-            if (grid.gridOwner)
-                grid.gridOwner.prepareItemRenderer(gridRenderer, true);
+            if (grid.dataGrid)
+                grid.dataGrid.prepareItemRenderer(gridRenderer, true);
         }
     }

     private function uninitializeItemRenderer(renderer:IGridItemRenderer):void
     {
-        if (grid.gridOwner)
-            grid.gridOwner.discardItemRenderer(renderer, true);
+        if (grid.dataGrid)
+            grid.dataGrid.discardItemRenderer(renderer, true);
     }

     private function freeItemRenderer(renderer:IGridItemRenderer):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 18245
Author:   hmuller@adobe.com
Date:     2010-10-20T16:58:24.758693Z

Log Message:
-----------
GridLayer PARB changes:

GridLayer is now a Group, with the special semantics of the internal GridLayer LayerGroup class.  Grid layers are now just named GridLayer children.

Removed the Grid layers property and getLayer() method.

QE notes: Jacob is syncing up the failing Mustella tests
Doc notes:
Bugs:
Reviewer: Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -439,11 +439,11 @@

         // Layers

-        const backgroundLayer:GridLayer = grid.getLayer("backgroundLayer");
-        const selectionLayer:GridLayer = grid.getLayer("selectionLayer");
-        const editorIndicatorLayer:GridLayer = grid.getLayer("editorIndicatorLayer");
-        const rendererLayer:GridLayer = grid.getLayer("rendererLayer");
-        const overlayLayer:GridLayer = grid.getLayer("overlayLayer");
+        const backgroundLayer:GridLayer = getLayer("backgroundLayer");
+        const selectionLayer:GridLayer = getLayer("selectionLayer");
+        const editorIndicatorLayer:GridLayer = getLayer("editorIndicatorLayer");
+        const rendererLayer:GridLayer = getLayer("rendererLayer");
+        const overlayLayer:GridLayer = getLayer("overlayLayer");

         // Layout the columns and item renderers

@@ -531,6 +531,15 @@
     private function get grid():Grid
     {
         return target as Grid;
+    }
+
+    private function getLayer(name:String):GridLayer
+    {
+        const grid:Grid = target as Grid;
+        if (!grid)
+            return null;
+
+        return grid.getChildByName(name) as GridLayer;
     }

     /**
@@ -571,7 +580,7 @@
 	 */
 	private function createTypicalItemRenderer(columnIndex:int):IGridItemRenderer
 	{
-        const rendererLayer:GridLayer = grid.getLayer("rendererLayer");
+        const rendererLayer:GridLayer = getLayer("rendererLayer");
         if (!rendererLayer)
             return null;

@@ -2315,7 +2324,7 @@
         if (visibleItemRenderer)
             return visibleItemRenderer;

-        const rendererLayer:GridLayer = grid.getLayer("rendererLayer");
+        const rendererLayer:GridLayer = getLayer("rendererLayer");
         if (!rendererLayer)
             return null;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package spark.automation.delegates.components
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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


added JS.copyObject() allowNonPrimitiveRefs option

--- WeaveJS/src/weavejs/util/JS.as
+++ WeaveJS/src/weavejs/util/JS.as
@@ -230,8 +230,10 @@

 		/**
 		 * Makes a deep copy of an object.
-		 */
-		public static function copyObject/*/<T>/*/(object:/*/T/*/Object):/*/T/*/Object
+		 * @param allowNonPrimitiveRefs If allowNonPrimitiveRefs is true, references to non-primitive objects will be allowed.
+		 *                              If allowNonPrimitiveRefs is false, an error will be thrown if a non-primitive object is found.
+		 */
+		public static function copyObject/*/<T>/*/(object:/*/T/*/Object, allowNonPrimitiveRefs:Boolean = false):/*/T/*/Object
 		{
 			// check for primitive values
 			if (object === null || typeof object !== 'object')
@@ -240,11 +242,20 @@
 			var copy:Object;

 			if (object is Array)
+			{
 				copy = [];
+			}
 			else if (Object['getPrototypeOf'](Object['getPrototypeOf'](object)))
-				throw new Error("copyObject() cannot copy non-primitive Objects");
+			{
+				if (allowNonPrimitiveRefs)
+					copy = object;
+				else
+					throw new Error("copyObject() cannot copy non-primitive Objects");
+			}
 			else
+			{
 				copy = {};
+			}

 			for (var key:String in object)
 				copy[key] = copyObject(object[key]);


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

--- frameworks/projects/advancedgrids/src/mx/collections/IHierarchicalCollectionViewCursor.as
+++ frameworks/projects/advancedgrids/src/mx/collections/IHierarchicalCollectionViewCursor.as
@@ -0,0 +1,51 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.collections
+{
+
+/**
+ *  The IHierarchicalCollectionViewCursor interface defines the interface
+ *  for enumerating a hierarchical collection view bidirectionally.
+ *  This cursor provides capabilities to find the current depth of an item.
+ *
+ *  @see mx.collections.IViewCursor
+ *  @see mx.controls.IHierarchicalCollectionView
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IHierarchicalCollectionViewCursor extends IViewCursor
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Contains the depth of the node at the location
+     *  in the source collection referenced by this cursor.
+     *  If the cursor is beyond the end of the collection,
+     *  this property contains 0.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+     function get currentDepth():int;
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20007
Author:   cframpto@adobe.com
Date:     2011-01-28T20:19:13.564049Z

Log Message:
-----------
Add [Inspectable] metadata to all spark text components

QE notes:
Doc notes:
Bugs: part of SDK-28942
Reviewer: Corey
Tests run: cyclone, FlashBuilder w/ DesignView
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -676,6 +676,8 @@
     //  prompt
     //----------------------------------

+    [Inspectable(category="General", defaultValue="")]
+
     /**
      *  Text to be displayed if/when the actual text property is an empty string.
      *
@@ -760,6 +762,8 @@
     //  typicalText
     //----------------------------------

+    [Inspectable(category="General", defaultValue="null")]
+
     /**
      *  @copy spark.components.RichEditableText#typicalText
      *
@@ -795,6 +799,8 @@
     //  displayAsPassword
     //----------------------------------

+    [Inspectable(category="General", defaultValue="false")]
+
     /**
      *  @copy spark.components.RichEditableText#displayAsPassword
      *
@@ -838,6 +844,8 @@
     //  editable
     //----------------------------------

+    [Inspectable(category="General", defaultValue="true")]
+
     /**
      *  @copy spark.components.RichEditableText#editable
      *
@@ -905,7 +913,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-     public function get imeMode():String
+    public function get imeMode():String
     {
         var richEditableText:RichEditableText = textDisplay as RichEditableText;

@@ -944,7 +952,7 @@
     //  maxChars
     //----------------------------------

-    [Inspectable(minValue="0.0")]
+    [Inspectable(category="General", defaultValue="0")]

     /**
      *  @copy spark.components.RichEditableText#maxChars
@@ -987,6 +995,8 @@
     //----------------------------------
     //  restrict
     //----------------------------------
+
+    [Inspectable(category="General", defaultValue="null")]

     /**
      *  @copy spark.components.RichEditableText#restrict
@@ -1032,6 +1042,8 @@
     //  selectable
     //----------------------------------

+    [Inspectable(category="General", defaultValue="true")]
+
     /**
      *  @copy spark.components.RichEditableText#selectable
      *
@@ -1170,7 +1182,7 @@
     //  text
     //----------------------------------

-    [Inspectable(category="General")]
+    [Inspectable(category="General", defaultValue="")]

     /**
      *  @copy spark.components.RichEditableText#text


Transferred from the Adobe Open Source Subversion Repository

Revision: 22564
Author:   tkraikit@adobe.com
Date:     2011-09-14T19:50:07.656843Z

Log Message:
-----------
Update ASDoc "@productversion Flex 4.5.2" => "@productversion Flex 4.6"

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/LabelItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DateSpinnerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/graphics/BitmapScaleMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/FlexVersion.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ArrowDirection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/FormatPattern.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/ISoftKeyboardHintClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/CalloutArrow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/calendarClasses/DateSelectorDisplayMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as</path>
<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/spark/src/spark/components/ScrollSnappingMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.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/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutViewNavigatorSkin.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/CalloutPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImageSource.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.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/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/CalendarDate.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledActionButtonSkin.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/globalization/supportClasses/DateTimeFormatterEx.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -132,7 +132,7 @@
  *  @langversion 3.0
  *  @playerversion Flash 10.2
  *  @playerversion AIR 2.5
- *  @productversion Flex 4.5.2
+ *  @productversion Flex 4.6
  */
 [Style(name="showPromptWhenFocused", type="Boolean", inherit="yes", theme="mobile")]

@@ -1494,7 +1494,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3.0
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get autoCorrect():Boolean
     {
@@ -1560,7 +1560,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3.0
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get returnKeyLabel():String
     {
@@ -1629,7 +1629,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3.0
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get softKeyboardType():String
     {


fix event type

fix event type

--- src/battlecode/serial/MatchLoader.as
+++ src/battlecode/serial/MatchLoader.as
@@ -120,7 +120,7 @@
             Alert.show("Could not load the specified match file: File " + matchPath + " not found");
         }

-        private function onSecurityError(e:SecurityError):void {
+        private function onSecurityError(e:SecurityErrorEvent):void {
             trace("match load failed: " + e.toString());
             Alert.show("Could not load the specified match file: Security error");
         }


Added a convenient way to quickly add debugging output to a program without
importing anything: Log.testing("bla bla bla");
trace() is global too, but that goes directly to the debugger, not to the
Log system, so we can't see trace() statements in the firebug console,
for example.

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

--- src/as/Log.as
+++ src/as/Log.as
@@ -38,6 +38,15 @@
         // let's just use the full classname
         var path :String = getQualifiedClassName(spec).replace("::", ".");
         return new Log(mx.logging.Log.getLogger(path));
+    }
+
+    /**
+     * A convenience function for quickly and easily inserting printy
+     * statements during application development.
+     */
+    public static function testing (msg :String, ... params) :void
+    {
+        mx.logging.Log.getLogger("testing").debug(msg, params);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.controls.advancedDataGridClasses
 {