Transferred from the Adobe Open Source Subversion Repository

Revision: 12069
Author:   dloverin@adobe.com
Date:     2009-11-20T23:24:46.331262Z

Log Message:
-----------
Split airspark project off airframework.

QE notes: None.
Doc notes: None.
Bugs: SDK-24109
Reviewer: Paul, Jim
Tests run: checkintests, tests/apollo/spark/components/Window
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_close_down.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/build.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_close_down.png</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/AIRFrameworkClasses.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_restore_over.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_min_over.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_max_over.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_min_over.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/src/AIRSparkClasses.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/airframework/src/spark</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_max_over.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/Window.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_min_dis.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_max_dis.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_restore_up.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_min_up.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_max_up.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_min_up.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/accessibility/WindowedApplicationAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_max_up.png</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/accessibility/WindowAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/gripper_up.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_close_over.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_close_over.png</path>
<path kind="dir" copyfrom-path="/flex/sdk/trunk/frameworks/projects/airframework/src/spark" copyfrom-rev="11985" action="A">/flex/sdk/trunk/frameworks/projects/airspark/src/spark</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/airframework/spark-air-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_close_up.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_restore_down.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_min_down.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/airframework/mx-air-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_max_down.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_close_up.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_min_down.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/mac_max_down.png</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/airframework/mx-air-manifest.xml" copyfrom-rev="11985" action="A">/flex/sdk/trunk/frameworks/projects/airframework/manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_min_dis.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/assets/win_max_dis.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core/Version.as</path>

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

