You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2016/10/21 09:07:55 UTC

[42/49] git commit: [flex-asjs] [refs/heads/feature-autobuild/maven-archetypes] - Cleaned up the example MobileStocks source code.

Cleaned up the example MobileStocks source code.


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

Branch: refs/heads/feature-autobuild/maven-archetypes
Commit: f25cfe8b465b1a805edc1fa5fc2c21230231e944
Parents: 533016f
Author: Peter Ent <pe...@apache.org>
Authored: Wed Oct 19 14:47:17 2016 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Oct 19 14:47:17 2016 -0400

----------------------------------------------------------------------
 .../flexjs/MobileStocks/src/MobileStocks.mxml   |  13 +-
 .../flexjs/MobileStocks/src/MyInitialView.mxml  |  30 +---
 .../src/controller/AlertsViewController.as      | 141 -------------------
 .../flexjs/MobileStocks/src/models/Alert.as     |  94 -------------
 .../flexjs/MobileStocks/src/models/Asset.as     |  77 ----------
 .../MobileStocks/src/models/AssetsModel.as      |  57 --------
 .../MobileStocks/src/models/ProductsModel.as    |  26 ----
 .../MobileStocks/src/views/AlertsView.mxml      | 102 --------------
 .../MobileStocks/src/views/AssetsView.mxml      | 125 ----------------
 .../MobileStocks/src/views/LaunchView.mxml      |  20 +--
 .../MobileStocks/src/views/SearchView.mxml      |  37 -----
 11 files changed, 18 insertions(+), 704 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/MobileStocks.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/MobileStocks.mxml b/examples/flexjs/MobileStocks/src/MobileStocks.mxml
index 22d17c0..1d30b37 100644
--- a/examples/flexjs/MobileStocks/src/MobileStocks.mxml
+++ b/examples/flexjs/MobileStocks/src/MobileStocks.mxml
@@ -23,19 +23,10 @@ limitations under the License.
 					  xmlns:views="views.*"
 					  xmlns:js="library://ns.apache.org/flexjs/basic" 
 				      xmlns:cordova="library://ns.apache.org/flexjs/cordova"
-					  xmlns:controller="controller.*" 
-					  applicationComplete="showDetails()">
+					  >
 	<fx:Declarations>
 		<!-- Place non-visual elements (e.g., services, value objects) here -->
 	</fx:Declarations>
-	<fx:Script>
-		<![CDATA[
-			private function showDetails():void
-			{
-				trace("Size is "+width+" x "+height);
-			}
-		]]>
-	</fx:Script>
 	
 	<js:valuesImpl>
 		<js:SimpleCSSValuesImpl />
@@ -53,8 +44,6 @@ limitations under the License.
 		<cordova:Weinre guid="aharui" />
 		<js:MixinManager />
 		<js:DeviceSizeBead />
-		//native application and compile with air global airbeads.
-		//need orientation beads, size beads.
 	</js:beads>
 	
 	

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/MyInitialView.mxml b/examples/flexjs/MobileStocks/src/MyInitialView.mxml
index 1dc27a3..b6853e2 100755
--- a/examples/flexjs/MobileStocks/src/MyInitialView.mxml
+++ b/examples/flexjs/MobileStocks/src/MyInitialView.mxml
@@ -85,16 +85,6 @@ limitations under the License.
 			background-image: url('assets/arrow_left_24.png');
 		}
 		
-		.AssetsInner {
-			padding-top: 5px;
-			background-color: #FFFFFF;
-		}
-		
-		views|AssetsView {
-			width: 100%;
-			height: 100%;
-		}
-		
 		views|LaunchView {
 			width: 100%;
 			height: 100%;
@@ -133,12 +123,6 @@ limitations under the License.
 			height: 100%;
 		}
 		
-		views|AlertsView {
-			width: 100%;
-			height: 100%;
-			IBeadController:ClassReference('controller.AlertsViewController');
-		}
-		
 		.redCell {
 			color: #FF0000;
 		}
@@ -213,20 +197,16 @@ limitations under the License.
 				(applicationModel as ProductsModel).loadDataFromStorage();
 			}
 			
