- this project is now 'live' in asjs/branches/develop
git-svn-id: https://svn.apache.org/repos/asf/flex/whiteboard@1439340 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/erikdebruin/asjs/examples/FlexJSTest/FlexJSTest.as b/erikdebruin/asjs/examples/FlexJSTest/FlexJSTest.as
deleted file mode 100644
index e3a2b0f..0000000
--- a/erikdebruin/asjs/examples/FlexJSTest/FlexJSTest.as
+++ /dev/null
@@ -1,39 +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
-{
- 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
diff --git a/erikdebruin/asjs/examples/FlexJSTest/FlexJSTestMXML.mxml b/erikdebruin/asjs/examples/FlexJSTest/FlexJSTestMXML.mxml
deleted file mode 100644
index 5eaa494..0000000
--- a/erikdebruin/asjs/examples/FlexJSTest/FlexJSTestMXML.mxml
+++ /dev/null
@@ -1,38 +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.
-
--->
-<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
diff --git a/erikdebruin/asjs/examples/FlexJSTest/MyInitialView.as b/erikdebruin/asjs/examples/FlexJSTest/MyInitialView.as
deleted file mode 100644
index 0724b2a..0000000
--- a/erikdebruin/asjs/examples/FlexJSTest/MyInitialView.as
+++ /dev/null
@@ -1,69 +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
-{
- 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
diff --git a/erikdebruin/asjs/examples/FlexJSTest/MyInitialViewMXML.mxml b/erikdebruin/asjs/examples/FlexJSTest/MyInitialViewMXML.mxml
deleted file mode 100644
index 62dd205..0000000
--- a/erikdebruin/asjs/examples/FlexJSTest/MyInitialViewMXML.mxml
+++ /dev/null
@@ -1,26 +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.
-
--->
-<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>
diff --git a/erikdebruin/asjs/examples/FlexJSTest/MySimpleValuesImpl.as b/erikdebruin/asjs/examples/FlexJSTest/MySimpleValuesImpl.as
deleted file mode 100644
index dc7437b..0000000
--- a/erikdebruin/asjs/examples/FlexJSTest/MySimpleValuesImpl.as
+++ /dev/null
@@ -1,42 +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
-{
- 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
diff --git a/erikdebruin/asjs/examples/FlexJSTest/controllers/MyController.as b/erikdebruin/asjs/examples/FlexJSTest/controllers/MyController.as
deleted file mode 100644
index c643062..0000000
--- a/erikdebruin/asjs/examples/FlexJSTest/controllers/MyController.as
+++ /dev/null
@@ -1,43 +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 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
diff --git a/erikdebruin/asjs/examples/FlexJSTest/models/MyModel.as b/erikdebruin/asjs/examples/FlexJSTest/models/MyModel.as
deleted file mode 100644
index d78f218..0000000
--- a/erikdebruin/asjs/examples/FlexJSTest/models/MyModel.as
+++ /dev/null
@@ -1,46 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as
deleted file mode 100644
index bd7b11f..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as
+++ /dev/null
@@ -1,47 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/Application.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/Application.as
deleted file mode 100644
index 6a2859a..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/Application.as
+++ /dev/null
@@ -1,50 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBead.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBead.as
deleted file mode 100644
index 5367708..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBead.as
+++ /dev/null
@@ -1,25 +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 org.apache.flex.core
-{
- public interface IBead
- {
- function set strand(value:IStrand):void
- }
-}
\ No newline at end of file
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBeadModel.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBeadModel.as
deleted file mode 100644
index 3649bcc..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IBeadModel.as
+++ /dev/null
@@ -1,30 +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 org.apache.flex.core
-{
- import flash.events.IEventDispatcher;
-
- /**
- * Marker interface for models
- */
- public interface IBeadModel extends IEventDispatcher
- {
-
- }
-}
\ No newline at end of file
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitModel.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitModel.as
deleted file mode 100644
index 7ed9716..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitModel.as
+++ /dev/null
@@ -1,25 +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 org.apache.flex.core
-{
- public interface IInitModel
- {
- function initModel():void;
- }
-}
\ No newline at end of file
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitSkin.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitSkin.as
deleted file mode 100644
index 649493a..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IInitSkin.as
+++ /dev/null
@@ -1,25 +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 org.apache.flex.core
-{
- public interface IInitSkin
- {
- function initSkin():void;
- }
-}
\ No newline at end of file
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IStrand.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IStrand.as
deleted file mode 100644
index 8e742e2..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IStrand.as
+++ /dev/null
@@ -1,27 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextBead.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextBead.as
deleted file mode 100644
index 3918ea6..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextBead.as
+++ /dev/null
@@ -1,29 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextModel.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextModel.as
deleted file mode 100644
index 478e374..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ITextModel.as
+++ /dev/null
@@ -1,29 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IValuesImpl.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IValuesImpl.as
deleted file mode 100644
index dae6cce..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/IValuesImpl.as
+++ /dev/null
@@ -1,26 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/SimpleValuesImpl.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/SimpleValuesImpl.as
deleted file mode 100644
index 905f3a4..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/SimpleValuesImpl.as
+++ /dev/null
@@ -1,50 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/UIBase.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/UIBase.as
deleted file mode 100644
index 59a8ea6..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/UIBase.as
+++ /dev/null
@@ -1,120 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ValuesManager.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ValuesManager.as
deleted file mode 100644
index 8bc8fa2..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ValuesManager.as
+++ /dev/null
@@ -1,38 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ViewBase.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ViewBase.as
deleted file mode 100644
index 94b879e..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/core/ViewBase.as
+++ /dev/null
@@ -1,116 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as
deleted file mode 100644
index 973217b..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as
+++ /dev/null
@@ -1,38 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Button.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
deleted file mode 100644
index cd8c0b5..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
+++ /dev/null
@@ -1,80 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as
deleted file mode 100644
index 80cf6fd..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as
+++ /dev/null
@@ -1,46 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Label.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Label.as
deleted file mode 100644
index 9557186..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/Label.as
+++ /dev/null
@@ -1,72 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as
deleted file mode 100644
index 3a63825..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as
+++ /dev/null
@@ -1,67 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/IButtonBead.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/IButtonBead.as
deleted file mode 100644
index d96af68..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/IButtonBead.as
+++ /dev/null
@@ -1,26 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/ITextButtonBead.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/ITextButtonBead.as
deleted file mode 100644
index db57e26..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/ITextButtonBead.as
+++ /dev/null
@@ -1,26 +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 org.apache.flex.html.staticControls.beads
-{
- import org.apache.flex.core.ITextBead;
-
- public interface ITextButtonBead extends ITextBead
- {
- }
-}
\ No newline at end of file
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as
deleted file mode 100644
index 8a735f7..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as
+++ /dev/null
@@ -1,132 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldBead.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldBead.as
deleted file mode 100644
index 37f4614..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldBead.as
+++ /dev/null
@@ -1,88 +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 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
diff --git a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/TextModel.as b/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/TextModel.as
deleted file mode 100644
index 298031c..0000000
--- a/erikdebruin/asjs/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/TextModel.as
+++ /dev/null
@@ -1,71 +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 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
diff --git a/erikdebruin/asjs/frameworks/js/src/FlexGlobal.js b/erikdebruin/asjs/frameworks/js/src/FlexGlobal.js
deleted file mode 100644
index 8ae6d7c..0000000
--- a/erikdebruin/asjs/frameworks/js/src/FlexGlobal.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.FlexGlobal');
-
-goog.require('flash.events.Event');
-
-/**
- * @constructor
- */
-org.apache.flex.FlexGlobal = function() {};
-
-/**
- * @param {Object} context The context.
- * @param {?} method The method.
- * @return {function (?): void} Return new proxy.
- */
-org.apache.flex.FlexGlobal.createProxy = function(context, method) {
- return function(value) {
- method.apply(context, [value]);
- };
-};
-
-/**
- * @param {?} ctor The creator.
- * @param {Array} ctorArgs The creator arguments.
- * @return {Object} Return the new object.
- */
-org.apache.flex.FlexGlobal.newObject = function(ctor, ctorArgs) {
- var evt;
-
- if (ctor === flash.events.Event && ctorArgs.length === 1) {
- evt = document.createEvent('Event');
- evt.initEvent(ctorArgs[0], false, false);
-
- return evt;
- }
-
- if (ctorArgs.length === 1) {
- return new ctor(ctorArgs[0]);
- }
-
- if (ctorArgs.length === 0) {
- return new ctor();
- }
-
- return {};
-};
-
-/**
- * @enum {string}
- */
-org.apache.flex.FlexGlobal.EventMap = {
- CLICK: 'onClick'
-};
diff --git a/erikdebruin/asjs/frameworks/js/src/FlexObject.js b/erikdebruin/asjs/frameworks/js/src/FlexObject.js
deleted file mode 100644
index a0521bf..0000000
--- a/erikdebruin/asjs/frameworks/js/src/FlexObject.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.FlexObject');
-
-/**
- * @constructor
- */
-org.apache.flex.FlexObject = function() {};
-
-/**
- * @protected
- * @type {Object}
- */
-org.apache.flex.FlexObject.prototype.element = null;
diff --git a/erikdebruin/asjs/frameworks/js/src/flash/events/Event.js b/erikdebruin/asjs/frameworks/js/src/flash/events/Event.js
deleted file mode 100644
index 9a34400..0000000
--- a/erikdebruin/asjs/frameworks/js/src/flash/events/Event.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('flash.events.Event');
-
-/**
- * @constructor
- */
-flash.events.Event = function() {
- /**
- * @private
- * @type {string}
- */
- this.type_;
-};
-
-/**
- * @this {flash.events.Event}
- * @param {string} type The event type.
- */
-flash.events.Event.prototype.init = function(type) {
- this.type_ = type;
-};
diff --git a/erikdebruin/asjs/frameworks/js/src/flash/events/EventDispatcher.js b/erikdebruin/asjs/frameworks/js/src/flash/events/EventDispatcher.js
deleted file mode 100644
index 4a14fc9..0000000
--- a/erikdebruin/asjs/frameworks/js/src/flash/events/EventDispatcher.js
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('flash.events.EventDispatcher');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-/**
- * @constructor
- * @extends {org.apache.flex.FlexGlobal}
- */
-flash.events.EventDispatcher = function() {
- org.apache.flex.FlexGlobal.call(this);
-
- /**
- * @private
- * @type {Object}
- */
- this.listeners_ = {};
-};
-goog.inherits(flash.events.EventDispatcher, org.apache.flex.FlexGlobal);
-
-/**
- * @this {flash.events.EventDispatcher}
- * @param {string} type The event type.
- * @param {function(?): ?} fn The event handler.
- */
-flash.events.EventDispatcher.prototype.addEventListener = function(type, fn) {
- if (!this.listeners_.type) {
- this.listeners_[type] = [];
- }
-
- this.listeners_[type].push(fn);
-};
-
-/**
- * @this {flash.events.EventDispatcher}
- * @param {Object} event The event to dispatch.
- */
-flash.events.EventDispatcher.prototype.dispatchEvent = function(event) {
- var arr, i, n, type;
-
- type = event.type;
-
- if (this.listeners_[type]) {
- arr = this.listeners_[type];
- n = arr.length;
- for (i = 0; i < n; i++) {
- arr[i](event);
- }
- }
-};
diff --git a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/binding/SimpleBinding.js b/erikdebruin/asjs/frameworks/js/src/org/apache/flex/binding/SimpleBinding.js
deleted file mode 100644
index 1e03ddd..0000000
--- a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/binding/SimpleBinding.js
+++ /dev/null
@@ -1,81 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.binding.SimpleBinding');
-
-goog.require('org.apache.flex.FlexGlobal');
-goog.require('org.apache.flex.FlexObject');
-
-/**
- * @constructor
- * @extends {org.apache.flex.FlexObject}
- */
-org.apache.flex.binding.SimpleBinding = function() {
- org.apache.flex.FlexObject.call(this);
-};
-goog.inherits(
- org.apache.flex.binding.SimpleBinding, org.apache.flex.FlexObject
-);
-
-/**
- * @expose
- * @type {Object}
- */
-org.apache.flex.binding.SimpleBinding.prototype.destination = null;
-
-/**
- * @expose
- * @type {string}
- */
-org.apache.flex.binding.SimpleBinding.prototype.destinationPropertyName = "";
-
-/**
- * @expose
- * @type {string}
- */
-org.apache.flex.binding.SimpleBinding.prototype.eventName = "";
-
-/**
- * @expose
- * @type {Object}
- */
-org.apache.flex.binding.SimpleBinding.prototype.source = null;
-
-/**
- * @expose
- * @type {string}
- */
-org.apache.flex.binding.SimpleBinding.prototype.sourcePropertyName = "";
-
-/**
- * @this {org.apache.flex.binding.SimpleBinding}
- */
-org.apache.flex.binding.SimpleBinding.prototype.changeHandler = function() {
- this.destination['set_' + this.destinationPropertyName](
- this.source['get_' + this.sourcePropertyName]()
- );
-};
-
-/**
- * @this {org.apache.flex.binding.SimpleBinding}
- */
-org.apache.flex.binding.SimpleBinding.prototype.initialize = function() {
- this.source.addEventListener(
- this.eventName, org.apache.flex.FlexGlobal.createProxy(
- this, this.changeHandler
- )
- );
-
- this.changeHandler();
-};
diff --git a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/Application.js b/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/Application.js
deleted file mode 100644
index 6508d44..0000000
--- a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/Application.js
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.core.Application');
-
-goog.require('org.apache.flex.FlexGlobal');
-goog.require('org.apache.flex.FlexObject');
-
-goog.require('org.apache.flex.core.SimpleValuesImpl');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.core.ViewBase');
-
-/**
- * @constructor
- * @extends {org.apache.flex.FlexObject}
- */
-org.apache.flex.core.Application = function() {
- org.apache.flex.FlexObject.call(this);
-
- /**
- * @private
- * @type {Array.<Object>}
- */
- this.queuedListeners_;
-};
-goog.inherits(org.apache.flex.core.Application, org.apache.flex.FlexObject);
-
-/**
- * @expose
- * @type {Object}
- */
-org.apache.flex.core.Application.prototype.controller = null;
-
-/**
- * @expose
- * @type {org.apache.flex.core.ViewBase}
- */
-org.apache.flex.core.Application.prototype.initialView = null;
-
-/**
- * @expose
- * @type {flash.events.EventDispatcher}
- */
-org.apache.flex.core.Application.prototype.model = null;
-
-/**
- * @expose
- * @type {org.apache.flex.core.SimpleValuesImpl}
- */
-org.apache.flex.core.Application.prototype.valuesImpl = null;
-
-/**
- * @this {org.apache.flex.core.Application}
- * @param {string} t The event type.
- * @param {function(?): ?} fn The event handler.
- */
-org.apache.flex.core.Application.prototype.addEventListener = function(t, fn) {
- if (!this.element) {
- if (!this.queuedListeners_) {
- this.queuedListeners_ = [];
- }
-
- this.queuedListeners_.push({ type: t, handler: fn });
-
- return;
- }
-
- if (typeof this.element.attachEvent == 'function') {
- this.element.attachEvent(org.apache.flex.FlexGlobal.EventMap[t], fn);
- } else if (typeof this.element.addEventListener == 'function') {
- this.element.addEventListener(t, fn);
- }
-};
-
-/**
- * @expose
- * @this {org.apache.flex.core.Application}
- */
-org.apache.flex.core.Application.prototype.start = function() {
- var evt, i, n, q;
-
- this.element = document.getElementsByTagName('body')[0];
-
- if (this.queuedListeners_) {
- n = this.queuedListeners_.length;
- for (i = 0; i < n; i++) {
- q = this.queuedListeners_[i];
-
- this.addEventListener(q.type, q.handler);
- }
- }
-
- org.apache.flex.core.ValuesManager.valuesImpl = this.valuesImpl;
-
- this.initialView.addToParent(this.element);
- this.initialView.initUI(this);
-
- evt = document.createEvent('Event');
- evt.initEvent('viewChanged', true, true);
- this.element.dispatchEvent(evt);
-};
diff --git a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/SimpleValuesImpl.js b/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/SimpleValuesImpl.js
deleted file mode 100644
index bf17d95..0000000
--- a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/SimpleValuesImpl.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.core.SimpleValuesImpl');
-
-goog.require('org.apache.flex.FlexObject');
-
-/**
- * @constructor
- * @extends {org.apache.flex.FlexObject}
- */
-org.apache.flex.core.SimpleValuesImpl = function() {
- org.apache.flex.FlexObject.call(this);
-};
-goog.inherits(
- org.apache.flex.core.SimpleValuesImpl, org.apache.flex.FlexObject
-);
diff --git a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/UIBase.js b/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/UIBase.js
deleted file mode 100644
index 4698e05..0000000
--- a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/UIBase.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.core.UIBase');
-
-goog.require('org.apache.flex.FlexGlobal');
-goog.require('org.apache.flex.FlexObject');
-
-/**
- * @constructor
- * @extends {org.apache.flex.FlexObject}
- */
-org.apache.flex.core.UIBase = function() {
- org.apache.flex.FlexObject.call(this);
-
- /**
- * @protected
- * @type {Object}
- */
- this.positioner;
-};
-goog.inherits(org.apache.flex.core.UIBase, org.apache.flex.FlexObject);
-
-/**
- * @this {org.apache.flex.core.UIBase}
- * @param {string} type The event type.
- * @param {function(?): ?} fn The event handler.
- */
-org.apache.flex.core.UIBase.prototype.addEventListener = function(type, fn) {
- if (typeof this.element.attachEvent == 'function') {
- this.element.attachEvent(org.apache.flex.FlexGlobal.EventMap[type], fn);
- } else if (typeof this.element.addEventListener == 'function') {
- this.element.addEventListener(type, fn);
- }
-};
-
-/**
- * @this {org.apache.flex.core.UIBase}
- * @param {Object} p The parent element.
- */
-org.apache.flex.core.UIBase.prototype.addToParent = function(p) {
- this.element = document.createElement('div');
-
- p.appendChild(this.element);
-};
-
-/**
- * @this {org.apache.flex.core.UIBase}
- * @param {flash.events.Event} evt The event.
- */
-org.apache.flex.core.UIBase.prototype.dispatchEvent = function(evt) {
- this.element.dispatchEvent(evt);
-};
-
-/**
- * @expose
- * @this {org.apache.flex.core.UIBase}
- * @param {number} pixels The pixel count from the left edge.
- */
-org.apache.flex.core.UIBase.prototype.set_x = function(pixels) {
- this.positioner.style.position = 'absolute';
- this.positioner.style.left = pixels.toString() + 'px';
-};
-
-/**
- * @expose
- * @this {org.apache.flex.core.UIBase}
- * @param {number} pixels The pixel count from the top edge.
- */
-org.apache.flex.core.UIBase.prototype.set_y = function(pixels) {
- this.positioner.style.position = 'absolute';
- this.positioner.style.top = pixels.toString() + 'px';
-};
diff --git a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/ValuesManager.js b/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/ValuesManager.js
deleted file mode 100644
index 2a083d6..0000000
--- a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/ValuesManager.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.core.ValuesManager');
-
-goog.require('org.apache.flex.FlexObject');
-
-/**
- * @constructor
- * @extends {org.apache.flex.FlexObject}
- */
-org.apache.flex.core.ValuesManager = function() {
- org.apache.flex.FlexObject.call(this);
-};
-goog.inherits(org.apache.flex.core.ValuesManager, org.apache.flex.FlexObject);
-
-/**
- * @expose
- * @type {org.apache.flex.core.SimpleValuesImpl}
- */
-org.apache.flex.core.ValuesManager.prototype.valuesImpl;
diff --git a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/ViewBase.js b/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/ViewBase.js
deleted file mode 100644
index a9b04bd..0000000
--- a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/core/ViewBase.js
+++ /dev/null
@@ -1,134 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.core.ViewBase');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-goog.require('org.apache.flex.binding.SimpleBinding');
-
-goog.require('org.apache.flex.core.UIBase');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.core.ViewBase = function() {
- org.apache.flex.core.UIBase.call(this);
-
- /**
- * @private
- * @type {org.apache.flex.core.ViewBase}
- */
- this.currentObject_;
-};
-goog.inherits(org.apache.flex.core.ViewBase, org.apache.flex.core.UIBase);
-
-/**
- * @protected
- * @return {Array} The array of UI element descriptors.
- */
-org.apache.flex.core.ViewBase.prototype.get_uiDescriptors = function() {
- return [];
-};
-
-/**
- * @this {org.apache.flex.core.ViewBase}
- * @param {org.apache.flex.core.Application} app The main application.
- */
-org.apache.flex.core.ViewBase.prototype.initUI = function(app) {
- var count, descriptor, descriptors, i, j, n, sb, value;
-
- descriptors = this.get_uiDescriptors();
-
- if (descriptors && descriptors.length) {
- n = descriptors.length;
- i = 0;
- while (i < n)
- {
- // class (index 0)
- descriptor = descriptors[i++];
- this.currentObject_ =
- /* : org.apache.flex.core.ViewBase */ new descriptor();
- this.currentObject_.addToParent(this.element);
-
- // model (index 1)
- descriptor = descriptors[i++];
- if (descriptor) {
- value = new descriptor();
- this.currentObject_.addBead(value);
- }
- if (typeof this.currentObject_.initModel == 'function') {
- this.currentObject_.initModel();
- }
-
- // id (index 2)
- descriptor = descriptors[i++];
- if (descriptor) {
- this[descriptor] = this.currentObject_;
- }
-
- // num props
- count = descriptors[i++];
- for (j = 0; j < count; j++) {
- descriptor = descriptors[i++];
- value = descriptors[i++];
- this.currentObject_['set_' + descriptor](value);
- }
-
- // num beads
- count = descriptors[i++];
- for (j = 0; j < count; j++) {
- descriptor = descriptors[i++];
- value = new descriptor();
- this.currentObject_.addBead(value);
- }
- if (typeof this.currentObject_.initSkin == 'function') {
- this.currentObject_.initSkin();
- }
-
- // num events
- count = descriptors[i++];
- for (j = 0; j < count; j++) {
- descriptor = descriptors[i++];
- value = descriptors[i++];
- this.currentObject_.addEventListener(
- descriptor, org.apache.flex.FlexGlobal.createProxy(
- this, value
- )
- );
- }
-
- // num bindings
- count = descriptors[i++];
- for (j = 0; j < count; j++) {
- descriptor = descriptors[i++];
- value = descriptors[i++];
- switch (value) {
- case 0 : {
- sb = new org.apache.flex.binding.SimpleBinding();
- sb.destination = this.currentObject_;
- sb.destinationPropertyName = descriptor;
- sb.source = app[descriptors[i++]];
- sb.sourcePropertyName = descriptors[i++];
- sb.eventName = descriptors[i++];
- sb.initialize();
-
- break;
- }
- }
- }
- }
- }
-};
diff --git a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/staticControls/Label.js b/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/staticControls/Label.js
deleted file mode 100644
index 48fa9ae..0000000
--- a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/staticControls/Label.js
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.html.staticControls.Label');
-
-goog.require('org.apache.flex.core.UIBase');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.staticControls.Label = function() {
- org.apache.flex.core.UIBase.call(this);
-};
-goog.inherits(
- org.apache.flex.html.staticControls.Label, org.apache.flex.core.UIBase
-);
-
-/**
- * @override
- * @this {org.apache.flex.html.staticControls.Label}
- * @param {Object} p The parent element.
- */
-org.apache.flex.html.staticControls.Label.prototype.addToParent = function(p) {
- goog.base(this, 'addToParent', p);
-
- this.positioner = this.element;
-};
-
-/**
- * @expose
- * @this {org.apache.flex.html.staticControls.Label}
- * @return {string} The text getter.
- */
-org.apache.flex.html.staticControls.Label.prototype.get_text = function() {
- return this.element.innerHTML;
-};
-
-/**
- * @expose
- * @this {org.apache.flex.html.staticControls.Label}
- * @param {string} value The text setter.
- */
-org.apache.flex.html.staticControls.Label.prototype.set_text = function(value) {
- this.element.innerHTML = value;
-};
diff --git a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/staticControls/TextButton.js b/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/staticControls/TextButton.js
deleted file mode 100644
index 14abcfa..0000000
--- a/erikdebruin/asjs/frameworks/js/src/org/apache/flex/html/staticControls/TextButton.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('org.apache.flex.html.staticControls.TextButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.staticControls.TextButton = function() {
- org.apache.flex.core.UIBase.call(this);
-};
-goog.inherits(
- org.apache.flex.html.staticControls.TextButton, org.apache.flex.core.UIBase
-);
-
-/**
- * @override
- * @this {org.apache.flex.html.staticControls.TextButton}
- * @param {Object} p The parent element.
- */
-org.apache.flex.html.staticControls.TextButton.prototype.addToParent =
- function(p) {
- this.element = document.createElement('input');
- this.element.setAttribute('type', 'button');
-
- p.appendChild(this.element);
-
- this.positioner = this.element;
-};
-
-/**
- * @expose
- * @this {org.apache.flex.html.staticControls.TextButton}
- * @return {string} The text getter.
- */
-org.apache.flex.html.staticControls.TextButton.prototype.get_text = function() {
- return this.element.value;
-};
-
-/**
- * @expose
- * @this {org.apache.flex.html.staticControls.TextButton}
- * @param {string} value The text setter.
- */
-org.apache.flex.html.staticControls.TextButton.prototype.set_text =
- function(value) {
- this.element.value = value;
-};
diff --git a/erikdebruin/asjs/frameworks/js/tests/FlexJSTest.js b/erikdebruin/asjs/frameworks/js/tests/FlexJSTest.js
deleted file mode 100644
index cb81eac..0000000
--- a/erikdebruin/asjs/frameworks/js/tests/FlexJSTest.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('FlexJSTest');
-
-goog.require('MyController');
-goog.require('MyInitialView');
-goog.require('MyModel');
-goog.require('MySimpleValuesImpl');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-goog.require('org.apache.flex.core.Application');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.Application}
- */
-FlexJSTest = function() {
- org.apache.flex.core.Application.call(this);
-
- this.controller = org.apache.flex.FlexGlobal.newObject(
- MyController, [this]
- );
-
- this.initialView =
- /** @type {org.apache.flex.core.ViewBase} */ (
- org.apache.flex.FlexGlobal.newObject(MyInitialView, [this])
- );
-
- this.model =
- /** @type {flash.events.EventDispatcher} */ (
- org.apache.flex.FlexGlobal.newObject(MyModel, [])
- );
- this.model.set_labelText('Say hi!');
-
- this.valuesImpl =
- /** @type {org.apache.flex.core.SimpleValuesImpl} */ (
- org.apache.flex.FlexGlobal.newObject(MySimpleValuesImpl, [this])
- );
-
- // this method of logging survives the Closure Compiler
- //window['console']['log'](app);
-};
-goog.inherits(FlexJSTest, org.apache.flex.core.Application);
-
-// Ensures the symbol will be visible after compiler renaming.
-goog.exportSymbol('FlexJSTest', FlexJSTest);
diff --git a/erikdebruin/asjs/frameworks/js/tests/MyController.js b/erikdebruin/asjs/frameworks/js/tests/MyController.js
deleted file mode 100644
index beb6618..0000000
--- a/erikdebruin/asjs/frameworks/js/tests/MyController.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('MyController');
-
-goog.require('flash.events.EventDispatcher');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-/**
- * @constructor
- * @param {org.apache.flex.core.Application} app The main application.
- */
-MyController = function(app) {
- /**
- * @type {org.apache.flex.core.Application}
- */
- this.app = app || null;
-
- this.app.addEventListener(
- 'viewChanged', org.apache.flex.FlexGlobal.createProxy(
- this, this.viewChangeHandler
- )
- );
-};
-
-/**
- * @this {MyController}
- * @param {flash.events.Event} event The event.
- */
-MyController.prototype.viewChangeHandler = function(event) {
- this.app.initialView.addEventListener(
- 'buttonClicked', org.apache.flex.FlexGlobal.createProxy(
- this, this.buttonClickHandler
- )
- );
-};
-
-/**
- * @this {MyController}
- * @param {flash.events.Event} event The event.
- */
-MyController.prototype.buttonClickHandler = function(event) {
- this.app.model.set_labelText('Hello Universe');
-};
diff --git a/erikdebruin/asjs/frameworks/js/tests/MyInitialView.js b/erikdebruin/asjs/frameworks/js/tests/MyInitialView.js
deleted file mode 100644
index 88ac542..0000000
--- a/erikdebruin/asjs/frameworks/js/tests/MyInitialView.js
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('MyInitialView');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-goog.require('org.apache.flex.core.ViewBase');
-goog.require('org.apache.flex.html.staticControls.Label');
-goog.require('org.apache.flex.html.staticControls.TextButton');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ViewBase}
- */
-MyInitialView = function() {
- org.apache.flex.core.ViewBase.call(this);
-};
-goog.inherits(MyInitialView, org.apache.flex.core.ViewBase);
-
-/**
- * @override
- * @this {org.apache.flex.core.ViewBase}
- * @return {Array} The array of UI element descriptors.
- */
-MyInitialView.prototype.get_uiDescriptors = function() {
- return [
- org.apache.flex.html.staticControls.Label,
- null,
- 'lbl',
- 2, 'x', 100, 'y', 25,
- 0,
- 0,
- 1, 'text', 0, 'model', 'labelText', 'labelTextChanged',
- org.apache.flex.html.staticControls.TextButton,
- null,
- null,
- 3, 'text', 'OK', 'x', 100, 'y', 75,
- 0,
- 1, 'click', this.clickHandler, 0
- ];
-};
-
-/**
- * @this {MyInitialView}
- * @param {flash.events.Event} event The event.
- */
-MyInitialView.prototype.clickHandler = function(event) {
- this.dispatchEvent(
- /** @type {flash.events.Event} */ (
- org.apache.flex.FlexGlobal.newObject(
- flash.events.Event, ['buttonClicked']
- )
- )
- );
-};
diff --git a/erikdebruin/asjs/frameworks/js/tests/MyModel.js b/erikdebruin/asjs/frameworks/js/tests/MyModel.js
deleted file mode 100644
index 59a659a..0000000
--- a/erikdebruin/asjs/frameworks/js/tests/MyModel.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('MyModel');
-
-goog.require('flash.events.EventDispatcher');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-/**
- * @constructor
- * @extends {flash.events.EventDispatcher}
- */
-MyModel = function() {
- flash.events.EventDispatcher.call(this);
-
- /**
- * @private
- * @type {string}
- */
- this.labelText_;
-};
-goog.inherits(MyModel, flash.events.EventDispatcher);
-
-/**
- * @expose
- * @this {MyModel}
- * @return {string} The labelText getter.
- */
-MyModel.prototype.get_labelText = function() {
- return this.labelText_;
-};
-
-/**
- * @expose
- * @this {MyModel}
- * @param {string} value The labelText setter.
- */
-MyModel.prototype.set_labelText = function(value) {
- if (value != this.labelText_) {
- this.labelText_ = value;
-
- this.dispatchEvent(
- org.apache.flex.FlexGlobal.newObject(
- flash.events.Event, ['labelTextChanged']
- )
- );
- }
-};
diff --git a/erikdebruin/asjs/frameworks/js/tests/MySimpleValuesImpl.js b/erikdebruin/asjs/frameworks/js/tests/MySimpleValuesImpl.js
deleted file mode 100644
index 9373405..0000000
--- a/erikdebruin/asjs/frameworks/js/tests/MySimpleValuesImpl.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('MySimpleValuesImpl');
-
-goog.require('org.apache.flex.core.SimpleValuesImpl');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.SimpleValuesImpl}
- */
-MySimpleValuesImpl = function() {
- org.apache.flex.core.SimpleValuesImpl.call(this);
-
- /**
- * @private
- * @type {Object}
- */
- this.values_ = {
- /*
- ITextButtonBead :
- org.apache.flex.html.staticControls.beads.TextButtonBead,
- ITextBead :
- org.apache.flex.html.staticControls.beads.TextFieldBead,
- ITextModel :
- org.apache.flex.html.staticControls.beads.models.TextModel
- */
- };
-};
-goog.inherits(MySimpleValuesImpl, org.apache.flex.core.SimpleValuesImpl);
diff --git a/erikdebruin/asjs/frameworks/js/tests/test.html b/erikdebruin/asjs/frameworks/js/tests/test.html
deleted file mode 100644
index 5b7bc41..0000000
--- a/erikdebruin/asjs/frameworks/js/tests/test.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<html>
-<head>
-
- <!-- start "compiled" -->
- <script type="text/javascript" src="./FlexJS.js"></script>
- <!-- end "compiled" -->
-
- <!-- start "all": sequence matters ;-) ->
-
- <script type="text/javascript" src="../closure/library/closure/goog/base.js"></script>
-
- <script type="text/javascript" src="../src/FlexObject.js"></script>
-
- <script type="text/javascript" src="../src/flash/events/Event.js"></script>
-
- <script type="text/javascript" src="../src/FlexGlobal.js"></script>
-
- <script type="text/javascript" src="../src/flash/events/EventDispatcher.js"></script>
-
- <script type="text/javascript" src="../src/org/apache/flex/binding/SimpleBinding.js"></script>
-
- <script type="text/javascript" src="../src/org/apache/flex/core/UIBase.js"></script>
- <script type="text/javascript" src="../src/org/apache/flex/core/ViewBase.js"></script>
- <script type="text/javascript" src="../src/org/apache/flex/core/ValuesManager.js"></script>
- <script type="text/javascript" src="../src/org/apache/flex/core/SimpleValuesImpl.js"></script>
- <script type="text/javascript" src="../src/org/apache/flex/core/Application.js"></script>
-
- <script type="text/javascript" src="../src/org/apache/flex/html/staticControls/Label.js"></script>
- <script type="text/javascript" src="../src/org/apache/flex/html/staticControls/TextButton.js"></script>
-
- <script type="text/javascript" src="./MySimpleValuesImpl.js"></script>
- <script type="text/javascript" src="./MyController.js"></script>
- <script type="text/javascript" src="./MyModel.js"></script>
- <script type="text/javascript" src="./MyInitialView.js"></script>
-
- <script type="text/javascript" src="./FlexJSTest.js"></script>
-
- <!-- end "all" -->
-
-</head>
-<body onload="new FlexJSTest().start();">
-</body>
-</html>
\ No newline at end of file
diff --git a/erikdebruin/asjs/publisher/README b/erikdebruin/asjs/publisher/README
deleted file mode 100644
index 033ca7b..0000000
--- a/erikdebruin/asjs/publisher/README
+++ /dev/null
@@ -1,20 +0,0 @@
-1. create a directory 'closure' somewhere
-2. get Closure Library and install it in 'closure/library'
- - svn checkout http://closure-library.googlecode.com/svn/trunk/ library
-3. download Closure Compiler and unzip in 'closure/compiler'
- - http://closure-compiler.googlecode.com/files/compiler-latest.zip
-4. install Closure Linter into 'closure/linter'
- - https://developers.google.com/closure/utilities/docs/linter_howto
-5. get Closure Builder and install it in 'closure/builder'
- - svn checkout http://closure-library.googlecode.com/svn/trunk/closure/bin/build/ builder
-6. edit 'build.properties' to reflect the location of the 'closure' directory
-7. build FalconJS (see README)
-8. run the publish script with the 'ant -Dapp.name=[your.app.name.here] -Dapp.location=[your.app.location.here]'
-
-ATTENTION!
-As of 2012-12-06, the FalconJS compiler doesn't output JS that can be parsed
-by the new tool set. While this is being corrected, you'll have to create your
-own 'intermediate' JS project, or modify one of the examples (I've included
-'FlexJSTest_dummy' in the repo). Make sure to not include the 'falconJS'
-dependency (?) in the build.xml and if you don't want to loose your work,
-make sure to set CLEAN_INTERMEDIATE_JS to 'false' in build.properties.
diff --git a/erikdebruin/asjs/publisher/build.properties b/erikdebruin/asjs/publisher/build.properties
deleted file mode 100644
index 473d8a3..0000000
--- a/erikdebruin/asjs/publisher/build.properties
+++ /dev/null
@@ -1,46 +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.
-
--->
-
-# Clean out the previous run's intermediate files? Set false if working with a dummy set of JS intermediairies.
-CLEAN_INTERMEDIATE_JS=false
-
-# Location of the Google Closure tool set (EDIT THIS).
-DIR_CLOSURE=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure
-# With a default install there should be no need to edit these:
-DIR_CLOSURE_LIBRARY=${DIR_CLOSURE}/library
-FILE_CLOSURE_BUILDER=${DIR_CLOSURE}/builder/closurebuilder.py
-FILE_CLOSURE_DEPENDENCIES=${DIR_CLOSURE_LIBRARY}/closure/goog/deps.js
-FILE_CLOSURE_JAR=${DIR_CLOSURE}/compiler/compiler.jar
-
-# Location of the FlexJS framework (from SVN, with default working copy structure there is no need to edit this)
-DIR_FRAMEWORK=${basedir}/../frameworks/js/src
-
-# Location of intermediate and release project files
-DIR_INTERMEDIATE=${basedir}/intermediate
-DIR_RELEASE=${basedir}/release
-# Location of the current project's files, with the 'app' property passed in using the '-Dapp.name=[value]' argument.
-DIR_INTERMEDIATE_APPLICATION=${DIR_INTERMEDIATE}/${app.name}
-DIR_RELEASE_APPLICATION=${DIR_RELEASE}/${app.name}
-
-# Location of the FalconJS mxmlc script (EDIT THIS).
-FILE_FALCONJS_COMPILE_SCRIPT=/Users/erik/Documents/ApacheFlex/repo/falcon/compiler.js/bin/mxmlc
-
-# No need to edit these.
-FILE_HTML_TEMPLATE=${basedir}/index.html.template
-FILE_RELEASE=${DIR_RELEASE_APPLICATION}/FlexJS.js
diff --git a/erikdebruin/asjs/publisher/build.xml b/erikdebruin/asjs/publisher/build.xml
deleted file mode 100644
index 6e44d57..0000000
--- a/erikdebruin/asjs/publisher/build.xml
+++ /dev/null
@@ -1,94 +0,0 @@
-<?xml version="1.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.
-
--->
-<project name="asjsPublisher" default="main" basedir=".">
- <property file="${basedir}/build.properties" description="Properties for ASJS-Framework project" />
-
- <macrodef name="closureBuilder">
- <sequential>
- <exec executable="python" failonerror="true" logError="true">
- <arg value="${FILE_CLOSURE_BUILDER}" />
- <arg line="--root=${DIR_CLOSURE_LIBRARY}" />
- <arg line="--root=${DIR_FRAMEWORK}" />
- <arg line="--root=${DIR_INTERMEDIATE_APPLICATION}" />
- <arg line="--output_mode=compiled" />
- <arg line="--compiler_jar=${FILE_CLOSURE_JAR}" />
- <arg line="--output_file=${FILE_RELEASE}" />
- <arg line="--compiler_flags=--compilation_level=ADVANCED_OPTIMIZATIONS" />
- <arg line="--compiler_flags=--js=${FILE_CLOSURE_DEPENDENCIES}" />
- <arg line="--compiler_flags=--warning_level=VERBOSE" />
- <arg line="--namespace=${app.name}" />
- <arg line="--compiler_flags=--jscomp_error=checkTypes" />
- </exec>
- </sequential>
- </macrodef>
-
- <!-- target name="main" description="Compiles framework files" depends="clean,createDirs,falconJS,closureBuilding,createHTML" / -->
- <target name="main" description="Compiles framework files" depends="clean,createDirs,closureBuilding,createHTML" />
-
- <target name="clean" description="Clean up previous runs" depends="cleanIntermediate,cleanRelease">
- <echo>Delete 'intermediate' and 'release' directories</echo>
- </target>
-
- <target name="checkDeleteIntermediate">
- <condition property="deleteIntermediate">
- <istrue value="${CLEAN_INTERMEDIATE_JS}" />
- </condition>
- </target>
-
- <target name="cleanIntermediate" depends="checkDeleteIntermediate" if="deleteIntermediate">
- <delete dir="${DIR_INTERMEDIATE_APPLICATION}" />
- </target>
-
- <target name="cleanRelease">
- <delete dir="${DIR_RELEASE_APPLICATION}" />
- </target>
-
- <target name="createDirs">
- <echo>Create 'intermediate' and 'release' directory structure</echo>
- <mkdir dir="${DIR_INTERMEDIATE_APPLICATION}" />
- <mkdir dir="${DIR_INTERMEDIATE_APPLICATION}/js" />
- <mkdir dir="${DIR_RELEASE_APPLICATION}" />
- </target>
-
- <target name="falconJS">
- <echo>Compiling the AS project into intermediate JS</echo>
- <copy todir="${DIR_INTERMEDIATE_APPLICATION}/as" flatten="true">
- <fileset dir="${app.location}/${app.name}">
- <include name="**/*.as"/>
- </fileset>
- </copy>
- <exec executable="${FILE_FALCONJS_COMPILE_SCRIPT}">
- <arg value="${DIR_INTERMEDIATE_APPLICATION}/as/${app.name}.as"/>
- <arg value="-output"/>
- <arg value="${DIR_INTERMEDIATE_APPLICATION}/js/${app.name}.js"/>
- </exec>
- </target>
-
- <target name="closureBuilding">
- <echo>Creating combined and compiled output JS</echo>
- <closureBuilder />
- </target>
-
- <target name="createHTML">
- <echo>Creating playback HTML file from template</echo>
- <copy file="${FILE_HTML_TEMPLATE}" tofile="${DIR_RELEASE_APPLICATION}/${app.name}.html" overwrite="true" />
- <replace file="${DIR_RELEASE_APPLICATION}/${app.name}.html" token="@APPLICATION_NAME@" value="${app.name}" />
- </target>
-</project>
diff --git a/erikdebruin/asjs/publisher/index.html.template b/erikdebruin/asjs/publisher/index.html.template
deleted file mode 100644
index a9e149c..0000000
--- a/erikdebruin/asjs/publisher/index.html.template
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge" >
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
- <script type="text/javascript" src="./FlexJS.js"></script>
-</head>
-<body onload="new @APPLICATION_NAME@().start();">
-</body>
-</html>
diff --git a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/FlexJSTest_dummy.js b/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/FlexJSTest_dummy.js
deleted file mode 100644
index fac294c..0000000
--- a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/FlexJSTest_dummy.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('FlexJSTest_dummy');
-
-goog.require('MyController');
-goog.require('MyInitialView');
-goog.require('MyModel');
-goog.require('MySimpleValuesImpl');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-goog.require('org.apache.flex.core.Application');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.Application}
- */
-FlexJSTest_dummy = function() {
- org.apache.flex.core.Application.call(this);
-
- this.controller = org.apache.flex.FlexGlobal.newObject(
- MyController, [this]
- );
-
- this.initialView =
- /** @type {org.apache.flex.core.ViewBase} */ (
- org.apache.flex.FlexGlobal.newObject(MyInitialView, [this])
- );
-
- this.model =
- /** @type {flash.events.EventDispatcher} */ (
- org.apache.flex.FlexGlobal.newObject(MyModel, [])
- );
- this.model.set_labelText('Say hi!');
-
- this.valuesImpl =
- /** @type {org.apache.flex.core.SimpleValuesImpl} */ (
- org.apache.flex.FlexGlobal.newObject(MySimpleValuesImpl, [this])
- );
-
- // this method of logging survives the Closure Compiler
- //window['console']['log'](app);
-};
-goog.inherits(FlexJSTest_dummy, org.apache.flex.core.Application);
-
-// Ensures the symbol will be visible after compiler renaming.
-goog.exportSymbol('FlexJSTest_dummy', FlexJSTest_dummy);
diff --git a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyController.js b/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyController.js
deleted file mode 100644
index beb6618..0000000
--- a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyController.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('MyController');
-
-goog.require('flash.events.EventDispatcher');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-/**
- * @constructor
- * @param {org.apache.flex.core.Application} app The main application.
- */
-MyController = function(app) {
- /**
- * @type {org.apache.flex.core.Application}
- */
- this.app = app || null;
-
- this.app.addEventListener(
- 'viewChanged', org.apache.flex.FlexGlobal.createProxy(
- this, this.viewChangeHandler
- )
- );
-};
-
-/**
- * @this {MyController}
- * @param {flash.events.Event} event The event.
- */
-MyController.prototype.viewChangeHandler = function(event) {
- this.app.initialView.addEventListener(
- 'buttonClicked', org.apache.flex.FlexGlobal.createProxy(
- this, this.buttonClickHandler
- )
- );
-};
-
-/**
- * @this {MyController}
- * @param {flash.events.Event} event The event.
- */
-MyController.prototype.buttonClickHandler = function(event) {
- this.app.model.set_labelText('Hello Universe');
-};
diff --git a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyInitialView.js b/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyInitialView.js
deleted file mode 100644
index 88ac542..0000000
--- a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyInitialView.js
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('MyInitialView');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-goog.require('org.apache.flex.core.ViewBase');
-goog.require('org.apache.flex.html.staticControls.Label');
-goog.require('org.apache.flex.html.staticControls.TextButton');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ViewBase}
- */
-MyInitialView = function() {
- org.apache.flex.core.ViewBase.call(this);
-};
-goog.inherits(MyInitialView, org.apache.flex.core.ViewBase);
-
-/**
- * @override
- * @this {org.apache.flex.core.ViewBase}
- * @return {Array} The array of UI element descriptors.
- */
-MyInitialView.prototype.get_uiDescriptors = function() {
- return [
- org.apache.flex.html.staticControls.Label,
- null,
- 'lbl',
- 2, 'x', 100, 'y', 25,
- 0,
- 0,
- 1, 'text', 0, 'model', 'labelText', 'labelTextChanged',
- org.apache.flex.html.staticControls.TextButton,
- null,
- null,
- 3, 'text', 'OK', 'x', 100, 'y', 75,
- 0,
- 1, 'click', this.clickHandler, 0
- ];
-};
-
-/**
- * @this {MyInitialView}
- * @param {flash.events.Event} event The event.
- */
-MyInitialView.prototype.clickHandler = function(event) {
- this.dispatchEvent(
- /** @type {flash.events.Event} */ (
- org.apache.flex.FlexGlobal.newObject(
- flash.events.Event, ['buttonClicked']
- )
- )
- );
-};
diff --git a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyModel.js b/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyModel.js
deleted file mode 100644
index 59a659a..0000000
--- a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MyModel.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('MyModel');
-
-goog.require('flash.events.EventDispatcher');
-
-goog.require('org.apache.flex.FlexGlobal');
-
-/**
- * @constructor
- * @extends {flash.events.EventDispatcher}
- */
-MyModel = function() {
- flash.events.EventDispatcher.call(this);
-
- /**
- * @private
- * @type {string}
- */
- this.labelText_;
-};
-goog.inherits(MyModel, flash.events.EventDispatcher);
-
-/**
- * @expose
- * @this {MyModel}
- * @return {string} The labelText getter.
- */
-MyModel.prototype.get_labelText = function() {
- return this.labelText_;
-};
-
-/**
- * @expose
- * @this {MyModel}
- * @param {string} value The labelText setter.
- */
-MyModel.prototype.set_labelText = function(value) {
- if (value != this.labelText_) {
- this.labelText_ = value;
-
- this.dispatchEvent(
- org.apache.flex.FlexGlobal.newObject(
- flash.events.Event, ['labelTextChanged']
- )
- );
- }
-};
diff --git a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MySimpleValuesImpl.js b/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MySimpleValuesImpl.js
deleted file mode 100644
index 9373405..0000000
--- a/erikdebruin/asjs/publisher/intermediate/FlexJSTest_dummy/MySimpleValuesImpl.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Licensed 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.
- */
-
-goog.provide('MySimpleValuesImpl');
-
-goog.require('org.apache.flex.core.SimpleValuesImpl');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.SimpleValuesImpl}
- */
-MySimpleValuesImpl = function() {
- org.apache.flex.core.SimpleValuesImpl.call(this);
-
- /**
- * @private
- * @type {Object}
- */
- this.values_ = {
- /*
- ITextButtonBead :
- org.apache.flex.html.staticControls.beads.TextButtonBead,
- ITextBead :
- org.apache.flex.html.staticControls.beads.TextFieldBead,
- ITextModel :
- org.apache.flex.html.staticControls.beads.models.TextModel
- */
- };
-};
-goog.inherits(MySimpleValuesImpl, org.apache.flex.core.SimpleValuesImpl);