incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject svn commit: r1417700 [1/2] - in /incubator/flex/whiteboard/erikdebruin/asjs: examples/ examples/FlexJSTest/ examples/FlexJSTest/controllers/ examples/FlexJSTest/models/ frameworks/ frameworks/as/ frameworks/as/src/ frameworks/as/src/org/ frameworks/as/...
Date Thu, 06 Dec 2012 00:03:40 GMT
Author: erikdebruin
Date: Thu Dec  6 00:03:35 2012
New Revision: 1417700

URL: http://svn.apache.org/viewvc?rev=1417700&view=rev
Log:
Committing the refactored framework and tool set.

Added:
    incubator/flex/whiteboard/erikdebruin/asjs/examples/
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTest.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTestMXML.mxml   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialView.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialViewMXML.mxml   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MySimpleValuesImpl.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/controllers/
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/controllers/MyController.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/models/
    incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/models/MyModel.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/Application.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBead.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBeadModel.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitModel.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitSkin.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IStrand.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextBead.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextModel.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IValuesImpl.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/SimpleValuesImpl.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/UIBase.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ValuesManager.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ViewBase.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Button.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Label.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/IButtonBead.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/ITextButtonBead.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldBead.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/TextModel.as   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/tests/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/FlexGlobal.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/FlexObject.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/flash/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/flash/events/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/flash/events/Event.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/flash/events/EventDispatcher.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/binding/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/binding/SimpleBinding.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/Application.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/SimpleValuesImpl.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/UIBase.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/ValuesManager.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/ViewBase.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/staticControls/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/staticControls/Label.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/staticControls/TextButton.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/tests/
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/tests/FlexJSTest.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/tests/MyController.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/tests/MyInitialView.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/tests/MyModel.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/tests/MySimpleValuesImpl.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/frameworks/js/tests/test.html   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/README   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/build.properties   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/build.xml   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/index.html.template
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/intermediate/
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/FlexJSTest_dummy.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyController.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyInitialView.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyModel.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MySimpleValuesImpl.js   (with props)
    incubator/flex/whiteboard/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/js/

