flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370323 [2/12] - in /incubator/flex/trunk/mustella/tests/itemRenderers: ./ Assets/ Halo/ Halo/DataGrid/ Halo/DataGrid/SWFs/ Halo/DataGrid/SWFs/assets/ Halo/DataGrid/SWFs/comps/ Halo/DataGrid/SWFs/view/ Halo/DataGrid/baselines/ Halo/DataGri...
Date Tue, 07 Aug 2012 15:39:45 GMT
Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridComboBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridComboBox.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridComboBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridComboBox.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  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.
+
+-->
+<mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml"
+editable="true"  width="300" height="150"  >
+
+<mx:Script>
+  <![CDATA[
+      import mx.controls.ComboBox;
+
+  ]]>
+</mx:Script>
+<mx:columns>
+			 <mx:DataGridColumn  dataField="label" />
+			 <mx:DataGridColumn dataField="color"
+			     editorDataField="selectedItem" >
+			     <mx:itemEditor>
+			         <mx:Component>
+			             <mx:ComboBox>
+			                 <mx:dataProvider>
+			                     <mx:String>Red</mx:String>
+			                     <mx:String>Green</mx:String>
+			                     <mx:String>Blue</mx:String>
+			                     <mx:String>Black</mx:String>
+			                     <mx:String>White</mx:String>
+			                     <mx:String>Fuscia</mx:String>
+			                     <mx:String>Rose</mx:String>
+			                     <mx:String>Periwinkle</mx:String>
+			                     <mx:String>Yellow</mx:String>
+			                 </mx:dataProvider>
+			             </mx:ComboBox>
+			         </mx:Component>
+			     </mx:itemEditor>
+			 </mx:DataGridColumn>
+		 </mx:columns>
+	</mx:DataGrid>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridDateField.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridDateField.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridDateField.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridDateField.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  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.
+
+-->
+<mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+editable="true" width="300" height="150"  >
+
+<mx:Script>
+  <![CDATA[
+       import mx.controls.DateField;
+
+  ]]>
+</mx:Script>
+
+<mx:columns>
+			 <mx:DataGridColumn  dataField="label" />
+			 <mx:DataGridColumn itemEditor="mx.controls.DateField" dataField="shipDate"
+			    editorDataField="selectedDate" />
+		 </mx:columns>
+	</mx:DataGrid>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridNumericStepper.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridNumericStepper.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridNumericStepper.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/EditorDataGridNumericStepper.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  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.
+
+-->
+<mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+editable="true" width="300" height="150" >
+
+<mx:Script>
+  <![CDATA[
+       import mx.controls.NumericStepper;
+
+  ]]>
+</mx:Script>
+
+		 <mx:columns>
+			 <mx:DataGridColumn  dataField="label" />
+			 <mx:DataGridColumn itemEditor="mx.controls.NumericStepper" dataField="quantity"
+			     editorDataField="value" />
+		 </mx:columns>
+	</mx:DataGrid>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/LabelCheckComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/LabelCheckComp.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/LabelCheckComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/LabelCheckComp.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  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.
+
+-->
+<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" height="120" width="200" backgroundColor="0xDDDDDD">
+ <mx:Script>
+   public var checkBoxValue:Boolean;
+   private function changeData(): void
+   {
+      data.cdata = confirmed.selected;
+   }
+</mx:Script>
+<mx:Binding source="confirmed.selected" destination="checkBoxValue" />
+<mx:Label id="contact" text="{data.phone}"/>
+   <mx:CheckBox id="confirmed" label="Confirmed" click="changeData()" selected="{data.cdata}" />
+ </mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/LabelCheckComp2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/LabelCheckComp2.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/LabelCheckComp2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/LabelCheckComp2.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  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.
+
+-->
+
+
+<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" height="120" width="200" backgroundColor="0xFFFFFF">
+ <mx:Script>
+   public var mySelected:Boolean;
+   
+</mx:Script>
+<mx:Binding source="confirmed.selected" destination="mySelected" />
+
+
+<mx:Label id="contact" text="{data.phone}"/>
+   <mx:CheckBox id="confirmed" label="Confirmed" selected="{data.cdata}" />
+ </mx:HBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/ListImage.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/ListImage.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/ListImage.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/ListImage.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  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.
+
+-->
+<mx:List xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+    editable="false" width="300" height="150" rowHeight="32" labelField="url"
+    itemRenderer="mx.controls.Image" >
+
+<mx:Script>
+  <![CDATA[
+       import mx.controls.Image;
+
+  ]]>
+</mx:Script>
+
+</mx:List>
+

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/MyContact.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/MyContact.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/MyContact.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/MyContact.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  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.
+
+-->
+
+
+<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" height="200" width="300">
+   <mx:HBox>
+      <mx:Label id="title" text="{data.name}"/>
+      <mx:Label id="updatedText" color="0xFF0000" />
+   </mx:HBox>
+   <mx:Label id="contactLabel" text="Phone Number:"/>
+   <mx:Label id="contact" text="{data.phone}"/>
+   <mx:CheckBox id="confirmed" label="Confirmed" selected="{data.cdata}" />
+   <mx:Label text="change name:"/>
+   <mx:TextInput id="contact2" text="{data.name}" change="updatedText.text = 'updated';data.name=contact2.text" />
+ </mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/MyHeader.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/MyHeader.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/MyHeader.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/MyHeader.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  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.
+
+-->
+<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" height="48" >
+
+    <mx:Image source="assets/orb.jpg"/>
+    <mx:Label id="updatedText" text="hello" color="0xFF0000" />
+
+</mx:HBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/ScrollingComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/ScrollingComp.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/ScrollingComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/ScrollingComp.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  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.
+
+-->
+
+
+<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" height="120" width="200" backgroundColor="0xFFFFFF">
+ <mx:Script>
+   public var dummy:Boolean;
+   private function changeData(): void
+   {
+      dummy = confirmed.selected;
+   }
+
+</mx:Script>
+
+<mx:Label id="contact" text="{data.phone}"/>
+   <mx:CheckBox id="confirmed" label="Confirmed" click="changeData()" selected="{data.cdata}" />
+ </mx:HBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/SimpleComp2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/SimpleComp2.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/SimpleComp2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/comps/SimpleComp2.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+  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.
+
+-->
+<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" height="180" width="200" backgroundColor="0xFFFFFF" horizontalAlign="center" >
+<mx:Script>
+  public var selectedProp:Boolean;
+</mx:Script>
+<mx:Binding source="confirmed.selected" destination="selectedProp" />
+   <mx:Label id="title" text="{data.Artist}"/>
+   <mx:CheckBox id="confirmed" label="Confirmed" selected="{data.Available}" />
+ </mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_customTests.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_customTests.compile?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_customTests.compile (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_customTests.compile Tue Aug  7 15:39:33 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_customTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_customTests.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_customTests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_customTests.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="900" height="700"
+    xmlns:comps="comps.*" >
+<mx:Script>
+    <![CDATA[
+
+   import mx.collections.*;
+   import mx.controls.*;
+   import mx.controls.dataGridClasses.*;
+   import mx.controls.listClasses.*;
+   import mx.events.DataGridEvent;
+
+	[Bindable]
+	public var contacts1:Array = [
+		{Photo: 5}, {Photo: 6}, {Photo: 8}, {Photo: 10}
+	];
+
+	[Bindable]
+	public var ac:ArrayCollection = new ArrayCollection([
+		{col1:"col1-1",col2:"col2-1",col3:"col3-1",col4:null,col5:"col5-1",col6:"col6-1"},
+		{col1:"col1-2",col2:"col2-2",col3:"col3-2",col4:null,col5:"col5-2",col6:"col6-2"},
+		{col1:"col1-3",col2:"col2-3",col3:"col3-3",col4:null,col5:"col5-3",col6:"col6-3"},
+		{col1:"col1-4",col2:"col2-4",col3:"col3-4",col4:null,col5:"col5-4",col6:"col6-4"},
+		{col1:"col1-5",col2:"col2-5",col3:"col3-5",col4:null,col5:"col5-5",col6:"col6-5"},
+		{col1:"col1-6",col2:"col2-6",col3:"col3-6",col4:null,col5:"col5-6",col6:"col6-6"},
+		{col1:"col1-7",col2:"col2-7",col3:"col3-7",col4:null,col5:"col5-7",col6:"col6-7"},
+		{col1:"col1-8",col2:"col2-8",col3:"col3-8",col4:null,col5:"col5-8",col6:"col6-8"},
+		{col1:"col1-9",col2:"col2-9",col3:"col3-9",col4:null,col5:"col5-9",col6:"col6-9"},
+		{col1:"col1-10",col2:"col2-10",col3:"col3-10",col4:null,col5:"col5-10",col6:"col6-10"},
+		{col1:"col1-11",col2:"col2-11",col3:"col3-11",col4:null,col5:"col5-11",col6:"col6-11"},
+		{col1:"col1-12",col2:"col2-12",col3:"col3-12",col4:null,col5:"col5-12",col6:"col6-12"}
+	]);
+	
+	public function doTest(event:DataGridEvent):void
+	{
+		event.preventDefault();
+
+		if(event.columnIndex==2)
+		{
+			var myfocus:Object = {columnIndex:event.columnIndex, rowIndex:event.rowIndex};
+			dataGrid_basic.editedItemPosition = myfocus;
+			dataGrid_basic.createItemEditor(event.columnIndex, event.rowIndex);
+
+		    if (dataGrid_basic.editedItemRenderer is IDropInListItemRenderer && dataGrid_basic.itemEditorInstance is IDropInListItemRenderer)
+		    IDropInListItemRenderer(dataGrid_basic.itemEditorInstance).listData = IDropInListItemRenderer(dataGrid_basic.editedItemRenderer).listData;
+
+			dataGrid_basic.itemEditorInstance.data = dataGrid_basic.editedItemRenderer.data;
+		}
+	}
+
+	public function finishEdit(event:DataGridEvent) : void
+	{
+	    event.preventDefault();
+	    dataGrid_basic.destroyItemEditor();
+    }
+
+    public function changeLabel(obj:Object, col:Object):String
+	{
+	    if(obj.Available)
+	    {
+	       return "Yes";
+	    }
+	    else
+	    {
+	       return "No";
+	    }
+    }
+
+  ]]>
+</mx:Script>
+
+<mx:Style source="../../../../../Assets/Fonts/myStyles.css" />
+
+<mx:HBox>
+	<mx:DataGrid editable="true"  id="dataGrid_custom"
+		dataProvider="{contacts1}" width="300" >
+		<mx:columns>
+			<mx:DataGridColumn headerRenderer="comps.MyHeader" dataField="Photo" />
+		</mx:columns>
+	</mx:DataGrid>
+
+	<mx:DataGrid editable="true"  id="dataGrid_text"
+		dataProvider="{contacts1}" width="300" >
+		<mx:columns>
+			<mx:DataGridColumn headerRenderer="mx.controls.Text" dataField="Photo" />
+		</mx:columns>
+	</mx:DataGrid>
+</mx:HBox>
+
+<mx:HBox>
+	<mx:DataGrid editable="true"  id="dataGrid_label"
+		dataProvider="{contacts1}" width="300" >
+		<mx:columns>
+			<mx:DataGridColumn dataField="Photo" >
+			    <mx:headerRenderer>
+			        <mx:Component>
+			             <mx:Label color="0x0000FF" fontSize="15" />
+			        </mx:Component>
+			    </mx:headerRenderer>
+			</mx:DataGridColumn>
+		</mx:columns>
+	</mx:DataGrid>
+
+	<mx:DataGrid editable="true"  id="dataGrid_textinput"
+		dataProvider="{contacts1}" width="300" >
+		<mx:columns>
+			<mx:DataGridColumn headerRenderer="mx.controls.TextInput" dataField="Photo" />
+		</mx:columns>
+	</mx:DataGrid>
+</mx:HBox>
+
+<mx:HBox>
+    <mx:DataGrid id="dataGrid_basic" dataProvider="{contacts1}" />
+    <mx:DataGrid dataProvider="{ac}" editable="true" id="dataGrid_null">
+		<mx:columns>
+			<mx:DataGridColumn dataField="col3" editable="false"/>
+			<mx:DataGridColumn dataField="col4" itemRenderer="mx.controls.DateField" rendererIsEditor="true" editorDataField="selectedDate" />
+			<mx:DataGridColumn dataField="col5" editable="false"/>
+		</mx:columns>
+	</mx:DataGrid>
+</mx:HBox>
+
+ </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemEditorTests.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemEditorTests.compile?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemEditorTests.compile (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemEditorTests.compile Tue Aug  7 15:39:33 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemEditorTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemEditorTests.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemEditorTests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemEditorTests.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="700"
+    xmlns:comps="comps.*" >
+<mx:Style source="../../../../../Assets/Fonts/myStyles.css" />
+
+<mx:HBox>
+	<!-- CheckBox itemRenderer -->
+	<comps:EditorDataGridCheckBox  id="checkDataGrid2" />
+
+    <!--DateField itemRenderer -->
+	<comps:EditorDataGridDateField  id="dateDataGrid2" />
+</mx:HBox>
+
+<mx:HBox>
+	<!-- NumericStepper itemRenderer -->
+	<comps:EditorDataGridNumericStepper  id="nsDataGrid2" />
+
+	<!-- ComboBox itemRenderer -->
+	<comps:EditorDataGridComboBox  id="comboDataGrid2" />
+</mx:HBox>
+
+ </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemRendererTests.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemRendererTests.compile?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemRendererTests.compile (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemRendererTests.compile Tue Aug  7 15:39:33 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemRendererTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemRendererTests.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemRendererTests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/dataGrid_itemRendererTests.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="700"
+    xmlns:comps="comps.*" creationComplete="init()">
+<mx:Script>
+<![CDATA[
+        import flash.system.*;
+
+        private function init(): void
+        {
+            // Security.allowDomain("*");
+        }
+]]>
+</mx:Script>
+
+<mx:Style source="../../../../../Assets/Fonts/myStyles.css" />
+
+<mx:HBox>
+	<!-- CheckBox itemRenderer -->
+	<comps:DataGridCheckBox  id="checkDataGrid" />
+
+	<!-- Button itemRenderer -->
+	<comps:DataGridButton  id="buttonDataGrid" />
+</mx:HBox>
+
+<mx:HBox>
+	<!-- NumericStepper itemRenderer -->
+	<comps:DataGridNumericStepper  id="nsDataGrid" />
+
+	<!-- ComboBox itemRenderer -->
+	<comps:DataGridComboBox  id="comboDataGrid" />
+</mx:HBox>
+
+<mx:HBox>
+	<!--DateField itemRenderer -->
+	<comps:DataGridDateField  id="dateDataGrid" />
+
+	<!-- Label itemRenderer -->
+	<comps:DataGridLabel  id="labelDataGrid" />
+
+</mx:HBox>
+
+<mx:HBox>
+	<!-- Image itemRenderer -->
+	<comps:DataGridText  id="textDataGrid" />
+
+	<!-- Text itemRenderer -->
+	<comps:DataGridImage  id="imageDataGrid" />
+
+</mx:HBox>
+
+ </mx:Application>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/view/TileRenderer.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/view/TileRenderer.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/view/TileRenderer.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/SWFs/view/TileRenderer.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  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.
+
+-->
+<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
+	horizontalAlign="center"
+	verticalAlign="middle"
+	height="100" width="100">
+	<mx:VBox backgroundColor="#FFFFFF" height="90%" width="90%"
+		horizontalAlign="center"
+		verticalAlign="middle">
+		<mx:Image source="assets/{data.software_logo}"/>
+		<mx:Label text="{data.software_nickname}"
+			fontSize="10"
+			fontWeight="bold"/>
+	</mx:VBox>
+</mx:VBox>

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/AIRnumStepperItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/AIRnumStepperItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/AIRnumStepperItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/bug148528.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/bug148528.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/bug148528.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/buttonRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/buttonRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/buttonRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/checkBoxItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/checkBoxItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/checkBoxItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/checkBoxRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/checkBoxRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/checkBoxRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/comboBoxItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/comboBoxItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/comboBoxItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/comboBoxRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/comboBoxRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/comboBoxRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/custom_headerRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/custom_headerRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/custom_headerRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/custom_headerRendererAS.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/custom_headerRendererAS.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/custom_headerRendererAS.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/dateFieldItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/dateFieldItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/dateFieldItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/dateFieldRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/dateFieldRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/dateFieldRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/headerRenderer_icon.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/headerRenderer_icon.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/headerRenderer_icon.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/imageRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/imageRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/imageRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/labelRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/labelRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/labelRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/label_headerRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/label_headerRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/label_headerRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/numStepperItemEditor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/numStepperItemEditor.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/numStepperItemEditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/numStepperRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/numStepperRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/numStepperRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/textRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/textRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/textRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/text_headerRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/text_headerRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/text_headerRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/textinput_headerRenderer.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/textinput_headerRenderer.png?rev=1370323&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/baselines/textinput_headerRenderer.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/test_scripts/DataGrid_customRenderers.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/test_scripts/DataGrid_customRenderers.mxml?rev=1370323&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/test_scripts/DataGrid_customRenderers.mxml (added)
+++ incubator/flex/trunk/mustella/tests/itemRenderers/Halo/DataGrid/test_scripts/DataGrid_customRenderers.mxml Tue Aug  7 15:39:33 2012
@@ -0,0 +1,408 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  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.
+
+-->
+<UnitTester testDir="itemRenderers/Halo/DataGrid/test_scripts/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataGrid_customTests.mxml">
+
+    <mx:Script>
+	<![CDATA[
+
+		import mx.controls.*;
+		import mx.core.*;
+		import comps.MyHeader;
+		import comps.SimpleComp2;
+		import comps.LabelCheckComp;
+		import comps.LabelCheckComp2;
+		import data.AlbumDataAS;
+		import data.DaysDataAS;
+		import data.NameDataAS;
+
+        public static function init(o:DisplayObject):void
+		{
+
+		}
+
+		private function createData(dgTarget:DataGrid): void
+		{
+			var newDP:AlbumDataAS = new AlbumDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+
+		private function createData2(dgTarget:DataGrid): void
+		{
+			var newDP:DaysDataAS = new DaysDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+
+		private function createData3(dgTarget:DataGrid): void
+		{
+			var newDP:NameDataAS = new NameDataAS();
+			dgTarget.dataProvider = newDP.myData;
+		}
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+	<testCases>
+    <!--custom headerRenderer-->
+        <TestCase testID="CustomHeaderRenderer_VisualCheck" description="DataGrid with a custom headerRenderer set in mxml" keywords="[headerRenderer, DataGrid]">
+			<body>
+			   <!--AssertEvent target="dataGrid_custom.mx_internal:rendererArray.0.0.getChildAt(0)" eventName="complete" eventClass="flash.events::Event" /-->
+			   <!--Pause timeout="200" /-->
+			    <WaitForEffectsToEnd />
+			   <CompareBitmap url="../baselines/custom_headerRenderer.png" target="dataGrid_custom.mx_internal:rendererArray.0.0" />
+			</body>
+		</TestCase>
+	 <!-- Text headerRenderer-->
+	        <TestCase testID="TextHeaderRenderer_VisualCheck" description="DataGrid with a Text headerRenderer set in mxml" keywords="[headerRenderer, Text, DataGrid]">
+				<body>
+				   <CompareBitmap url="../baselines/text_headerRenderer.png" target="dataGrid_text.mx_internal:rendererArray.0.0" />
+				</body>
+		</TestCase>
+	 <!-- TextInput headerRenderer-->
+	        <TestCase testID="TextInputHeaderRenderer_VisualCheck" description="DataGrid with a TextInput headerRenderer set in mxml" keywords="[headerRenderer, TextInput, DataGrid]">
+				<body>
+				   <CompareBitmap url="../baselines/textinput_headerRenderer.png" target="dataGrid_textinput.mx_internal:rendererArray.0.0" />
+				</body>
+		</TestCase>
+	 <!-- Label headerRenderer-->
+	    <TestCase testID="LabelHeaderRenderer_VisualCheck" description="DataGrid with a Label headerRenderer set in mxml" keywords="[headerRenderer, Label, DataGrid]">
+				<body>
+				   <CompareBitmap url="../baselines/label_headerRenderer.png" target="dataGrid_label.mx_internal:rendererArray.0.0" />
+				</body>
+		</TestCase>
+     <!--custom headerRenderer in AS -->
+	         <TestCase testID="CustomHeaderRenderer_AS" description="DataGrid with a custom headerRenderer set in mxml" keywords="[headerRenderer, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <SetProperty target="dataGrid_basic" propertyName="dataProvider" valueExpression="value=application.contacts1"  waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic.columns.0" propertyName="headerRenderer" valueExpression="value=new ClassFactory(MyHeader)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <AssertEvent eventName="complete" target="dataGrid_basic.mx_internal:rendererArray.0.0.getChildAt(0)" eventClass="flash.events::Event" />
+	 			   <CompareBitmap url="../baselines/custom_headerRendererAS.png" target="dataGrid_basic.mx_internal:rendererArray.0.0" />
+	 			</body>
+		</TestCase>
+     <!-- createEditor test -->
+	         <TestCase testID="method_createEditor" description="Call createEditor in the itemEditBegin function for a DataGridColumn" keywords="[createEditor, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(CheckBox)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="selected"  />
+	 			   <RunCode code="application.dataGrid_basic.addEventListener('itemEditBegin', application.doTest)"   />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <DispatchMouseClickEvent target="dataGrid_basic.itemEditorInstance" localX="5" localY="5" waitEvent="click" waitTarget="dataGrid_basic.itemEditorInstance" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				   <AssertPropertyValue target="dataGrid_basic.dataProvider.0" propertyName="Available" value="false" />
+	 			</body>
+		</TestCase>
+<!-- destroyEditor test -->
+	         <TestCase testID="method_destroyEditor" description="Call destroyEditor in the itemEditEnd function for a DataGridColumn" keywords="[destroyEditor, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData2(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(NumericStepper)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="value"  />
+	 			   <RunCode code="application.dataGrid_basic.addEventListener('itemEditEnd', application.finishEdit)"   />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <DispatchMouseClickEvent target="dataGrid_basic.itemEditorInstance.getChildAt(2)" localX="3" localY="3" waitEvent="click" waitTarget="dataGrid_basic.itemEditorInstance.getChildAt(2)" />
+	 			   <DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				   <AssertPropertyValue target="dataGrid_basic.dataProvider.0" propertyName="Tuesday" value="3" />
+	 			</body>
+		</TestCase>
+<!-- editedItemRenderer test -->
+	         <TestCase testID="property_editedItemRendererCustom" description="Property: editedItemRenderer for a custom itemRenderer" keywords="[editedItemRenderer, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(SimpleComp2)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="selectedProp"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="labelFunction" valueExpression="value=application.changeLabel" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <DispatchMouseClickEvent target="dataGrid_basic.itemEditorInstance.getChildAt(1)" localX="8" localY="8" waitEvent="click" waitTarget="dataGrid_basic.itemEditorInstance.getChildAt(1)" />
+	 			   <AssertPropertyValue target="dataGrid_basic.editedItemRenderer.data" propertyName="Available" value="true" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				   </body>
+		</TestCase>
+<!-- editorHeightOffset test -->
+	         <TestCase testID="property_editorHeightOffset_Positive" description="Property: Set editorHeightOffset to a positive number" keywords="[editorHeightOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorHeightOffset" value="40" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="height" value="100" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorHeightOffset_Zero" description="Property: Set editorHeightOffset to zero" keywords="[editorHeightOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorHeightOffset" value="0" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="height" value="60" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorHeightOffset_Negative" description="Property: Set editorHeightOffset to a negative number" keywords="[editorHeightOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorHeightOffset" value="-20" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="height" value="40" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+<!-- editorWidthOffset test -->
+	         <TestCase testID="property_editorWidthOffset_Positive" description="Property: Set editorWidthOffset to a positive number" keywords="[editorWidthOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorWidthOffset" value="40" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="width" value="100" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="width" value="140" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorWidthOffset_Zero" description="Property: Set editorWidthOffset to zero" keywords="[editorWidthOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorWidthOffset" value="0" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="width" value="100" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="width" value="100" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorWidthOffset_Negative" description="Property: Set editorWidthOffset to a negative number" keywords="[editorWidthOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorWidthOffset" value="-20" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="width" value="100" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="width" value="80" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+<!-- editorXOffset test -->
+	         <TestCase testID="property_editorXOffset_Positive" description="Property: Set editorXOffset to a positive number" keywords="[editorXOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorXOffset" value="41" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="x" value="239" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorXOffset_Zero" description="Property: Set editorXOffset to zero" keywords="[editorXOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorXOffset" value="0" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="x" value="198" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorXOffset_Negative" description="Property: Set editorXOffset to a negative number" keywords="[editorXOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorXOffset" value="-19" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="width" value="400" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="x" value="179" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+<!-- editorYOffset test -->
+	         <TestCase testID="property_editorYOffset_Positive" description="Property: Set editorYOffset to a positive number" keywords="[editorYOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorYOffset" value="40" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="y" value="40" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorYOffset_Zero" description="Property: Set editorYOffset to zero" keywords="[editorYOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorYOffset" value="0" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="y" value="0" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+        <TestCase testID="property_editorYOffset_Negative" description="Property: Set editorYOffset to a negative number" keywords="[editorYOffset, DataGrid]">
+	 			<setup>
+	 			    <ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			    <RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			</setup>
+	 			<body>
+	 			   <SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp)"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorDataField" value="checkBoxValue"  />
+	 			   <SetProperty target="dataGrid_basic.columns.2" propertyName="editorYOffset" value="-20" />
+	 			   <SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.2" localX="5" localY="5" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+	               <AssertPropertyValue target="dataGrid_basic.itemEditorInstance" propertyName="y" value="-20" />
+	 			   <DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+	               <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+				</body>
+		</TestCase>
+		<TestCase testID="itemEditors_customComponent" description="Property: itemEditor is set to a custom component" keywords="[itemEditor, Custom Component, DataGrid]">
+			 	<setup>
+			 		<ResetComponent target="dataGrid_basic" className="mx.controls.DataGrid" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 		<RunCode code="createData3(application.dataGrid_basic)" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 		<SetProperty propertyName="width" target="dataGrid_basic.columns.0" value="120" />
+			 	</setup>
+			 	<body>
+			 		<SetProperty target="dataGrid_basic" propertyName="editable" value="true" />
+			 		<SetProperty target="dataGrid_basic.columns.0" propertyName="itemEditor" valueExpression="value=new ClassFactory(LabelCheckComp2)"  />
+			 		<SetProperty target="dataGrid_basic.columns.0" propertyName="editorDataField" value="mySelected"  />
+			 		<SetProperty target="dataGrid_basic" propertyName="rowHeight" value="60" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			 		<DispatchMouseClickEvent target="dataGrid_basic.mx_internal:rendererArray.1.0" localX="10" localY="10" waitEvent="updateComplete" waitTarget="dataGrid_basic" />
+			        <DispatchMouseClickEvent target="dataGrid_basic.itemEditorInstance.getChildAt(1)" localX="8" localY="8" waitEvent="click" waitTarget="dataGrid_basic.itemEditorInstance.getChildAt(1)" />
+			 		<DispatchMouseClickEvent target="" localX="5" localY="5" waitEvent="itemEditEnd" waitTarget="dataGrid_basic" />
+			        <AssertEvent eventName="itemEditEnd" eventClass="mx.events::DataGridEvent" target="dataGrid_basic" />
+			        <AssertPropertyValue target="dataGrid_basic.dataProvider.0" propertyName="cdata" value="false" />
+				 </body>
+		</TestCase>
+		<TestCase testID="DateField_nullItemRenderer" description="This is a test to cover bug SDK-11277 which uses null DateField itemRenderers"
+		    keywords="[DateField, itemRenderer, scroll, DataGrid]" >
+		         <setup>
+		    		<RunCode code="FlexGlobals.topLevelApplication.ac.setItemAt({col1:'col1-2',col2:'col2-2',col3:'col3-2',col4:new Date(2005, 2, 5),col5:'col5-2',col6:'col6-2'}, 1)" waitEvent="updateComplete" waitTarget="dataGrid_null"/>
+		         </setup>
+		         <body>
+		            <DispatchMouseClickEvent target="dataGrid_null.mx_internal:vScrollBar" localX="4" localY="109" waitEvent="scroll" waitTarget="dataGrid_null" />
+		            <DispatchMouseClickEvent target="dataGrid_null.mx_internal:vScrollBar" localX="4" localY="25" waitEvent="scroll" waitTarget="dataGrid_null" />
+		            <AssertPropertyValue target="dataGrid_null.mx_internal:rendererArray.1.1.getChildAt(2)" value="" propertyName="text" />
+		            <AssertPropertyValue target="dataGrid_null.mx_internal:rendererArray.2.1.getChildAt(2)" value="03/05/2005" propertyName="text" />
+		            <AssertPropertyValue target="dataGrid_null.mx_internal:rendererArray.4.1.getChildAt(2)" value="" propertyName="text" />
+		            <AssertPropertyValue target="dataGrid_null.mx_internal:rendererArray.3.1.getChildAt(2)" value="" propertyName="text" />
+		         </body>
+		 </TestCase>
+	</testCases>
+</UnitTester>



Mime
View raw message