Transferred from the Adobe Open Source Subversion Repository

Revision: 17975
Author:   egeorgie@adobe.com
Date:     2010-09-30T22:31:08.436041Z

Log Message:
-----------
Fix SDK-25601 Don't not hard code GraphicElement to Group

In this change:
  - introduce a new interface IGraphicElementHost - the IGraphicElement now relies on its parent to implement that interface
  - modify IGraphicElement interface to use the new interface instead of Group
  - modify the Group to implement the new interface

QE notes: No functional changes expected
Doc notes: None
Bugs: SDK-25601
Reviewer: Jason S
Tests run: 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/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IGraphicElementHost.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/core/IGraphicElementContainer.as
+++ frameworks/projects/spark/src/spark/core/IGraphicElementContainer.as
@@ -0,0 +1,177 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.core
+{
+
+/**
+ *  The IGraphicElementHost is the minimal contract for a container class to
+ *  support IGraphicElement children.
+ *
+ *
Typically instead of directly implementing this interface, a developer
+ *  would sub-class Group which already implements the IGraphicElementHost interface.

+ *
+ *  @see spark.core.IGraphicElement
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.0
+ *  @productversion Flex 4.5
+ */
+public interface IGraphicElementHost
+{
+    /**
+     *  Notify the host that an element layer has changed.
+     *
+     *  The IGraphicElementHost must re-evaluates the sequences of
+     *  graphic elements with shared DisplayObjects and may need to re-assign the
+     *  DisplayObjects and redraw the sequences as a result.
+     *
+     *  Typically the host will perform this in its
+     *  validateProperties() method.
+     *
+     *  @param element The element that has changed size.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    function invalidateGraphicElementSharing(element:IGraphicElement):void
+
+    /**
+     *  Notify the host component that an element changed and needs to validate properties.
+     *
+     *  The IGraphicElementHost must call the validateProperties()
+     *  method on the IGraphicElement to give it a chance to commit its properties.
+     *
+     *  Typically the host will validate the elements' properties in its
+     *  validateProperties() method.
+     *
+     *  @param element The element that has changed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    function invalidateGraphicElementProperties(element:IGraphicElement):void;
+
+    /**
+     *  Notify the host component that an element size has changed.
+     *
+     *  The IGraphicElementHost must call the validateSize()
+     *  method on the IGraphicElement to give it a chance to validate its size.
+     *
+     *  Typically the host will validate the elements' size in its
+     *  validateSize() method.
+     *
+     *  @param element The element that has changed size.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    function invalidateGraphicElementSize(element:IGraphicElement):void;
+
+    /**
+     *  Notify the host component that an element has changed and needs to be redrawn.
+     *
+     *  The IGraphicElementHost must call the validateDisplayList()
+     *  method on the IGraphicElement to give it a chance to redraw.
+     *
+     *  Typically the host will validate the elements' display lists in its
+     *  validateDisplayList() method.
+     *
+     *  @param element The element that has changed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    function invalidateGraphicElementDisplayList(element:IGraphicElement):void;
+
+    /**
+     *  Removes the DisplayObject of the element from this host's
+     *  display list and returns and its index.
+     *
+     *  Typically the developer calls detachDisplayObject() before
+     *  performing some temporary operation, like taking a snap-shot with a different parent,
+     *  after which the developer calls attachDisplayObject() to restore
+     *  the display list of the host.
+     *
+     *  The return value is used as a parameter to a subsequent call to
+     *  the attachDisplayObject() method.
+     *
+     *  Note: for performance reasons, the attachDisplayObject() and
+     *  detachDisplayObject() methods don't invalidate anything in the
+     *  host and it is assumed that they will always be called in pairs -
+     *  detachDisplayObject() followed by attachDisplayObject().
+     *
+     *  @param element The element whose DisplayObject will be detached.
+     *
+     *  @see #attachDisplayObject
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    function detachDisplayObject(element:IGraphicElement):int;
+
+    /**
+     *  Re-adds the DisplayObject of the element to this host's
+     *  display list.
+     *
+     *  Typically the developer calls detachDisplayObject() before
+     *  performing some temporary operation, like taking a snap-shot with a different parent,
+     *  after which the developer calls attachDisplayObject() to restore
+     *  the display list of the host.
+     *
+     *  Note: for performance reasons, the attachDisplayObject() and
+     *  detachDisplayObject() methods don't invalidate anything in the
+     *  host and it is assumed that they will always be called in pairs -
+     *  detachDisplayObject() followed by attachDisplayObject().
+     *
+     *  @param element The element whose DisplayObject will be attached.
+     *  @param index The value returned from a preceding call to detachDisplayObject().
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    function attachDisplayObject(element:IGraphicElement, index:int):void
+
+    /**
+     *  Removes the element's DisplayObject from this IGraphicElementHost
+     *  display list.
+     *
+     *  The host also must ensure that any elements that share the
+     *  DisplayObject are redrawn.
+     *
+     *
This method doesn't necessarily trigger new DisplayObject
+     *  reassignment for the passed in element.
+     *
+     *  To request new display object reassignment for the element, call the
+     *  invalidateGraphicElementSharing() method.

+     *
+     *  @param element The graphic element whose display object is discarded.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    function discardDisplayObject(element:IGraphicElement):void;
+}
+}


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/PopUpButtonAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/PopUpButtonAutomationImpl.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
 {


New method sig to match auto-generated stuff

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@105 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/whirled/client/SceneDirector.as
+++ src/as/com/threerings/whirled/client/SceneDirector.as
@@ -257,7 +257,7 @@

     // documentation inherited from interface SceneService_SceneMoveListener
     public function moveSucceededWithUpdates (
-            placeId :int, config :PlaceConfig, updates :TypedArray) :void
+            placeId :int, config :PlaceConfig, updates :Array) :void
     {
         log.info("Got updates [placeId=" + placeId + ", config=" + config +
                  ", updates=" + updates + "].");


Transferred from the Adobe Open Source Subversion Repository

Revision: 10120
Author:   mhorn@adobe.com
Date:     2009-09-10T15:39:10.141791Z

Log Message:
-----------
minor asdoc update

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as

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

--- frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as
+++ frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as
@@ -72,8 +72,8 @@

 /**
  *  Background image of a component.  This can be an absolute or relative
- *  URL or class.  You can either have both a backgroundColor and a
- *  backgroundImage set at the same time. The background image is displayed
+ *  URL or class.  You can set either the backgroundColor or the
+ *  backgroundImage. The background image is displayed
  *  on top of the background color.
  *  The default value is undefined, meaning "not set".
  *  If this style and the backgroundColor style are undefined,


correction in demo class

correction in demo class

git-svn-id: 4969af7a11582c80b682e8a73ed7b35a57fe0a9c@128940 3e83ccf1-c6ce-0310-9054-8fdb33cf0640

--- zucchini.lib/src/pl/ydp/automation/scripts/steps/impl/PressButtonStep.as
+++ zucchini.lib/src/pl/ydp/automation/scripts/steps/impl/PressButtonStep.as
@@ -44,7 +44,7 @@

 		public function execute( scriptName:String ):void
 		{
-			var element = structure.getElement('elementId');
+			var element = structure.getElement( _buttonId );

 			(element as Button).dispatchEvent( new Event(MouseEvent.CLICK));


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

--- frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as
+++ frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.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: 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@1269113 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.controls.treeClasses
 {


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

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

 package mx.controls.treeClasses
 {


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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.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: 5097
Author:   gauravj@adobe.com
Date:     2009-02-27T02:06:23.424936Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemTreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as
+++ frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as
@@ -22,6 +22,10 @@
  *  The skin for the maximize button in the TitleBar
  *  of a WindowedApplication or Window.
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class WindowMaximizeButtonSkin extends UIComponent
 {
@@ -74,6 +78,10 @@

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


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

--- frameworks/projects/framework/src/mx/collections/errors/CollectionViewError.as
+++ frameworks/projects/framework/src/mx/collections/errors/CollectionViewError.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2006 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: 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@1261255 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurnShader.as
+++ frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurnShader.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.graphics.shaderClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 13046
Author:   hneelu@adobe.com
Date:     2009-12-17T12:34:07.695337Z

Log Message:
-----------
Updating automation sources..

Modified Paths:
--------------
451 paths were modified

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

--- frameworks/projects/automation/src/mx/automation/codec/TabObjectCodec.as
+++ frameworks/projects/automation/src/mx/automation/codec/TabObjectCodec.as
@@ -99,8 +99,7 @@
 				// we need to replace the above code to replace the getAutomationChildAt
 				// and numAutomationChildren with getAutomationChildren to avoid the
 				// multiple calcuation of the children.
-				//var childList:Array = aoc.getAutomationChildren();
-				var childList:Array =  Automation.automationManager2.getAutomationChildrenArray(aoc);
+				var childList:Array = aoc.getAutomationChildren();
 				if(childList)
 				{
 					var n:int  = childList.length;


Transferred from the Adobe Open Source Subversion Repository

Revision: 21924
Author:   tkraikit@adobe.com
Date:     2011-08-10T22:39:36.936752Z

Log Message:
-----------
SDK-30982: typo in DateSpinner event metadata

QE notes: n/a
Doc notes: n/a
Bugs: SDK-30982
Reviewer: jszeto
Tests run: checkintests, cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/views/DateSpinnerTestHomeView.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
+++ frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
@@ -43,7 +43,7 @@
  *  @playerversion AIR 3
  *  @productversion Flex 4.5.2
  */
-[Event(name="change", type="flex.events.Event")]
+[Event(name="change", type="flash.events.Event")]

 /**
  *  Dispatched after the selected date has been changed, either


Transferred from the Adobe Open Source Subversion Repository

Revision: 7967
Author:   gosmith@adobe.com
Date:     2009-06-18T19:44:16.674676Z

Log Message:
-----------
PARB changes to TextGraphicElement/SimpleText/RichText and to text styles in general.

TextGraphicElement:

The 'truncation' property has been renamed to 'maxDisplayedLines'.

The isTruncated() method has become an 'isTruncated' read-only property.

RichText:

Since a TextFlow object is the fundamental representation for rich test in TLF, the RichText component now has a public textFlow:TextFlow property which you can get or set. To turn TLF markup -- in either String or XML form -- into a TextFlow, use the static importFromString() and importFromXML() methods in the TextFlowUtil class. These are bindable methods so that if the markup parameter changes they will re-evaluate. To turn the TextFlow back into markup, use TextFLowUtil.export(...) to produce XML.

The 'content' property is now intended only for use by the MXML compiler. It is set-only and only supports being set to what MXML markup produces: a String (which will be treated as the text of an implicit span in an implicit paragraph), a FlowElement, or an Array of Strings and FlowElements.

The 'text', 'textFlow', and 'content' properties are interacting properties. For example, you can set 'textFlow' and then get the 'text', and vice versa. In fact, you can now do this immediately, without waiting for the component to undergo a LayoutManager pass. Of these three properties, the last one set in ActionScript wins; if more than one is set in MXML the results are undefined since MXML does not guarantee the order in which properties are set. Setting any of them to null is equivalent to setting the 'text' to the empty String, which is the initial state of the component.

Styles:

The 'lineBreak' style is now non-inheriting, since in TLF it doesn't inherit from FlowElement to FlowElement.

The text styles are now divided into five buckets:

BasicInheritingTextStyles.as
BasicNonInheritingTextStyles.as
AdvancedInheritingTextStyles.as
AdvancedNonInheritingTextStyles.as
SelectionFormatTextStyles.as

Skinnable components like TextInput and TextArea no longer declare any on the noninheriting text styles, because the RichTextElement in the skin doesn't inherit them. You must set them directly on the RichTextElement in the component's skin, either with ActionScript or by reskinning.

The styleInitialized() method has been added to the IAdvancedStyleClient interface.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Carol

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/BasicTextLayoutFormatStyles.as" copyfrom-rev="7910" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/WindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DefaultButtonSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/AdvancedTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/BasicTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/TextFlowUtil.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/AdvancedNonInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/TitleBarSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/NonInheritingTextLayoutFormatStyles.as" copyfrom-rev="7910" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/BasicNonInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/CheckBoxSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/NonInheritingTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/RadioButtonSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/AdvancedTextLayoutFormatStyles.as" copyfrom-rev="7910" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MacTitleBarSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
@@ -52,7 +52,7 @@
  */
 [Event(name="rendererRemove", type="spark.events.RendererExistenceEvent")]

-include "../styles/metadata/BasicTextLayoutFormatStyles.as"
+include "../styles/metadata/BasicInheritingTextStyles.as"

 /**
  *  Color of focus ring when the component is in focus.


Transferred from the Adobe Open Source Subversion Repository

Revision: 19202
Author:   smgilson@adobe.com
Date:     2010-12-09T14:06:10.040620Z

Log Message:
-----------
ASDoc updates based on comments from the localization team

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/framework/src/mx/events/TouchInteractionEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
@@ -176,7 +176,7 @@
     [Bindable("gridChanged")]

     /**
-     *  The Grid object associated this whose column.
+     *  The Grid object associated this column.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 5270
Author:   hmuller@adobe.com
Date:     2009-03-12T19:10:16.600232Z

Log Message:
-----------

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -469,6 +469,52 @@

         g.invalidateDisplayList();
     }
+
+    /**
+     *  This method must is called by the target after a layout element
+     *  has been added and before the target's size and display list are
+     *  validated.
+     *
+     *  Layouts that cache per element state, like virtual layouts, can
+     *  override this method to update their cache.
+     *
+     *  If the target calls this method, it's only guaranteeing that a
+     *  a layout element will exist at the specified index at
+     *  updateDisplayList() time, for example a DataGroup
+     *  with a virtual layout will call this method when a dataProvider
+     *  item is added.
+     *
+     *  By default, this method does nothing.
+     *
+     *  @param index The index of the element that was added.
+     *  @see #elementRemoved
+     */
+     public function elementAdded(index:int):void
+     {
+     }
+
+    /**
+     *  This method must is called by the target after a layout element
+     *  has been removed and before the target's size and display list are
+     *  validated.
+     *
+     *  Layouts that cache per element state, like virtual layouts, can
+     *  override this method to update their cache.
+     *
+     *  If the target calls this method, it's only guaranteeing that a
+     *  a layout element will no longer exist at the specified index at
+     *  updateDisplayList() time, for example a DataGroup
+     *  with a virtual layout will call this method when a dataProvider
+     *  item is added.
+     *
+     *  By default, this method does nothing.
+     *
+     *  @param index The index of the element that was added.
+     *  @see #elementAdded
+     */
+     public function elementRemoved(index:int):void
+     {
+     }

     /**
      *  Called when the verticalScrollPosition or horizontalScrollPosition


Transferred from the Adobe Open Source Subversion Repository

Revision: 18712
Author:   hmuller@adobe.com
Date:     2010-11-18T19:23:06.057683Z

Log Message:
-----------
Updated TBD items for GridLayout, GridColumnHeaderGroupLayout

API changes (most of *these were supposed have been included in SVN 18691):

- Added IGridItemRenderer/get columnIndex(), get grid()

- *Added DataGrid,Grid/invalidateCell()

- *Added GridItemRenderer/get columnIndex()

- *Renamed the following protected Grid methods:
grid_RollOverHandler() => grid_rollOverHandler()
grid_RollOutHandler() => grid_rollOutHandler()
grid_MouseUpHandler() => grid_mouseUpHandler()
grid_MouseDownHandler() => grid_mouseDownHandler()

QE notes:
Doc notes:
Bugs:
Reviewer: Kevin
Tests run: checkin, mustella
Is noteworthy for integration: yes

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/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRenderer.as
@@ -13,6 +13,8 @@
 {
 import mx.core.IDataRenderer;
 import mx.core.IVisualElement;
+
+import spark.components.Grid;

 /**
  *  The IGridItemRenderer interface defines the interface that item renderers
@@ -44,9 +46,18 @@
 public interface IGridItemRenderer extends IDataRenderer, IVisualElement
 {
     /**
-     *  The zero-based index of the row being rendered.
-     *  That means that values are 0, 1, 2, ... , n - 1,
-     *  where n is the total number of rows.
+     *  The Grid associated with this item renderer, typically just the value of
+     *  column.grid.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    function get grid():Grid;
+
+    /**
+     *  The zero-based index of the row of the cell being rendered.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -162,6 +173,17 @@
      */
     function get column():GridColumn;
     function set column(value:GridColumn):void;
+
+    /**
+     *  The column index for this item renderer's cell, typically just the value of
+     *  column.columnIndex.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    function get columnIndex():int;

     /**
      *  Called from the item renderer owner's updateDisplayList() method


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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.primitives.supportClasses
 {


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

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


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

--- frameworks/projects/framework/src/mx/validators/RegExpValidationResult.as
+++ frameworks/projects/framework/src/mx/validators/RegExpValidationResult.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2006 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: 11112
Author:   hmuller@adobe.com
Date:     2009-10-23T19:35:31.222086Z

Log Message:
-----------
DatGroup and SkinnableDataContainer dispatch a "dataProviderChanged" event when the dataProvder changes.  Fixed a ScrollerLayout typo.

QE notes:
Doc notes: none
Bugs: sdk-23489
Reviewer: Ryan
Tests run: DataGroup
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
@@ -11,6 +11,8 @@

 package spark.components
 {
+
+import flash.events.Event;

 import mx.collections.IList;
 import mx.core.IFactory;
@@ -317,7 +319,8 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    [Bindable]
+    [Bindable("dataProviderChanged")]
+
     public function get dataProvider():IList
     {
         return (dataGroup)
@@ -335,6 +338,7 @@
         }
         else
             dataGroupProperties.dataProvider = value;
+        dispatchEvent(new Event("dataProviderChanged"));
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 19501
Author:   hmuller@adobe.com
Date:     2010-12-21T19:23:02.958488Z

Log Message:
-----------
Added GridColumn formatter and dataTipFormatter IFormatter properties.

QE notes: Default behavior is unchanged if formatters aren't specified.
Doc notes:
Bugs: SDK-28616
Reviewer: Kevin
Tests run: checkin, mustella
Is noteworthy for integration: yes

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
@@ -20,6 +20,8 @@
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;
 import mx.events.PropertyChangeEvent;
+import mx.formatters.IFormatter;
+import mx.styles.IAdvancedStyleClient;
 import mx.utils.ObjectUtil;

 import spark.collections.SortField;
@@ -110,8 +112,10 @@
             return -1;

         const dataFieldPath:Array = column.dataField.split(".");
-        var obj1String:String = deriveDataFromPath(obj1, dataFieldPath);
-        var obj2String:String = deriveDataFromPath(obj2, dataFieldPath);
+        const formatter:IFormatter = column.formatter;
+
+        const obj1String:String = column.itemToString(obj1, dataFieldPath, null, formatter);
+        const obj2String:String = column.itemToString(obj2, dataFieldPath, null, formatter);

         if ( obj1String < obj2String )
             return -1;
@@ -353,6 +357,73 @@
     }

     //----------------------------------
+    //  dataTipFormatter
+    //----------------------------------
+
+    private var _dataTipFormatter:IFormatter = null;
+    private var dataTipFormatterStyleParentInvalid:Boolean = false;
+
+    [Bindable("dataTipFormatterChanged")]
+    [Inspectable(category="General")]
+
+    /**
+     *  Specifies the formatter used by the column's itemToDataTip() method to
+     *  convert dataProvider items to strings.
+     *
+     *
If the formatter's styleParent wasn't specified, it's set
+     *  to the column's grid, so that the formatter inherits the grid's "locale" style.

+     *
+     *  @default null
+     *
+     *  @see #itemToDataTip
+     *  @see #formatter
+     *
+     *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function get dataTipFormatter():IFormatter
+    {
+        if (dataTipFormatterStyleParentInvalid && grid)
+        {
+            const asc:IAdvancedStyleClient = _dataTipFormatter as IAdvancedStyleClient;
+            if (asc && (asc.styleParent != grid))
+                grid.addStyleClient(asc);
+            dataTipFormatterStyleParentInvalid = false;
+        }
+
+        return _dataTipFormatter;
+    }
+
+    /**
+     *  @private
+     */
+    public function set dataTipFormatter(value:IFormatter):void
+    {
+        if (_dataTipFormatter == value)
+            return;
+
+        if (grid && _dataTipFormatter)
+        {
+            const oldASC:IAdvancedStyleClient = _dataTipFormatter as IAdvancedStyleClient;
+            if (oldASC && (oldASC.styleParent == grid))
+                grid.removeStyleClient(oldASC);
+        }
+
+        _dataTipFormatter = value;
+        dataTipFormatterStyleParentInvalid = true;
+
+        if (grid)
+            grid.invalidateDisplayList();
+
+        dispatchChangeEvent("dataTipFormatterChanged");
+    }
+
+
+    //----------------------------------
     //  dataTipFunction
     //----------------------------------

@@ -460,6 +531,74 @@

         _editable = value;
         dispatchChangeEvent("editableChanged");
+    }
+
+    //----------------------------------
+    //  formatter
+    //----------------------------------
+
+    private var _formatter:IFormatter = null;
+    private var formatterStyleParentInvalid:Boolean = false;
+
+    [Bindable("formatterChanged")]
+    [Inspectable(category="General")]
+
+    /**
+     *  Specifies the formatter used by the column's itemToLabel() method to
+     *  convert dataProvider items to strings.
+     *
+     *
If the formatter's styleParent wasn't specified, it's set
+     *  to the column's grid, so that the formatter inherits the grid's "locale" style.

+     *
+     *  @default null
+     *
+     *  @see #itemToLabel
+     *  @see #dataTipFormatter
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function get formatter():IFormatter
+    {
+        if (formatterStyleParentInvalid && grid)
+        {
+            const asc:IAdvancedStyleClient = _formatter as IAdvancedStyleClient;
+            if (asc && (asc.styleParent != grid))
+                grid.addStyleClient(asc);
+            formatterStyleParentInvalid = false;
+        }
+
+        return _formatter;
+    }
+
+    /**
+     *  @private
+     */
+    public function set formatter(value:IFormatter):void
+    {
+        if (_formatter == value)
+            return;
+
+        if (grid && _formatter)
+        {
+            const oldASC:IAdvancedStyleClient = _formatter as IAdvancedStyleClient;
+            if (oldASC && (oldASC.styleParent == grid))
+                grid.removeStyleClient(oldASC);
+        }
+
+        _formatter = value;
+        formatterStyleParentInvalid = true;
+
+
+        if (grid)
+        {
+            invalidateGrid();
+            grid.clearGridLayoutCache(true);
+        }
+
+        dispatchChangeEvent("formatterChanged");
     }

     //----------------------------------
@@ -1392,47 +1531,32 @@

     /**
      *  @private
-     *  Common logic for itemToLabel(), dataTipToLabel().   Logically this code is
+     *  Common logic for itemToLabel(), itemToDataTip().   Logically this code is
      *  similar to (not the same as) LabelUtil.itemToLabel().
-     *  This function will pass the item and the column, if provided, to the labelFunction.
-     */
-    mx_internal static function itemToString(item:Object, labelPath:Array, labelFunction:Function, column:GridColumn = null):String
+     */
+    private function itemToString(item:Object, labelPath:Array, labelFunction:Function, formatter:IFormatter):String
     {
         if (!item)
             return ERROR_TEXT;

         if (labelFunction != null)
-        {
-            if (column != null)
-                return labelFunction(item, column);
-            else
-                return labelFunction(item);
-        }
-
-        const itemString:String = deriveDataFromPath(item, labelPath);
-
-        return (itemString != null) ? itemString : ERROR_TEXT;
-    }
-
-    /**
-     *  @private
-     */
-    private static function deriveDataFromPath(item:Object, labelPath:Array):String
-    {
+            return labelFunction(item, this);
+
+        var itemString:String = null;
         try
         {
             var itemData:Object = item;
             for each (var pathElement:String in labelPath)
-            itemData = itemData[pathElement];
+                itemData = itemData[pathElement];

             if ((itemData != null) && (labelPath.length > 0))
-                return itemData.toString();
+                itemString = (formatter) ? formatter.format(itemData) : itemData.toString();
         }
         catch(ignored:Error)
         {
-        }
-
-        return null;
+        }
+
+        return (itemString != null) ? itemString : ERROR_TEXT;
     }

     /**
@@ -1441,14 +1565,18 @@
      *
      *
If labelFunction is null, and dataField
      *  is a string that does not contain "." field name separator characters,
-     *  then this method is equivalent to:

+     *  and formatter is null, then this method is equivalent to:

      *
      *
item[dataField].toString()

+     *
+     *
If the formatter was specified, then this method's value is:

+     *
+     *
formatter.format(item[dataField])

      *
      *
If dataField is a "." separated
      *  path, then this method looks up each successive path element.
-     *  For example if ="foo.bar.baz", then this method returns
-     *  the value of item.foo.bar.baz.
+     *  For example if ="foo.bar.baz", then this method returns
+     *  a string based on the value of item.foo.bar.baz.
      *  If resolving the item's dataField
      *  causes an error to be thrown, ERROR_TEXT is returned.

      *
@@ -1467,7 +1595,7 @@
      */
     public function itemToLabel(item:Object):String
     {
-        return GridColumn.itemToString(item, dataFieldPath, labelFunction, this);
+        return itemToString(item, dataFieldPath, labelFunction, formatter);
     }

     /**
@@ -1480,8 +1608,11 @@
      *  If dataTipField properties is also null in the grid control,
      *  then use the dataField property.

      *
-     *
If dataTipFunction is null, then this method is equivalent to:
-     *  item[dataTipField].toString().
+     *
If dataTipFunction and dataTipFormatter are
+     *  null, then this method's value is the same as:
+     *  item[dataTipField].toString().   If dataTipFormatter is
+     *  specified then this method's value is the same as:
+     *  dataTipFormatter.format(item[dataTipField])
      *  If resolving the item's dataField
      *  causes an error to be thrown, ERROR_TEXT is returned.

      *
@@ -1506,7 +1637,7 @@
         const tipField:String = (dataTipField) ? dataTipField : grid.dataTipField;
         const tipPath:Array = (tipField) ? [tipField] : dataFieldPath;

-        return itemToString(item, tipPath, tipFunction, this);
+        return itemToString(item, tipPath, tipFunction, dataTipFormatter);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 17313
Author:   hmuller@adobe.com
Date:     2010-08-13T16:29:31.646592Z

Log Message:
-----------
Added alternatingRowColors DataGrid style, alternatingRowColorsBackground DataGrid skin part, and IGridRowBackround interface.  If the new style is specified the alternatingRowColorsBackground DataGrid skin part becomes the grid's rowBackground.

Moved [Bindable] above the corresponding "grid" skin part metadata so that the grid skin part ASDoc shows up.

QE notes:
Doc notes:
Bugs:
Reviewer: Carol
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridRowBackground.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>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -23,6 +23,8 @@
 import mx.core.ILayoutElement;
 import mx.core.IVisualElement;
 import mx.core.IVisualElementContainer;
+import mx.core.UIComponent;
+import mx.core.UIComponentGlobals;
 import mx.core.mx_internal;
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;
@@ -33,6 +35,7 @@
 import spark.components.Grid;
 import spark.components.Group;
 import spark.components.IGridItemRenderer;
+import spark.components.IGridRowBackground;
 import spark.layouts.supportClasses.LayoutBase;

 use namespace mx_internal;
@@ -1219,6 +1222,12 @@
         if  ((rowIndex < rowCount) && (bounds.width == 0)) // implies no columns
             bounds.width = visibleGridBounds.width;

+        // Call initializeRowBackground() if possible
+
+        const gridRowBackground:IGridRowBackground = rowBackground as IGridRowBackground;
+        if (gridRowBackground)
+            gridRowBackground.initializeRowBackground(grid, rowIndex);
+
         layoutGridElementR(rowBackground, bounds);
     }

@@ -1780,6 +1789,12 @@
         }
         if (validatingElt)
             validatingElt.validateNow();
+
+        /*
+        if (elt is UIComponent)
+            UIComponentGlobals.layoutManager.validateClient(UIComponent(elt), true);
+        */
+
         elt.setLayoutBoundsPosition(x, y);

         if (enablePerformanceStatistics)


