flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-utilities] [refs/heads/develop] - made selection highlight go across list box and clicking and text now checked and unchecks checkbox
Date Sun, 06 Jul 2014 03:25:54 GMT
Repository: flex-utilities
Updated Branches:
  refs/heads/develop 2c52412cb -> 6dd5b121f


made selection highlight go across list box and clicking and text now checked and unchecks
checkbox


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/6dd5b121
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/6dd5b121
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/6dd5b121

Branch: refs/heads/develop
Commit: 6dd5b121faeb5d63c21635232fb6517d45856e0d
Parents: 2c52412
Author: Justin Mclean <jmclean@apache.org>
Authored: Sun Jul 6 13:25:33 2014 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Sun Jul 6 13:25:33 2014 +1000

----------------------------------------------------------------------
 .../itemrenderers/OptionalInstallItemRenderer.mxml   | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/6dd5b121/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml
----------------------------------------------------------------------
diff --git a/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml
b/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml
index f3e7700..e6ec22c 100644
--- a/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml
+++ b/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml
@@ -20,7 +20,7 @@ limitations under the License.
 <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
 				xmlns:s="library://ns.adobe.com/flex/spark" 
 				xmlns:mx="library://ns.adobe.com/flex/mx" 
-				autoDrawBackground="true" >
+				autoDrawBackground="true" width="100%">
 	<s:layout>
 		<s:HorizontalLayout verticalAlign="middle" gap="5" paddingLeft="5" />
 	</s:layout>
@@ -32,6 +32,7 @@ limitations under the License.
 		<![CDATA[
 			import org.apache.flex.packageflexsdk.model.InstallerComponentVO;
 			import org.apache.flex.packageflexsdk.view.events.InstallItemSelectionEvent;
+			
 			protected function checkbox1_changeHandler(event:Event):void
 			{
 				var e:InstallItemSelectionEvent = new InstallItemSelectionEvent(InstallItemSelectionEvent.INSTALL_ITEM_SELECTION_CHANGED,true);
@@ -39,10 +40,20 @@ limitations under the License.
 				e.item = InstallerComponentVO(data);
 				dispatchEvent(e);
 			}
+			
+			protected function text_changeHandler(checkbox:CheckBox):void
+			{
+				checkbox.selected = ! checkbox.selected;
+								
+				var e:InstallItemSelectionEvent = new InstallItemSelectionEvent(InstallItemSelectionEvent.INSTALL_ITEM_SELECTION_CHANGED,true);
+				data.selected = checkbox.selected; 
+				e.item = InstallerComponentVO(data);
+				dispatchEvent(e);
+			}
 		]]>
 	</fx:Script>
 	
 	<s:CheckBox id="checkbox1" selected="{data.selected}" enabled="true" change="checkbox1_changeHandler(event)"
 />
-	<s:Label text="{data.label}" fontFamily="openSansBold" fontSize="11"/>
+	<s:Label text="{data.label}" fontFamily="openSansBold" fontSize="11" click="text_changeHandler(checkbox1)"
width="100%" />
 	
 </s:ItemRenderer>


Mime
View raw message