Transferred from the Adobe Open Source Subversion Repository

Revision: 18451
Author:   klin@adobe.com
Date:     2010-11-04T20:21:30.147070Z

Log Message:
-----------
Fix for two DataGrid caret-related bugs. First, we now leave the caret alone when selecting all cells or rows. Second, GridLayout only hides the caret based on the showCaret property. It change the caret to be visible if the caret is already determined not to be visible.

QE notes: No
Doc notes: No
Bugs: SDK-27934, SDK-28207
Reviewer: Carol
Tests run: cyclone server
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -1617,8 +1617,10 @@
         const factory:IFactory = grid.caretIndicator;
         caretIndicator = layoutIndicator(layer, factory, caretIndicator, rowIndex, colIndex);

-        // Show/hide caret based on the showCaret property.
-        if (caretIndicator)
+        // Hide caret based on the showCaret property. Don't show caret
+        // if its already hidden by layoutIndicator() because it has
+        // an invalid position.
+        if (caretIndicator && !_showCaret)
             caretIndicator.visible = _showCaret;
     }


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

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

 package mx.charts.chartClasses
 {


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

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

 package mx.charts.series.items
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10633
Author:   dloverin@adobe.com
Date:     2009-09-28T13:24:30.559033Z

Log Message:
-----------
Use styleManager instance instead of StyleManager singleton (framework and compiler generated code)

Modified compiler generated style code for the FlexInit class. The style related changes are only available with the -keep option. AST generation is coming later.

Only the framework project is changed here. The other projects are will be changed soon.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex and Paul
Tests run: checkintests, all Mustella tests(no new failures)
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserMonthArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.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/framework/src/mx/styles/IStyleModule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>
<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/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/ProgrammaticSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/textClasses/TextRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressBarSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.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/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>

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

--- frameworks/projects/mx/src/mx/containers/utilityClasses/CanvasLayout.as
+++ frameworks/projects/mx/src/mx/containers/utilityClasses/CanvasLayout.as
@@ -25,7 +25,6 @@
 import mx.events.MoveEvent;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceManager;
-import mx.styles.StyleManager;
 import flash.utils.Dictionary;

 use namespace mx_internal;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListItemDragProxy.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListItemDragProxy.as
@@ -0,0 +1,135 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls.listClasses
+{
+
+import flash.display.DisplayObject;
+import mx.core.mx_internal;
+import mx.core.UIComponent;
+
+use namespace mx_internal;
+
+/**
+ *  The default drag proxy used when dragging from a list-based control
+ *  (except for the DataGrid class).
+ *  A drag proxy is a component that parents the objects
+ *  or copies of the objects being dragged
+ *
+ *  @see mx.controls.dataGridClasses.DataGridDragProxy
+ */
+public class ListItemDragProxy extends UIComponent
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function ListItemDragProxy()
+	{
+		super();
+
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: UIComponent
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function createChildren():void
+	{
+        super.createChildren();
+
+		var items:Array /* of unit */ = ListBase(owner).selectedItems;
+
+		var n:int = items.length;
+		for (var i:int = 0; i < n; i++)
+		{
+			var src:IListItemRenderer = ListBase(owner).itemToItemRenderer(items[i]);
+			if (!src)
+				continue;
+
+			var o:IListItemRenderer = ListBase(owner).createItemRenderer(items[i]);
+
+			o.styleName = ListBase(owner);
+
+			if (o is IDropInListItemRenderer)
+			{
+				var listData:BaseListData =
+					IDropInListItemRenderer(src).listData;
+
+				IDropInListItemRenderer(o).listData = items[i] ?
+													  listData :
+													  null;
+			}
+
+			o.data = items[i];
+
+			addChild(DisplayObject(o));
+
+			var contentHolder:ListBaseContentHolder = src.parent as ListBaseContentHolder;
+
+			o.setActualSize(src.width, src.height);
+			o.x = src.x + contentHolder.leftOffset;
+			o.y = src.y + contentHolder.topOffset;
+
+			measuredHeight = Math.max(measuredHeight, o.y + o.height);
+			measuredWidth = Math.max(measuredWidth, o.x + o.width);
+			o.visible = true;
+		}
+
+		invalidateDisplayList();
+	}
+
+	override protected function measure():void
+	{
+		super.measure();
+
+		var w:Number = 0;
+		var h:Number = 0;
+		var child:IListItemRenderer;
+
+		for (var i:int = 0; i < numChildren; i++)
+		{
+			child = getChildAt(i) as IListItemRenderer;
+
+			if (child)
+			{
+				/*trace("ListItemDragProxy.measure x",child.x,"y",child.y,"h",child.getExplicitOrMeasuredHeight(),
+						"w",child.getExplicitOrMeasuredWidth(),"child",child);
+				*/
+				w = Math.max(w, child.x + child.width);
+				h = Math.max(h, child.y + child.height);
+			}
+		}
+
+		measuredWidth = measuredMinWidth = w;
+		measuredHeight = measuredMinHeight = h;
+	}
+}
+
+}


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

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


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 19380
Author:   mcho@adobe.com
Date:     2010-12-15T00:00:09.653153Z

Log Message:
-----------
Replace fxg scrollbar skins with graphics drawing; Add 320 ppi for scrollbar skins

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

Modified Paths:
--------------
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/VScrollThumb.fxg</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/VScrollThumb.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/HScrollThumb.fxg</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/HScrollThumb.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as
@@ -12,15 +12,15 @@
 package spark.skins.mobile
 {

-import flash.display.DisplayObject;
+import flash.display.CapsStyle;
 import flash.display.Graphics;
+import flash.display.JointStyle;
+import flash.display.LineScaleMode;

 import mx.core.DPIClassification;

 import spark.components.Button;
 import spark.skins.mobile.supportClasses.MobileSkin;
-import spark.skins.mobile160.assets.VScrollThumb;
-import spark.skins.mobile240.assets.VScrollThumb;

 /**
  *  ActionScript-based skin for the VScrollBar thumb skin part in mobile applications.
@@ -51,19 +51,25 @@
         super();
 		useChromeColor = true;

-		// Depending on density set asset and visible thumb width
+		// Depending on density set padding
 		switch (applicationDPI)
 		{
+			case DPIClassification.DPI_320:
+			{
+				paddingRight = 5;
+				paddingVertical = 4;
+				break;
+			}
 			case DPIClassification.DPI_240:
 			{
-				thumbClass = spark.skins.mobile240.assets.VScrollThumb;
-				thumbWidth = 6;
+				paddingRight = 4;
+				paddingVertical = 3;
 				break;
 			}
 			default:
 			{
-				thumbClass = spark.skins.mobile160.assets.VScrollThumb;
-				thumbWidth = 4;
+				paddingRight = 3;
+				paddingVertical = 2;
 				break;
 			}
 		}
@@ -78,88 +84,58 @@
      * @copy spark.skins.spark.ApplicationSkin#hostComponent
      */
     public var hostComponent:Button;
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-    /**
-     *  Specifies the FXG class to use for the thumb.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    protected var thumbClass:Class;
-
-    /**
-     *  Specifies the DisplayObject to use for the thumb.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    protected var thumbSkin:DisplayObject;
-
-    /**
-     *  Width of the visible thumb area.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    protected var thumbWidth:int;
-
-
-    //--------------------------------------------------------------------------
-    //
-    //  Overridden methods
-    //
-    //--------------------------------------------------------------------------
-    /**
-     *  @private
-     */
-    override protected function createChildren():void
-    {
-        if (!thumbSkin)
-        {
-            thumbSkin = new thumbClass();
-            addChild(thumbSkin);
-        }
-    }
-
-    /**
-     *  @private
-     */
-    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
-    {
-        super.updateDisplayList(unscaledWidth, unscaledHeight);
-        setElementSize(thumbSkin, unscaledWidth, unscaledHeight);
-    }
-
-
-    /**
-     *  @private
-     */
-    override protected function beginChromeColorFill(chromeColorGraphics:Graphics):void
-    {
-        var chromeColor:uint = getChromeColor();
-        chromeColorGraphics.beginFill(chromeColor, 1);
-    }
-
-    /**
-     *  @private
-     */
-    override protected function drawChromeColor(chromeColorGraphics:Graphics, unscaledWidth:Number, unscaledHeight:Number):void
-    {
-        chromeColorGraphics.drawRoundRect(0, 0,
-                                          thumbWidth, unscaledHeight,
-                                          thumbWidth, thumbWidth);
-    }
-
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+	/**
+	 *  Padding from the right
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	protected var paddingRight:int;
+
+	/**
+	 *  Vertical padding from top and bottom
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	protected var paddingVertical:int;
+
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+	/**
+	 *  @protected
+	 */
+	override protected function beginChromeColorFill(chromeColorGraphics:Graphics):void
+	{
+		var chromeColor:uint = getChromeColor();
+		chromeColorGraphics.beginFill(chromeColor, 1);
+		chromeColorGraphics.lineStyle(1, 0x000000, 1, false, LineScaleMode.NORMAL, CapsStyle.NONE, JointStyle.ROUND);
+	}
+
+	/**
+	 *  @protected
+	 */
+	override protected function drawChromeColor(chromeColorGraphics:Graphics, unscaledWidth:Number, unscaledHeight:Number):void
+	{
+		var thumbWidth:Number = unscaledWidth - paddingRight;
+		chromeColorGraphics.drawRoundRect(0.5, paddingVertical + 0.5,
+										 thumbWidth, unscaledHeight - 2 * paddingVertical,
+										 thumbWidth, thumbWidth);
+	}
+
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4005
Author:   rfrishbe@adobe.com
Date:     2008-11-04T01:07:38.597640Z

Log Message:
-----------
Change in the way item renderers lay them selves out.  Before we were using 100% width and 100% height.  Now, we're using horizontalAlign and verticalAlign to accomplish this, which are properties added to VerticalLayout and HorizontalLayout, respectively.  horizontalAlign takes values "left", "center", "right", "justify", and "contentJustify".  "justify" sizes all elements to the width of the component.  "contentJustify" sizes all elements to the size of the largest child (with a minimum of the width of the parent component).  Similar, verticalAlign takes "top", "middle", "bottom", "justify", and "contentJustify".

The default List skin sets the VerticalLayout's horizontalAlign to "contentJustify."  Most lists should use "contentJustify" or "justify" if you don't want scrollbars.  If you want to change your list to a horizontal list, you change the layout to a horizontal layout.  However, you must set the verticalAlign property on the horizontal layout correctly--otherwise it'll default to "top" and probably won't do what you want.

Ran checkintests and the following mustella tests: layout, list, Group, DataGroup, FxDataContainer, and FxContainer.  Some DataGroup tests were failing but should be because of an unrelated, local change.  All other tests are passing.

QE Notes: Failing tests are excluded.  Please update them (I think all just need to add verticalAlign="contentJustify" in the horizontal layout case) and re-include them.  Also, please write tests for this new functionality.
Doc Notes: None
Bugs: SDK-17198
Reviewer: Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDataContainerSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalAlign.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/flex4test.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
@@ -68,7 +68,7 @@
 		if (value != _selected)
 		{
 			_selected = value;
-			currentState = getUpdatedSkinState();
+			currentState = getCurrentSkinState();
 		}
 	}

@@ -77,48 +77,6 @@
     //  Properties
     //
     //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-
-    private var _orientation:Number;	// 0 for vertical, 1 for horizontal
-
-    override protected function measure():void
-    {
-    	// TODO: This is temporary code to make sure the item renderer
-    	// fills out the width of the parent when layout is vertical,
-    	// and the height of the parent when the layout is horizontal.
-    	// Need to figure out a permanent solution for this
-    	if (parent is DataGroup)
-    	{
-    		if (DataGroup(parent).layout is VerticalLayout)
-    		{
-    			if (_orientation != 0)
-    			{
-    				_orientation = 0;
-    				percentWidth = 100;
-    				percentHeight = NaN;
-    			}
-    		}
-    		else if (DataGroup(parent).layout is HorizontalLayout)
-    		{
-    			if (_orientation != 1)
-    			{
-    				_orientation = 1;
-    				percentWidth = NaN;
-    				percentHeight = 100;
-    			}
-    		}
-    		else if (!isNaN(_orientation))
-    		{
-    			_orientation = NaN;
-    			percentWidth = percentHeight = NaN;
-    		}
-    	}
-
-    	super.measure();
-    }

     /**
      *  @private
@@ -136,7 +94,7 @@
      *  Return the skin state. This can be overridden by subclasses to add more states.
      *  NOTE: Undocumented for now since MXMLComponent class has not been fleshed out.
      */
-	protected function getUpdatedSkinState():String
+	protected function getCurrentSkinState():String
 	{
 		if (selected)
 			return "selected";
@@ -154,7 +112,7 @@
 	private function rollOverHandler(event:MouseEvent):void
 	{
 		hovered = true;
-		currentState = getUpdatedSkinState();
+		currentState = getCurrentSkinState();
 	}

 	/**
@@ -164,7 +122,7 @@
 	private function rollOutHandler(event:MouseEvent):void
 	{
 		hovered = false;
-		currentState = getUpdatedSkinState();
+		currentState = getCurrentSkinState();
 	}

 	/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 4804
Author:   jvroom@adobe.com
Date:     2009-02-03T01:56:22.023978Z

Log Message:
-----------
Bugs: LCDS-548: add code to deal with contentType="application/xml" with one parameter (avoid
name/value encoding in that case)
      LCDS-405: baseURL on HTTPMultiService should accept URLs which start with "/"

      Added convertParametersHandler and convertResultsHandler function hooks to RemoteObject
      to support framework code which wants to modify the service behavior.

      Moved "properties" from rpc/http/AbstractOperation to rpc/AbstractOperation so we can use
      it for customizing the handling of remote object results

      Couple of minor ASDoc fixes and one tab -> spaces change

Doc: minor asdoc edits
QE: LCDS QE will verify the bugs in this one
Reviewers: Mete, Pete, Seth, Ed reviewed different parts of this checkin

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
+++ frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
@@ -156,6 +156,7 @@
      *  @param id The messageId of the invocation to cancel. Optional. If omitted, the
      *         last service invocation is canceled.
      *
+     *  @return The AsyncToken associated with the call that is cancelled or null if no call was cancelled.
      */
     public function cancel(id:String = null):AsyncToken
     {


Change 20100208-ptw-K by ptw@repo-man.home on 2010-02-08 13:27:48 EST
    in /Users/ptw/OpenLaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Warn when swf9/10 & debug but not running debug player

Bugs Fixed:  LPP-8692 Debug console can't display the correct compile error in swf9

Technical Reviewer: hminsky (Message-ID: <8c61fad61002081152s24f66865ja0fdc1150beaf361@mail.gmail.com>)
QA Reviewer: max (Message-ID: <4B706D5C.2030907@laszlosystems.com>)

Release Notes:

    The debugger will issue a warning if you are using the swf9 or
    swf10 runtimes but do not have the debug Flash player installed.
    The debugger relies on the debug player for displaying
    human-readable error messages.

Details:
    When creating debug console, test for debug player and warn if not present.

Tests:
    Launch any application without the debug player installed and
    notice the warning.  Install the debug player and notice no
    warning.  (Good luck if you do it in the other order as the Adobe
    installer will apparently not let you downgrade.)

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

--- WEB-INF/lps/lfc/debugger/platform/swf9/LzDebug.as
+++ WEB-INF/lps/lfc/debugger/platform/swf9/LzDebug.as
@@ -3,7 +3,7 @@
 /*
  * Platform-specific DebugService
   *
-  * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2010 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.

  */
@@ -14,6 +14,7 @@
     import flash.utils.Dictionary;
     import flash.utils.getDefinitionByName
     import flash.utils.getQualifiedClassName
+    import flash.system.Capabilities;
     }#

   /**
@@ -43,6 +44,9 @@
     } else {
       // This will attach itself, once it is fully initialized.
       new lz.LzDebugWindow();
+    }
+    if (! Capabilities.isDebugger) {
+      Debug.warn("Install the Flash debug player (http://www.adobe.com/support/flashplayer/downloads.html) for debugging.");
     }
   }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5770
Author:   gruehle@adobe.com
Date:     2009-03-30T20:58:54.529722Z

Log Message:
-----------
Add [Alternative] metadata to the Halo components that have a Gumbo replacement.

Bugs: SDK-20190
QA notes: none
Doc notes: Additional ASDoc comments added for many of the classes. These should all be reviewed.
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Zoom.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Cubic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/RemoveChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/TweenEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeRight.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quartic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeLeft.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quintic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quadratic.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/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/AddChildAction.as</path>
<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/effects/WipeDown.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/SetPropertyAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Blur.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HorizontalList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeUp.as</path>

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

--- frameworks/projects/mx/src/mx/controls/Button.as
+++ frameworks/projects/mx/src/mx/controls/Button.as
@@ -493,6 +493,8 @@
 [DefaultTriggerEvent("click")]

 [IconFile("Button.png")]
+
+[Alternative(replacement="spark.components.Button", since="4.0")]

 /**
  *  The Button control is a commonly used rectangular button.


Transferred from the Adobe Open Source Subversion Repository

Revision: 254
Author:   rfrishbe@adobe.com
Date:     2008-01-22T00:00:06.694434Z

Log Message:
-----------
AIR: Fixing minWidth, minHeight, maxWidth, maxHeight.  Lots of subtle issues around sizing windows...

Bugs: SDK-14300, SDK-14399
QA: Yes
Doc: No
Review: Corey
Cyclone: Yes - quite a lot actually

[ private comments below ]

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -24,8 +24,10 @@
 import flash.events.MouseEvent;
 import flash.events.NativeWindowBoundsEvent;
 import flash.events.NativeWindowDisplayStateEvent;
+import flash.geom.Point;
 import flash.geom.Rectangle;
 import flash.system.Capabilities;
+
 import mx.controls.Button;
 import mx.controls.FlexNativeMenu;
 import mx.core.windowClasses.StatusBar;
@@ -33,10 +35,10 @@
 import mx.events.AIREvent;
 import mx.events.FlexEvent;
 import mx.events.FlexNativeWindowBoundsEvent;
+import mx.managers.CursorManagerImpl;
 import mx.managers.FocusManager;
+import mx.managers.ICursorManager;
 import mx.managers.ISystemManager;
-import mx.managers.ICursorManager;
-import mx.managers.CursorManagerImpl;
 import mx.managers.WindowedSystemManager;
 import mx.styles.CSSStyleDeclaration;
 import mx.styles.StyleManager;
@@ -404,13 +406,14 @@
  *  <mx:Window
  *    Properties
  *    alwaysInFront="false"
+ *    height="100"
  *    maxHeight="10000"
  *    maximizable="true"
  *    maxWidth="10000"
  *    menu="null"
- *    minHeight="100"
+ *    minHeight="0"
  *    minimizable="true"
- *    minWidth="100"
+ *    minWidth="0"
  *    resizable="true"
  *    showGripper="true"
  *    showStatusBar="true"
@@ -424,6 +427,7 @@
  *    transparent="false"
  *    type="normal"
  *    visible="true"
+ *    width="100"
  *
  *    Styles
  *    buttonAlignment="auto"
@@ -488,6 +492,18 @@
      *  @private
      */
     private static const MOUSE_SLACK:Number = 5;
+
+    /**
+     *  The default height for a window (SDK-14399)
+     *  @private
+     */
+    private static const DEFAULT_WINDOW_HEIGHT:Number = 100;
+
+    /**
+     *  The default width for a window (SDK-14399)
+     *  @private
+     */
+    private static const DEFAULT_WINDOW_WIDTH:Number = 100;

     //--------------------------------------------------------------------------
     //
@@ -693,134 +709,167 @@
     }

 	//----------------------------------
-	//  maxHeight
-	//----------------------------------
-
-	/**
-	 *  @private
+    //  maxHeight
+    //----------------------------------
+
+	/**
+     *  @private
 	 *  Storage for the maxHeight property.
-	 */
+     */
 	private var _maxHeight:Number = 10000;

-	[Bindable("maxHeightChanged")]
-
-	/**
-	 *  The maximum height of the window.
-	 */
-	override public function get maxHeight():Number
-	{
-		return _maxHeight;
-	}
-
-	/**
-	 *  @private
-	 */
-	override public function set maxHeight(value:Number):void
-	{
-		_maxHeight = value;
-		if (height > _maxHeight)
-			height = _maxHeight;
-
-		dispatchEvent(new Event("maxHeightChanged"));
-	}
-
-	//----------------------------------
-	//  maxWidth
-	//----------------------------------
-
-	/**
-	 *  @private
+	/**
+     *  @private
+	 *  Keeps track of whether maxHeight property changed so we can
+	 *  handle it in commitProperties.
+     */
+    private var maxHeightChanged:Boolean = false;
+
+    [Bindable("maxHeightChanged")]
+    [Bindable("windowComplete")]
+
+	/**
+     *  @private
+     */
+    override public function get maxHeight():Number
+    {
+    	if (nativeWindow && !maxHeightChanged)
+    		return nativeWindow.maxSize.y - chromeHeight();
+        else
+        	return _maxHeight;
+    }
+
+	/**
+     *  Specifies the maximum height of the application's window.
+     */
+    override public function set maxHeight(value:Number):void
+    {
+        _maxHeight = value;
+        maxHeightChanged = true;
+        invalidateProperties();
+    }
+
+    //----------------------------------
+    //  maxWidth
+    //----------------------------------
+
+    /**
+     *  @private
 	 *  Storage for the maxWidth property.
-	 */
-	private var _maxWidth:Number = 10000;
-
-	[Bindable("maxWidthChanged")]
-
-	/**
-	 *  The maximum width of the window.
-	 */
-	 override public function get maxWidth():Number
-	{
-		return _maxWidth;
-	}
-
-	/**
-	 *  @private
-	 */
-	override public function set maxWidth(value:Number):void
-	{
-		_maxWidth = value;
-	 	if (height > _maxWidth)
-	 		height = _maxWidth;
-
-	 	dispatchEvent(new Event("maxWidthChanged"));
-	}
-
-	 //---------------------------------
-	 //  minHeight
-	 //---------------------------------
-
-	/**
-	 *  @private
-	 *  Storage for the minHeight property.
-	 */
-	private var _minHeight:Number =
-		Math.max(NativeWindow.systemMinSize.y, 100);
-
-	[Bindable("minHeightChanged")]
-
-	/**
-	 *  The minimum height of the window.
-	 */
-	override public function get minHeight():Number
-	{
-		return _minHeight;
-	}
-
-	/**
-	 *  @private
-	 */
-	override public  function set minHeight(value:Number):void
-	{
-		_minHeight = value;
-		if (height < minHeight)
-			height = minHeight;
-
-		dispatchEvent(new Event("minHeightChanged"));
-	}
-
-	//----------------------------------
-	//  minWidth
-	//----------------------------------
-
-	/**
-	 *  @private
+     */
+    private var _maxWidth:Number = 10000;
+
+    /**
+     *  @private
+	 *  Keeps track of whether maxWidth property changed so we can
+	 *  handle it in commitProperties.
+     */
+    private var maxWidthChanged:Boolean = false;
+
+    [Bindable("maxWidthChanged")]
+    [Bindable("windowComplete")]
+
+	/**
+     *  @private
+     */
+    override public function get maxWidth():Number
+    {
+    	if (nativeWindow && !maxWidthChanged)
+    		return nativeWindow.maxSize.x - chromeWidth();
+        else
+        	return _maxWidth;
+    }
+
+    /**
+     *  Specifies the maximum width of the application's window.
+     */
+    override public function set maxWidth(value:Number):void
+    {
+        _maxWidth = value;
+        maxWidthChanged = true;
+        invalidateProperties();
+    }
+
+     //---------------------------------
+     //  minHeight
+     //---------------------------------
+
+    /**
+     *  @private
+     */
+    private var _minHeight:Number = 0;
+
+	/**
+     *  @private
+	 *  Keeps track of whether minHeight property changed so we can
+	 *  handle it in commitProperties.
+     */
+    private var minHeightChanged:Boolean = false;
+
+    [Bindable("minHeightChanged")]
+    [Bindable("windowComplete")]
+
+    /**
+     *  Specifies the minimum height of the application's window.
+     */
+    override public function get minHeight():Number
+    {
+    	if (nativeWindow && !minHeightChanged)
+    		return nativeWindow.minSize.y - chromeHeight();
+        else
+        	return _minHeight;
+    }
+
+    /**
+     *  @private
+     */
+    override public function set minHeight(value:Number):void
+    {
+        _minHeight = value;
+        minHeightChanged = true;
+        invalidateProperties();
+    }
+
+     //---------------------------------
+     //  minWidth
+     //---------------------------------
+
+    /**
+     *  @private
 	 *  Storage for the minWidth property.
-	 */
-	private var _minWidth:Number =
-		Math.max(NativeWindow.systemMinSize.x, 100);
-
-	[Bindable("minWidthChanged")]
-
-	/**
-	 *  The minimum width of the window.
-	 */
-	override public  function get minWidth():Number
-	{
-		return _minWidth;
-	}
-
-	/**
-	 *  @private
-	 */
-	override public  function set minWidth(value:Number):void
-	{
-		_minWidth = value;
-		if (width < _minWidth)
-			width = _minWidth;
-
-		dispatchEvent(new Event("minWidthChanged"));
-	}
+     */
+    private var _minWidth:Number = 0;
+
+   /**
+     *  @private
+	 *  Keeps track of whether minWidth property changed so we can
+	 *  handle it in commitProperties.
+     */
+    private var minWidthChanged:Boolean = false;
+
+    [Bindable("minWidthChanged")]
+    [Bindable("windowComplete")]
+
+    /**
+     *  Specifies the minimum width of the application's window.
+     */
+    override public function get minWidth():Number
+    {
+        if (nativeWindow && !minWidthChanged)
+    		return nativeWindow.minSize.x - chromeWidth();
+        else
+        	return _minWidth;
+    }
+
+    /**
+     *  @private
+     */
+    override public function set minWidth(value:Number):void
+    {
+        _minWidth = value;
+        minWidthChanged = true;
+        invalidateProperties();
+    }

 	//----------------------------------
 	//  visible
@@ -1020,7 +1069,7 @@
      *  @private
      *  Storage for the bounds property.
      */
-    private var _bounds:Rectangle = new Rectangle(0, 0, 0, 0);
+    private var _bounds:Rectangle = new Rectangle(0, 0, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT);

     /**
      *  @private
@@ -1820,12 +1869,9 @@
      */
     override protected function createChildren():void
     {
-        minHeight = Math.max(minHeight, NativeWindow.systemMinSize.y);
-        minWidth = Math.max(minWidth, NativeWindow.systemMinSize.x);
-        if (height < minHeight)
-        	height = minHeight;
-        if (width < minWidth)
-        	width = minWidth;
+    	// this is to help initialize the stage
+        width = _bounds.width;
+        height = _bounds.height;

 		super.createChildren();

@@ -1921,6 +1967,54 @@
  			//'register' with WindowedSystemManager so it can cleanup when done.
  			sm.addWindow(this);
         }
+
+        // minimum width and height
+		if (minWidthChanged || minHeightChanged)
+		{
+			var newMinWidth:Number = minWidthChanged ? _minWidth + chromeWidth() : nativeWindow.minSize.x;
+			var newMinHeight:Number = minHeightChanged ? _minHeight + chromeHeight() : nativeWindow.minSize.y;
+
+			nativeWindow.minSize = new Point(newMinWidth, newMinHeight);
+
+			if (minWidthChanged)
+			{
+				minWidthChanged = false;
+				if (width < minWidth)
+            		width = minWidth;
+        		dispatchEvent(new Event("minWidthChanged"));
+   			}
+        	if (minHeightChanged)
+        	{
+        		minHeightChanged = false;
+        		if (height < minHeight)
+            		height = minHeight;
+        		dispatchEvent(new Event("minHeightChanged"));
+        	}
+		}
+
+		// maximum width and height
+		if (maxWidthChanged || maxHeightChanged)
+		{
+			var newMaxWidth:Number = maxWidthChanged ? _maxWidth + chromeWidth() : nativeWindow.maxSize.x;
+			var newMaxHeight:Number = maxHeightChanged ? _maxHeight + chromeHeight() : nativeWindow.maxSize.y;
+
+			nativeWindow.maxSize = new Point(newMaxWidth, newMaxHeight);
+
+			if (maxWidthChanged)
+			{
+				maxWidthChanged = false;
+				if (width > maxWidth)
+            		width = maxWidth;
+        		dispatchEvent(new Event("maxWidthChanged"));
+   			}
+			if (maxHeightChanged)
+			{
+				maxHeightChanged = false;
+				if (height > maxHeight)
+            		height = maxHeight;
+        		dispatchEvent(new Event("maxHeightChanged"));
+   			}
+		}

         if (boundsChanged)
         {
@@ -2518,6 +2612,24 @@
      	else
      		return false;
 	}
+
+	/**
+     *  @private
+     *  Returns the width of the chrome for the window
+     */
+    private function chromeWidth():Number
+    {
+        return nativeWindow.width - systemManager.stage.stageWidth;
+    }
+
+    /**
+     *  @private
+     *  Returns the height of the chrome for the window
+     */
+    private function chromeHeight():Number
+    {
+        return nativeWindow.height - systemManager.stage.stageHeight;
+    }

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 3385
Author:   mhorn@adobe.com
Date:     2008-09-26T19:26:26.852683Z

Log Message:
-----------
minor asdoc bug fixes

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

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

--- frameworks/projects/mx/src/mx/controls/VideoDisplay.as
+++ frameworks/projects/mx/src/mx/controls/VideoDisplay.as
@@ -787,7 +787,7 @@

     /**
      * An object that contains a metadata information packet that is received from a call to
-     * the NetSteam.onMetaData() callback method, if available.
+     * the NetStream.onMetaData() callback method, if available.
      * Ready when the metadataReceived event is dispatched.
      *
      *
If the FLV file is encoded with the Flash 8 encoder, the metadata


Transferred from the Adobe Open Source Subversion Repository

Revision: 18894
Author:   smgilson@adobe.com
Date:     2010-12-01T17:13:53.351835Z

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

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

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

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -1848,7 +1848,7 @@
     /**
      *  If selectionMode is GridSelectionMode.SINGLE_ROW
      *  or GridSelectionMode.MULTIPLE_ROWS, returns the
-     *  item in the dataProvider that is currently selected or
+     *  item in the the data provider that is currently selected or
      *  undefined if no rows are selected.
      *
      *
When the user changes the selection by interacting with the
@@ -1943,7 +1943,7 @@
      *
      *
The default value is an empty Vector.<Object>

      *
-     *  @return Vector of dataProvider items.
+     *  @return Vector of data provider items.
      *
      *  @see spark.components.Grid#dataProvider
      *
@@ -2206,12 +2206,13 @@

     /**
      *  Clears cached column width data that had been based on the
-     *  typicalItem and requests a new layout pass.   This method should
-     *  be called if some aspect of the typicalItem has changed that should
-     *  be reflected by the Grid's layout.
-     *
-     *
This method is called automatically if the typicalItem is changed directly, i.e.
-     *  if the property is set to a new value that's not "==" to current value.

+     *  typicalItem property, and requests a new layout pass.
+     *  Call this method if some aspect of the typicalItem
+     *  has changed that should be reflected by the Grid's layout.
+     *
+     *
This method is called automatically if the typicalItem
+     *  is changed directly. That means if the property is set to a new value
+     *  that is not "==" to current value.

      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2314,8 +2315,8 @@
      *  is not GridSelectionMode.NONE.  Removes the caret and
      *  sets the anchor to the initial item.
      *
-     *  @return True if the selection changed or false if there was nothing
-     *  previously selected.
+     *  @return true if the selection changed.
+     *  false if there was nothing previously selected.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2349,15 +2350,15 @@

     /**
      *  If selectionMode is GridSelectionMode.SINGLE_ROW
-     *  or GridSelectionMode.MULTIPLE_ROWS, returns true if the row
-     *  at index> is in the current selection.
-     *
-     *
The rowIndex is the index in dataProvider
+     *  or GridSelectionMode.MULTIPLE_ROWS, returns true
+     *  if the row at index> is in the current selection.
+     *
+     *
The rowIndex is the index in the data provider
      *  of the item containing the selected cell.

      *
      *  @param rowIndex The 0-based row index of the row.
      *
-     *  @return True if the selection contains the row.
+     *  @return true if the selection contains the row.
      *
      *  @see spark.components.Grid#dataProvider
      *
@@ -2373,12 +2374,12 @@

     /**
      *  If selectionMode is
-     *  GridSelectionMode.MULTIPLE_ROWS, returns true if the rows
-     *  in indices are in the current selection.
+     *  GridSelectionMode.MULTIPLE_ROWS, returns true
+     *  if the rows in indices are in the current selection.
      *
      *  @param rowIndices Vector of 0-based row indices to include in selection.
      *
-     *  @return True if the current selection contains these rows.
+     *  @return true if the current selection contains these rows.
      *
      *  @see spark.components.Grid#dataProvider
      *
@@ -2399,12 +2400,13 @@
      *  the caret position to this row.
      *  For all other selection modes, this method has no effect.
      *
-     *
The rowIndex is the index in dataProvider
+     *
The rowIndex is the index in the data provider
      *  of the item containing the selected cell.

      *
      *  @param rowIndex The 0-based row index of the cell.
      *
-     *  @return True if no errors, or false if index is invalid or
+     *  @return true if if no errors.
+     *  false if index is invalid, or
      *  the selectionMode is invalid.
      *
      *  @see spark.components.Grid#caretColumnIndex
@@ -2442,12 +2444,13 @@
      *  the selection and sets the caret position to this row.
      *  For all other selection modes, this method has no effect.
      *
-     *
The rowIndex is the index in dataProvider
+     *
The rowIndex is the index in the data provider
      *  of the item containing the selected cell.

      *
      *  @param rowIndex The 0-based row index of the cell.
      *
-     *  @return True if no errors, or false if index is invalid or
+     *  @return true if no errors.
+     *  false if index is invalid or
      *  the selectionMode is invalid.
      *
      *  @see spark.components.Grid#caretColumnIndex
@@ -2486,12 +2489,13 @@
      *  from the selection and sets the caret position to this row.
      *  For all other selection modes, this method has no effect.
      *
-     *
The rowIndex is the index in dataProvider
+     *
The rowIndex is the index in the data provider
      *  of the item containing the selected cell.

      *
      *  @param rowIndex The 0-based row index of the cell.
      *
-     *  @return True if no errors, or false if index is invalid or
+     *  @return true if no errors.
+     *  false if index is invalid or
      *  the selectionMode is invalid.
      *
      *  @see spark.components.Grid#caretColumnIndex
@@ -2529,15 +2533,17 @@
      *  endRowIndex.
      *  For all other selection modes, this method has no effect.
      *
-     *
Each index represents an item in dataProvider
+     *
Each index represents an item in the data provider
      *  to include in the selection.

      *
      *  @param rowIndex 0-based row index of the first row in the selection.
+     *
      *  @param rowCount Number of rows in the selection.
      *
-     *  @return True if no errors, or false if any of the indices are invalid
-     *  or startRowIndex is not less than or equal to
-     *  endRowIndex or the selectionMode is invalid.
+     *  @return true if no errors.
+     *  false if any of the indices are invalid,
+     *  if startRowIndex is not less than or equal to
+     *  endRowIndex, or the selectionMode is invalid.
      *
      *  @see spark.components.Grid#dataProvider
      *
@@ -2572,18 +2578,18 @@

     /**
      *  If selectionMode is GridSelectionMode.SINGLE_CELL
-     *  or GridSelectionMode.MULTIPLE_CELLS, returns true if the cell
-     *  is in the current selection.
+     *  or GridSelectionMode.MULTIPLE_CELLS, returns true
+     *  if the cell is in the current selection.
      *
      *
The rowIndex must be between 0 and the
-     *  length of dataProvider.  The columnIndex
+     *  length of the data provider.  The columnIndex
      *  must be between 0 and the length of columns.

      *
      *  @param rowIndex The 0-based row index of the cell.
      *
      *  @param columnIndex The 0-based column index of the cell.
      *
-     *  @return True if the current selection contains the cell.
+     *  @return true if the current selection contains the cell.
      *
      *  @see spark.components.Grid#columns
      *  @see spark.components.Grid#dataProvider
@@ -2600,11 +2606,11 @@

     /**
      *  If selectionMode is
-     *  GridSelectionMode.MULTIPLE_CELLS, returns true if the cells
-     *  in the cell region are in the current selection.
+     *  GridSelectionMode.MULTIPLE_CELLS, returns true
+     *  if the cells in the cell region are in the current selection.
      *
      *
The rowIndex must be between 0 and the
-     *  length of dataProvider.  The columnIndex
+     *  length of the data provider.  The columnIndex
      *  must be between 0 and the length of columns.

      *
      *  @param rowIndex The 0-based row index of the cell.
@@ -2617,8 +2623,8 @@
      *  @param columnCount Number of columns, starting at
      *  columnIndex to include in the cell region.
      *
-     *  @return True if the current selection contains all the cells in the cell
-     *  region.
+     *  @return true if the current selection contains all
+     *  the cells in the cell region.
      *
      *  @see spark.components.Grid#columns
      *  @see spark.components.Grid#dataProvider
@@ -2642,7 +2648,7 @@
      *  and the caret position to this cell.
      *  For all other selection modes, this method has no effect.
      *
-     *
The rowIndex is the index in dataProvider
+     *
The rowIndex is the index in the data provider
      *  of the item containing the selected cell.  The columnIndex
      *  is the index in columns of the column containing the
      *  selected cell.

@@ -2651,7 +2657,8 @@
      *
      *  @param columnIndex The 0-based column index of the cell.
      *
-     *  @return True if no errors, or false if rowIndex
+     *  @return true if if no errors.
+     *  false if rowIndex
      *  or columnIndex is invalid or the selectionMode
      *  is invalid.
      *
@@ -2692,7 +2699,7 @@
      *  the selection and sets the caret position to the cell.
      *  For all other selection modes, this method has no effect.
      *
-     *
The rowIndex is the index in dataProvider
+     *
The rowIndex is the index in the data provider
      *  of the item containing the selected cell.  The columnIndex
      *  is the index in columns of the column containing the
      *  selected cell.

@@ -2701,8 +2708,9 @@
      *
      *  @param columnIndex The 0-based column index of the cell.
      *
-     *  @return True if no errors, or false if rowIndex
-     *  or columnIndex is invalid or the selectionMode
+     *  @return true if no errors.
+     *  false if rowIndex
+     *  or columnIndex is invalid, or the selectionMode
      *  is invalid.
      *
      *  @see spark.components.Grid#caretColumnIndex
@@ -2742,7 +2750,7 @@
      *  from the selection and sets the caret position to the cell.
      *  For all other selection modes, this method has no effect.
      *
-     *
The rowIndex is the index in dataProvider
+     *
The rowIndex is the index in the data provider
      *  of the item containing the selected cell.  The columnIndex
      *  is the index in columns of the column containing the
      *  selected cell.

@@ -2751,7 +2759,8 @@
      *
      *  @param columnIndex The 0-based column index of the cell.
      *
-     *  @return True if no errors, or false if rowIndex
+     *  @return true if no errors.
+     *  false if rowIndex
      *  or columnIndex is invalid or the selectionMode
      *  is invalid.
      *
@@ -2791,7 +2800,7 @@
      *  caret position to the last cell in the cell region.
      *  For all other selection modes, this method has no effect.
      *
-     *
The rowIndex is the index in dataProvider
+     *
The rowIndex is the index in the data provider
      *  of the item containing the origin of the cell region.
      *  The columnIndex
      *  is the index in columns of the column containing the
@@ -2811,7 +2820,8 @@
      *  @param columnCount Number of columns, starting at
      *  columnIndex to include in the cell region.
      *
-     *  @return True if no errors, or false if the cell region is invalid or
+     *  @return true if no errors.
+     *  false if the cell region is invalid or
      *  the selectionMode is invalid.
      *
      *  @see spark.components.Grid#caretColumnIndex
@@ -2881,14 +2891,18 @@
     }

     /**
-     *  If necessary, set the verticalScrollPosition and horizontalScrollPosition
-     *  properties so that the specified cell is completely visible. If rowIndex
-     *  is -1 and columnIndex is specified, then just adjust the horizontalScrollPosition
-     *  so that the specified column is visible. If columnIndex is -1 and rowIndex
-     *  is specified, then just adjust the verticalScrollPosition so that the specified
-     *  row is visible.
+     *  If necessary, set the verticalScrollPosition and
+     *  horizontalScrollPosition properties so that the
+     *  specified cell is completely visible.
+     *  If rowIndex is -1 and columnIndex is specified,
+     *  then just adjust the horizontalScrollPosition
+     *  so that the specified column is visible.
+     *  If columnIndex is -1 and rowIndex
+     *  is specified, then just adjust the verticalScrollPosition
+     *  so that the specified row is visible.
      *
      *  @param rowIndex The 0-based row index of the item renderer's cell, or -1 to specify a column.
+     *
      *  @param columnIndex The 0-based column index of the item renderer's cell, or -1 to specify a row.
      *
      *  @langversion 3.0
@@ -2953,7 +2967,12 @@
     }

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

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

+     *

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

+     *
+     *  @return A vector of the visible column indices.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2979,7 +3014,18 @@
     }

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

+     *
+     *  @param rowIndex The 0-based index of the row.
+     *
+     *  @param columnIndex The 0-based index of the column.
+     *
+     *  @return A Rectangle that represents the cell's pixel bounds, or null.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2992,7 +3038,16 @@
     }

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

+     *
+     *  @param rowIndex The 0-based index of the row.
+     *
+     *  @return A Rectangle that represents the row's pixel bounds, or null.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -3005,7 +3060,15 @@
     }

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

+     *
+     *  @param columnIndex The 0-based index of the column.
+     *
+     *  @return A Rectangle that represents the column's pixel bounds, or null.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -3018,7 +3081,19 @@
     }

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

+     *
+     *  @param x The x coordinate.
+     *
+     *  @param y The y coordinate.
+     *
+     *  @return The index of the row corresponding to the specified coordinates.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -3031,7 +3106,19 @@
     }

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

+     *
+     *  @param x The pixel's x coordinate relative to the grid.
+     *
+     *  @param y The pixel's y coordinate relative to the grid.
+     *
+     *  @return The index of the column, or -1 if the coordinates are out of bounds.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -3066,7 +3153,28 @@
     }

     /**
-     *  @copy spark.components.gridClasses.GridLayout#getCellAt()
+     *  Return the row and column indices of the cell that overlaps the pixel at the
+     *  specified grid coordinate.
+     *  If no such cell exists, null is returned.
+     *
+     *
The example function below uses this method to compute the value of the
+     *  dataField for a grid cell.

+     *

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

+     *
+     *  @param x The pixel's x coordinate relative to the grid.
+     *
+     *  @param y The pixel's y coordinate relative to the grid.
+     *
+     *  @return The cell position, or null.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -3079,7 +3187,16 @@
     }

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

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

+     *
+     *
If the specified column does not have an explicit width, then the width
+     *  of this cell is based on the typicalItem.
+     *  If a typicalItem was not specified or has not been measured yet,
+     *  then the item renderer's width defaults to 150.

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

+     *
+     *  @param rowIndex The 0-based row index of the item renderer's cell.
+     *
+     *  @param columnIndex The 0-based column index of the item renderer's cell.
+     *
+     *  @return The item renderer or null if the cell location is invalid.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -3149,7 +3292,19 @@
     }

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

     /**
-     *  If the specified cell is visible, it will be redisplayed.  If variableRowHeight=true
+     *  If the specified cell is visible, it is redisplayed.
+     *  If variableRowHeight=true,
      *  then doing so may cause the height of the corresponding row to change.
      *
-     *
If columnIndex is -1, then the entire row is invalidated.  Similarly if rowIndex is -1,
-     *  the entire column is invalidated.

+     *
If columnIndex is -1, then the entire row is invalidated.
+     *  Similarly if rowIndex is -1, then the entire column is invalidated.

      *
      *
This method should be called when there is a change to any aspect of
-     *  the dataProvider item at rowIndex that might have some impact on the way the
-     *  specified cell is displayed. Calling this method is similar to calling
-     *  dataProvider.itemUpdated(), which advises the Grid that all rows
-     *  displaying the specified item should be redisplayed.  Using this method can
-     *  be relatively efficient, since it narrows the scope of the change to a single cell.

+     *  the data provider item at rowIndex that might have some
+     *  impact on the way the  specified cell is displayed.
+     *  Calling this method is similar to calling the
+     *  dataProvider.itemUpdated() method, which advises the Grid that all rows
+     *  displaying the specified item should be redisplayed.
+     *  Using this method can be relatively efficient, since it narrows
+     *  the scope of the change to a single cell.

      *
      *  @param rowIndex The 0-based row index of the cell that changed, or -1.
+     *
      *  @param column Index The 0-based column index of the cell that changed or -1.
      *
      *  @langversion 3.0
@@ -3512,6 +3671,7 @@
     private var mouseDownColumnIndex:int = -1;

     /**
+     *  @private
      *  This method is called when a MOUSE_DOWN event occurs within the grid and
      *  for all subsequent MOUSE_MOVE events until the button is released (even if the
      *  mouse leaves the grid).  The last event in such a "down drag up" gesture is
@@ -3556,6 +3716,7 @@
     }

     /**
+     *  @private
      *  This method is called whenever a MOUSE_MOVE event occurs within the grid
      *  without the button pressed.  By default it dispatches a GRID_ROLL_OVER for the
      *  first MOUSE_MOVE GridEvent whose location is within a grid cell, and a
@@ -3589,6 +3750,7 @@
     }

     /**
+     *  @private
      *  This method is called whenever a ROLL_OUT occurs on the grid.
      *  By default it dispatches a GRID_ROLL_OUT event.
      *
@@ -3615,6 +3777,7 @@
     }

     /**
+     *  @private
      *  This method is called whenever a GRID_MOUSE_UP occurs on the grid.
      *  By default it dispatches a GRID_MOUSE_UP event.
      *
@@ -3645,6 +3808,7 @@
     }

     /**
+     *  @private
      *  This method is called whenever a CLICK MouseEvent occurs on the grid if both
      *  the corresponding down and up events occur within the same grid cell.
      *  By default it dispatches a GRID_CLICK event.
@@ -3669,6 +3833,7 @@
     }

     /**
+     *  @private
      *  This method is called whenever a DOUBLE_CLICK MouseEvent occurs on the grid
      *  if the corresponding sequence of down and up events occur within the same grid cell.
      *  By default it dispatches a GRID_DOUBLE_CLICK event.


Transferred from the Adobe Open Source Subversion Repository

Revision: 3668
Author:   gruehle@adobe.com
Date:     2008-10-15T22:25:04.618381Z

Log Message:
-----------
Fix for SDK-15941: selectedItem/selectedIndex does not render as selected.

Reviewer: Deepa

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -269,7 +269,22 @@
             }
         }
     }
-
+
+	/**
+	 *  Returns true if the item is selected.
+	 */
+    public function isItemSelected(item:Object):Boolean
+    {
+        if (allowMultipleSelection)
+        {
+            var itemIndex:int = dataProvider.getItemIndex(item);
+
+            return selectedIndices.indexOf(itemIndex) != -1;
+        }
+
+        return item == selectedItem;
+    }
+
     /**
      *  @inheritDoc
      */
@@ -401,6 +416,9 @@

         if (renderer)
             renderer.addEventListener("click", item_clickHandler);
+
+        if (isItemSelected(event.relatedObject))
+            itemSelected(event.relatedObject, true);
     }

     /**


changed geometry parsing priority from low to normal

--- WeaveData/src/weave/utils/GeometryStreamDecoder.as
+++ WeaveData/src/weave/utils/GeometryStreamDecoder.as
@@ -562,7 +562,7 @@

 			// Weave automatically triggers callbacks when all tasks complete
 			// low priority because the geometries can still be used even without all the detail.
-			WeaveAPI.StageUtils.startTask(this, task, WeaveAPI.TASK_PRIORITY_LOW);
+			WeaveAPI.StageUtils.startTask(this, task, WeaveAPI.TASK_PRIORITY_NORMAL);
 		}


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

--- frameworks/projects/rpc/src/mx/messaging/FlexClient.as
+++ frameworks/projects/rpc/src/mx/messaging/FlexClient.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 3265
Author:   gruehle@adobe.com
Date:     2008-09-19T00:02:31.677216Z

Log Message:
-----------
List bug fixes:
SDK-16914 Gumbo list horizontal layout is incorrect
SDK-16931 Gumbo list does not respond to click event

Both of these are recent injections.

Reviewer: Evtim

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

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -18,7 +18,6 @@
 import flex.skin.DefaultItemRenderer;

 import mx.core.ClassFactory;
-import mx.core.IFactory;

 /**
  *  The List class.
@@ -218,6 +217,40 @@
         if (item)
             item.selected = selected;
     }
+
+	/**
+	 *  Called when a skin part has been added or assigned.
+	 *  This method pushes the content, layout, itemRenderer, and
+	 *  itemRendererFunction properties down to the contentGroup
+	 *  skin part.
+	 */
+	override protected function partAdded(partName:String, instance:*):void
+	{
+		super.partAdded(partName, instance);
+		if (instance == dataGroup)
+		{
+			dataGroup.addEventListener(
+			    ItemExistenceChangedEvent.ITEM_ADD, dataGroup_itemAddHandler);
+			dataGroup.addEventListener(
+			    ItemExistenceChangedEvent.ITEM_REMOVE, dataGroup_itemRemoveHandler);
+		}
+	}
+
+	/**
+	 *  Called when a skin part is removed.
+	 */
+	override protected function partRemoved(partName:String, instance:*):void
+	{
+		if (instance == dataGroup)
+		{
+			dataGroup.removeEventListener(
+			    ItemExistenceChangedEvent.ITEM_ADD, dataGroup_itemAddHandler);
+			dataGroup.removeEventListener(
+			    ItemExistenceChangedEvent.ITEM_REMOVE, dataGroup_itemRemoveHandler);
+		}
+
+		super.partRemoved(partName, instance);
+	}

     //--------------------------------------------------------------------------
     //
@@ -313,11 +346,9 @@
      *  @private
      *  Called when an item has been added to this component.
      */
-    override protected function itemAddedHandler(item:*, index:int):void
-    {
-        super.itemAddedHandler(item, index);
-
-        var skin:* = dataGroup.getItemSkin(item);
+    private function dataGroup_itemAddHandler(event:ItemExistenceChangedEvent):void
+    {
+        var skin:* = dataGroup.getItemSkin(event.relatedObject);

         if (skin)
             skin.addEventListener("click", item_clickHandler);
@@ -327,11 +358,9 @@
      *  @private
      *  Called when an item has been removed from this component.
      */
-    override protected function itemRemovedHandler(item:*, index:int):void
-    {
-        super.itemRemovedHandler(item, index);
-
-        var skin:* = dataGroup.getItemSkin(item);
+    private function dataGroup_itemRemoveHandler(event:ItemExistenceChangedEvent):void
+    {
+        var skin:* = dataGroup.getItemSkin(event.relatedObject);

         if (skin)
             skin.removeEventListener("click", item_clickHandler);