--- frameworks/projects/airframework/src/AIRFrameworkClasses.as
+++ frameworks/projects/airframework/src/AIRFrameworkClasses.as
@@ -20,8 +20,6 @@
  */
 internal class AIRFrameworkClasses
 {
-
-
     import mx.managers.NativeDragManagerImpl; NativeDragManagerImpl;
     import mx.skins.halo.StatusBarBackgroundSkin; StatusBarBackgroundSkin;
     import mx.skins.halo.ApplicationTitleBarBackgroundSkin; ApplicationTitleBarBackgroundSkin;
@@ -29,18 +27,6 @@
     import mx.skins.halo.WindowMinimizeButtonSkin; WindowMinimizeButtonSkin;
     import mx.skins.halo.WindowMaximizeButtonSkin; WindowMaximizeButtonSkin;
     import mx.skins.halo.WindowRestoreButtonSkin; WindowRestoreButtonSkin;
-    import spark.skins.spark.windowChrome.CloseButtonSkin; CloseButtonSkin;
-    import spark.skins.spark.SparkChromeWindowedApplicationSkin; SparkChromeWindowedApplicationSkin;
-    import spark.skins.spark.windowChrome.GripperSkin; GripperSkin;
-    import spark.skins.spark.windowChrome.MacCloseButtonSkin; MacCloseButtonSkin;
-    import spark.skins.spark.windowChrome.MacMaximizeButtonSkin; MacMaximizeButtonSkin;
-    import spark.skins.spark.windowChrome.MacMinimizeButtonSkin; MacMinimizeButtonSkin;
-    import spark.skins.spark.windowChrome.MaximizeButtonSkin; MaximizeButtonSkin;
-    import spark.skins.spark.windowChrome.MinimizeButtonSkin; MinimizeButtonSkin;
-    import spark.skins.spark.windowChrome.RestoreButtonSkin; RestoreButtonSkin;
-    import spark.skins.spark.windowChrome.TitleBarSkin; TitleBarSkin;
-    import spark.skins.spark.WindowedApplicationSkin; WindowedApplicationSkin;
-    import spark.components.WindowedApplication; WindowedApplication;
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19741
Author:   mhorn@adobe.com
Date:     2011-01-13T15:38:18.894498Z

Log Message:
-----------
Doc notes: asdoc updates

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>

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

--- frameworks/projects/framework/src/mx/core/ILayoutElement.as
+++ frameworks/projects/framework/src/mx/core/ILayoutElement.as
@@ -798,23 +798,23 @@
      *  provided, then update the x/y/z properties as necessary to keep
      *  the transform center fixed.
      *
-     *  @param transformCenter the point, in the component's own coordinates,
+     *  @param transformCenter The point, in the component's own coordinates,
      *  to keep fixed relative to its parent.
      *
-     *  @param scale the new values for the scale of the transform
+     *  @param scale The new values for the scale of the transform.
      *
      *  @param rotation the new values for the rotation of the transform
      *
-     *  @param translation the new values for the translation of the transform
-     *
-     *  @param postLayoutScale the new values for the post-layout scale
-     *  of the transform
-     *
-     *  @param postLayoutRotation the new values for the post-layout rotation
-     *  of the transform
-     *
-     *  @param postLayoutTranslation the new values for the post-layout translation
-     *  of the transform
+     *  @param translation The new values for the translation of the transform.
+     *
+     *  @param postLayoutScale The new values for the post-layout scale
+     *  of the transform.
+     *
+     *  @param postLayoutRotation The new values for the post-layout rotation
+     *  of the transform.
+     *
+     *  @param postLayoutTranslation The new values for the post-layout translation
+     *  of the transform.
      *
      *  @param invalidateLayout If true, the parent container size and display are
      *  invalidated. Layouts calling this method pass false


Transferred from the Adobe Open Source Subversion Repository

Revision: 17709
Author:   clucier@adobe.com
Date:     2010-09-15T00:42:08.082044Z

Log Message:
-----------
Fix the build. Bad assumption made in previous checkin about existence of 'id' and 'document' properties on some classes.  Also tightened up some casts in Model.java.

QE notes: None
Doc notes: None
Bugs: N/A
Reviewer: Pete
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/OverrideBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/SetEventHandler.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/SetProperty.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/modules/compiler/src/java/flex2/compiler/mxml/rep/Model.java</path>

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

--- frameworks/projects/framework/src/mx/states/OverrideBase.as
+++ frameworks/projects/framework/src/mx/states/OverrideBase.as
@@ -192,12 +192,21 @@
      * @private
      * Disables or enables binding associated with a property override.
      */
-    protected function enableBindings(target:Object, property:String, enable:Boolean=true):void
-    {
-        if (isBaseValueDataBound && target && target.document && property)
-        {
-            var root:String = (target.document == target) ? "this" : target.id;
-            BindingManager.enableBindings(target.document, root + "." + property, enable);
+    protected function enableBindings(target:Object, parent:UIComponent, property:String, enable:Boolean=true):void
+    {
+        if (isBaseValueDataBound && target && parent && property)
+        {
+            var document:Object = target.hasOwnProperty("document") ? target.document : null;
+            document = !document && parent.hasOwnProperty("document") ? parent.document : null;
+
+            var name:String = target.hasOwnProperty("id") ? target.id : null;
+            name = !name && target.hasOwnProperty("name") ? target.name : null;
+
+            if (document && name)
+            {
+                var root:String = (document == target) ? "this" : name;
+                BindingManager.enableBindings(document, root + "." + property, enable);
+            }
         }
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 842
Author:   genovese@adobe.com
Date:     2008-03-17T21:51:41.069586Z

Log Message:
-----------
Minor ASDoc changes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/IResponder.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as
+++ frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as
@@ -150,6 +150,8 @@
      * Represents an instance of RemoteObject as a String, describing
      * important properties such as the destination id and the set of
      * channels assigned.
+     *
+     * @return A String representing an instance of a RemoteObject.
      */
     public function toString():String
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8121
Author:   hmuller@adobe.com
Date:     2009-06-23T22:04:05.964881Z

Log Message:
-----------
Restored Jason's (elegant!) floating point precision fix to Range/nearestValidValue().  Fixed a bug that could prevent slider's thumb from reaching the minimum.  Made the IVisualElement depth property work more reliably for virtualized DataGroups.  Defended against viewport.width/height = NaN in H,VScrollBar.

QE Notes:
Doc Notes:
Bugs:  sdk-21953, sdk-21951, sdk-21903, sdk-21964
Reviewer: Jason, Chet

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

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -883,7 +883,8 @@
      *  Discard the ItemRenderers that aren't needed anymore, i.e. the ones
      *  outside the range virtualLayoutStartIndex to virtualLayoutEndIndex.
      *  Discarded IRs may be added to the freeRenderers list per the rules
-     *  defined in getVirtualElementAt().
+     *  defined in getVirtualElementAt().  If any visible renderer has a non-zero
+     *  depth we resort DisplayObject - manageDisplayObjectLayers() - as well.
      */
     private function finishVirtualLayout():void
     {
@@ -929,6 +930,31 @@
                 super.removeChild(DisplayObject(elt));
             }
         }
+
+        // If there are any visible renderers whose depth property is non-zero
+        // then use manageDisplayObjectLayers to resort the children list.  Note:
+        // we're assuming that the layout has set the bounds of any elements that
+        // were allocated but aren't actually visible to 0x0.
+
+        if (virtualLayoutStartIndex < 0 || virtualLayoutEndIndex < 0)
+            return;
+
+        var depthSortRequired:Boolean = false;
+        for(index = virtualLayoutStartIndex; index < virtualLayoutEndIndex; index++)
+        {
+            elt = indexToRenderer[index] as IVisualElement;
+            if (!elt || !elt.visible || !elt.includeInLayout)
+                continue;
+            if ((elt.width == 0) || (elt.height == 0))
+                continue;
+            if (elt.depth != 0)
+            {
+                depthSortRequired = true;
+                break;
+            }
+        }
+        if (depthSortRequired)
+            manageDisplayObjectLayers();
     }

     /**
@@ -989,8 +1015,6 @@
         if (virtualLayoutUnderway)
         {
             finishVirtualLayout();
-            if(_layeringFlags & LAYERING_DIRTY)
-                manageDisplayObjectLayers();
             virtualLayoutUnderway = false;
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as
@@ -287,8 +287,7 @@
 				{
 					childSet[i].addEventListener(EffectEvent.EFFECT_END,
 												 effectEndHandler);
-					childSet[i].mx_internal::parentCompositeEffectInstance =
-						this;
+					childSet[i].parentCompositeEffectInstance = this;
 				}
 			}
 		}
@@ -350,7 +349,7 @@
 	public function onTweenUpdate(value:Object):void
 	{
 		_playheadTime = timerTween ?
-						timerTween.mx_internal::playheadTime :
+						timerTween.playheadTime :
 						_playheadTime;
 	}

@@ -360,7 +359,7 @@
 	public function onTweenEnd(value:Object):void
 	{
 		_playheadTime = timerTween ?
-						timerTween.mx_internal::playheadTime :
+						timerTween.playheadTime :
 						_playheadTime;
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17104
Author:   chiedozi@adobe.com
Date:     2010-07-28T21:42:36.912385Z

Log Message:
-----------
ViewNavigator now dispatches ElementExistenceEvents instead of ViewNavigatorEvents (PARB)

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/mobilecomponents/src/spark/components/MobileApplication.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" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
@@ -7,7 +7,6 @@
     import flash.events.StageOrientationEvent;
     import flash.net.registerClassAlias;
     import flash.system.Capabilities;
-    import flash.system.System;
     import flash.ui.Keyboard;

     import mx.core.IVisualElement;
@@ -19,7 +18,7 @@
     import spark.components.supportClasses.ViewNavigatorSection;
     import spark.core.managers.IPersistenceManager;
     import spark.core.managers.PersistenceManager;
-    import spark.events.ViewNavigatorEvent;
+    import spark.events.ElementExistenceEvent;
     import spark.layouts.supportClasses.LayoutBase;

     use namespace mx_internal;
@@ -31,12 +30,12 @@
     //--------------------------------------

     /**
-     *  @inheritDic
+     *  @inheritDoc
      */
     [Event(name="applicationPersist", type="mx.events.FlexEvent")]

     /**
-     *  @inheritDic
+     *  @inheritDoc
      */
     [Event(name="applicationRestore", type="mx.events.FlexEvent")]

@@ -545,9 +544,9 @@
         }

-        protected function navigator_viewAddHandler(event:ViewNavigatorEvent):void
-        {
-            var view:View = event.view;
+        protected function navigator_viewAddHandler(event:ElementExistenceEvent):void
+        {
+            var view:View = event.element as View;

             if (view)
                 view.setCurrentState(view.getCurrentViewState(isLandscape), false);
@@ -750,7 +749,7 @@

                 // Add event listeners
 //                navigator.addEventListener(Event.COMPLETE, persistViewData);
-                navigator.addEventListener(ViewNavigatorEvent.VIEW_ADD, navigator_viewAddHandler);
+                navigator.addEventListener(ElementExistenceEvent.ELEMENT_ADD, navigator_viewAddHandler);
             }
         }

@@ -790,7 +789,7 @@

                 // TODO (chiedozi): Do i need to null out the properties on navigator?  Applicaiton does.
 //                navigator.removeEventListener(Event.COMPLETE, persistViewData);
-                navigator.removeEventListener(ViewNavigatorEvent.VIEW_ADD, navigator_viewAddHandler);
+                navigator.removeEventListener(ElementExistenceEvent.ELEMENT_ADD, navigator_viewAddHandler);
             }
         }
     }


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

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