Added: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTest.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTest.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTest.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTest.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,39 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+	import org.apache.flex.core.Application;
+	import models.MyModel;
+	import controllers.MyController;
+	
+	public class FlexJSTest extends Application
+	{
+		public function FlexJSTest()
+		{
+			valuesImplClass = MySimpleValuesImpl;
+			initialViewClass = MyInitialView;
+			model = new MyModel();
+			model.labelText = "Hello World!";
+			controller = new MyController(this);
+		}
+		
+		private var controller:MyController;
+		public var model:MyModel;
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTest.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTestMXML.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTestMXML.mxml?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTestMXML.mxml (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTestMXML.mxml Thu Dec  6 00:03:35 2012
@@ -0,0 +1,38 @@
+<?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.
+
+-->
+<basic:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+				   xmlns:local="*"
+				   xmlns:basic="http://ns.apache.org/flex/basic" 
+				   xmlns:html="http://ns.apache.org/flex/html" 
+				   xmlns:models="models.*" 
+				   xmlns:controllers="controllers.*">
+	<basic:valuesImpl>
+		<local:MySimpleValuesImpl />
+	</basic:valuesImpl>
+	<basic:initialView>
+		<local:MyInitialView />
+	</basic:initialView>
+	<basic:model>
+		<models:MyModel />
+	</basic:model>
+	<basic:controller>
+		<controllers:MyController />
+	</basic:controller>
+</basic:Application>
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/FlexJSTestMXML.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialView.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialView.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialView.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialView.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,69 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 
+{
+	import flash.events.Event;
+	
+	import org.apache.flex.core.ViewBase;
+	import org.apache.flex.html.staticControls.TextButton;
+	import org.apache.flex.html.staticControls.Label;
+	import org.apache.flex.html.staticControls.beads.models.TextModel;
+	
+	public class MyInitialView extends ViewBase
+	{
+		public function MyInitialView()
+		{
+			super();
+		}
+		
+		override public function get uiDescriptors():Array
+		{
+			return [
+				Label,
+				null,
+				"lbl",
+				2,
+				"x", 100,
+				"y", 25,
+				0,
+				0,
+				1, 
+				"text", 0, "model", "labelText", "labelTextChanged",
+				TextButton,
+				null,
+				null,
+				3,
+				"text", "OK",
+				"x", 100,
+				"y", 75,
+				0,
+				1,
+				"click", clickHandler,
+				0
+				];
+		}
+		
+		public var lbl:Label;
+		
+		private function clickHandler(event:Event):void
+		{
+			dispatchEvent(new Event("buttonClicked"));
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialView.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialViewMXML.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialViewMXML.mxml?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialViewMXML.mxml (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialViewMXML.mxml Thu Dec  6 00:03:35 2012
@@ -0,0 +1,26 @@
+<?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.
+
+-->
+<basic:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
+				   xmlns:basic="http://ns.apache.org/flex/basic" 
+				   xmlns:html="http://ns.apache.org/flex/html" 
+				   >
+	<basic:Label id="lbl" x="100" y="25" text="{model.labelText}" />
+	<basic:Button text="OK" x="100" y="75" click="dispatchEvent(new Event('buttonClicked'))" />
+</basic:ViewBase>

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MyInitialViewMXML.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MySimpleValuesImpl.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MySimpleValuesImpl.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MySimpleValuesImpl.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MySimpleValuesImpl.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,42 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 
+{
+	import flash.events.IEventDispatcher;
+	
+	import org.apache.flex.core.SimpleValuesImpl;
+	import org.apache.flex.html.staticControls.beads.TextButtonBead;
+	import org.apache.flex.html.staticControls.beads.TextFieldBead;
+	import org.apache.flex.html.staticControls.beads.models.TextModel;
+	
+	public class MySimpleValuesImpl extends SimpleValuesImpl
+	{
+		public function MySimpleValuesImpl()
+		{
+			super();
+			values = { 
+				ITextButtonBead: TextButtonBead,
+				ITextBead: TextFieldBead,
+				ITextModel: TextModel				
+			}
+		}
+		
+		
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/MySimpleValuesImpl.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/controllers/MyController.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/controllers/MyController.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/controllers/MyController.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/controllers/MyController.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,43 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 controllers
+{
+	import flash.events.Event;
+
+	public class MyController
+	{
+		public function MyController(app:FlexJSTest)
+		{
+			this.app = app;
+			app.addEventListener("viewChanged", viewChangeHandler);
+		}
+		
+		private var app:FlexJSTest;
+		
+		private function viewChangeHandler(event:Event):void
+		{
+			app.initialView.addEventListener("buttonClicked", buttonClickHandler);
+		}
+		
+		private function buttonClickHandler(event:Event):void
+		{
+			app.model.labelText = "Hello Universe";
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/controllers/MyController.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/models/MyModel.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/models/MyModel.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/models/MyModel.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/models/MyModel.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 flash.events.EventDispatcher;
+	import flash.events.Event;
+	
+	public class MyModel extends EventDispatcher
+	{
+		public function MyModel()
+		{
+		}
+		
+		private var _labelText:String;
+		
+		public function get labelText():String
+		{
+			return _labelText;
+		}
+		
+		public function set labelText(value:String):void
+		{
+			if (value != _labelText)
+			{
+				_labelText = value;
+				dispatchEvent(new Event("labelTextChanged"));
+			}
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/examples/FlexJSTest/models/MyModel.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,47 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.binding
+{
+	import flash.events.Event;
+	import flash.events.IEventDispatcher;
+
+	public class SimpleBinding
+	{
+		public function SimpleBinding()
+		{
+		}
+		
+		public var source:IEventDispatcher;
+		public var sourcePropertyName:String;
+		public var eventName:String;
+		public var destination:Object;
+		public var destinationPropertyName:String;
+		
+		public function initialize():void
+		{
+			source.addEventListener(eventName, changeHandler);
+			destination[destinationPropertyName] = source[sourcePropertyName];
+		}
+		
+		private function changeHandler(event:Event):void
+		{
+			destination[destinationPropertyName] = source[sourcePropertyName];
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/Application.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/Application.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/Application.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/Application.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,50 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	import flash.display.Sprite;
+	import flash.events.Event;
+	
+	public class Application extends Sprite
+	{
+		public function Application()
+		{
+			super();
+			loaderInfo.addEventListener(Event.INIT, initHandler);
+		}
+		
+		private function initHandler(event:Event):void
+		{
+			valuesImpl = new valuesImplClass as IValuesImpl;
+			ValuesManager.valuesImpl = valuesImpl;
+			
+			initialView = new initialViewClass as ViewBase;
+			initialView.addToParent(this);
+			initialView.initUI(this);
+			dispatchEvent(new Event("viewChanged"));
+		}
+		
+		public var valuesImplClass:Class;
+		public var valuesImpl:IValuesImpl;
+		
+		public var initialViewClass:Class;
+		public var initialView:ViewBase;
+		
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/Application.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBead.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBead.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBead.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBead.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	public interface IBead
+	{
+		function set strand(value:IStrand):void
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBead.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBeadModel.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBeadModel.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBeadModel.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBeadModel.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,30 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	import flash.events.IEventDispatcher;
+
+	/** 
+	 *  Marker interface for models
+	 */
+	public interface IBeadModel extends IEventDispatcher
+	{
+		
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBeadModel.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitModel.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitModel.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitModel.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitModel.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	public interface IInitModel
+	{
+		function initModel():void;
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitModel.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitSkin.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitSkin.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitSkin.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitSkin.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	public interface IInitSkin
+	{
+		function initSkin():void;
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitSkin.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IStrand.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IStrand.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IStrand.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IStrand.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,27 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	public interface IStrand
+	{
+		function addBead(bead:IBead):void;
+		function getBeadByType(classOrInterface:Class):IBead;
+		function removeBead(bead:IBead):IBead;		
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IStrand.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextBead.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextBead.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextBead.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextBead.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,29 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	public interface ITextBead extends IBead
+	{
+		function get text():String;
+		function set text(value:String):void;
+		
+		function get html():String;
+		function set html(value:String):void;
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextBead.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextModel.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextModel.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextModel.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextModel.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,29 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	public interface ITextModel extends IBeadModel
+	{
+		function get text():String;
+		function set text(value:String):void;
+		
+		function get html():String;
+		function set html(value:String):void;
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextModel.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IValuesImpl.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IValuesImpl.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IValuesImpl.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IValuesImpl.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,26 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	public interface IValuesImpl
+	{
+		function getValue(valueName:String):Object;
+		function setValue(valueName:String, value:Object):void;
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IValuesImpl.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/SimpleValuesImpl.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/SimpleValuesImpl.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/SimpleValuesImpl.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/SimpleValuesImpl.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,50 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	import flash.events.EventDispatcher;
+	import flash.events.IEventDispatcher;
+	
+	import org.apache.flex.events.ValueChangeEvent;
+	
+	public class SimpleValuesImpl extends EventDispatcher implements IValuesImpl
+	{
+		public function SimpleValuesImpl()
+		{
+			super();
+		}
+		
+		public var values:Object;
+		
+		public function getValue(valueName:String):Object
+		{
+			return values[valueName];
+		}
+		
+		public function setValue(valueName:String, value:Object):void
+		{
+			var oldValue:Object = values[valueName];
+			if (oldValue != value)
+			{
+				values[valueName] = value;
+				dispatchEvent(new ValueChangeEvent(ValueChangeEvent.VALUE_CHANGE, false, false, oldValue, value));
+			}
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/SimpleValuesImpl.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/UIBase.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/UIBase.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/UIBase.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/UIBase.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,120 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	import flash.display.DisplayObjectContainer;
+	import flash.display.Sprite;
+	import flash.events.Event;
+	
+	public class UIBase extends Sprite implements IInitModel, IStrand
+	{
+		public function UIBase()
+		{
+			super();
+		}
+		
+		private var _width:Number;
+		override public function get width():Number
+		{
+			return _width;
+		}
+		override public function set width(value:Number):void
+		{
+			if (_width != value)
+			{
+				_width = value;
+				dispatchEvent(new Event("widthChanged"));
+			}
+		}
+		protected function get $width():Number
+		{
+			return super.width;
+		}
+		
+		private var _height:Number;
+		override public function get height():Number
+		{
+			return _height;
+		}
+		override public function set height(value:Number):void
+		{
+			if (_height != value)
+			{
+				_height = value;
+				dispatchEvent(new Event("heightChanged"));
+			}
+		}
+		protected function get $height():Number
+		{
+			return super.height;
+		}
+		
+		private var _model:IBeadModel;
+		protected function get model():IBeadModel
+		{
+			return _model;
+		}
+		
+		private var strand:Vector.<IBead>;
+		public function addBead(bead:IBead):void
+		{
+			if (!strand)
+				strand = new Vector.<IBead>;
+			strand.push(bead);
+			if (bead is IBeadModel)
+				_model = bead as IBeadModel;
+			bead.strand = this;
+		}
+		
+		public function getBeadByType(classOrInterface:Class):IBead
+		{
+			for each (var bead:IBead in strand)
+			{
+				if (bead is classOrInterface)
+					return bead;
+			}
+			return null;
+		}
+		
+		public function removeBead(value:IBead):IBead	
+		{
+			var n:int = strand.length;
+			for (var i:int = 0; i < n; i++)
+			{
+				var bead:IBead = strand[i];
+				if (bead == value)
+				{
+					strand.splice(i, 1);
+					return bead;
+				}
+			}
+			return null;
+		}
+		
+		public function initModel():void
+		{
+			
+		}
+		
+		public function addToParent(p:DisplayObjectContainer):void
+		{
+			p.addChild(this);
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/UIBase.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ValuesManager.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ValuesManager.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ValuesManager.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ValuesManager.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,38 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	public class ValuesManager
+	{
+		public function ValuesManager()
+		{
+		}
+		
+		private static var _valuesImpl:IValuesImpl;
+		
+		public static function get valuesImpl():IValuesImpl
+		{
+			return _valuesImpl;
+		}
+		public static function set valuesImpl(value:IValuesImpl):void
+		{
+			_valuesImpl = value;
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ValuesManager.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ViewBase.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ViewBase.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ViewBase.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ViewBase.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,116 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.core
+{
+	import flash.display.DisplayObject;
+	
+	import org.apache.flex.binding.SimpleBinding;
+	import org.apache.flex.core.IStrand;
+
+	public class ViewBase extends UIBase
+	{
+		public function ViewBase()
+		{
+			super();
+		}
+		
+		public function get uiDescriptors():Array
+		{
+			return null;
+		}
+		
+		public function initUI(app:Application):void
+		{
+			// cache this for speed
+			var descriptors:Array = uiDescriptors;
+			
+			var n:int = descriptors.length;
+			var i:int = 0;
+			
+			while (i < n)
+			{
+				var valueName:String;
+				var value:Object;
+
+				var c:Class = descriptors[i++];					// class
+				var o:DisplayObject = new c() as DisplayObject;
+				if (o is UIBase)
+					UIBase(o).addToParent(this);
+				else
+					addChild(o);
+				c = descriptors[i++];							// model
+				if (c)
+				{
+					value = new c();
+					IStrand(o).addBead(value as IBead);
+				}
+				if (o is IInitModel)
+					IInitModel(o).initModel();
+				var j:int;
+				var m:int;
+				valueName = descriptors[i++];					// id
+				if (valueName)
+					this[valueName] = o;
+
+				m = descriptors[i++];							// num props
+				for (j = 0; j < m; j++)
+				{
+					valueName = descriptors[i++];
+					value = descriptors[i++];
+					o[valueName] = value;
+				}
+				m = descriptors[i++];							// num beads
+				for (j = 0; j < m; j++)
+				{
+					c = descriptors[i++];
+					value = new c();
+					IStrand(o).addBead(value as IBead);
+				}
+				if (o is IInitSkin)
+				{
+					IInitSkin(o).initSkin();
+				}
+				m = descriptors[i++];							// num events
+				for (j = 0; j < m; j++)
+				{
+					valueName = descriptors[i++];
+					value = descriptors[i++];
+					o.addEventListener(valueName, value as Function);
+				}
+				m = descriptors[i++];							// num bindings
+				for (j = 0; j < m; j++)
+				{
+					valueName = descriptors[i++];
+					var bindingType:int = descriptors[i++];
+					switch (bindingType)
+					{
+						case 0: 
+							var sb:SimpleBinding = new SimpleBinding();
+							sb.destination = o;
+							sb.destinationPropertyName = valueName;
+							sb.source = app[descriptors[i++]];
+							sb.sourcePropertyName = descriptors[i++];
+							sb.eventName = descriptors[i++];
+							sb.initialize();
+					}
+				}
+			}
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ViewBase.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,38 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.events
+{
+	import flash.events.Event;
+	
+	public class ValueChangeEvent extends Event
+	{
+		public function ValueChangeEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, 
+										 oldValue:Object = null, newValue:Object = null)
+		{
+			super(type, bubbles, cancelable);
+			this.oldValue = oldValue;
+			this.newValue = newValue;
+		}
+		
+		public var oldValue:Object;
+		public var newValue:Object;
+		
+		public static const VALUE_CHANGE:String = "valueChange";
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Button.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Button.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Button.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,80 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.html.staticControls
+{
+	import flash.display.DisplayObject;
+	import flash.display.SimpleButton;
+	
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IBeadModel;
+	import org.apache.flex.core.IStrand;
+	
+	public class Button extends SimpleButton implements IStrand
+	{
+		public function Button(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
+		{
+			super(upState, overState, downState, hitTestState);
+			// mouseChildren = true;
+			// mouseEnabled = true;
+		}
+		
+		private var _model:IBeadModel;
+		protected function get model():IBeadModel
+		{
+			return _model;
+		}
+		
+		private var strand:Vector.<IBead>;
+		public function addBead(bead:IBead):void
+		{
+			if (!strand)
+				strand = new Vector.<IBead>;
+			strand.push(bead);
+			if (bead is IBeadModel)
+				_model = bead as IBeadModel;
+			bead.strand = this;
+		}
+		
+		public function getBeadByType(classOrInterface:Class):IBead
+		{
+			for each (var bead:IBead in strand)
+			{
+				if (bead is classOrInterface)
+					return bead;
+			}
+			return null;
+		}
+		
+		public function removeBead(value:IBead):IBead	
+		{
+			var n:int = strand.length;
+			for (var i:int = 0; i < n; i++)
+			{
+				var bead:IBead = strand[i];
+				if (bead == value)
+				{
+					strand.splice(i, 1);
+					return bead;
+				}
+			}
+			return null;
+		}
+		
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.html.staticControls
+{
+	public class DropDownList
+	{
+		public function DropDownList()
+		{
+		}
+		
+		private var _dataProvider:Array;
+		
+		public function get dataProvider():Array
+		{
+			return _dataProvider;
+		}
+		
+		public function set dataProvider(value:Array):void
+		{
+			_dataProvider = value;	
+		}
+		
+		private var _selectedIndex:int;
+		
+		public function get selectedIndex():int
+		{
+			return _selectedIndex;	
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Label.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Label.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Label.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Label.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,72 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.html.staticControls
+{
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IInitSkin;
+	import org.apache.flex.core.ITextModel;
+	import org.apache.flex.core.ITextBead;
+	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.ValuesManager;
+	
+	/**
+	 *  Label probably should extend TextField directly,
+	 *  but the player's APIs for TextLine do not allow
+	 *  direct instantiation, and we might want to allow
+	 *  Labels to be declared and have their actual
+	 *  view be swapped out.
+	 */
+	public class Label extends UIBase implements IInitSkin
+	{
+		public function Label()
+		{
+			super();
+		}
+		
+		public function get text():String
+		{
+			return ITextModel(model).text;
+		}
+		public function set text(value:String):void
+		{
+			ITextModel(model).text = value;
+		}
+		
+		public function get html():String
+		{
+			return ITextModel(model).html;
+		}
+		public function set html(value:String):void
+		{
+			ITextModel(model).html = value;
+		}
+		
+		override public function initModel():void
+		{
+			if (getBeadByType(ITextModel) == null)
+				addBead(new (ValuesManager.valuesImpl.getValue("ITextModel")) as IBead);
+		}
+		
+		public function initSkin():void
+		{
+			if (getBeadByType(ITextBead) == null)
+				addBead(new (ValuesManager.valuesImpl.getValue("ITextBead")) as IBead);			
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Label.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,67 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.html.staticControls
+{
+	import flash.display.DisplayObject;
+
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.ITextModel;
+	import org.apache.flex.core.IInitModel;
+	import org.apache.flex.core.IInitSkin;
+	import org.apache.flex.core.ValuesManager;
+	import org.apache.flex.html.staticControls.beads.ITextButtonBead;
+	
+	public class TextButton extends Button implements IInitModel, IInitSkin
+	{
+		public function TextButton(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
+		{
+			super(upState, overState, downState, hitTestState);
+		}
+		
+		public function get text():String
+		{
+			return ITextModel(model).text;
+		}
+		public function set text(value:String):void
+		{
+			ITextModel(model).text = value;
+		}
+		
+		public function get html():String
+		{
+			return ITextModel(model).html;
+		}
+		public function set html(value:String):void
+		{
+			ITextModel(model).html = value;
+		}
+
+		public function initModel():void
+		{
+			if (getBeadByType(ITextModel) == null)
+				addBead(new (ValuesManager.valuesImpl.getValue("ITextModel")) as IBead);
+		}
+		
+		public function initSkin():void
+		{
+			if (getBeadByType(ITextButtonBead) == null)
+				addBead(new (ValuesManager.valuesImpl.getValue("ITextButtonBead")) as IBead);			
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/IButtonBead.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/IButtonBead.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/IButtonBead.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/IButtonBead.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,26 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.html.staticControls.beads
+{
+	public interface IButtonBead
+	{
+		function get state():String;
+		function set state(value:String):void;
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/IButtonBead.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/ITextButtonBead.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/ITextButtonBead.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/ITextButtonBead.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/ITextButtonBead.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,26 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.html.staticControls.beads
+{
+	import org.apache.flex.core.ITextBead;
+
+	public interface ITextButtonBead extends ITextBead
+	{
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/ITextButtonBead.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,132 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.html.staticControls.beads
+{
+	import flash.display.Shape;
+	import flash.display.SimpleButton;
+	import flash.display.Sprite;
+	import flash.events.Event;
+	import flash.text.TextField;
+	import flash.text.TextFieldType;
+	
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.core.ITextBead;
+	import org.apache.flex.core.ITextModel;
+
+	public class TextButtonBead implements ITextButtonBead
+	{
+		public function TextButtonBead()
+		{
+			upTextField = new TextField();
+			downTextField = new TextField();
+			overTextField = new TextField();
+			upTextField.border = true;
+			downTextField.border = true;
+			overTextField.border = true;
+			upTextField.background = true;
+			downTextField.background = true;
+			overTextField.background = true;
+			upTextField.borderColor = 0;
+			downTextField.borderColor = 0;
+			overTextField.borderColor = 0;
+			upTextField.backgroundColor = 0xCCCCCC;
+			downTextField.backgroundColor = 0x808080;
+			overTextField.backgroundColor = 0xFFCCCC;
+			upTextField.selectable = false;
+			upTextField.type = TextFieldType.DYNAMIC;
+			downTextField.selectable = false;
+			downTextField.type = TextFieldType.DYNAMIC;
+			overTextField.selectable = false;
+			overTextField.type = TextFieldType.DYNAMIC;
+			upTextField.autoSize = "left";
+			downTextField.autoSize = "left";
+			overTextField.autoSize = "left";
+
+		}
+		
+		private var textModel:ITextModel;
+		
+		private var _strand:IStrand;
+		
+		private var shape:Shape;
+		
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+			textModel = value.getBeadByType(ITextModel) as ITextModel;
+			textModel.addEventListener("textChange", textChangeHandler);
+			textModel.addEventListener("htmlChange", htmlChangeHandler);
+			shape = new Shape();
+			shape.graphics.beginFill(0xCCCCCC);
+			shape.graphics.drawRect(0, 0, 10, 10);
+			shape.graphics.endFill();
+			SimpleButton(value).upState = upTextField;
+			SimpleButton(value).downState = downTextField;
+			SimpleButton(value).overState = overTextField;
+			SimpleButton(value).hitTestState = shape;
+			if (textModel.text !== null)
+				text = textModel.text;
+			if (textModel.html !== null)
+				html = textModel.html;
+		}
+		
+		private function textChangeHandler(event:Event):void
+		{
+			text = textModel.text;
+		}
+		
+		private function htmlChangeHandler(event:Event):void
+		{
+			html = textModel.html;
+		}
+		
+		private var upTextField:TextField;
+		private var downTextField:TextField;
+		private var overTextField:TextField;
+		
+		public function get text():String
+		{
+			return upTextField.text;
+		}
+		public function set text(value:String):void
+		{
+			upTextField.text = value;
+			downTextField.text = value;
+			overTextField.text = value;
+			shape.graphics.clear();
+			shape.graphics.beginFill(0xCCCCCC);
+			shape.graphics.drawRect(0, 0, upTextField.textWidth, upTextField.textHeight);
+			shape.graphics.endFill();
+			
+		}
+		
+		public function get html():String
+		{
+			return upTextField.htmlText;
+		}
+		
+		public function set html(value:String):void
+		{
+			upTextField.htmlText = value;
+			downTextField.htmlText = value;
+			overTextField.htmlText = value;
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldBead.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldBead.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldBead.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldBead.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,88 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.html.staticControls.beads
+{
+	import flash.display.DisplayObjectContainer;
+	import flash.events.Event;
+	import flash.text.TextField;
+	import flash.text.TextFieldType;
+	
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.core.ITextBead;
+	import org.apache.flex.core.ITextModel;
+	
+	public class TextFieldBead implements IBead, ITextBead
+	{
+		public function TextFieldBead()
+		{
+			_textField = new TextField();
+			_textField.selectable = false;
+			_textField.type = TextFieldType.DYNAMIC;
+			_textField.mouseEnabled = false;
+		}
+		private var textModel:ITextModel;
+		
+		private var _strand:IStrand;
+		
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+			textModel = value.getBeadByType(ITextModel) as ITextModel;
+			textModel.addEventListener("textChange", textChangeHandler);
+			textModel.addEventListener("htmlChange", htmlChangeHandler);
+			DisplayObjectContainer(value).addChild(_textField);
+			if (textModel.text !== null)
+				text = textModel.text;
+			if (textModel.html !== null)
+				html = textModel.html;
+		}
+		
+		private function textChangeHandler(event:Event):void
+		{
+			text = textModel.text;
+		}
+		
+		private function htmlChangeHandler(event:Event):void
+		{
+			html = textModel.html;
+		}
+		
+		private var _textField:TextField;
+		
+		public function get text():String
+		{
+			return _textField.text;
+		}
+		public function set text(value:String):void
+		{
+			_textField.text = value;
+		}
+		
+		public function get html():String
+		{
+			return _textField.htmlText;
+		}
+		
+		public function set html(value:String):void
+		{
+			_textField.htmlText = value;
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldBead.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/TextModel.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/TextModel.as?rev=1417700&view=auto
==============================================================================
--- incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/TextModel.as (added)
+++ incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/TextModel.as Thu Dec  6 00:03:35 2012
@@ -0,0 +1,71 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.html.staticControls.beads.models
+{
+	import flash.events.Event;
+	import flash.events.EventDispatcher;
+	
+	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.core.ITextModel;
+		
+	public class TextModel extends EventDispatcher implements IBead, ITextModel
+	{
+		public function TextModel()
+		{
+		}
+		
+		private var _strand:IStrand;
+		
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+		}
+
+		private var _text:String;
+		public function get text():String
+		{
+			return _text;
+		}
+		
+		public function set text(value:String):void
+		{
+			if (value != _text)
+			{
+				_text = value;
+				dispatchEvent(new Event("textChange"));
+			}
+		}
+		
+		private var _html:String;
+		public function get html():String
+		{
+			return _html;
+		}
+		
+		public function set html(value:String):void
+		{
+			if (value != _html)
+			{
+				_html = value;
+				dispatchEvent(new Event("htmlChange"));
+			}
+		}
+	}
+}
\ No newline at end of file

Propchange: incubator/flex/whiteboard/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/TextModel.as
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message