flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [05/50] [abbrv] git commit: [flex-utilities] [refs/heads/master] - FLEX-34500 show total number of examples in Tour De Flex UI
Date Wed, 03 Sep 2014 22:49:46 GMT
FLEX-34500 show total number of examples in Tour De Flex UI


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

Branch: refs/heads/master
Commit: eaff755831d1ce5c7f845c8d76df7d3a7e406de1
Parents: daf9841
Author: Justin Mclean <jmclean@apache.org>
Authored: Wed Aug 27 14:17:56 2014 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Wed Aug 27 14:17:56 2014 +1000

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/explorer.mxml | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/eaff7558/TourDeFlex/TourDeFlex3/src/explorer.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/explorer.mxml b/TourDeFlex/TourDeFlex3/src/explorer.mxml
index 646827a..7a1443d 100755
--- a/TourDeFlex/TourDeFlex3/src/explorer.mxml
+++ b/TourDeFlex/TourDeFlex3/src/explorer.mxml
@@ -30,12 +30,17 @@
 		[Embed(source="explorer.xml", mimeType="application/octet-stream")]
 		private var XMLData:Class;
 			
+		[Bindable]
+		protected var noExamples:int = 0;
+			
 		private function init():void
 		{
 			var data:XML = XML(new XMLData());
 			
             explorerTree = XML(data.node);
             compLibTree.dataProvider = explorerTree;
+			
+			noExamples = (explorerTree..node.(hasOwnProperty("@app") && @app.length() >
0)).length();
 		}			
 
         private function treeChanged(event:Event):void
@@ -66,6 +71,8 @@
 	<mx:HBox width="100%">
 		<mx:Image source="./mx/controls/assets/ApacheFlexIcon.png" useHandCursor="true" buttonMode="true"
click="gotoHome(event)" />
 		<mx:Label text="{FULL_TITLE}" fontSize="20" fontWeight="bold" />
+		<mx:Spacer width="100%" />
+		<mx:Label text="{noExamples} examples" />
 	</mx:HBox>
     <mx:HDividedBox width="100%" height="100%">
         <mx:Panel width="30%" height="100%" title="{TITLE}" dropShadowVisible="false">


Mime
View raw message