-			private function onAssetsNext():void
-			{
-				
-			}
-			
+			/* debugging */
 			private function tabbedViewChanged(event:org.apache.flex.events.Event):void
 			{
-				var manager:IViewManager = event.currentTarget as IViewManager;
-				trace("TabbedViewChanged for "+manager);
+				//var manager:IViewManager = event.currentTarget as IViewManager;
+				//trace("TabbedViewChanged for "+manager);
 			}
 			
 			private function watchListStackChanged(event:org.apache.flex.events.Event):void
 			{
-				trace("watchlist stack changed");
+				//trace("watchlist stack changed");
 				var manager:StackedViewManager = event.currentTarget as StackedViewManager;
 				
 				var currentView:IViewManagerView = manager.selectedView;
@@ -258,7 +238,7 @@ limitations under the License.
 		<js:views>
 			<js:StackedViewManager title="Assets">
 				<js:views>
-					<views:LaunchView id="assetsView" title="Assets" next="onAssetsNext()" dataModel="{applicationModel}" />
+					<views:LaunchView id="assetsView" title="Assets" dataModel="{applicationModel}" />
 				</js:views>
 			</js:StackedViewManager>
 			

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/controller/AlertsViewController.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/controller/AlertsViewController.as b/examples/flexjs/MobileStocks/src/controller/AlertsViewController.as
deleted file mode 100644
index 76f230a..0000000
--- a/examples/flexjs/MobileStocks/src/controller/AlertsViewController.as
+++ /dev/null
@@ -1,141 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package controller
-{
-	import models.Alert;
-	import models.ProductsModel;
-	import models.Stock;
-	
-	import org.apache.flex.core.IBeadController;
-	import org.apache.flex.core.IBeadModel;
-	import org.apache.flex.core.IStrand;
-	import org.apache.flex.events.Event;
-	import org.apache.flex.events.EventDispatcher;
-	import org.apache.flex.utils.Timer;
-	import org.apache.flex.collections.ArrayList;
-	
-	import views.AlertsView;
-	
-	public class AlertsViewController extends EventDispatcher implements IBeadController
-	{
-		public function AlertsViewController()
-		{
-			super();
-			
-			timer = new Timer(updateInterval, 0);
-			timer.addEventListener("timer", timerHandler);
-		}
-		
-		public var updateInterval:Number = 5000;
-		
-		protected var timer:Timer;
-			
-		private var _strand:IStrand;
-		
-		public function set strand(value:IStrand):void
-		{
-			_strand = value;
-			
-			var view:AlertsView = value as AlertsView;
-			view.addEventListener("alertSet", handleAlertSet);
-		}
-		
-		private var _model:IBeadModel;
-		public function set model(value:IBeadModel):void
-		{
-			_model = value;
-		}
-		public function get model():IBeadModel
-		{
-			return _model;
-		}
-		
-		private function handleAlertSet(event:Event):void
-		{
-			var view:AlertsView = _strand as AlertsView;
-			
-			var sym:String = view.symbolField.text.toUpperCase();
-			var value:Number = Number(view.valueField.text);
-			
-			var alert:Alert = new Alert();
-			alert.symbol = sym;
-			alert.value = value;
-			alert.greaterThan = view.higherCheck.selected;
-			
-			// add this stock to the watch list in case it isn't there already
-			alert.stock = (model as ProductsModel).addStockToWatchList(sym);
-			
-			// set up the alert for the stock
-			(model as ProductsModel).addAlert(alert);
-			
-			view.symbolField.text = "";
-			view.valueField.text = "";
-			
-			subscribe();
-		}
-		
-		public function subscribe():void
-		{
-			if (!timer.running) 
-			{
-				timer.start();
-			}
-		}
-		
-		public function unsubscribe():void
-		{
-			if (timer.running) 
-			{
-				timer.stop();
-			}
-		}
-		
-		/**
-		 * When the timer goes off, verify all of the alerts against each stocks' last
-		 * price.
-		 */
-		protected function timerHandler(event:*):void
-		{
-			var alerts:ArrayList = (model as ProductsModel).alerts;
-			
-			if (alerts.length == 0) return;
-			
-			for (var i:int=0; i < alerts.length; i++)
-			{
-				var alert:Alert = alerts.getItemAt(i) as Alert;
-				alert.message = "";
-				
-				if (alert.greaterThan) {
-					if (alert.stock.last >= alert.value) {
-						alert.message = "Now @"+alert.stock.last;
-					}
-				}
-				else {
-					if (alert.stock.last <= alert.value) {
-						alert.message = "Now @"+alert.stock.last;
-					}
-				}
-				alerts.itemUpdatedAt(i);
-			}
-			
-			var newEvent:Event = new Event("alertsUpdate");
-			model.dispatchEvent(newEvent);
-		}
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/models/Alert.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/models/Alert.as b/examples/flexjs/MobileStocks/src/models/Alert.as
deleted file mode 100644
index 7b9dc8b..0000000
--- a/examples/flexjs/MobileStocks/src/models/Alert.as
+++ /dev/null
@@ -1,94 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package models
-{
-	import org.apache.flex.events.Event;
-	import org.apache.flex.events.EventDispatcher;
-
-	public class Alert extends EventDispatcher
-	{
-		public function Alert()
-		{
-			super();
-			message = "";
-		}
-		
-		private var _symbol:String;
-		private var _value:Number;
-		private var _greaterThan:Boolean;
-		private var _message:String;
-		private var _stock:Stock;
-		
-		[Binding("symbolChanged")]
-		public function get symbol():String
-		{
-			return _symbol;
-		}
-		public function set symbol(value:String):void
-		{
-			_symbol = value;
-			dispatchEvent(new Event("symbolChanged"));
-		}
-		
-		[Binding("messageChanged")]
-		public function get message():String
-		{
-			return _message;
-		}
-		public function set message(value:String):void
-		{
-			_message = value;
-			dispatchEvent(new Event("messageChanged"));
-		}
-		
-		[Binding("valueChanged")]
-		public function get value():Number
-		{
-			return _value;
-		}
-		public function set value(newValue:Number):void
-		{
-			_value = newValue;
-			dispatchEvent(new Event("valueChanged"));
-		}
-		
-		[Binding("greaterThanChanged")]
-		public function get greaterThan():Boolean
-		{
-			return _greaterThan;
-		}
-		public function set greaterThan(value:Boolean):void
-		{
-			_greaterThan = value;
-			dispatchEvent(new Event("greaterThanChanged"));
-		}
-		
-		[Binding("stockChanged")]
-		public function get stock():Stock
-		{
-			return _stock;
-		}
-		public function set stock(value:Stock):void
-		{
-			_stock = value;
-			dispatchEvent(new Event("stockChanged"));
-		}
-		
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/models/Asset.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/models/Asset.as b/examples/flexjs/MobileStocks/src/models/Asset.as
deleted file mode 100644
index 869ba72..0000000
--- a/examples/flexjs/MobileStocks/src/models/Asset.as
+++ /dev/null
@@ -1,77 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package models
-{
-	import org.apache.flex.events.Event;
-	import org.apache.flex.events.EventDispatcher;
-
-	public class Asset extends EventDispatcher
-	{
-		private var _label:String;
-		private var _value:Number;
-		private var _netChange:Number;
-
-		public function Asset(newLabel:String, newValue:Number, newNetChange:Number)
-		{
-			_label = newLabel;
-			_value = newValue;
-			_netChange = newNetChange;
-		}
-
-		[Bindable("labelChanged")]
-		public function get label():String
-		{
-			return _label;
-		}
-		public function set label(value:String):void
-		{
-			if (value != _label) {
-				_label = value;
-			dispatchEvent(new Event("labelChanged"));
-			}
-		}
-
-		[Bindable("valueChanged")]
-		public function get value():Number
-		{
-			return _value;
-		}
-		public function set value(newValue:Number):void
-		{
-			if (_value != newValue) {
-				_value = newValue;
-			dispatchEvent(new Event("valueChanged"));
-			}
-		}
-
-		[Bindable("netChangeChanged")]
-		public function get netChange():Number
-		{
-			return _netChange;
-		}
-		public function set netChange(value:Number):void
-		{
-			if (_netChange != value) {
-				_netChange = value;
-			dispatchEvent(new Event("netChangeChanged"));
-			}
-		}
-	}
-
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/models/AssetsModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/models/AssetsModel.as b/examples/flexjs/MobileStocks/src/models/AssetsModel.as
deleted file mode 100755
index 3d72137..0000000
--- a/examples/flexjs/MobileStocks/src/models/AssetsModel.as
+++ /dev/null
@@ -1,57 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package models
-{
-	import org.apache.flex.core.IBeadModel;
-	import org.apache.flex.core.IStrand;
-	import org.apache.flex.events.EventDispatcher;
-	import org.apache.flex.collections.ArrayList;
-
-	public class AssetsModel extends EventDispatcher implements IBeadModel
-	{
-		public function AssetsModel()
-		{
-			super();
-			_assetsData = new ArrayList();
-			_assetsData.source = source;
-		}
-		private var source:Array = [
-			new Asset("NetWorth:", 161984, 2.36),
-			new Asset("Last Month:", 165915, 10.98),
-			new Asset("6 Months Ago:", 145962, 16.56),
-			new Asset("Last Year:", 138972, 8.36)
-		];
-		private var _assetsData:ArrayList;
-
-		public function get assetsData():ArrayList
-		{
-			return _assetsData;
-		}
-
-		public function get assetsDataAsArray():Array
-		{
-		    return source;
-		}
-
-		public function set strand(value:IStrand):void
-		{
-			// not used
-		}
-	}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/models/ProductsModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/models/ProductsModel.as b/examples/flexjs/MobileStocks/src/models/ProductsModel.as
index b807e19..ab7689e 100755
--- a/examples/flexjs/MobileStocks/src/models/ProductsModel.as
+++ b/examples/flexjs/MobileStocks/src/models/ProductsModel.as
@@ -267,31 +267,5 @@ package models
 			}
 
 		}
-
-
-
-
-		// discard alerts
-		private var _alerts:ArrayList;
-
-		public function get alerts():ArrayList
-		{
-			return _alerts;
-		}
-
-		public function addAlert(value:Alert):void
-		{
-			for (var i:int =0; i < _alerts.length; i++)
-			{
-				var alert:Alert = _alerts.getItemAt(i) as Alert;
-				if (alert.symbol == value.symbol) {
-					_alerts.setItemAt(value, i);
-					return;
-				}
-			}
-
-			_alerts.addItem(value);
-			dispatchEvent(new Event("alertsUpdate"));
-		}
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/views/AlertsView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/views/AlertsView.mxml b/examples/flexjs/MobileStocks/src/views/AlertsView.mxml
deleted file mode 100755
index 3cc2b79..0000000
--- a/examples/flexjs/MobileStocks/src/views/AlertsView.mxml
+++ /dev/null
@@ -1,102 +0,0 @@
-<?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.
-
--->
-<js:TitleView xmlns:fx="http://ns.adobe.com/mxml/2009"
-			 title="Alerts"
-				       xmlns:js="library://ns.apache.org/flexjs/basic"
-				       xmlns:local="*"
-				       className="AlertsView" xmlns:renderers="renderers.*">
-	
-	<fx:Metadata>
-		[Event("next")]
-	</fx:Metadata>
-	
-	<fx:Script>
-		<![CDATA[			
-			import org.apache.flex.core.IBeadModel;
-			import org.apache.flex.core.IBeadController;
-			import org.apache.flex.events.Event;
-			import controller.AlertsViewController;
-			
-			public function set dataModel(value:IBeadModel):void
-			{
-				var cm:IBeadController = controller;
-				(cm as AlertsViewController).model = value;
-			}
-			public function get dataModel():IBeadModel
-			{
-				var cm:IBeadController = controller;
-				return (cm as AlertsViewController).model;
-			}
-
-			private function onAlertSet():void
-			{
-				dispatchEvent(new org.apache.flex.events.Event("alertSet"));
-			}
-		]]>
-	</fx:Script>
-		
-	<js:Container x="4" y="10" >
-		<js:beads>
-			<js:HorizontalLayout />
-		</js:beads>
-		<js:Label text="Symbol:" />
-		<js:TextInput id="symbolField" width="50" />
-		<js:Label text="Value:" />
-		<js:TextInput id="valueField" width="50" />
-		<js:CheckBox text="Higher?" id="higherCheck" />
-		<js:TextButton text="Set" click="onAlertSet()" />
-	</js:Container>
-	
-	<js:DataGrid id="dataGrid" x="0" y="40" width="100%" height="200">
-		<js:beads>
-			<js:DataProviderChangeNotifier sourceID="dataModel" propertyName="alerts"
-										   destinationPropertyName="dataProvider" changeEventName="dataProviderChanged" />
-			<js:SimpleBinding
-				eventName="alertsUpdate"
-				sourceID="dataModel"
-				sourcePropertyName="alerts"
-				destinationPropertyName="dataProvider" />
-		</js:beads>
-		<js:columns>
-			<js:DataGridColumn label="Symbol" dataField="symbol">
-				<js:itemRenderer>
-					<fx:Component>
-						<js:StringItemRenderer />
-					</fx:Component>
-				</js:itemRenderer>
-			</js:DataGridColumn>
-			<js:DataGridColumn label="Alert" dataField="greaterThan">
-				<js:itemRenderer>
-					<fx:Component>
-						<renderers:AlertRenderer />
-					</fx:Component>
-				</js:itemRenderer>
-			</js:DataGridColumn>
-			<js:DataGridColumn label="Message" dataField="message">
-				<js:itemRenderer>
-					<fx:Component>
-						<js:StringItemRenderer />
-					</fx:Component>
-				</js:itemRenderer>
-			</js:DataGridColumn>
-		</js:columns>
-	</js:DataGrid>
-	
-</js:TitleView>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/views/AssetsView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/views/AssetsView.mxml b/examples/flexjs/MobileStocks/src/views/AssetsView.mxml
deleted file mode 100755
index 944e759..0000000
--- a/examples/flexjs/MobileStocks/src/views/AssetsView.mxml
+++ /dev/null
@@ -1,125 +0,0 @@
-<?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.
-
--->
-<js:TitleView xmlns:fx="http://ns.adobe.com/mxml/2009"
-			title="Assets"
-			xmlns:js="library://ns.apache.org/flexjs/basic"
-			xmlns:models="models.*"
-			xmlns:local="*"
-			className="AssetsView" xmlns:views="views.*">
-	<fx:Script>
-		<![CDATA[
-			import models.ProductsModel;
-			import models.Stock;
-			
-			import org.apache.flex.binding.SimpleBinding;
-			import org.apache.flex.core.IBeadController;
-			import org.apache.flex.core.IBeadModel;
-			import org.apache.flex.events.Event;
-			import org.apache.flex.events.ValueChangeEvent;
-			import org.apache.flex.mobile.IViewManager;
-			import org.apache.flex.mobile.StackedViewManager;
-			import org.apache.flex.html.beads.DataProviderChangeNotifier;
-			
-			private var localModel:ProductsModel;
-			
-			public function set dataModel(value:IBeadModel):void
-			{
-				localModel = value as ProductsModel;
-				
-				var newEvent:ValueChangeEvent = new ValueChangeEvent("valueChange", false, false, null, localModel);
-				newEvent.propertyName = "dataModel";
-				dispatchEvent(newEvent);
-			}
-			public function get dataModel():IBeadModel
-			{
-				return localModel;
-			}
-		]]>
-	</fx:Script>
-	
-	<fx:Metadata>
-		[Event("next")]
-	</fx:Metadata>
-	
-	<js:beads>
-		<js:VerticalLayout />
-	</js:beads>
-	
-	<js:model>
-		<models:AssetsModel />
-	</js:model>
-
-	<js:Label text="Summary" height="10%" />
-	
-	<js:DataGrid id="assetGrid" height="150" width="100%">
-		<js:style>
-			<js:SimpleCSSStyles top="0" left="0" right="0" />
-		</js:style>
-		<js:beads>
-			<js:SimpleBinding
-				eventName="update"
-				sourceID="dataModel"
-				sourcePropertyName="watchList"
-				destinationPropertyName="dataProvider" />
-			<js:DataProviderChangeNotifier sourceID="dataModel" propertyName="watchList" 
-										   destinationPropertyName="dataProvider" changeEventName="dataProviderChanged" />
-		</js:beads>
-		<js:columns>
-			<js:DataGridColumn label="Symbol" dataField="symbol" />
-			<js:DataGridColumn label="Change" dataField="change" />
-			<js:DataGridColumn label="Last Value" dataField="last" />
-		</js:columns>
-	</js:DataGrid>
-		
-	<js:Label text="Performance History" height="10%" />
-		
-	<js:ColumnChart id="barChart" width="100%" height="40%">
-		<js:model>
-			<js:ChartArrayListSelectionModel />
-		</js:model>
-		<js:beads>
-			<js:DataItemRendererFactoryForSeriesArrayListData />
-			<js:ColumnChartLayoutForArrayList />
-			<js:SimpleBinding
-				eventName="update"
-				sourceID="dataModel"
-				sourcePropertyName="watchList"
-				destinationPropertyName="dataProvider" />
-			<js:DataProviderChangeNotifier sourceID="dataModel" propertyName="watchList" 
-										   destinationPropertyName="dataProvider" changeEventName="dataProviderChanged" />
-			<js:VerticalLinearAxisForArrayListBead valueField="last" />
-			<js:HorizontalCategoryAxisForArrayListBead categoryField="symbol" />
-		</js:beads>
-		<js:series>
-			<js:ColumnSeries yField="last"> 
-				<js:itemRenderer>
-					<fx:Component>
-						<js:BoxItemRenderer>
-							<js:fill>
-								<js:SolidColor color="#FF964D" alpha="1.0" />
-							</js:fill>
-						</js:BoxItemRenderer>                      
-					</fx:Component>
-				</js:itemRenderer>
-			</js:ColumnSeries>
-		</js:series>
-	</js:ColumnChart>
-
-</js:TitleView>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/views/LaunchView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/views/LaunchView.mxml b/examples/flexjs/MobileStocks/src/views/LaunchView.mxml
index 5528996..3d38bda 100644
--- a/examples/flexjs/MobileStocks/src/views/LaunchView.mxml
+++ b/examples/flexjs/MobileStocks/src/views/LaunchView.mxml
@@ -22,7 +22,9 @@ limitations under the License.
 			xmlns:js="library://ns.apache.org/flexjs/basic"
 			xmlns:models="models.*"
 			xmlns:local="*"
-			className="AssetsView" xmlns:views="views.*">
+		    xmlns:views="views.*"
+			className="LaunchView">
+			
 	<fx:Script>
 		<![CDATA[
 			import controller.LaunchViewController;
@@ -93,18 +95,18 @@ limitations under the License.
 			color: #333333;
 		}
 		
-		.Outer1 {
+		/*.Outer1 {
 			background-color: #FFFFFF;
 			vertical-align: middle;
-		}
+		}*/
 		
 		.InputChild {
 			vertical-align: middle;
 		}
 		
-		.Outer2 {
+		/*.Outer2 {
 			background-color: #FFFFFF;
-		}
+		}*/
 		
 		.LaunchGrid {
 			background-color: #FFFFFF;
@@ -123,11 +125,13 @@ limitations under the License.
 		<js:VerticalLayout />
 	</js:beads>
 	
-	<js:model>
+	<!-- 
+<js:model>
 		<models:AssetsModel />
 	</js:model>
+ -->
 
-	<js:Container height="40" width="100%" className="Outer1">
+	<js:Container height="40" width="100%">
 	  <js:beads>
 	  	<js:OneFlexibleChildHorizontalLayout flexibleChild="spacer1" maxWidth="400" maxHeight="20" />
 	  </js:beads>
@@ -142,7 +146,7 @@ limitations under the License.
 		<js:TextButton id="removeButton" text="Remove" width="80" click="removeSymbol()" className="InputChild" />
 	</js:Container>
 	
-	<js:Container height="45%" width="100%" className="Outer2">
+	<js:Container height="45%" width="100%">
 		<js:DataGrid id="assetGrid" height="100%" width="100%" rowHeight="25" change="gridSelected()" className="LaunchGrid">
 			<js:beads>
 				<js:DataGridPercentageLayout />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f25cfe8b/examples/flexjs/MobileStocks/src/views/SearchView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/src/views/SearchView.mxml b/examples/flexjs/MobileStocks/src/views/SearchView.mxml
deleted file mode 100755
index 0348fba..0000000
--- a/examples/flexjs/MobileStocks/src/views/SearchView.mxml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?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.
-
--->
-<js:TitleView xmlns:fx="http://ns.adobe.com/mxml/2009"
-					   xmlns:js="library://ns.apache.org/flexjs/basic"
-					   xmlns:apache="org.apache.flex.html.beads.*"
-					   xmlns:local="*"
-					   className="StockView">
-	
-	<fx:Script>
-		<![CDATA[			
-			import org.apache.flex.mobile.StackedViewManager;
-			private function onBackClick() : void
-			{
-				(viewManager as StackedViewManager).pop();
-			}
-		]]>
-	</fx:Script>
-		
-	<js:Label text="Search View" x="20" y="100" />
-</js:TitleView>