asdoc

asdoc

--- src/com/kemsky/Stream.as
+++ src/com/kemsky/Stream.as
@@ -74,6 +74,11 @@
             return filter(defined(_));
         }

+        /**
+         * Splits current stream into two streams depending on testing callback.
+         * @param callback A function to run on each item of the stream: function(item:*):Boolean.
+         * @return A new stream containing two streams: the first stream from items with positive test and second with negative.
+         */
         public function partition(callback:Function):Stream
         {
             var first:Stream = new Stream();
@@ -94,6 +99,12 @@
             return new Stream([first, second]);
         }

+        /**
+         * Fills current stream with provided value.
+         * @param value An item used to fill the stream.
+         * @param length An Integer that specifies the how many items to set.
+         * @return Current stream.
+         */
         public function fill(value:*, length:int = -1):Stream
         {
             var count:uint = length == -1 ? source.length : length;
@@ -105,6 +116,11 @@
             return this;
         }

+        /**
+         * Creates a new stream of streams created from the items and their corresponding indices.
+         * For example: [1, 2] => [[0, 1][1, 2]].
+         * @return A new stream of streams created from the items and their corresponding indices.
+         */
         public function zip():Stream
         {
             var result:Array = [];
@@ -116,6 +132,12 @@
             return new Stream(result);
         }

+        /**
+         * Returns an index of the item in the stream, if an item in the stream satisfies the provided testing callback.
+         * Otherwise -1 is returned.
+         * @param callback The function to run on each item of the stream: function(item:*):Boolean.
+         * @return An index of the item that satisfies provided testing callback; otherwise -1 is returned.
+         */
         public function findIndex(callback:Function):int
         {
             var result:int = 0;
@@ -130,6 +152,12 @@
             return -1;
         }

+        /**
+         * Returns a value in the stream, if an item in the stream satisfies the provided testing callback.
+         * Otherwise undefined is returned.
+         * @param callback The function to run on each item of the stream: function(item:*):Boolean.
+         * @return An item that satisfies provided testing callback; otherwise undefined is returned.
+         */
         public function find(callback:Function):*
         {
             for each (var item:* in source)
@@ -142,22 +170,41 @@
             return undefined;
         }

-        public function drop(count:uint):Stream
-        {
-            return this.slice(0, length - count);
-        }
-
+        /**
+         * Creates a new stream from items of the current stream skipping last n items.
+         * @param n An integer that specifies how may items to skip.
+         * @return A new stream without n last items.
+         */
+        public function drop(n:uint):Stream
+        {
+            return this.slice(0, length - n);
+        }
+
+        /**
+         * Returns stream item at specified index.
+         * @param index An integer that specifies the position of the item in the stream.
+         * @return An item at specified position.
+         */
         public function getItem(index:int):*
         {
             return source[index];
         }

-
+        /**
+         * Sets item at specified position.
+         * @param index An integer that specifies the position in the stream where the item is to be set.
+         * @param value An item to set.
+         */
         public function setItem(index:int, value:*):void
         {
             source[index] = value;
         }

+        /**
+         * Executes a test function on each item and calculates number of successful tests.
+         * @param callback The function to run on each item in the stream.
+         * @return A number of successful tests.
+         */
         public function count(callback:Function):uint
         {
             var result:uint = 0;
@@ -183,8 +230,8 @@
         }

         /**
-         * Removes all items from the stream
-         * @return Current stream
+         * Removes all items from the stream.
+         * @return Current stream.
          */
         public function clear():Stream
         {
@@ -427,6 +474,12 @@
             source[source.length - 1] = item;
         }

+        /**
+         * Applies a binary callback to a start value and all items of this stream, going left to right.
+         * @param callback The function to execute on each value in the stream: function(item:*, accumulator:*):*.
+         * @param initial The initial value for the accumulator.
+         * @return The value of accumulator.
+         */
         public function foldLeft(callback:Function, initial:*):*
         {
             var context:* = initial;
@@ -437,6 +490,12 @@
             return context;
         }

+        /**
+         * Applies a binary callback to all items of this stream and a start value, going right to left.
+         * @param callback The function to execute on each value in the stream: function(item:*, accumulator:*):*.
+         * @param initial The initial value for the accumulator.
+         * @return The value of accumulator.
+         */
         public function foldRight(callback:Function, initial:*):*
         {
             var context:* = initial;
@@ -460,17 +519,17 @@

         /**
          * Flattens a nested Streams, ArrayLists, ArrayCollections, Vectors.
-         * @return
+         * @return A new stream from items of the nested Streams, ArrayLists, ArrayCollections, Vectors.
          */
         public function flatten():Stream
         {
-            return flatMap(null);//todo: unlimited depth?
+            return flatMap(null);
         }

         /**
          * Builds a new stream by applying a function to all items of this stream and using
          * the items of the resulting Streams, ArrayLists, ArrayCollections, Vectors.
-         * @param callback
+         * @param callback The function to execute on each value in the stream: function(item:*):*.
          * @return
          */
         public function flatMap(callback:Function):Stream
@@ -510,7 +569,7 @@
         }

         /**
-         * Returns a new ArrayCollection created from items of current Stream
+         * Creates a new ArrayCollection from items of current Stream
          */
         public function collection():ArrayCollection
         {
@@ -519,7 +578,7 @@

         /**
-         * Returns a new ArrayList created from items of current Stream
+         * Creates a new ArrayList from items of current Stream
          */
         public function list():ArrayList
         {
@@ -527,7 +586,7 @@
         }

         /**
-         * Returns a new Array created from items of current Stream
+         * Creates a new Array from items of current Stream
          */
         public function array():Array
         {
@@ -554,6 +613,12 @@
             return dict;
         }

+        /**
+         * Groups items by key obtained via callback.
+         * @param callback The function to calculate key from item: function(item:*):*
+         * @param factory Class to be instantiated and returned instead of Dictionary.
+         * @return A new Dictionary or custom class created from factory which contains groups.
+         */
         public function group(callback:Function, factory:Class = null):*
         {
             var dict:* = factory == null ? new Dictionary() : new factory();
@@ -593,7 +658,7 @@
         /**
          * Creates a copy of the current stream
          * @param deep Create a deep copy using AMF serialization.
-         * @return A copy of the current stream.
+         * @return A shallow copy of the current stream if deep is false; otherwise creates deep copy.
          */
         public function clone(deep:Boolean = false):Stream
         {


slight change for speed

slight change for speed

Change-Id: Ia8b1b864d3eaca50f7297e9e4f5fa8b3947c9c28

--- WeaveCore/src/weave/utils/WeakReference.as
+++ WeaveCore/src/weave/utils/WeakReference.as
@@ -44,11 +44,16 @@
 				return key;
 			return null;
 		}
-		public function set value(value:Object):void
+		public function set value(newValue:Object):void
 		{
-			for (var key:* in dictionary)
-				delete dictionary[key];
-			if (value != null)
+			for (var key:* in dictionary)
+			{
+				// do nothing if value didn't change
+				if (key === newValue)
+					return;
+				delete dictionary[key];
+			}
+			if (newValue != null)
 			{
 				/*
 					TEMPORARY SOLUTION for garbage-collection bug:
@@ -56,10 +61,10 @@
 					https://bugs.adobe.com/jira/browse/FP-5860
 					Until this bug is fixed, Functions must have strong references.
 				*/
-				if (value is Function && getQualifiedClassName(value) != 'Function')
-					dictionary[value] = value; // change to null when flash player bug is fixed
+				if (newValue is Function && getQualifiedClassName(newValue) != 'Function')
+					dictionary[newValue] = newValue; // change to null when flash player bug is fixed
 				else
-					dictionary[value] = null;
+					dictionary[newValue] = null;
 			}
 		}


shouldn't be necessary, getter should pick it up

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/UIButtonBase.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/UIButtonBase.as
@@ -730,9 +730,6 @@
                 }
             }

-            _width = $width;
-            _height = $height;
-
             dispatchEvent(new org.apache.flex.events.Event("beadsAdded"));

 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 21839
Author:   jszeto@adobe.com
Date:     2011-08-04T22:35:00.199381Z

Log Message:
-----------
SpinnerList Bug Fixes

SDK-30904 - SpinnerList dispatches "change" event on programmatic selectedIndex changes

Call setSelectedIndex after a user interaction change

SDK-30961 - SpinnerList should use a less common property name when deciding if an item is disabled

Changed from using "enabled" to "_enabled_". Added static constant to SpinnerList.

SDK-30998 - SpinnerListContainerSkin.layoutContents calls setElementPosition() before setElementSize()

QE notes: none
Doc notes: none
Bugs: SDK-30904, SDK-30961, SDK-30998
Reviewer: Tom K
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/modules/compiler/src/java/flex2/compiler/common/DefaultsConfigurator.java</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
+++ frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
@@ -1145,7 +1145,7 @@

                     // note this is where future support for more complex unselectable dates could be added