FLEX-33908 Leverage inEndEdit flag to prevent double events

--- frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
@@ -943,7 +943,7 @@
      *
      */
     private function endEdit():Boolean
-    {
+    {
         // Focus is inside an item renderer
         if (!itemEditorInstance && editedItemRenderer)
         {
@@ -1373,7 +1373,7 @@
         {
             // if the user clicks outside the cell but we can't save the data,
             // say, because the data was invalid, then cancel the save.
-            if (!dataGrid.endItemEditorSession())
+            if (!inEndEdit && !dataGrid.endItemEditorSession())
             {
                 dataGrid.endItemEditorSession(true);
             }
@@ -1564,7 +1564,7 @@
         {
             // If we can't save the data, say, because the data was invalid,
             // then cancel the save.
-            if (!dataGrid.endItemEditorSession())
+            if (!inEndEdit && !dataGrid.endItemEditorSession())
             {
                 dataGrid.endItemEditorSession(true);
             }
@@ -1582,7 +1582,7 @@
 		{
 			// If we can't save the data, say, because the data was invalid,
 			// then cancel the save.
-			if (!dataGrid.endItemEditorSession())
+			if (!inEndEdit && !dataGrid.endItemEditorSession())
 			{
 				dataGrid.endItemEditorSession(true);
 			}
@@ -1614,7 +1614,7 @@
         {
             // If we can't save the data, say, because the data was invalid,
             // then cancel the save.
-            if (!dataGrid.endItemEditorSession())
+            if (!inEndEdit && !dataGrid.endItemEditorSession())
             {
                 dataGrid.endItemEditorSession(true);
             }
@@ -1799,7 +1799,7 @@

         // If we can't save the data, say, because the data was invalid,
         // then cancel the save.
-        if (!dataGrid.endItemEditorSession())
+        if (!inEndEdit && !dataGrid.endItemEditorSession())
         {
             dataGrid.endItemEditorSession(true);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18006
Author:   dloverin@adobe.com
Date:     2010-10-04T21:04:40.944454Z

Log Message:
-----------
DataGrid editor api changes, clean up, and bug fixes.

QE notes: Not ready for testing.
Doc notes: None.
Bugs:
Reviewer: Hans
Tests run: checkintests
Is noteworthy for integration: No.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemEditor.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DataGridEditor.as" copyfrom-rev="17973" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/TextGridItemEditor.mxml</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/gridClasses/GridItemEditor.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="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DataGridEditor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/ComboBoxGridItemEditor.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
@@ -21,6 +21,7 @@
 import spark.components.IGridItemEditor;
 import spark.components.IGridItemRenderer;
 import mx.validators.IValidatorListener;
+import mx.core.IIMESupport;

 use namespace mx_internal;

@@ -46,7 +47,7 @@
     {
     }

-   //--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
     //
     //  Properties
     //
@@ -134,6 +135,73 @@
     public function get dataGrid():DataGrid
     {
         return DataGrid(owner);
+    }
+
+    //----------------------------------
+    //  enableIME
+    //----------------------------------
+
+    /**
+     *  @inheritdoc
+     */
+    public function get enableIME():Boolean
+    {
+        return true;
+    }
+
+    //----------------------------------
+    //  imeMode
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _imeMode:String = null;
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  Specifies the IME (input method editor) mode.
+     *  The IME enables users to enter text in Chinese, Japanese, and Korean.
+     *  Flex sets the specified IME mode when the control gets the focus,
+     *  and sets it back to the previous value when the control loses the focus.
+     *
+     *
The flash.system.IMEConversionMode class defines constants for the
+     *  valid values for this property.
+     *  You can also specify null to specify no IME.

+     *
+     *  @see flash.system.IMEConversionMode
+     *
+     *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get imeMode():String
+    {
+        return _imeMode;
+    }
+
+    /**
+     *  @private
+     */
+    public function set imeMode(value:String):void
+    {
+        _imeMode = value;
+
+        // set the ime mode in child controls
+        var n:int = numElements;
+        for (var i:int = 0; i < n; i++)
+        {
+            var child:IIMESupport = getElementAt(i) as IIMESupport;
+            if (child)
+            {
+                child.imeMode = value;
+            }
+        }
+
     }

     //----------------------------------
@@ -278,10 +346,13 @@
             if (!(newData is int))
                 newData = Number(newData);
         }
-
-        data[property] = newData;
-        dataGrid.dataProvider.itemUpdated(data, property, data[property], newData);
-        dataGrid.validateNow();
+
+        if (property && data[property] != newData)
+        {
+            data[property] = newData;
+            dataGrid.dataProvider.itemUpdated(data, property, data[property], newData);
+            dataGrid.validateNow();
+        }

         return true;
     }


[VectorCommon] fixed Rail to be able to display traces over zero

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

--- VectorCommon/src/org/jbei/components/railClasses/TraceRenderer.as
+++ VectorCommon/src/org/jbei/components/railClasses/TraceRenderer.as
@@ -69,11 +69,19 @@
 			// render matches
 			g.lineStyle(2, MATCH_COLOR);

-			var matchStartPosition:Number = railMetrics.x + bpWidth * traceAnnotation.traceSequence.traceSequenceAlignment.queryStart;
-			var matchEndPosition:Number = railMetrics.x + bpWidth * traceAnnotation.traceSequence.traceSequenceAlignment.queryEnd;
-
-			g.moveTo(matchStartPosition, yPosition);
-			g.lineTo(matchEndPosition, yPosition);
+            var matchStartPosition:Number = railMetrics.x + bpWidth * traceAnnotation.traceSequence.traceSequenceAlignment.queryStart;
+            var matchEndPosition:Number = railMetrics.x + bpWidth * traceAnnotation.traceSequence.traceSequenceAlignment.queryEnd;
+
+            if(traceAnnotation.start > traceAnnotation.end) { // circular
+                g.moveTo(railMetrics.x, yPosition);
+                g.lineTo(matchEndPosition, yPosition);
+
+                g.moveTo(matchStartPosition, yPosition);
+                g.lineTo(railMetrics.x + bpWidth * contentHolder.sequenceProvider.sequence.length, yPosition);
+            } else { // linear
+                g.moveTo(matchStartPosition, yPosition);
+                g.lineTo(matchEndPosition, yPosition);
+            }

 			// render mismatches
 			if(mismatches != null && mismatches.length > 0) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17206
Author:   jszeto@adobe.com
Date:     2010-08-06T00:21:03.791589Z

Log Message:
-----------
Mobile Button Skin Changes

Refactor ButtonSkin into MobileSkin, ButtonSkinBase and ButtonSkin.

MobileSkin has logic for dealing with currentState
ButtonSkinBase has the label and icon placement logic (and is essentially a borderless skin)
ButtonSkin adds the FXG skins and the gradient background

- Text is now bold
- Emphasized buttons use ButtonSkin instead of DefaultButtonSkin and don't show any emphasized state (we aren't supporting emphasized buttons for mobile)
- Optimized the FXG skin creation
- Moved iconClass and labelPlacement from Button to ButtonBase.
- Updated padding values for label to match spec
- Removed the spark ButtonLabelPlacement class and moved the mx one from mx to frameworks swc

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

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/MobileSkin.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ButtonLabelPlacement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ButtonLabelPlacement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ButtonLabelPlacement.as" copyfrom-rev="17195" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ButtonLabelPlacement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
@@ -0,0 +1,438 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.skins.mobile
+{
+
+    import flash.display.DisplayObject;
+    import flash.display.GradientType;
+    import flash.events.Event;
+    import flash.events.EventDispatcher;
+    import flash.geom.Matrix;
+    import flash.text.TextField;
+    import flash.text.TextFormat;
+    import flash.text.TextFormatAlign;
+    import flash.text.TextLineMetrics;
+
+    import mx.controls.ButtonLabelPlacement;
+    import mx.core.IUITextField;
+    import mx.core.UIComponent;
+    import mx.core.UITextField;
+    import mx.core.mx_internal;
+    import mx.states.SetProperty;
+    import mx.states.State;
+    import mx.utils.ColorUtil;
+
+    import spark.components.Button;
+    import spark.skins.MobileSkin;
+
+    use namespace mx_internal;
+
+    /*
+    ISSUES:
+    - should we support textAlign (if not, remove extra code)
+    - labelPlacement a style?
+    - iconClass a style?
+    - need a downIconClass style?
+    - should the label be UITextField or another text class?
+
+    TODO:
+    - Add labelPlacement to default.css
+    */
+    /**
+     *  Actionscript based skin for mobile applications. The skin supports
+     *  iconClass and labelPlacement. It uses a couple of FXG classes to
+     *  implement the vector drawing.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public class ButtonSkinBase extends MobileSkin
+    {
+
+        //--------------------------------------------------------------------------
+        //
+        //  Constructor
+        //
+        //--------------------------------------------------------------------------
+        public function ButtonSkinBase()
+        {
+            super();
+        }
+
+        //--------------------------------------------------------------------------
+        //
+        //  Variables
+        //
+        //--------------------------------------------------------------------------
+
+        private var textField:IUITextField;
+        private var textFieldShadow:IUITextField;
+
+        // Holds the icon
+        private var iconDisplay:DisplayObject;
+
+        // TODO (jszeto) Either static consts or styles
+        private static const gap:int = 7;
+        private static const paddingLeft:int = 15;
+        private static const paddingRight:int = 15;
+        private static const paddingTop:int = 7;
+        private static const paddingBottom:int = 7;
+
+        private static var TEXT_WIDTH_PADDING:Number = UITextField.TEXT_WIDTH_PADDING + 1;
+
+        //--------------------------------------------------------------------------
+        //
+        //  Overridden properties
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         * @copy spark.skins.spark.ApplicationSkin#hostComponent
+         */
+        public var hostComponent:Button; // SkinnableComponent will popuplate
+
+        //--------------------------------------------------------------------------
+        //
+        //  Overridden methods
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  @private
+         */
+        override protected function createChildren():void
+        {
+            textField = IUITextField(createInFontContext(UITextField));
+            textFieldShadow = IUITextField(createInFontContext(UITextField));
+
+            // TODO (jszeto) Ask XD if shadow color is dependant upon text color
+            textFieldShadow.setColor(0x000000);
+            textFieldShadow.alpha = .20;
+
+            addChild(UITextField(textFieldShadow));
+            addChild(UITextField(textField));
+
+            updateLabel();
+
+            // SkinnableComponent doesn't notify us if we have been removed
+            // from the hostComponent, so we use a weak reference
+            if (hostComponent != null)
+            {
+                hostComponent.addEventListener("contentChange",
+                    hostComponent_contentChangeHandler,
+                    false, 0, true);
+            }
+
+            var iconClass:Class = getStyle("iconClass");
+
+            if (iconClass)
+            {
+                // Should be a bitmap
+                iconDisplay = new iconClass();
+                addChild(iconDisplay);
+            }
+        }
+
+        /**
+         *  @private
+         */
+        override public function styleChanged(styleProp:String):void {
+            // TODO: Refactor to check whether styleProp is one of three following value types and update
+            // the styles accordingly:
+            // 1) Individual style name (e.g. "fontSize"). 2) "styleName". 3) null.
+            // If 1) reset only individual style. If 2) or 3), reset all styles
+
+            // Only deal with text if a hostComponent exists and text fields are not empty
+            /*if(hostComponent != null && textField != null && textFieldShadow != null) {
+            var tf:TextFormat = textField.defaultTextFormat;
+
+            tf = setTextFormat(tf);
+
+            //textField.setTextFormat(tf);
+            tf.color = 0x000000;
+            textFieldShadow.setTextFormat(tf);
+            textFieldShadow.alpha = .20;
+            }*/
+
+            // TODO Reapply the color to the textFieldShadow
+            // TODO (jszeto) Add check for change to iconClass
+
+            super.styleChanged(styleProp);
+        }
+
+        /**
+         *  @private
+         */
+        override protected function measure():void
+        {
+            super.measure();
+
+            var labelPlacement:String = getStyle("labelPlacement");
+            if (labelPlacement == null)
+                labelPlacement = ButtonLabelPlacement.RIGHT;
+
+            var textWidth:Number = 0;
+            var textHeight:Number = 0;
+            var lineMetrics:TextLineMetrics;
+
+            if (hostComponent && hostComponent.label != "")
+            {
+                lineMetrics = measureText(hostComponent.label);
+                textWidth = lineMetrics.width + TEXT_WIDTH_PADDING;
+                textHeight = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;
+            }
+            else
+            {
+                lineMetrics = measureText("Wj");
+                textHeight = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;
+            }
+
+            var iconWidth:Number = iconDisplay ? iconDisplay.width : 0;
+            var iconHeight:Number = iconDisplay ? iconDisplay.height : 0;
+            var w:Number = 0;
+            var h:Number = 0;
+
+            if (labelPlacement == ButtonLabelPlacement.LEFT ||
+                labelPlacement == ButtonLabelPlacement.RIGHT)
+            {
+                w = textWidth + iconWidth;
+                if (textWidth && iconWidth)
+                    w += gap; //getStyle("horizontalGap");
+                h = Math.max(textHeight, iconHeight);
+            }
+            else
+            {
+                w = Math.max(textWidth, iconWidth);
+                h = textHeight + iconHeight;
+                if (textHeight && iconHeight)
+                    h += gap; // getStyle("verticalGap");
+            }
+
+            // Add padding. !!!Need a hack here to only add padding if we don't
+            // have text or icon. This is required to make small buttons (like scroll
+            // arrows and numeric stepper buttons) look correct.
+            if (textWidth || iconWidth)
+            {
+                w += paddingLeft + paddingRight; //getStyle("paddingLeft") + getStyle("paddingRight");
+                h += paddingTop + paddingBottom; //getStyle("paddingTop") + getStyle("paddingBottom");
+            }
+
+            measuredMinWidth = measuredWidth = w;
+            measuredMinHeight = measuredHeight = h;
+        }
+
+        /**
+         *  @private
+         */
+        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
+        {
+            super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+            var labelWidth:Number = 0;
+            var labelHeight:Number = 0;
+
+            var labelX:Number = 0;
+            var labelY:Number = 0;
+
+            var iconWidth:Number = 0;
+            var iconHeight:Number = 0;
+
+            var iconX:Number = 0;
+            var iconY:Number = 0;
+
+            var horizontalGap:Number = 0;
+            var verticalGap:Number = 0;
+
+            var labelPlacement:String = getStyle("labelPlacement");
+            if (labelPlacement == null)
+                labelPlacement = ButtonLabelPlacement.RIGHT;
+
+            var textWidth:Number = 0;
+            var textHeight:Number = 0;
+
+            var lineMetrics:TextLineMetrics;
+
+            if (hostComponent && hostComponent.label != "")
+            {
+                lineMetrics = measureText(hostComponent.label);
+                textWidth = lineMetrics.width + TEXT_WIDTH_PADDING;
+                textHeight = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;
+            }
+            else
+            {
+                lineMetrics = measureText("Wj");
+                textHeight = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;
+            }
+
+            var textAlign:String = "center"; // getStyle("textAlign");
+            // Map new Spark values that might be set in a selector
+            // affecting both Halo and Spark components.
+            /*if (textAlign == "start")
+                textAlign = TextFormatAlign.LEFT;
+            else if (textAlign == "end")
+                textAlign = TextFormatAlign.RIGHT;*/
+
+            var viewWidth:Number = unscaledWidth;
+            var viewHeight:Number = unscaledHeight;
+
+            if (iconDisplay)
+            {
+                iconWidth = iconDisplay.width;
+                iconHeight = iconDisplay.height;
+            }
+
+            if (labelPlacement == ButtonLabelPlacement.LEFT ||
+                labelPlacement == ButtonLabelPlacement.RIGHT)
+            {
+                horizontalGap = gap;
+
+                if (iconWidth == 0 || textWidth == 0)
+                    horizontalGap = 0;
+
+                if (textWidth > 0)
+                {
+                    labelWidth =
+                        Math.max(Math.min(viewWidth - iconWidth - horizontalGap -
+                            paddingLeft - paddingRight, textWidth), 0);
+                }
+                else
+                {
+                    labelWidth = 0;
+                }
+                labelHeight = Math.min(viewHeight, textHeight);
+
+                if (textAlign == "left")
+                {
+                    labelX += paddingLeft;
+                }
+                else if (textAlign == "right")
+                {
+                    labelX += (viewWidth - labelWidth - iconWidth -
+                        horizontalGap - paddingRight);
+                }
+                else // "center" -- default value
+                {
+                    labelX += ((viewWidth - labelWidth - iconWidth -
+                        horizontalGap - paddingLeft - paddingRight) / 2) + paddingLeft;
+                }
+
+                if (labelPlacement == ButtonLabelPlacement.RIGHT)
+                {
+                    labelX += iconWidth + horizontalGap;
+                    iconX = labelX - (iconWidth + horizontalGap);
+                }
+                else
+                {
+                    iconX  = labelX + labelWidth + horizontalGap;
+                }
+
+                iconY  = ((viewHeight - iconHeight - paddingTop - paddingBottom) / 2) + paddingTop;
+                labelY = ((viewHeight - labelHeight - paddingTop - paddingBottom) / 2) + paddingTop;
+            }
+            else
+            {
+                verticalGap = gap;
+
+                if (iconHeight == 0 || !hostComponent || hostComponent.label == "")
+                    verticalGap = 0;
+
+                if (textWidth > 0)
+                {
+                    labelWidth = Math.max(viewWidth - paddingLeft - paddingRight, 0);
+                    labelHeight =
+                        Math.min(viewHeight - iconHeight - paddingTop - paddingBottom - verticalGap, textHeight);
+                }
+                else
+                {
+                    labelWidth = 0;
+                    labelHeight = 0;
+                }
+
+                labelX = paddingLeft;
+
+                if (textAlign == "left")
+                {
+                    iconX += paddingLeft;
+                }
+                else if (textAlign == "right")
+                {
+                    iconX += Math.max(viewWidth - iconWidth - paddingRight, paddingLeft);
+                }
+                else
+                {
+                    iconX += ((viewWidth - iconWidth - paddingLeft - paddingRight) / 2) + paddingLeft;
+                }
+
+                if (labelPlacement == ButtonLabelPlacement.TOP)
+                {
+                    labelY += ((viewHeight - labelHeight - iconHeight -
+                        paddingTop - paddingBottom - verticalGap) / 2) + paddingTop;
+                    iconY += labelY + labelHeight + verticalGap;
+                }
+                else
+                {
+                    iconY += ((viewHeight - labelHeight - iconHeight -
+                        paddingTop - paddingBottom - verticalGap) / 2) + paddingTop;
+                    labelY += iconY + iconHeight + verticalGap;
+                }
+            }
+
+            textField.x = Math.round(labelX);
+            textField.y = Math.round(labelY);
+            textField.height = labelHeight;
+            textField.width = labelWidth;
+
+            textFieldShadow.x = Math.round(labelX);
+            textFieldShadow.y = Math.round(labelY + 1);
+            textFieldShadow.height = labelHeight;
+            textFieldShadow.width = labelWidth;
+
+            if (iconDisplay)
+            {
+                iconDisplay.x = Math.round(iconX);
+                iconDisplay.y = Math.round(iconY);
+            }
+        }
+
+        //--------------------------------------------------------------------------
+        //
+        //  Methods
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  @private
+         */
+        private function hostComponent_contentChangeHandler(event:Event):void
+        {
+            updateLabel();
+        }
+
+        /**
+         *  @private
+         */
+        private function updateLabel():void
+        {
+            if (hostComponent != null && textField)
+            {
+                textField.text = hostComponent.label;
+                textFieldShadow.text = hostComponent.label;
+                invalidateSize();
+            }
+        }
+
+
+
+    }
+}


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

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

 package spark.skins.mobile.supportClasses
 {


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

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

 package mx.charts.series.items
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/DeferredInstanceFromClass.as
+++ frameworks/projects/framework/src/mx/core/DeferredInstanceFromClass.as
@@ -20,6 +20,11 @@
  *  a reference to the instance thereafter.
  *
  *  @see DeferredInstanceFromFunction
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class DeferredInstanceFromClass implements IDeferredInstance
 {
@@ -36,6 +41,11 @@
 	 *
 	 *  @param generator The class whose instance the getInstance()
 	 *  method creates and returns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function DeferredInstanceFromClass(generator:Class)
     {
@@ -75,6 +85,11 @@
 	 *
 	 *  @return An instance of the class specified in the
 	 *  DeferredInstanceFromClass constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function getInstance():Object
 	{


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/graphics/RectangularDropShadow.as
+++ frameworks/projects/framework/src/mx/graphics/RectangularDropShadow.as
@@ -50,6 +50,11 @@
  *
  *  @see flash.filters.DropShadowFilter
  *  @see flash.display.DisplayObject
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class RectangularDropShadow
 {
@@ -63,6 +68,11 @@

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

     /**
      *  @copy flash.filters.DropShadowFilter#alpha
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get alpha():Number
     {
@@ -161,6 +176,11 @@

     /**
      *  @copy flash.filters.DropShadowFilter#angle
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get angle():Number
     {
@@ -193,6 +213,11 @@

     /**
      *  @copy flash.filters.DropShadowFilter#color
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get color():int
     {
@@ -225,6 +250,11 @@

     /**
      *  @copy flash.filters.DropShadowFilter#distance
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get distance():Number
     {
@@ -259,6 +289,11 @@
      *  The corner radius of the top left corner
 	 *  of the rounded rectangle that is casting the shadow.
 	 *  May be zero for non-rounded rectangles.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get tlRadius():Number
     {
@@ -293,6 +328,11 @@
      *  The corner radius of the top right corner
 	 *  of the rounded rectangle that is casting the shadow.
 	 *  May be zero for non-rounded rectangles.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get trRadius():Number
     {
@@ -328,6 +368,11 @@
 	 *  of the rounded rectangle that is casting the shadow.
 	 *  May be zero for non-rounded
      *  rectangles.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get blRadius():Number
     {
@@ -362,6 +407,11 @@
      *  The corner radius of the bottom right corner
 	 *  of the rounded rectangle that is casting the shadow.
 	 *  May be zero for non-rounded rectangles.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get brRadius():Number
     {
@@ -400,6 +450,11 @@
      *  @param width The width of the shadow, in pixels.
      *
      *  @param height The height of the shadow, in pixels.
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
     */
 	public function drawShadow(g:Graphics,
 							   x:Number, y:Number,


Transferred from the Adobe Open Source Subversion Repository

Revision: 11995
Author:   doug.lee@ssbbartgroup.com
Date:     2009-11-19T18:50:30.831767Z

Log Message:
-----------
Updated all AccImpls that use MSAA constants (except TextLayout) to
use the new AccConst references instead of hard-coding hex numbers and
local copies of the constants.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LabelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextInputAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowedApplicationAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/NumericStepperAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SkinnableTextBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ToggleButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/ButtonBaseAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/ButtonBaseAccImpl.as
@@ -18,6 +18,7 @@
 import flash.ui.Keyboard;

 import mx.accessibility.AccImpl;
+import mx.accessibility.AccConst;
 import mx.core.UIComponent;
 import mx.core.mx_internal;

@@ -42,26 +43,6 @@

     //--------------------------------------------------------------------------
     //
-    //  Class constants
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-
-    /**
-     *  @private
-     */
-    private static const EVENT_OBJECT_NAMECHANGE:uint = 0x800C;
-
-    /**
-     *  @private
-     */
-    private static const EVENT_OBJECT_STATECHANGE:uint = 0x800A;
-
-    //--------------------------------------------------------------------------
-    //
     //  Class methods
     //
     //--------------------------------------------------------------------------
@@ -120,7 +101,7 @@
     {
         super(master);

-        role = 0x2B; // ROLE_SYSTEM_PUSHBUTTON
+        role = AccConst.ROLE_SYSTEM_PUSHBUTTON;
     }

     //--------------------------------------------------------------------------
@@ -247,14 +228,14 @@
         {
             case "click":
             {
-                Accessibility.sendEvent(master, 0, EVENT_OBJECT_STATECHANGE);
+                Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_STATECHANGE);
                 Accessibility.updateProperties();
                 break;
             }

             case "labelChanged":
             {
-                Accessibility.sendEvent(master, 0, EVENT_OBJECT_NAMECHANGE);
+                Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_NAMECHANGE);
                 Accessibility.updateProperties();
                 break;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12368
Author:   dsubrama@adobe.com
Date:     2009-12-02T16:37:28.078960Z

Log Message:
-----------
Rename spark.components.supportClasses.Slider to spark.components.supportClasses.SliderBase as well as spark.components.supportClasses.ScrollBar to spark.components.supportClasses.ScrollBarBase. This means the spark manifest entries have also changed (for CSS styling purposes, not for use as mxml tags) (Slider -> SliderBase, ScrollBar -> ScrollBarBase).

Change is PARB approved.

QE notes: Please check-in the updated tests
Doc notes: ASDoc has been updated. If any updates need to happen in livedocs, please do so.
Bugs: SDK-24401
Reviewer: Ryan/Jason
Tests run: Jacob ran a cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as" copyfrom-rev="12283" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderAccImpl.as" copyfrom-rev="12283" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as" copyfrom-rev="12283" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderAccImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/sparkTest/src/components/CircularScrollBar.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as
@@ -22,20 +22,20 @@
 import mx.core.UIComponent;
 import mx.core.mx_internal;

-import spark.components.supportClasses.Slider;
+import spark.components.supportClasses.SliderBase;

 use namespace mx_internal;

 /**
- *  SliderAccImpl is a subclass of AccessibilityImplementation
- *  which implements accessibility for the Slider class.
+ *  SliderBaseAccImpl is a subclass of AccessibilityImplementation
+ *  which implements accessibility for the SliderBase class.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class SliderAccImpl extends AccImpl
+public class SliderBaseAccImpl extends AccImpl
 {
     include "../core/Version.as";

@@ -46,11 +46,11 @@
     //--------------------------------------------------------------------------

     /**
-     *  Enables accessibility in the Slider class.
+     *  Enables accessibility in the SliderBase class.
      *
      *
This method is called by application startup code
      *  that is autogenerated by the MXML compiler.
-     *  Afterwards, when instances of Slider are initialized,
+     *  Afterwards, when instances of sliders are initialized,
      *  their accessibilityImplementation property
      *  will be set to an instance of this class.

      *
@@ -61,13 +61,13 @@
      */
     public static function enableAccessibility():void
     {
-        Slider.createAccessibilityImplementation =
+        SliderBase.createAccessibilityImplementation =
             createAccessibilityImplementation;
     }

     /**
      *  @private
-     *  Creates a Slider's AccessibilityImplementation object.
+     *  Creates a SliderBase's AccessibilityImplementation object.
      *  This method is called from UIComponent's
      *  initializeAccessibility() method.
      */
@@ -75,7 +75,7 @@
                                 component:UIComponent):void
     {
         component.accessibilityImplementation =
-            new SliderAccImpl(component);
+            new SliderBaseAccImpl(component);
     }

     //--------------------------------------------------------------------------
@@ -95,7 +95,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function SliderAccImpl(master:UIComponent)
+    public function SliderBaseAccImpl(master:UIComponent)
     {
         super(master);

@@ -179,10 +179,10 @@
      */
     override public function get_accValue(childID:uint):String
     {
-        var val:Number = Slider(master).value;
-
-        val = (val -  Slider(master).minimum) /
-              (Slider(master).maximum - Slider(master).minimum) * 100;
+        var val:Number = SliderBase(master).value;
+
+        val = (val -  SliderBase(master).minimum) /
+              (SliderBase(master).maximum - SliderBase(master).minimum) * 100;

         return String(val);
     }
@@ -275,7 +275,7 @@

     /**
      *  @private
-     *  This is (kind of) a hack to get around the fact that Slider is not
+     *  This is (kind of) a hack to get around the fact that SliderBase is not
      *  an IFocusManagerComponent. It forces frocus from accessibility when one of
      *  its thumbs get focus.
      */


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

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


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

--- frameworks/projects/spark/src/spark/skins/spark/BorderContainerSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/BorderContainerSkin.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.skins.spark
 {