Transferred from the Adobe Open Source Subversion Repository

Revision: 17942
Author:   chiedozi@adobe.com
Date:     2010-09-29T22:17:47.195538Z

Log Message:
-----------
Renamed ViewHistoryData to ViewProxy
Added a context parameter to pushView that allows context information to be passed to a new view
View.returnedObject was moved to ViewNavigator and is now typed ViewReturnObject.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewHistoryData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewHistoryData.as" copyfrom-rev="17889" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
@@ -22,7 +22,7 @@

 import spark.components.supportClasses.MobileApplicationBase;
 import spark.components.supportClasses.NavigationStack;
-import spark.components.supportClasses.ViewHistoryData;
+import spark.components.supportClasses.ViewProxy;
 import spark.components.supportClasses.ViewNavigatorBase;

 use namespace mx_internal;
@@ -274,7 +274,7 @@

         // Register aliases for custom classes that will be written to
         // persistence store by navigator
-        registerClassAlias("ViewHistoryData", ViewHistoryData);
+        registerClassAlias("ViewProxy", ViewProxy);
         registerClassAlias("NavigationStack", NavigationStack);
     }


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

--- frameworks/projects/automation_spark/src/spark/automation/events/SparkListItemSelectEvent.as
+++ frameworks/projects/automation_spark/src/spark/automation/events/SparkListItemSelectEvent.as
@@ -0,0 +1,306 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
+{
+
+	import flash.events.Event;
+
+	import spark.components.IItemRenderer;
+
+	/**
+	 *  The SparkListItemSelectEvent class represents event objects that are dispatched
+	 *  when an item in a list-based control such as a Menu,
+	 *  DataGrid, or Tree control is selected or deselected.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 4
+	 */
+	public class SparkListItemSelectEvent extends Event
+	{
+		include "../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class constants
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  The SparkListItemSelectEvent.SELECT constant defines the value of the
+		 *  type property of the event object for an event that is
+		 *  dispatched when a single item is selected.
+		 *
+		 *
The properties of the event object have the following values.
+		 *  Not all properties are meaningful for all kinds of events.
+		 *  See the detailed property descriptions for more information.

+		 *

+		 *
Property	Value

+		 *
altKey	Boolean value indicating whether
+		 *              the Alt key was pressed at the time of the event.

+		 *
bubbles	false

+		 *
cancelable	false

+		 *
ctrlKey	Boolean value indicating whether
+		 *              the Ctrl key was pressed at the time of the event.

+		 *
currentTarget	The Object that defines the
+		 *       event listener that handles the event. For example, if you use
+		 *       myButton.addEventListener() to register an event listener,
+		 *       myButton is the value of the currentTarget.

+		 *
itemRenderer	The item renderer object
+		 *              for the item.

+		 *
shiftKey	Boolean value indicating whether
+		 *              the Shift key was pressed at the time of the event.

+		 *
target	The Object that dispatched the event;
+		 *       it is not always the Object listening for the event.
+		 *       Use the currentTarget property to always access the
+		 *       Object listening for the event.

+		 *
triggerEvent	The event, such as a
+		 *             mouse or keyboard event, that triggered the action.

+		 *
type	SparkListItemSelectEvent.SELECT

+		 *

+		 *
+		 *  @eventType select
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public static const SELECT:String = "select";
+
+		/**
+		 *  The SparkListItemSelectEvent.SELECT_INDEX constant defines the value of the
+		 *  type property of the event object for an event that is
+		 *  dispatched when an item's index is selected.
+		 *
+		 *
The properties of the event object have the following values.
+		 *  Not all properties are meaningful for all kinds of events.
+		 *  See the detailed property descriptions for more information.

+		 *

+		 *
Property	Value

+		 *
altKey	Boolean value indicating whether
+		 *              the Alt key was pressed at the time of the event.

+		 *
bubbles	false

+		 *
cancelable	false

+		 *
ctrlKey	Boolean value indicating whether
+		 *              the Ctrl key was pressed at the time of the event.

+		 *
currentTarget	The Object that defines the
+		 *       event listener that handles the event. For example, if you use
+		 *       myButton.addEventListener() to register an event listener,
+		 *       myButton is the value of the currentTarget.

+		 *
itemIndex	The data provider index of
+		 *              the item to be selected.

+		 *
shiftKey	Boolean value indicating whether
+		 *              the Shift key was pressed at the time of the event.

+		 *
target	The Object that dispatched the event;
+		 *       it is not always the Object listening for the event.
+		 *       Use the currentTarget property to always access the
+		 *       Object listening for the event.

+		 *
triggerEvent	The event, such as a
+		 *             mouse or keyboard event, that triggered the action.

+		 *
type	SparkListItemSelectEvent.SELECT_INDEX

+		 *

+		 *
+		 *  @eventType select
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public static const SELECT_INDEX:String = "selectIndex";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 *  Normally called by the Flex control and not used in application code.
+		 *
+		 *  @param type The event type; indicates the action that caused the event.
+		 *
+		 *  @param bubbles Specifies whether the event can bubble
+		 *  up the display list hierarchy.
+		 *
+		 *  @param cancelable Specifies whether the behavior
+		 *  associated with the event can be prevented.
+		 *
+		 *  @param itemRenderer The item renderer object for the item.
+		 *
+		 *  @param triggerEvent The event, such as a mouse or keyboard event, that
+		 *              triggered the selection action.
+		 *
+		 *  @param altKey Whether the Alt key was pressed at the time of the event.
+		 *
+		 *  @param ctrlKey Whether the Ctrl key was pressed at the time of the event.
+		 *
+		 *  @param shiftKey Whether the Shift key was pressed at the time of the event.
+		 *
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public function SparkListItemSelectEvent(type:String, bubbles:Boolean = false,
+											cancelable:Boolean = false,
+											itemRenderer:IItemRenderer = null,
+											triggerEvent:Event = null,
+											ctrlKey:Boolean = false,
+											altKey:Boolean = false,
+											shiftKey:Boolean = false)
+		{
+			super(type, bubbles, cancelable);
+
+			this.itemRenderer = itemRenderer;
+			this.triggerEvent = triggerEvent;
+			this.ctrlKey = ctrlKey;
+			this.altKey = altKey;
+			this.shiftKey = shiftKey;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  altKey
+		//----------------------------------
+
+		/**
+		 *  Indicates whether the Alt key was pressed at the time of the event, true,
+		 *  or not, false.
+		 *
+		 *  @default false
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public var altKey:Boolean;
+
+		//----------------------------------
+		//  ctrlKey
+		//----------------------------------
+
+		/**
+		 *  Indicates whether the Ctrl key was pressed at the time of the event, true,
+		 *  or not, false.
+		 *
+		 *  @default false
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public var ctrlKey:Boolean;
+
+		//----------------------------------
+		//  triggerEvent
+		//----------------------------------
+
+		/**
+		 *  Event that triggered the item selection event,
+		 *  such as a keyboard or mouse event.
+		 *
+		 *  @default null
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public var triggerEvent:Event;
+
+		//----------------------------------
+		//  itemRenderer
+		//----------------------------------
+
+		/**
+		 *  Item renderer object for the item being selected or deselected.
+		 *  You can access the cell data using this property.
+		 *
+		 *  @default null
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public var itemRenderer:IItemRenderer;
+
+		//----------------------------------
+		//  shiftKey
+		//----------------------------------
+
+		/**
+		 *  Indicates whether the Shift key was pressed at the time of the event, true,
+		 *  or not, false.
+		 *
+		 *  @default false
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public var shiftKey:Boolean;
+
+
+		/**
+		 *  The automationValue string of the item to be selected.
+		 *  This is used when the item to be selected is not visible in the control.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public var itemAutomationValue:String;
+
+
+		/**
+		 *  The data provider index of the item to be selected.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public var itemIndex:uint;
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods: Event
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function clone():Event
+		{
+			return new SparkListItemSelectEvent(type, bubbles, cancelable,
+				itemRenderer,  triggerEvent,
+				ctrlKey, altKey, shiftKey);
+		}
+	}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17942
Author:   chiedozi@adobe.com
Date:     2010-09-29T22:17:47.195538Z

Log Message:
-----------
Renamed ViewHistoryData to ViewProxy
Added a context parameter to pushView that allows context information to be passed to a new view
View.returnedObject was moved to ViewNavigator and is now typed ViewReturnObject.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewHistoryData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewHistoryData.as" copyfrom-rev="17889" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as
@@ -0,0 +1,95 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.components.supportClasses
+{
+/**
+ *  The ViewReturnObject class encapsulates the return value of a view
+ *  when it is popped off a navigation stack.  The object contains a reference
+ *  to the returned object as well as the context in which the popped view was
+ *  created.  The context is an arbitrary object that is passed as part of the
+ *  ViewNavigator.pushView() method.
+ *
+ *  @see spark.components.View
+ *  @see spark.components.ViewNavigator#pushView
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.1
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+public class ViewReturnObject
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param object The returned object
+     *  @param context The context in which the owner was created
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    // TODO (chiedozi): PARB constructor params
+    public function ViewReturnObject(object:Object, context:String)
+    {
+    	super();
+
+        this.object = object;
+        this.context = context;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  context
+    //----------------------------------
+
+    /**
+     *  The context identifier passed to the popped view when it was pushed
+     *  onto the navigation stack.
+     *
+     *  @see spark.components.ViewNavigator#pushView
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    // TODO (chiedozi): PARB - should this be an object?
+    public var context:String = null;
+
+    //----------------------------------
+    //  object
+    //----------------------------------
+
+    /**
+     *  The return object generated by the view that is being removed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public var object:Object = null;
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5097
Author:   gauravj@adobe.com
Date:     2009-02-27T02:06:23.424936Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemTreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
+++ frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
@@ -22,6 +22,11 @@

 /**
  *  The FlexContentHolder class is for internal use only.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public dynamic class FlexContentHolder extends ContainerMovieClip
 {
@@ -33,6 +38,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function FlexContentHolder()
     {
@@ -64,6 +74,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function get content():IUIComponent
     {
@@ -88,6 +103,11 @@
      *  Initialize the object.
      *
      *  @see mx.core.UIComponent#initialize()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function initialize():void
     {
@@ -132,6 +152,11 @@
      *  @param newWidth The new width for this object.
      *
      *  @param newHeight The new height for this object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function setActualSize(newWidth:Number, newHeight:Number):void
     {
@@ -157,6 +182,11 @@

     /**
      *  Notify parent that the size of this object has changed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override protected function notifySizeChanged():void
     {
@@ -176,6 +206,11 @@
      *  this component.
      *  Set the content property rather than calling
      *  this method directly.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function setFlexContent(value:IUIComponent):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18199
Author:   klin@adobe.com
Date:     2010-10-19T06:15:05.005815Z

Log Message:
-----------
Add support for column sorting in DataGrid. Added basic support for interactively sorting the dataProvider by clicking on the column headers. Note that sorting currently only works if the dataProvider is an ICollectionView. We also provide the visibleSortIndicatorIndices property on the ColumnHeaderBar for developers to manually display the sort arrows. I've also changed the ColumnHeaderBarLayout to call prepare and discard on the allocated and created header renderers.

Notable added API include:

-In DataGrid, the sortableColumns property which toggles interactive sorting and sortByColumns() method which sorts the dataProvider by the provided column indices.
-In ColumnHeaderBar, the visibleSortIndicatorIndices allow the header renderers to determine whether to display their sort arrows.
-In GridColumn, the sortDescending property, the sortCompareFunction which has an additional parameter of the current GridColumn, and a read-only sortField property which constructs a SortField based on the current GridColumn.

QE notes: Can start testing column sorting
Doc notes: No
Bugs: No
Reviewer: Hans
Tests run: cyclone server
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml</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/components/supportClasses/GridColumn.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/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
+++ frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
@@ -19,17 +19,13 @@

 import mx.collections.IList;
 import mx.core.IFactory;
-import mx.core.IVisualElement;
 import mx.core.mx_internal;
 import mx.events.PropertyChangeEvent;
-import mx.managers.CursorManager;
-import mx.managers.CursorManagerPriority;
 import mx.managers.IFocusManagerComponent;

 import spark.components.gridClasses.IDataGridElement;
 import spark.components.supportClasses.ColumnHeaderBarLayout;
 import spark.components.supportClasses.GridColumn;
-import spark.components.supportClasses.GridLayer;
 import spark.events.GridEvent;
 import spark.layouts.supportClasses.LayoutBase;
 import spark.utils.MouseEventUtil;
@@ -377,7 +373,6 @@
         dispatchChangeEvent("headerRendererChanged");
     }

-
     //----------------------------------
     //  columnSeparator
     //----------------------------------
@@ -545,7 +540,62 @@
         _separatorMouseWidth = value;
         invalidateDisplayList();
         dispatchChangeEvent("separatorMouseWidthChanged");
-    }
+    }
+
+    //----------------------------------
+    //  visibleSortIndicatorIndices
+    //----------------------------------
+
+    [Bindable("visibleSortIndicatorIndicesChanged")]
+
+    private var _visibleSortIndicatorIndices:Vector.<int> = new Vector.<int>();
+
+    /**
+     *  A vector of column indices corresponding to the header renderers
+     *  which currently have their sort indicators visible.
+     *
+     *  @default []
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function get visibleSortIndicatorIndices():Vector.<int>
+    {
+        return _visibleSortIndicatorIndices.concat();
+    }
+
+    /**
+     *  @private
+     */
+    public function set visibleSortIndicatorIndices(value:Vector.<int>):void
+    {
+        // Defensively copy vector and tolerate null
+        const valueCopy:Vector.<int> = (value) ? value.concat() : new Vector.<int>();
+
+        _visibleSortIndicatorIndices = valueCopy;
+
+        invalidateDisplayList();
+        dispatchChangeEvent("visibleSortIndicatorIndicesChanged");
+    }
+
+    /**
+     *  Returns true if the sort indicator for the specified column
+     *  is visible.
+     *
+     *  This is just a more effient version of:
+     *      visibleSortIndicatorIndices.indexOf(columnIndex) != -1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function isSortIndicatorVisible(columnIndex:int):Boolean
+    {
+        return (_visibleSortIndicatorIndices.indexOf(columnIndex) != -1);
+    }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20830
Author:   aharui@adobe.com
Date:     2011-03-12T00:30:22.948958Z

Log Message:
-----------
Merge 20801 to trunk:

Prevent TLF from stopping propagation of keyDown on ENTER

QE notes: none
Doc notes: none
Bugs: SDK-28566
Reviewer: Carol
Tests run: checkintests mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/checkin-note-template.txt</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
@@ -633,7 +633,12 @@
         textDisplay.keyDownHandler(event);

         if (!event.isDefaultPrevented())
-            super.keyDownHandler(event);
+        {
+            var clone:KeyboardEvent = KeyboardEvent(event.clone());
+            super.keyDownHandler(clone);
+            if (clone.isDefaultPrevented())
+                event.preventDefault();
+        }
     }

     /**
@@ -642,7 +647,12 @@
     override public function keyUpHandler(event:KeyboardEvent):void
     {
         if (!event.isDefaultPrevented())
-            super.keyUpHandler(event);
+        {
+            var clone:KeyboardEvent = KeyboardEvent(event.clone());
+            super.keyUpHandler(clone);
+            if (clone.isDefaultPrevented())
+                event.preventDefault();
+        }
     }

     /**


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

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