-                    if (curObj.enabled != newEnabledValue)
+                    if (curObj[SpinnerList.ENABLED_PROPERTY_NAME] != newEnabledValue)
                     {
                         var o:Object = generateDateItemObject(curObj.label, curObj.data, newEnabledValue);
                         o["accentColor"] = curObj["accentColor"];
@@ -1173,9 +1173,9 @@
                     newEnabledValue = false;

                 curObj = listData[i];
-                if (curObj.enabled != newEnabledValue)
+                if (curObj[SpinnerList.ENABLED_PROPERTY_NAME] != newEnabledValue)
                 {
-                    o = {data:curObj.data, label:curObj.label, enabled:newEnabledValue};
+                    generateDateItemObject(curObj.label, curObj.data, newEnabledValue);
                     o["accentColor"] = curObj["accentColor"];
                     listData[i] = o;
                 }
@@ -1242,7 +1242,8 @@
     // convenience method to generate the standard object format for data in the list dataproviders
     private function generateDateItemObject(label:String, data:*, enabled:Boolean = true):Object
     {
-        var obj:Object = { label:label, data:data, enabled:enabled };
+        var obj:Object = { label:label, data:data};
+        obj[SpinnerList.ENABLED_PROPERTY_NAME] = enabled;
         return obj;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18304
Author:   smgilson@adobe.com
Date:     2010-10-25T21:16:21.038871Z

Log Message:
-----------
Update layout description based on Jason's recent changes

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

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/layouts/ViewMenuLayout.as

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

--- frameworks/projects/mobilecomponents/src/spark/layouts/ViewMenuLayout.as
+++ frameworks/projects/mobilecomponents/src/spark/layouts/ViewMenuLayout.as
@@ -19,21 +19,39 @@

 /**
  *  The ViewMenuLayout class defines the layout of the ViewMenu container.
+ *  The menu can have multiple rows depending on the number of menu items.
+ *
+ *
The requestedMaxColumnCount property
+ *  defines the maximum number of menu items in a row.
+ *  By default, the property is set to three.

  *
  *
The ViewMenuLayout class define the layout as follows:

  *
  *

- *
If you define three or fewer menu items, the menu items are displayed
- *       in a single row, and each menu item has the same size.
- *
If you define four or more menu items, the ViewMenu container
- *       creates multiple rows.

- *
If you define an even number of menu items, the ViewMenu container
- *       sets each menu item to the same size. Each row of the menu
- *       displays the same number of items.

- *
If you define an odd number of menu items, each row
- *       alternates between displaying two and three menu items.
- *       The buttons in the rows with two menu items are larger than
- *       the buttons in the rows with three menu items.

+ *
If you define three or fewer menu items,
+ *       where the requestedMaxColumnCount property contains
+ *       the default value of three, the menu items are displayed in a single row.
+ *       Each menu item has the same size.
+ *
If you define four or more menu items, meaning more menu items
+ *       than specified by the requestedMaxColumnCount property,
+ *       the ViewMenu container creates multiple rows.

+ *
If the number of menu items is evenly divisible by
+ *       the requestedMaxColumnCount property,
+ *       each row contains the same number of menu items.
+ *       Each menu item is the same size.
+ *
For example the requestedMaxColumnCount property
+ *       is set to the default value of three and you define six menu items.
+ *       The menu displays two rows, each containing three menu items.

+ *
If the number of menu items is not evenly divisible by
+ *       the requestedMaxColumnCount property,
+ *       rows can contain a different number of menu items.
+ *       The size of the menu items depends on the number of menu items
+ *       in the row.
+ *
For example the requestedMaxColumnCount property
+ *       is set to the default value of three and you define eight menu items.
+ *       The menu displays three rows.
+ *       The first row contains two menu items.
+ *       The second and third rows each contains three items.

  *

  *
  *
You can create your own custom layout for the menu by creating your own layout class.


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5257
Author:   jszeto@adobe.com
Date:     2009-03-11T22:12:50.289894Z

Log Message:
-----------
Flex SDK Bug Fixes

SDK-19314 Arrow keys which move a slider's thumb also scroll the player window.

If we handle an arrow key or HOME/END, then we stop it from propagating.

SDK-19443 FxHSlider doesnt position tooltip/datatip correctly when on the right edge of the flex app

Added logic to ensure that the dataTip stays in the bounds of the screen

SDK-19384 @review tags are appearing before asdoc descriptions, causing empty ASDoc tooltips in Flex Builder

Removed all occurrences of @review since it is no longer used.

QE Notes: n/a
Doc Notes: n/a
Bugs: SDK-19314, SDK-19443, SDK-19384
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/DropDownBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>

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

--- frameworks/projects/mx/src/mx/controls/colorPickerClasses/SwatchPanel.as
+++ frameworks/projects/mx/src/mx/controls/colorPickerClasses/SwatchPanel.as
@@ -286,10 +286,9 @@
 [Style(name="swatchWidth", type="Number", format="Length", inherit="no")]

 /**
- *  @REVIEW
  *  Name of the style sheet definition to configure the text input control.
  *  The default value is "swatchPanelTextField"
- *
+ *
  *  @langversion 3.0
  *  @playerversion Flash 9
  *  @playerversion AIR 1.1


Transferred from the Adobe Open Source Subversion Repository

Revision: 16704
Author:   klin@adobe.com
Date:     2010-06-28T22:47:08.162953Z

Log Message:
-----------
The following changes apply to Spark DataGrid only.   Code reviews have been deferred until the implementation is closer to completion.

-Updating dataProvider and columns will clear GridDimensions and set the correct rowCount and columnCount.
-Commented out hack from GridLayout.
-Only instantiate GridDimensions in GridContainerBase instead of in both GCB and GridLayout.

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/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridContainerBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -40,7 +40,7 @@
     // Perhaps it should be a constructor parameter.   That way there's no need to sort
     // out how to migrate data from the old GLC to the new one.
     // Note also: if this was going to be shared, it should arrive as a constructor parameter.
-    public var gridDimensions:GridDimensions = new GridDimensions();
+    public var gridDimensions:GridDimensions;

     public function GridLayout()
@@ -242,8 +242,8 @@
         //trace("GridLayout.udl", unscaledWidth, unscaledHeight);

         // HACK
-        gridDimensions.rowCount = grid.dataProvider ? grid.dataProvider.length : 0;
-        var numCols:int = gridDimensions.columnCount = grid.columns ? grid.columns.length : 0;
+        /*gridDimensions.rowCount = grid.dataProvider ? grid.dataProvider.length : 0;
+        var numCols:int = gridDimensions.columnCount = grid.columns ? grid.columns.length : 0;*/

         // HACK #2 - copy column explicit widths to gridDimensions
         /*


Transferred from the Adobe Open Source Subversion Repository

Revision: 6591
Author:   egeorgie@adobe.com
Date:     2009-05-04T18:28:39.172034Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-20869 List throws RTE when you tab away from it

Fix: add checks for null target in the layouts.

QE Notes: None
Doc Notes: None
Bugs: SDK-20869
Reviewer: Deepa
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -553,6 +553,8 @@
      */
      public function getDestinationIndex(navigationUnit:uint, currentIndex:int):int
      {
+        if (!target)
+            return -1;
          //Sub-classes implement according to their own layout
          //logic. Common cases handled here.
          switch (navigationUnit)


Fixed arguments

Fixed arguments

--- protogeni/demo/src/ComponentManager.as
+++ protogeni/demo/src/ComponentManager.as
@@ -29,13 +29,13 @@
                                      newUrl : String,
                                      newUpdate : Function,
                                      newVersion : int,
-									 newHrn) : void
+									 newHrn : String = "") : void
     {
       id = newId;
       name = newName;
       hostName = newHostName;
       url = newUrl;
-	  hrn =
+	  hrn = newHrn;
       ad = "";
       manifest = "";
       update = newUpdate;


Transferred from the Adobe Open Source Subversion Repository

Revision: 14483
Author:   smgilson@adobe.com
Date:     2010-03-01T19:01:18.459430Z

Log Message:
-----------
merge 14456: Adding ASDoc version tags classes

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkRangeAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkRadioButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkPanelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSkinnableContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkValueChangeAutomationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBarBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkNavigatorContentAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTrackBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/events/EventDetails.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkListItemSelectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTabBarAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableContainerBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/mediaClasses/SparkMuteButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirDragManagerAutomationHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTextBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTitleWindowAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTileGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkToggleButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSpinnerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccConst.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkLabelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkBorderContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkVideoPlayerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableComponentAutomationImpl.as</path>

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSkinnableContainerAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSkinnableContainerAutomationImpl.as
@@ -11,357 +11,381 @@

 package spark.automation.delegates.components
 {
-	import flash.display.DisplayObject;
-	import flash.events.Event;
-	import flash.events.KeyboardEvent;
-	import flash.events.MouseEvent;
-
-	import mx.automation.Automation;
-	import mx.automation.IAutomationObject;
-	import mx.automation.IAutomationObjectHelper;
-	import mx.core.EventPriority;
-	import mx.core.mx_internal;
-
-	import spark.automation.delegates.components.supportClasses.SparkSkinnableContainerBaseAutomationImpl;
-	import spark.automation.tabularData.SkinnableContainerTabularData;
-	import spark.components.Scroller;
-	import spark.components.SkinnableContainer;
-	import spark.core.IViewport;
-
-	use namespace mx_internal;
-
-
-
-	[Mixin]
-	/**
-	 *
-	 *  Defines the methods and properties required to perform instrumentation for the
-	 *  SkinnableContainer class.
-	 *
-	 *  @see spark.components.SkinnableContainer
-	 *
-	 */
-	public class SparkSkinnableContainerAutomationImpl extends SparkSkinnableContainerBaseAutomationImpl
-	{
-		include "../../../core/Version.as";
-		//--------------------------------------------------------------------------
-		//
-		//  Class methods
-		//
-		//--------------------------------------------------------------------------
-
-		/**
-		 *  Registers the delegate class for a component class with automation manager.
-		 *
-		 *  @param root The SystemManger of the application.
-		 */
-		public static function init(root:DisplayObject):void
-		{
-			Automation.registerDelegateClass(spark.components.SkinnableContainer, SparkSkinnableContainerAutomationImpl);
-
-		}
-
-		/**
-		 *  Constructor.
-		 * @param obj SkinnableContainer object to be automated.
-		 */
-		public function SparkSkinnableContainerAutomationImpl(obj:spark.components.SkinnableContainer)
-		{
-			super(obj);
-
-			obj.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler,
-				false, EventPriority.DEFAULT+1, true );
-			obj.addEventListener(MouseEvent.CLICK, clickHandler, false, EventPriority.DEFAULT+1, true);
-		}
-
-
-		/**
-		 *  @private
-		 */
-		private function get container():spark.components.SkinnableContainer
-		{
-			return uiComponent as spark.components.SkinnableContainer;
-		}
-
-
-
-
-		//----------------------------------
-		//  automationName
-		//----------------------------------
-
-		/**
-		 *  @private
-		 */
-		override public function get automationName():String
-		{
-			return container.id || super.automationName;
-		}
-
-		//----------------------------------
-		//  automationValue
-		//----------------------------------
-
-		/**
-		 *  @private
-		 */
-		override public function get automationValue():Array
-		{
-			if (container.id && container.id.length != 0)
-				return [ container.id ];
-
-			var result:Array = [];
-			var childList:Array = getAutomationChildren();
-			var n:int = childList ? childList.length : 0;
-			for (var i:int = 0; i < n; i++)
-			{
-				var child:IAutomationObject = childList[i];
-				if(child != null) // we can have non automation elements like graphic elements also.
-				{
-					var x:Array = child.automationValue;
-					if (x && x.length != 0)
-						result.push(x);
-				}
-			}
-
-			return result;
-		}
-
-		//--------------------------------------------------------------------------
-		//
-		//  Overridden methods
-		//
-		//--------------------------------------------------------------------------
-
-		/**
-		 *  @private
-		 */
-
-		override public function replayAutomatableEvent(event:Event):Boolean
-		{
-			if (event is MouseEvent && event.type == MouseEvent.MOUSE_WHEEL)
-			{
-				// the mouse wheel happens on the content group
-				var help:IAutomationObjectHelper = Automation.automationObjectHelper;
-				help.replayMouseEvent(container.contentGroup, event as MouseEvent);
-				return true;
-			}
-			else if (event is KeyboardEvent)
-			{
-				// the key board events happens on the scroller.
-				var scroller:spark.components.Scroller = getScroller(container,container.contentGroup);
-				if(!scroller)
-					scroller = getInternalScroller();
-
-				if(scroller)
-				{
-					var helper:IAutomationObjectHelper = Automation.automationObjectHelper;
-					if(helper)
-						helper.replayKeyboardEvent(scroller,event as KeyboardEvent);
-
-				}
-			}
-
-			return super.replayAutomatableEvent(event);
-		}
-
-
-		/**
-		 *  @private
-		 */
-		override public function createAutomationIDPart(child:IAutomationObject):Object
-		{
-			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
-			return help.helpCreateIDPart(uiAutomationObject, child);
-		}
-
-		/**
-		 *  @private
-		 */
-		override public function resolveAutomationIDPart(part:Object):Array
-		{
-			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
-			return help.helpResolveIDPart(uiAutomationObject, part);
-		}
-
-		/**
-		 *  @private
-		 */
-		override public function createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object
-		{
-			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
-			return help.helpCreateIDPartWithRequiredProperties(uiAutomationObject, child,properties);
-
-		}
-
-
-
-		protected function getInternalScroller():spark.components.Scroller
-		{
-			var chilArray:Array = new Array();
-			var n:int = container.contentGroup.numChildren;
-
-			for (var i:int = 0; i<n ; i++)
-			{
-				var obj:Object = container.contentGroup.getChildAt(i);
-				// here if are getting scrollers, we need to add the viewport's children as the actual children
-				// instead of the scroller
-				if(obj is spark.components.Scroller)
-					return obj as spark.components.Scroller;
-			}
-			return null;
-		}
-
-		/**
-		 *  @private
-		 */
-
-		override public function get numAutomationChildren():int
-		{
-
-			var objArray:Array = getAutomationChildren();
-			return (objArray?objArray.length:0);
-		}
-
-		/**
-		 *  @private
-		 */
-
-		override public function getAutomationChildAt(index:int):IAutomationObject
-		{
-			var numChildren:int = container.contentGroup.numChildren;
-			if(index < numChildren )
-				return   container.contentGroup.getChildAt(index) as IAutomationObject;
-			else
-			{
-				index = index - numChildren;
-				var scrollBars:Array = getScrollBars(container,container.contentGroup);
-				if(scrollBars && index < scrollBars.length)
-					return scrollBars[index];
-			}
-
-
-			return null;
-		}
-
-
-		override public function getAutomationChildren():Array
-		{
-
-			var chilArray:Array = new Array();
-			var n:int = container.contentGroup.numChildren;
-
-			for (var i:int = 0; i<n ; i++)
-			{
-				var obj:Object = container.contentGroup.getChildAt(i);
-				// here if are getting scrollers, we need to add the viewport's children as the actual children
-				// instead of the scroller
-				if(obj is spark.components.Scroller)
-				{
-					var scroller:spark.components.Scroller = obj as spark.components.Scroller;
-					var viewPort:IViewport =  scroller.viewport;
-					if(viewPort is IAutomationObject)
-						chilArray.push(viewPort);
-					if(scroller.horizontalScrollBar)
-						chilArray.push(scroller.horizontalScrollBar);
-					if(scroller.verticalScrollBar)
-						chilArray.push(scroller.verticalScrollBar);
-				}
-				else
-					chilArray.push(obj);
-			}
-			var scrollBars:Array = getScrollBars(null,container.contentGroup);
-			n = scrollBars? scrollBars.length : 0;
-
-			for ( i=0; i<n ; i++)
-			{
-				chilArray.push(scrollBars[i]);
-			}
-
-
-			return chilArray;
-		}
-
-
-		//----------------------------------
-		//  automationTabularData
-		//----------------------------------
-
-		/**
-		 *  @private
-		 */
-
-		override public function get automationTabularData():Object
-		{
-			return new SkinnableContainerTabularData(uiAutomationObject);
-		}
-
-
-		//--------------------------------------------------------------------------
-		//
-		//  Event handlers
-		//
-		//--------------------------------------------------------------------------
-
-		/**
-		 *  @private
-		 */
-
-		/**
-		 *  @private
-		 */
-
-		private function mouseWheelHandler(event:MouseEvent):void
-		{
-			if( isEventTargetApplicabale(event)  )
-				recordAutomatableEvent(event, true);
-		}
-
-		/**
-		 *  @private
-		 */
-		private function isEventTargetApplicabale(event:Event):Boolean
-		{
-			// we decide to continue with the mouse events when they are
-			// on the same container group
-
-			return (event.target == container.contentGroup);
-		}
-		/**
-		 *  @private
-		 */
-		protected function clickHandler(event:MouseEvent):void
-		{
-			if(isEventTargetApplicabale(event))
-			{
-				//var mouseEvent:MouseEvent = new MouseEvent(MouseEvent.CLICK);
-				recordAutomatableEvent(event);
-			}
-		}
-
-		override protected function keyDownHandler(event:KeyboardEvent):void
-		{
-
-			if( event.target == getInternalScroller()||
-				(event.target == getScroller(container,container.contentGroup)))
-				recordAutomatableEvent(event);
-		}
-
-		/**
-		 *  @private
-		 */
-		public function getContainerChildren():Array
-		{
-			var tempArray:Array = new Array();
-			var n:int = container.numChildren;
-			for(var i:int=0; i<n ; i++)
-			{
-				tempArray.push(container.getChildAt(i));
-			}
-
-			return tempArray;
-		}
-
-	}
-
+    import flash.display.DisplayObject;
+    import flash.events.Event;
+    import flash.events.KeyboardEvent;
+    import flash.events.MouseEvent;
+
+    import mx.automation.Automation;
+    import mx.automation.IAutomationObject;
+    import mx.automation.IAutomationObjectHelper;
+    import mx.core.EventPriority;
+    import mx.core.mx_internal;
+
+    import spark.automation.delegates.components.supportClasses.SparkSkinnableContainerBaseAutomationImpl;
+    import spark.automation.tabularData.SkinnableContainerTabularData;
+    import spark.components.Scroller;
+    import spark.components.SkinnableContainer;
+    import spark.core.IViewport;
+
+    use namespace mx_internal;
+
+
+
+    [Mixin]
+    /**
+     *
+     *  Defines the methods and properties required to perform instrumentation for the
+     *  SkinnableContainer class.
+     *
+     *  @see spark.components.SkinnableContainer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     *
+     */
+    public class SparkSkinnableContainerAutomationImpl extends SparkSkinnableContainerBaseAutomationImpl
+    {
+        include "../../../core/Version.as";
+        //--------------------------------------------------------------------------
+        //
+        //  Class methods
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  Registers the delegate class for a component class with automation manager.
+         *
+         *  @param root The SystemManger of the application.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public static function init(root:DisplayObject):void
+        {
+            Automation.registerDelegateClass(spark.components.SkinnableContainer, SparkSkinnableContainerAutomationImpl);
+
+        }
+
+        /**
+         *  Constructor.
+         * @param obj SkinnableContainer object to be automated.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public function SparkSkinnableContainerAutomationImpl(obj:spark.components.SkinnableContainer)
+        {
+            super(obj);
+
+            obj.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler,
+                false, EventPriority.DEFAULT+1, true );
+            obj.addEventListener(MouseEvent.CLICK, clickHandler, false, EventPriority.DEFAULT+1, true);
+        }
+
+
+        /**
+         *  @private
+         */
+        private function get container():spark.components.SkinnableContainer
+        {
+            return uiComponent as spark.components.SkinnableContainer;
+        }
+
+
+
+
+        //----------------------------------
+        //  automationName
+        //----------------------------------
+
+        /**
+         *  @private
+         */
+        override public function get automationName():String
+        {
+            return container.id || super.automationName;
+        }
+
+        //----------------------------------
+        //  automationValue
+        //----------------------------------
+
+        /**
+         *  @private
+         */
+        override public function get automationValue():Array
+        {
+            if (container.id && container.id.length != 0)
+                return [ container.id ];
+
+            var result:Array = [];
+            var childList:Array = getAutomationChildren();
+            var n:int = childList ? childList.length : 0;
+            for (var i:int = 0; i < n; i++)
+            {
+                var child:IAutomationObject = childList[i];
+                if(child != null) // we can have non automation elements like graphic elements also.
+                {
+                    var x:Array = child.automationValue;
+                    if (x && x.length != 0)
+                        result.push(x);
+                }
+            }
+
+            return result;
+        }
+
+        //--------------------------------------------------------------------------
+        //
+        //  Overridden methods
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  @private
+         */
+
+        override public function replayAutomatableEvent(event:Event):Boolean
+        {
+            if (event is MouseEvent && event.type == MouseEvent.MOUSE_WHEEL)
+            {
+                // the mouse wheel happens on the content group
+                var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+                help.replayMouseEvent(container.contentGroup, event as MouseEvent);
+                return true;
+            }
+            else if (event is KeyboardEvent)
+            {
+                // the key board events happens on the scroller.
+                var scroller:spark.components.Scroller = getScroller(container,container.contentGroup);
+                if(!scroller)
+                    scroller = getInternalScroller();
+
+                if(scroller)
+                {
+                    var helper:IAutomationObjectHelper = Automation.automationObjectHelper;
+                    if(helper)
+                        helper.replayKeyboardEvent(scroller,event as KeyboardEvent);
+
+                }
+            }
+
+            return super.replayAutomatableEvent(event);
+        }
+
+
+        /**
+         *  @private
+         */
+        override public function createAutomationIDPart(child:IAutomationObject):Object
+        {
+            var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+            return help.helpCreateIDPart(uiAutomationObject, child);
+        }
+
+        /**
+         *  @private
+         */
+        override public function resolveAutomationIDPart(part:Object):Array
+        {
+            var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+            return help.helpResolveIDPart(uiAutomationObject, part);
+        }
+
+        /**
+         *  @private
+         */
+        override public function createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object
+        {
+            var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+            return help.helpCreateIDPartWithRequiredProperties(uiAutomationObject, child,properties);
+
+        }
+
+
+
+        /**
+         *  @private
+         */
+        protected function getInternalScroller():spark.components.Scroller
+        {
+            var chilArray:Array = new Array();
+            var n:int = container.contentGroup.numChildren;
+
+            for (var i:int = 0; i<n ; i++)
+            {
+                var obj:Object = container.contentGroup.getChildAt(i);
+                // here if are getting scrollers, we need to add the viewport's children as the actual children
+                // instead of the scroller
+                if(obj is spark.components.Scroller)
+                    return obj as spark.components.Scroller;
+            }
+            return null;
+        }
+
+        /**
+         *  @private
+         */
+
+        override public function get numAutomationChildren():int
+        {
+
+            var objArray:Array = getAutomationChildren();
+            return (objArray?objArray.length:0);
+        }
+
+        /**
+         *  @private
+         */
+
+        override public function getAutomationChildAt(index:int):IAutomationObject
+        {
+            var numChildren:int = container.contentGroup.numChildren;
+            if(index < numChildren )
+                return   container.contentGroup.getChildAt(index) as IAutomationObject;
+            else
+            {
+                index = index - numChildren;
+                var scrollBars:Array = getScrollBars(container,container.contentGroup);
+                if(scrollBars && index < scrollBars.length)
+                    return scrollBars[index];
+            }
+
+
+            return null;
+        }
+
+
+        /**
+         *  @private
+         */
+        override public function getAutomationChildren():Array
+        {
+
+            var chilArray:Array = new Array();
+            var n:int = container.contentGroup.numChildren;
+
+            for (var i:int = 0; i<n ; i++)
+            {
+                var obj:Object = container.contentGroup.getChildAt(i);
+                // here if are getting scrollers, we need to add the viewport's children as the actual children
+                // instead of the scroller
+                if(obj is spark.components.Scroller)
+                {
+                    var scroller:spark.components.Scroller = obj as spark.components.Scroller;
+                    var viewPort:IViewport =  scroller.viewport;
+                    if(viewPort is IAutomationObject)
+                        chilArray.push(viewPort);
+                    if(scroller.horizontalScrollBar)
+                        chilArray.push(scroller.horizontalScrollBar);
+                    if(scroller.verticalScrollBar)
+                        chilArray.push(scroller.verticalScrollBar);
+                }
+                else
+                    chilArray.push(obj);
+            }
+            var scrollBars:Array = getScrollBars(null,container.contentGroup);
+            n = scrollBars? scrollBars.length : 0;
+
+            for ( i=0; i<n ; i++)
+            {
+                chilArray.push(scrollBars[i]);
+            }
+
+
+            return chilArray;
+        }
+
+
+        //----------------------------------
+        //  automationTabularData
+        //----------------------------------
+
+        /**
+         *  @private
+         */
+
+        override public function get automationTabularData():Object
+        {
+            return new SkinnableContainerTabularData(uiAutomationObject);
+        }
+
+
+        //--------------------------------------------------------------------------
+        //
+        //  Event handlers
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  @private
+         */
+
+        /**
+         *  @private
+         */
+
+        private function mouseWheelHandler(event:MouseEvent):void
+        {
+            if( isEventTargetApplicabale(event)  )
+                recordAutomatableEvent(event, true);
+        }
+
+        /**
+         *  @private
+         */
+        private function isEventTargetApplicabale(event:Event):Boolean
+        {
+            // we decide to continue with the mouse events when they are
+            // on the same container group
+
+            return (event.target == container.contentGroup);
+        }
+        /**
+         *  @private
+         */
+        protected function clickHandler(event:MouseEvent):void
+        {
+            if(isEventTargetApplicabale(event))
+            {
+                //var mouseEvent:MouseEvent = new MouseEvent(MouseEvent.CLICK);
+                recordAutomatableEvent(event);
+            }
+        }
+
+        /**
+         *  @private
+         */
+        override protected function keyDownHandler(event:KeyboardEvent):void
+        {
+
+            if( event.target == getInternalScroller()||
+                (event.target == getScroller(container,container.contentGroup)))
+                recordAutomatableEvent(event);
+        }
+
+        /**
+         *  @private
+         */
+        public function getContainerChildren():Array
+        {
+            var tempArray:Array = new Array();
+            var n:int = container.numChildren;
+            for(var i:int=0; i<n ; i++)
+            {
+                tempArray.push(container.getChildAt(i));
+            }
+
+            return tempArray;
+        }
+
+    }
+
 }


Started to modularize the app

Started to modularize the app

git-svn-id: 27326a786375daad9d33dc990c6f272e4c8f567c@759 fda5f131-174c-0410-8613-e0905860106b

--- org.openwms/trunk/source/org.openwms.client.flex.lib/src/main/flex/org/openwms/web/flex/client/control/MainController.as
+++ org.openwms/trunk/source/org.openwms.client.flex.lib/src/main/flex/org/openwms/web/flex/client/control/MainController.as
@@ -22,9 +22,6 @@
 {
     import com.adobe.cairngorm.control.FrontController;

-    import org.openwms.web.flex.client.command.*;
-    import org.openwms.web.flex.client.event.*;
-
     /**
      * A MainController.
      *
@@ -41,24 +38,6 @@

         private function setupEventHandler():void
         {
-            this.addCommand(UserEvent.LOAD_ALL_USERS, LoadUsersCommand);
-            this.addCommand(UserEvent.ADD_USER, AddUserCommand);
-            this.addCommand(UserEvent.SAVE_USER, SaveUserCommand);
-            this.addCommand(UserEvent.DELETE_USER, DeleteUserCommand);
-
-            this.addCommand(SwitchScreenEvent.SHOW_STARTSCREEN, ShowStartscreenCommand);
-            this.addCommand(SwitchScreenEvent.SHOW_MODULE_MGMT_VIEW, ShowModuleManagementViewCommand);
-            this.addCommand(SwitchScreenEvent.SHOW_LOCATION_VIEW, ShowLocationViewCommand);
-            this.addCommand(SwitchScreenEvent.SHOW_LOCATIONGROUP_VIEW, ShowLocationGroupCommand);
-            this.addCommand(SwitchScreenEvent.SHOW_USER_MGMT_VIEW, ShowUserManagementViewCommand);
-            this.addCommand(SwitchScreenEvent.SHOW_TRANSPORTUNIT_VIEW, ShowTransportUnitCommand);
-
-            this.addCommand(LoadLocationGroupsEvent.LOAD_ALL_LOCATION_GROUPS, LoadLocationGroupsCommand);
-            this.addCommand(LocationEvent.LOAD_ALL_LOCATIONS, LoadLocationsCommand);
-
-            this.addCommand(ApplicationEvent.LOAD_ALL_MODULES, LoadModulesCommand);
-            this.addCommand(ApplicationEvent.SAVE_MODULE, SaveModuleCommand);
-            this.addCommand(ApplicationEvent.DELETE_MODULE, DeleteModuleCommand);
         }

         /**


Fixed possible null pointer error

Fixed possible null pointer error

Change-Id: I718cda1b35f812e4306d0cbbb4eeb7036e802ca1

--- WeaveUISpark/src/weave/ui/BusyIndicator.as
+++ WeaveUISpark/src/weave/ui/BusyIndicator.as
@@ -114,7 +114,7 @@
 			if (!stage)
 				return;

-			if (targets.length)
+			if (targets && targets.length)
 				toggleVisible();

 			if (!visible)


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSkinnableDataContainerAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSkinnableDataContainerAutomationImpl.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 spark.automation.delegates.components
 {


fixed bug in disjuntive syllogism

fixed bug in disjuntive syllogism

--- Arguments/src/classes/Inference.as
+++ Arguments/src/classes/Inference.as
@@ -348,9 +348,12 @@
 			if(scheme == ParentArg.DIS_SYLL || scheme == ParentArg.NOT_ALL_SYLL)
 			{
 				myschemeSel.visible = false;
-			}
-			parentMap.helpText.visible = false;
-			schemeSelected = true;
+				schemeSelected = true;
+				parentMap.helpText.visible = false;
+			}
+
+
+
 		}

 		public function get argType():MenuPanel


Fixed dereference error in dtCreateNavMeshData function.

--- as3_lib/src/recastnavigation/detour/navmeshbuilder/dtCreateNavMeshData.as
+++ as3_lib/src/recastnavigation/detour/navmeshbuilder/dtCreateNavMeshData.as
@@ -14,8 +14,8 @@
 		var outData_ptr_ptr:int = CModule.malloc(4);
 		var outDataSize_ptr:int = CModule.malloc(4);
 		var result:Boolean = internal_dtCreateNavMeshData(params.ptr, outData_ptr_ptr, outDataSize_ptr);
-		outData.length = CModule.read32(CModule.read32(outDataSize_ptr));
-		for (var i:int = outData.length - 1; i >= 0; ++i) {
+		outData.length = CModule.read32(outDataSize_ptr);
+		for (var i:int = outData.length - 1; i >= 0; --i) {
 			outData[i] = CModule.read8(CModule.read32(outData_ptr_ptr) + 1 * i);
 		}
 		CModule.free(outData_ptr_ptr);


Transferred from the Adobe Open Source Subversion Repository

Revision: 6476
Author:   dsubrama@adobe.com
Date:     2009-05-01T21:08:56.231254Z

Log Message:
-----------
Multiple selection and requiresSelection now work together.

QA: Yes
Checkintests: Pass
Reviewer: Ryan

Fixed bugs:
https://bugs.adobe.com/jira/browse/SDK-20910
https://bugs.adobe.com/jira/browse/SDK-20831
https://bugs.adobe.com/jira/browse/SDK-20847
https://bugs.adobe.com/jira/browse/SDK-20858
https://bugs.adobe.com/jira/browse/SDK-20844

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -251,7 +251,7 @@
      *  @private
      *  Internal storage for the selectedIndex property.
      */
-    private var _selectedIndex:int = NO_SELECTION;
+    public var _selectedIndex:int = NO_SELECTION;

     [Bindable("selectionChanged")]
     /**


remove deprecated AbstractController._ticked : Signal

--- src/aerys/minko/scene/controller/AbstractController.as
+++ src/aerys/minko/scene/controller/AbstractController.as
@@ -22,7 +22,6 @@
 		private var _targetType		: Class					= null;
 		private var _targets		: Vector.<ISceneNode>	= new <ISceneNode>[];

-		private var _ticked			: Signal				= new Signal('AbstractController.ticked');
 		private var _targetAdded	: Signal				= new Signal('AbstractController.targetAdded');
 		private var _targetRemoved	: Signal				= new Signal('AbstractController.targetRemoved');


testcommit

testcommit

git-svn-id: 5c313c7b604ce6bf72d7224b35e7462ee01c5e2b@111 7a690eda-67ec-4556-b061-4c86d960b817

--- exe/SWPlayer/src/ascript.as
+++ exe/SWPlayer/src/ascript.as
@@ -1,3 +1,4 @@
+

 import eu.screenwerk.components.*;
 import eu.screenwerk.player.*;


Change 20090930-bargull-804 by bargull@dell--p4--2-53 on 2009-09-30 16:09:57
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: improve sprite destroy time (swf9 - partial)

New Features:

Bugs Fixed: LPP-8351 (SWF9: improvement destroy-time for sprite)

Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Remove "bringToFront()" call in "predestroy()", it was only copied over from the swf8 kernel and doesn't serve any special purpose.

Tests:

git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@14900 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

--- WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
+++ WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
@@ -236,7 +236,6 @@

       public function predestroy() :void {
-          this.bringToFront();
       }

       public function draw():void {


Renamed TestCaseMock to TestCaseStub - mostly to avoid naming collision with other similar class

--- as25/test/asunit/framework/TestCaseMock.as
+++ as25/test/asunit/framework/TestCaseMock.as
@@ -1,26 +0,0 @@
-import asunit.framework.TestCase;
-
-class asunit.framework.TestCaseMock extends TestCase {
-
-	public var className:String = "asunit.framework.TestCaseMock";
-
-	public var testMethod1Run:Boolean;
-	public var testMethod2Run:Boolean;
-	public var testMethod3Run:Boolean;
-
-	public function TestCaseMock(methodName:String) {
-		super(methodName);
-	}
-
-	public function testMethod1():Void {
-		testMethod1Run = true;
-	}
-
-	public function testMethod2():Void {
-		testMethod2Run = true;
-	}
-
-	public function testMethod3():Void {
-		testMethod3Run = true;
-	}
-}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20385
Author:   chiedozi@adobe.com
Date:     2011-02-18T20:04:21.361700Z

Log Message:
-----------
Fixed a bug where ViewNavigator navigation operations would get lost if executed in a VIEW_ACTIVATE handler

QE notes:
Doc notes:
Bugs: SDK-29575
Reviewer: Ryan
Tests run:
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -1778,6 +1778,11 @@
      */
     private function completeViewCommitProcess():void
     {
+        // The viewChanging flag is set to false right before the current view
+        // activates so that navigation operations run during VIEW_ACTIVATE
+        // are properly executed by the navigator
+        viewChanging = false;
+
         // At this point, currentViewDescriptor points to the new view.
         // The navigator needs to listen for property change events on the
         // view so that it can be notified when the template properties
@@ -1801,7 +1806,6 @@
             dispatchEvent(new Event("viewChangeComplete"));

         lastAction = ViewNavigatorAction.NONE;
-        viewChanging = false;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 18072
Author:   chiedozi@adobe.com
Date:     2010-10-07T21:09:04.099363Z

Log Message:
-----------
PARB Changes to ViewNavigator feature set.  Changes summarized below:

View
active getter renamed to isActive
Removed context property from View and moved it to ViewNavigator

ViewNavigator
context property is now typed Object
navigationStack property now mx_internal in ViewNavigatorBase
factory parameter for push operations renamed to  viewClass
NavigationStack push and pop api names changed to match ViewNavigator methods
active getter renamed isActive
viewNavigator no longer dispatches a COMPLETE event
defaultTransitions are no longer skin parts.  They are now  mx_internal vars.

TabbedViewNavigator
No longer dispatches complete, instead dispatches IndexChangeEvent.CHANGE

ViewProxy
ViewProxy renamed to ViewDescriptor
persistedData renamed to persistenceData

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/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as</path>
<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/supportClasses/ViewNavigatorBase.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="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private</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/mobiletheme/defaults.css</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="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as" copyfrom-rev="18044" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewDescriptor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.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/components/supportClasses/ViewProxy.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -31,13 +31,14 @@

 import spark.components.supportClasses.NavigationStack;
 import spark.components.supportClasses.ViewNavigatorBase;
-import spark.components.supportClasses.ViewProxy;
+import spark.components.supportClasses.ViewDescriptor;
 import spark.components.supportClasses.ViewReturnObject;
 import spark.core.ContainerDestructionPolicy;
 import spark.effects.Animate;
 import spark.effects.Fade;
 import spark.effects.Move;
 import spark.effects.Resize;
+import spark.effects.SlideViewTransition;
 import spark.effects.ViewTransition;
 import spark.effects.animation.MotionPath;
 import spark.effects.animation.SimpleMotionPath;
@@ -46,42 +47,7 @@

 use namespace mx_internal;

-// TODO (chiedozi): No children allowed
 [DefaultProperty("navigationStack")]
-
-//--------------------------------------
-//  Events
-//--------------------------------------
-
-/**
- *  Dispatched when the ViewNavigator has completed a view change
- *  process.  If a transition is played, this method is dispatched
- *  after the animation completes.
- *
- *  @eventType flash.events.Event
- *
- *  @langversion 3.0
- *  @playerversion Flash 10.1
- *  @playerversion AIR 2.5
- *  @productversion Flex 4.5
- */
-[Event(name="complete", type="flash.events.Event")]
-
-//--------------------------------------
-//  Styles
-//--------------------------------------
-
-/**
- *  The duration of the hide and show effect used on the ActionBar.
- *
- *  @default 250
- *
- *  @langversion 3.0
- *  @playerversion Flash 10.1
- *  @playerversion AIR 2.5
- *  @productversion Flex 4.5
- */
-[Style(name="animationDuration", type="Number", inherit="no")]

 //--------------------------------------
 //  SkinStates
@@ -162,6 +128,24 @@
 {
     //--------------------------------------------------------------------------
     //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  The animation duration used when hiding and showing the action bar.
+     */
+    private static const ACTION_BAR_ANIMATION_DURATION:Number = 250;
+
+    /**
+     *  @private
+     *  The animation duration used when running a default view transition.
+     */
+    private static const DEFAULT_VIEW_TRANSITION_DURATION:Number = 300;
+
+    //--------------------------------------------------------------------------
+    //
     //  Constructor
     //
     //--------------------------------------------------------------------------
@@ -177,6 +161,9 @@
     public function ViewNavigator()
     {
         super();
+
+        defaultPushTransition = new SlideViewTransition(DEFAULT_VIEW_TRANSITION_DURATION, SlideViewTransition.SLIDE_LEFT);
+        defaultPopTransition = new SlideViewTransition(DEFAULT_VIEW_TRANSITION_DURATION, SlideViewTransition.SLIDE_RIGHT);
     }

     //--------------------------------------------------------------------------
@@ -201,9 +188,7 @@
     */
     public var actionBar:ActionBar;

-    // TODO (chiedozi): Investigate whether this should be a method or skinpart.
-    // Do we need it?  no adapting...
-    [SkinPart(required="false")]
+    // FIXME (chiedozi): Docs
     /**
      *  A skin part that defines the default transition to play when
      *  a view is pushed onto the navigation stack.
@@ -213,9 +198,8 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public var defaultPushTransition:ViewTransition;
-
-    [SkinPart(required="false")]
+    mx_internal var defaultPushTransition:ViewTransition;
+
     /**
      *  A skin part that defines the default transition to play when
      *  a view is popped off the navigation stack.
@@ -225,7 +209,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public var defaultPopTransition:ViewTransition;
+    mx_internal var defaultPopTransition:ViewTransition;

     //--------------------------------------------------------------------------
     //
@@ -286,7 +270,7 @@
      *  @private
      *  The view data for the active view.
      */
-    private var currentViewProxy:ViewProxy = null;
+    private var currentViewDescriptor:ViewDescriptor = null;

     /**
      *  @private
@@ -303,7 +287,7 @@
     /**
      *  @private
      */
-    private var emptyViewProxy:ViewProxy = null;
+    private var emptyViewDescriptor:ViewDescriptor = null;

     /**
      *  @private
@@ -336,7 +320,7 @@
      *  @private
      *  The view data for the pending view.
      */
-    private var pendingViewProxy:ViewProxy = null;
+    private var pendingViewDescriptor:ViewDescriptor = null;

     /**
      *  @private
@@ -395,7 +379,7 @@
      */
     override mx_internal function setActive(value:Boolean):void
     {
-        if (value == active)
+        if (value == isActive)
             return;

         if (value)
@@ -433,8 +417,8 @@
      */
     override public function get activeView():View
     {
-        if (currentViewProxy && currentViewProxy != emptyViewProxy)
-            return currentViewProxy.instance;
+        if (currentViewDescriptor && currentViewDescriptor != emptyViewDescriptor)
+            return currentViewDescriptor.instance;

         return null;
     }
@@ -449,6 +433,34 @@
     override public function get canCancelBackKeyBehavior():Boolean
     {
         return length > 1;
+    }
+
+    //----------------------------------
+    //  context
+    //----------------------------------
+
+    /**
+     *  The string that describes the context in which the current view was
+     *  created.  This property is assigned to the context
+     *  parameter that is passed into ViewNavigator.pushView().
+     *
+     *  @default null
+     *
+     *  @see spark.components.ViewNavigator
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function get context():Object
+    {
+        if (pendingViewDescriptor)
+            return pendingViewDescriptor.context;
+        else if (currentViewDescriptor)
+            return currentViewDescriptor.context;
+
+        return null;
     }

     //----------------------------------
@@ -580,7 +592,8 @@
     /**
      *  @private
      */
-    override public function set navigationStack(value:NavigationStack):void
+     // FIXME (chiedozi): Should this be on base class?
+    override mx_internal function set navigationStack(value:NavigationStack):void
     {
         super.navigationStack = value;

@@ -593,7 +606,8 @@
     //----------------------------------
     //  returnedObject
     //----------------------------------
-    private var _returnedObject:ViewReturnObject = null;
+    // FIXME (chiedozi): PARB - HTTPService uses lastResult, maybe we should match - lastReturnedObject?
+    private var _poppedViewReturnedObject:ViewReturnObject = null;

     /**
      *  Holds the return object returned by the last view that was popped
@@ -612,9 +626,9 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    public function get returnedObject():ViewReturnObject
-    {
-        return _returnedObject;
+    public function get poppedViewReturnedObject():ViewReturnObject
+    {
+        return _poppedViewReturnedObject;
     }

     //--------------------------------------------------------------------------
@@ -949,7 +963,7 @@
     /**
      *  Pushes a new view to the top of the navigation stack.
      *
-     *  @param factory The class used to create the view
+     *  @param viewClass The class used to create the view
      *  @param data The data object to pass to the view
      *  @param context An arbitrary string that can be used to describe the context
      *         of the push.  When the new view is created, it will be able to reference
@@ -961,21 +975,21 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    public function pushView(factory:Class,
+    public function pushView(viewClass:Class,
                              data:Object = null,
-                             context:String = null,
+                             context:Object = null,
                              transition:ViewTransition = null):void
     {
-        if (factory == null || !canRemoveCurrentView())
+        if (viewClass == null || !canRemoveCurrentView())
             return;

-        scheduleAction(ViewNavigatorAction.PUSH, factory, data, context, transition);
+        scheduleAction(ViewNavigatorAction.PUSH, viewClass, data, context, transition);
     }

     /**
      *  Replaces the top view of the navigation stack with a View.
      *
-     *  @param factory The class used to create the view
+     *  @param viewClass The class used to create the view
      *  @param data The data object to pass to the view
      *  @param context An arbitrary string that can be used to describe the context
      *         of the push.  When the new view is created, it will be able to reference
@@ -987,15 +1001,15 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    public function replaceView(factory:Class,
+    public function replaceView(viewClass:Class,
                                 data:Object = null,
-                                context:String = null,
+                                context:Object = null,
                                 transition:ViewTransition = null):void
     {
-        if (factory == null || !canRemoveCurrentView())
+        if (viewClass == null || !canRemoveCurrentView())
             return;

-        scheduleAction(ViewNavigatorAction.REPLACE_VIEW, factory, data, context, transition);
+        scheduleAction(ViewNavigatorAction.REPLACE_VIEW, viewClass, data, context, transition);
     }

     /**
@@ -1077,10 +1091,10 @@
     {
         var view:View;

-        if (!currentViewProxy)
+        if (!currentViewDescriptor)
             return true;

-        view = currentViewProxy.instance;
+        view = currentViewDescriptor.instance;
         return (view == null || view.canRemove());
     }

@@ -1118,18 +1132,18 @@
     {
         super.commitProperties();

-        if (!active)
+        if (!isActive)
             return;

         // If this is the components first validation pass, push the firstView
         // on the stack if possible, otherwise set the currentViewChange flag
-        // to true so that an empty screen is created.  If the currentViewProxy
+        // to true so that an empty screen is created.  If the currentViewDescriptor
         // property exists, that means an empty view was previously created
         // because a firstView property wasn't supplied.
-        if (!initialized && navigationStack.length == 0 && !currentViewProxy)
+        if (!initialized && navigationStack.length == 0 && !currentViewDescriptor)
         {
             if (firstView)
-                navigationStack.push(firstView, firstViewData);
+                navigationStack.pushView(firstView, firstViewData);

             viewChangeRequested = true;
         }
@@ -1161,7 +1175,7 @@
      *
      *  @param action The navigation operation that is being performed.  Should
      *  be one of the constants in ViewNavigatorAction.
-     *  @param factory The class that will be created in the case of a push action
+     *  @param viewClass The class that will be created in the case of a push action
      *  @param data The data object to pass to the view in the case of a push action
      *  @param transition The view transition to play
      *  @param context An arbitrary string that can be used to describe the context
@@ -1174,9 +1188,9 @@
      *  @productversion Flex 4.5
      */
     private function scheduleAction(action:String,
-                                    factory:Class = null,
+                                    viewClass:Class = null,
                                     data:Object = null,
-                                    context:String = null,
+                                    context:Object = null,
                                     transition:ViewTransition = null):void
     {
         // If the action queue doesn't exist, create it
@@ -1198,7 +1212,7 @@
             }
         }

-        delayedNavigationActions.push({action:action, factory:factory,
+        delayedNavigationActions.push({action:action, viewClass:viewClass,
             data:data, transition:transition, context:context});
     }

@@ -1236,7 +1250,7 @@
         for (var i:int = 0; i < n; ++i)
         {
             parameters = delayedNavigationActions[i];
-            executeAction(parameters.action, parameters.factory,
+            executeAction(parameters.action, parameters.viewClass,
                 parameters.data, parameters.context, parameters.transition);
         }

@@ -1257,7 +1271,7 @@
      *
      *  @param action The navigation operation that is being performed.  Should
      *  be one of the constants in ViewNavigatorAction.
-     *  @param factory The class that will be created in the case of a push action
+     *  @param viewClass The class that will be created in the case of a push action
      *  @param data The data object to pass to the view in the case of a push action
      *  @param transition The view transition to play
      *  @param context An arbitrary string that can be used to describe the context
@@ -1269,9 +1283,9 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    private function executeAction(action:String, factory:Class = null,
+    private function executeAction(action:String, viewClass:Class = null,
                                    data:Object = null,
-                                   context:String = null,
+                                   context:Object = null,
                                    transition:ViewTransition = null):void
     {
         var defaultTransition:ViewTransition;
@@ -1282,14 +1296,14 @@
         {
             lastAction = ViewNavigatorAction.PUSH;
             defaultTransition = defaultPushTransition;
-            navigationStack.push(factory, data, context);
+            navigationStack.pushView(viewClass, data, context);
         }
         else if (action == ViewNavigatorAction.REPLACE_VIEW)
         {
         	lastAction = ViewNavigatorAction.REPLACE_VIEW;
             defaultTransition = defaultPushTransition;
-            navigationStack.pop();
-            navigationStack.push(factory, data, context);
+            navigationStack.popView();
+            navigationStack.pushView(viewClass, data, context);
         }
         else
         {
@@ -1297,7 +1311,7 @@

             if (action == ViewNavigatorAction.POP)
             {
-                navigationStack.pop();
+                navigationStack.popView();
             }
             else if (action == ViewNavigatorAction.POP_TO_FIRST)
             {
@@ -1311,7 +1325,7 @@
             // If the currentView navigation data object is the same as the
             // new one, the activeView doesn't need to be changed.  This can
             // happen if a pushView() is followed immediately by a popView().
-            if (navigationStack.topView == currentViewProxy)
+            if (navigationStack.topView == currentViewDescriptor)
             {
                 if (viewChanging)
                 {
@@ -1558,7 +1572,7 @@
     {
         var animate:Animate = new Animate();
         animate.target = actionBar;
-        animate.duration = getStyle("animationDuration");
+        animate.duration = ACTION_BAR_ANIMATION_DURATION;
         animate.motionPaths = new Vector.<MotionPath>();
         animate.motionPaths.push(new SimpleMotionPath("y", props.start.y, props.end.y));

@@ -1587,7 +1601,7 @@
     {
         var animate:Animate = new Animate();
         animate.target = contentGroup;
-        animate.duration = getStyle("animationDuration");
+        animate.duration = ACTION_BAR_ANIMATION_DURATION;
         animate.motionPaths = new Vector.<MotionPath>();
         animate.motionPaths.push(new SimpleMotionPath("height", props.start.height, props.end.height));
         animate.motionPaths.push(new SimpleMotionPath("y", props.start.y, props.end.y));
@@ -1642,16 +1656,16 @@
     protected function endViewChange():void
     {
         // Destroy the previous view
-        if (currentViewProxy)
-            destroyViewInstance(currentViewProxy);
+        if (currentViewDescriptor)
+            destroyViewInstance(currentViewDescriptor);

         // Update view pointers
-        currentViewProxy = pendingViewProxy;
-        pendingViewProxy = null;
+        currentViewDescriptor = pendingViewDescriptor;
+        pendingViewDescriptor = null;

         // Clear empty flag if necessary
-        if (emptyViewProxy && currentViewProxy != emptyViewProxy)
-            emptyViewProxy = null;
+        if (emptyViewDescriptor && currentViewDescriptor != emptyViewDescriptor)
+            emptyViewDescriptor = null;

         // If there is no focus or the item that had focus isn't
         // on the display list anymore, update the focus to be
@@ -1665,10 +1679,10 @@
                 stage.focus = this;
         }

-        // At this point, currentViewProxy points to the new view
-        if (currentViewProxy)
-        {
-            var currentView:View= currentViewProxy.instance;
+        // At this point, currentViewDescriptor points to the new view
+        if (currentViewDescriptor)
+        {
+            var currentView:View= currentViewDescriptor.instance;

             if (currentView)
             {
@@ -1679,7 +1693,7 @@
         }

         // Clear the returned object
-        _returnedObject = null;
+        _poppedViewReturnedObject = null;

         // Restore mouse children properties before revalidation occurs.  This
         // needs to occur before a possible revalidation occurs so that the
@@ -1697,10 +1711,6 @@
         {
             lastAction = ViewNavigatorAction.NONE;
             viewChanging = false;
-
-            // Notify listeners that the view change is complete
-            if (hasEventListener(Event.COMPLETE))
-                dispatchEvent(new Event(Event.COMPLETE));
         }
     }

@@ -1724,7 +1734,7 @@
                 dispatchEvent(new Event("viewChangeStart"));
         }

-        if (!active)
+        if (!isActive)
             return;

         // If a ui control is animating, force it to end
@@ -1734,23 +1744,23 @@
         if (activeView && (lastAction == ViewNavigatorAction.POP ||
                            lastAction == ViewNavigatorAction.REPLACE_VIEW))
         {
-            _returnedObject = createViewReturnObject(currentViewProxy);
+            _poppedViewReturnedObject = createViewReturnObject(currentViewDescriptor);
         }

         beginViewChange();

-        pendingViewProxy = navigationStack.topView;
-
-        // Create an empty view if no firstView factory is defined
-        if (pendingViewProxy == null)
-        {
-            emptyViewProxy = new ViewProxy(View);
-            pendingViewProxy = emptyViewProxy;
-        }
-
-        if(pendingViewProxy.factory != null)
-        {
-            createViewInstance(pendingViewProxy);
+        pendingViewDescriptor = navigationStack.topView;
+
+        // Create an empty view if no firstView viewClass is defined
+        if (pendingViewDescriptor == null)
+        {
+            emptyViewDescriptor = new ViewDescriptor(View);
+            pendingViewDescriptor = emptyViewDescriptor;
+        }
+
+        if(pendingViewDescriptor.viewClass != null)
+        {
+            createViewInstance(pendingViewDescriptor);

             viewChangeRequested = false;

@@ -1763,7 +1773,7 @@
         }
         else
         {
-            // Cancel operation if the factory class is null
+            // Cancel operation if the viewClass class is null
             viewChangeRequested = false;
             endViewChange();
         }
@@ -1787,19 +1797,19 @@
         if (navigationStack.length == 0)
         {
             if (firstView != null)
-                navigationStack.push(firstView, firstViewData);
+                navigationStack.pushView(firstView, firstViewData);
             else
                 return;
         }

         // Update the current view reference
-        currentViewProxy = navigationStack.topView;
+        currentViewDescriptor = navigationStack.topView;

         // Create the view if needed
-        var view:View = currentViewProxy.instance;
+        var view:View = currentViewDescriptor.instance;
         if (!view)
         {
-            view = createViewInstance(currentViewProxy);
+            view = createViewInstance(currentViewDescriptor);
             view.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, view_propertyChangeHandler);
         }

@@ -1811,13 +1821,13 @@
     /**
      *  @private
      */
-    private function createViewInstance(viewProxy:ViewProxy):View
+    private function createViewInstance(viewProxy:ViewDescriptor):View
     {
         var view:View;

         if (viewProxy.instance == null)
         {
-            view = new viewProxy.factory();
+            view = new viewProxy.viewClass();
             viewProxy.instance = view;
         }
         else
@@ -1826,13 +1836,12 @@
         }

         // Restore persistence data if necessary
-        if (viewProxy.data == null && viewProxy.persistedData != null)
-            viewProxy.data = view.deserializePersistedData(viewProxy.persistedData);
+        if (viewProxy.data == null && viewProxy.persistenceData != null)
+            viewProxy.data = view.deserializePersistedData(viewProxy.persistenceData);

         view.navigator = this;
         view.data = viewProxy.data;
         view.percentWidth = view.percentHeight = 100;
-        view.setContext(viewProxy.context);

         // Update the views orientation state
         if ((landscapeOrientation && view.hasState("landscape")) ||
@@ -1849,7 +1858,7 @@
     /**
      *  @private
      */
-    private function createViewReturnObject(viewProxy:ViewProxy):ViewReturnObject
+    private function createViewReturnObject(viewProxy:ViewDescriptor):ViewReturnObject
     {
         var view:View = viewProxy.instance;

@@ -1862,7 +1871,7 @@
     /**
      *  @private
      */
-    private function destroyViewInstance(viewProxy:ViewProxy):void
+    private function destroyViewInstance(viewProxy:ViewDescriptor):void
     {
         var currentView:View = viewProxy.instance;

@@ -1870,7 +1879,7 @@
             return;

         // Deactivate the view if it is active
-        if (currentView.active)
+        if (currentView.isActive)
             currentView.setActive(false);

         removeElement(currentView);
@@ -1882,7 +1891,7 @@
         if (lastAction == ViewNavigatorAction.PUSH)
         {
             viewProxy.data = currentView.data;
-            viewProxy.persistedData = currentView.serializeData();
+            viewProxy.persistenceData = currentView.serializeData();
         }

         // Check if we can delete the reference for the view instance.  If the current
@@ -1905,8 +1914,8 @@
     {
         var savedData:Object = super.saveViewData();

-        if (currentViewProxy && currentViewProxy.instance)
-            currentViewProxy.persistedData = currentViewProxy.instance.serializeData();
+        if (currentViewDescriptor && currentViewDescriptor.instance)
+            currentViewDescriptor.persistenceData = currentViewDescriptor.instance.serializeData();

         if (!savedData)
             savedData = {};
@@ -1930,7 +1939,7 @@
      *  @private
      *  Method is called during the view transition process after the
      *  instance of the new view is added to the display list.  It initializes
-     *  the underlying ViewProxy object and prepares the transition.
+     *  the underlying ViewDescriptor object and prepares the transition.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10.1
@@ -1943,10 +1952,10 @@
         var pendingView:View;

         // Deactivate the current view
-        if (currentViewProxy)
+        if (currentViewDescriptor)
         {
             // FIXME (chiedozi): Do we need to remove view from layout?
-            currentView = currentViewProxy.instance;
+            currentView = currentViewDescriptor.instance;
             currentView.setActive(false);
             currentView.includeInLayout = false;

@@ -1960,9 +1969,9 @@
         }

         // Store new view
-        if (pendingViewProxy)
-        {
-            pendingView = pendingViewProxy.instance;
+        if (pendingViewDescriptor)
+        {
+            pendingView = pendingViewDescriptor.instance;
             pendingView.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
                             view_propertyChangeHandler);
         }


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

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

 package mx.messaging.messages
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 808
Author:   genovese@adobe.com
Date:     2008-03-13T20:43:37.111083Z

Log Message:
-----------
Minor doc edit in stop()

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as

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

--- frameworks/projects/framework/src/mx/effects/Tween.as
+++ frameworks/projects/framework/src/mx/effects/Tween.as
@@ -683,7 +683,7 @@

     /**
      *  Stops the tween, ending it without dispatching an event or calling
-     *  endFunction or onTweenEnd().
+     *  endFunction or onTweenEnd().
      */
     public function stop():void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14663
Author:   cframpto@adobe.com
Date:     2010-03-10T13:39:34.321681Z

Log Message:
-----------
Merge 14649 from 4.x

Change FTETextField fontContext to IFlexModuleFactory and check if it is ISWFContext before using.  Do not mirror mx:VideoPlayer, s:CheckBox and mx:CheckBox.  Fix dumb editing mistake in UIComponent.

QE notes:
Doc notes: None
Bugs: SDK-25824, SDK-25790, SDK-25817, SDK-25781
Reviewed By: Jason and Alex
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/FTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/mx/core/FTETextField.as
+++ frameworks/projects/spark/src/mx/core/FTETextField.as
@@ -60,6 +60,9 @@
 import flashx.textLayout.formats.TextDecoration;
 import flashx.textLayout.formats.TextLayoutFormat;

+import mx.core.IFlexModuleFactory;
+import mx.core.IFontContextComponent;
+
 use namespace mx_internal;

 /**
@@ -72,7 +75,7 @@
  *  @playerversion AIR 1.5
  *  @langversion 3.0
  */
-public class FTETextField extends Sprite
+public class FTETextField extends Sprite implements IFontContextComponent
 {
 	// Current slot count: 21
 	// (1 for every type except 2 for Number)
@@ -1927,11 +1930,12 @@
 	 *  @private
 	 *  Storage for the fontContext property.
 	 */
-	private var _fontContext:ISWFContext;
-
-	/**
-	 *  The ISWFContext instance that FTETextField
-	 *  uses for creating TextLine objects.
+	private var _fontContext:IFlexModuleFactory;
+
+	/**
+	 *  The IFlexModuleFactory instance that FTETextField
+	 *  uses for creating TextLine objects.  This is usually, but not always,
+     *  an ISWFContext.
 	 *
 	 *
Set this if you need lines to be created in a different
 	 *  SWF context than the one containing the TLF code.

@@ -1945,7 +1949,7 @@
 	 *  @playerversion AIR 1.5
 	 *  @langversion 3.0
 	 */
-	public function get fontContext():ISWFContext
+	public function get fontContext():IFlexModuleFactory
 	{
 		return _fontContext;
 	}
@@ -1953,7 +1957,7 @@
 	/**
 	 *  @private
 	 */
-	public function set fontContext(value:ISWFContext):void
+	public function set fontContext(value:IFlexModuleFactory):void
 	{
 		// FTETextField allows a null value to be set;
 		// in fact, this is the default.
@@ -2930,7 +2934,7 @@
             var recycleLine:TextLine = TextLineRecycler.getLineForReuse();
 			if (recycleLine)
 			{
-				if (fontContext)
+				if (fontContext as ISWFContext)
 				{
 					nextTextLine = fontContext.callInContext(
 						textBlock["recreateTextLine"], textBlock,
@@ -2944,7 +2948,7 @@
 			}
 			else
 			{
-				if (fontContext)
+				if (fontContext as ISWFContext)
 				{
 					nextTextLine = fontContext.callInContext(
 						textBlock.createTextLine, textBlock,
@@ -3095,7 +3099,7 @@

 		textContainerManager.hostFormat = hostFormat;

-		textContainerManager.swfContext = fontContext;
+		textContainerManager.swfContext = fontContext as ISWFContext;

 		textContainerManager.setTextFlow(textFlow)