You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/12/14 17:08:56 UTC
[1/2] git commit: [flex-asjs] [refs/heads/core_js_to_as] - remove the
last of the handwritten js files (except for googlemaps)
Repository: flex-asjs
Updated Branches:
refs/heads/core_js_to_as 20e764d25 -> 46e3dc61a
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
deleted file mode 100644
index 09670eb..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
+++ /dev/null
@@ -1,149 +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.jquery.ToggleTextButton');
-
-goog.require('org.apache.flex.html.Button');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Button}
- */
-org.apache.flex.jquery.ToggleTextButton = function() {
- org.apache.flex.jquery.ToggleTextButton.base(this, 'constructor');
-
-
-
- /**
- * @private
- * @type {boolean}
- */
- this.selected_ = false;
-};
-goog.inherits(org.apache.flex.jquery.ToggleTextButton,
- org.apache.flex.html.Button);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.jquery.ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ToggleTextButton',
- qName: 'org.apache.flex.jquery.ToggleTextButton'}] };
-
-
-/**
- * @export
- * Used to provide ids to the ToggleTextButton.
- */
-org.apache.flex.jquery.ToggleTextButton.toggleCounter = 0;
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.ToggleTextButton.prototype.createElement =
- function() {
-
- // the radio itself
- this.input = document.createElement('input');
- this.input.type = 'checkbox';
- this.input.name = 'checkbox';
- this.input.id = '_toggle_' + org.apache.flex.jquery.ToggleTextButton.toggleCounter++;
-
- this.labelFor = document.createElement('label');
- this.labelFor.htmlFor = this.input.id;
-
- this.positioner = document.createElement('div');
- this.positioner.style.position = 'relative';
- this.positioner.appendChild(this.input);
- this.positioner.appendChild(this.labelFor);
- this.element = this.input;
-
- this.input.flexjs_wrapper = this;
- this.labelFor.flexjs_wrapper = this;
- this.positioner.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.ToggleTextButton.prototype.addedToParent =
- function() {
- org.apache.flex.jquery.ToggleTextButton.base(this, 'addedToParent');
- $(this.element).button();
-};
-
-
-Object.defineProperties(org.apache.flex.jquery.ToggleTextButton.prototype, {
- /** @export */
- id: {
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(org.apache.flex.jquery.ToggleTextButton.base, this, 'id', value);
- this.labelFor.id = value;
- this.labelFor.htmlFor = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- get: function() {
- return this.labelFor.innerHTML;
- },
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- set: function(value) {
- this.labelFor.innerHTML = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- get: function() {
- return this.input.selected_;
- },
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- set: function(value) {
- if (this.input.selected_ != value) {
- this.inputselected_ = value;
- /*
- var className = this.className;
- if (value) {
- if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length)
- this.className = className.substring(0, className.length - this.SELECTED.length);
- }
- else {
- if (className.indexOf(this.SELECTED) == -1)
- this.className = className + this.SELECTED;
- }
- */
- }
- }
- }
-});
-
-
-/**
- * @type {string} The selected setter.
- */
-org.apache.flex.jquery.ToggleTextButton.prototype.SELECTED = '_Selected';
-
[2/2] git commit: [flex-asjs] [refs/heads/core_js_to_as] - remove the
last of the handwritten js files (except for googlemaps)
Posted by ah...@apache.org.
remove the last of the handwritten js files (except for googlemaps)
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/46e3dc61
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/46e3dc61
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/46e3dc61
Branch: refs/heads/core_js_to_as
Commit: 46e3dc61aa72abbe781e40d115ab18d0cd5b71f8
Parents: 20e764d
Author: Alex Harui <ah...@apache.org>
Authored: Mon Dec 14 08:08:45 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 14 08:08:45 2015 -0800
----------------------------------------------------------------------
.../CreateJS/js/src/createjs_externals.js | 20 --
.../src/org/apache/flex/createjs/Application.js | 121 --------
.../js/src/org/apache/flex/createjs/CheckBox.js | 131 --------
.../js/src/org/apache/flex/createjs/Label.js | 64 ----
.../src/org/apache/flex/createjs/TextButton.js | 91 ------
.../src/org/apache/flex/createjs/core/UIBase.js | 136 ---------
.../org/apache/flex/createjs/core/ViewBase.js | 76 -----
.../js/src/org/apache/flex/flat/CheckBox.js | 138 ---------
.../js/src/org/apache/flex/flat/DropDownList.js | 296 -------------------
.../js/src/org/apache/flex/flat/RadioButton.js | 228 --------------
.../projects/Formatters/compile-config.xml | 4 -
.../js/src/org/apache/flex/core/FormatBase.js | 126 --------
frameworks/projects/HTML5/compile-config.xml | 4 +-
.../js/src/org/apache/flex/html5/CheckBox.js | 76 -----
.../js/src/org/apache/flex/html5/ComboBox.js | 187 ------------
.../src/org/apache/flex/html5/DropDownList.js | 29 --
.../HTML5/js/src/org/apache/flex/html5/Label.js | 57 ----
.../HTML5/js/src/org/apache/flex/html5/List.js | 42 ---
.../js/src/org/apache/flex/html5/RadioButton.js | 87 ------
.../js/src/org/apache/flex/html5/TextArea.js | 58 ----
.../js/src/org/apache/flex/html5/TextButton.js | 59 ----
.../js/src/org/apache/flex/html5/TextInput.js | 59 ----
.../projects/JQuery/js/src/jquery_externals.js | 21 --
.../src/org/apache/flex/jquery/Application.js | 42 ---
.../js/src/org/apache/flex/jquery/CheckBox.js | 88 ------
.../src/org/apache/flex/jquery/RadioButton.js | 191 ------------
.../js/src/org/apache/flex/jquery/TextButton.js | 69 -----
.../org/apache/flex/jquery/ToggleTextButton.js | 149 ----------
28 files changed, 2 insertions(+), 2647 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/createjs_externals.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/createjs_externals.js b/frameworks/projects/CreateJS/js/src/createjs_externals.js
deleted file mode 100644
index 7daaff1..0000000
--- a/frameworks/projects/CreateJS/js/src/createjs_externals.js
+++ /dev/null
@@ -1,20 +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.
- */
-
-
-/**
- * This file is used to establish external APIs so the closure-compiler
- * can resolve references and won't minify names
- */
-function createjs() {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Application.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Application.js
deleted file mode 100644
index b1449e0..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Application.js
+++ /dev/null
@@ -1,121 +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.
- */
-
-// ------------------------------------------------------------------
-// createjs
-// ------------------------------------------------------------------
-
-// Bring in the createjs sources. You can use the minified versions for
-// better performance.
-//var mainjs = document.createElement('script');
-//mainjs.src = './createjs/easeljs-0.6.0.min.js';
-//document.head.appendChild(mainjs);
-
-// ------------------------------------------------------------------
-// end createjs
-// ------------------------------------------------------------------
-
-goog.provide('org.apache.flex.createjs.Application');
-
-goog.require('org.apache.flex.core.HTMLElementWrapper');
-goog.require('org.apache.flex.utils.MXMLDataInterpreter');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.HTMLElementWrapper}
- */
-org.apache.flex.createjs.Application = function() {
- org.apache.flex.createjs.Application.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.createjs.Application,
- org.apache.flex.core.HTMLElementWrapper);
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.Application.prototype.controller = null;
-
-
-/**
- * @export
- * @type {org.apache.flex.createjs.core.ViewBase}
- */
-org.apache.flex.createjs.Application.prototype.initialView = null;
-
-
-/**
- * @export
- * @type {createjs.Stage}
- */
-org.apache.flex.createjs.Application.prototype.stage = null;
-
-
-/**
- * @export
- * @type {org.apache.flex.events.EventDispatcher}
- */
-org.apache.flex.createjs.Application.prototype.model = null;
-
-
-/**
- * @export
- * @type {org.apache.flex.core.SimpleValuesImpl}
- */
-org.apache.flex.createjs.Application.prototype.valuesImpl = null;
-
-
-/**
- * @export
- */
-org.apache.flex.createjs.Application.prototype.start = function() {
- var body;
-
- // For createjs, the application is the same as the canvas
- // and it provides convenient access to the stage.
-
- this.element = document.createElement('canvas');
- this.element.id = 'flexjsCanvas';
- this.element.width = 700;
- this.element.height = 500;
-
- body = document.getElementsByTagName('body')[0];
- body.appendChild(this.element);
-
- this.stage = new createjs.Stage('flexjsCanvas');
-
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this,
- this.MXMLProperties);
-
- this.dispatchEvent('initialize');
-
- this.initialView.applicationModel = this.model;
- this.addElement(this.initialView);
-
- this.dispatchEvent('viewChanged');
-};
-
-
-/**
- * @param {Object} c The child element.
- */
-org.apache.flex.createjs.core.Application.prototype.addElement =
- function(c) {
- this.stage.addChild(c.element);
- c.addedToParent();
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/CheckBox.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/CheckBox.js
deleted file mode 100644
index 4fa7714..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/CheckBox.js
+++ /dev/null
@@ -1,131 +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.createjs.CheckBox');
-
-goog.require('org.apache.flex.createjs.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.createjs.core.UIBase}
- */
-org.apache.flex.createjs.CheckBox = function() {
- org.apache.flex.createjs.CheckBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.createjs.CheckBox,
- org.apache.flex.createjs.core.UIBase);
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.CheckBox.prototype.checkMark = null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.CheckBox.prototype.checkMarkBackground =
- null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.CheckBox.prototype.checkBoxLabel = null;
-
-
-/**
- * @override
- */
-org.apache.flex.createjs.CheckBox.prototype.createElement =
- function() {
- this.checkMarkBackground = new createjs.Shape();
- this.checkMarkBackground.name = 'checkmarkbackground';
- this.checkMarkBackground.graphics.beginFill('red').
- drawRoundRect(0, 0, 40, 40, 8);
- //this.checkMarkBackground.graphics.setStrokeStyle( 0 ).beginStroke('#000').
- // drawRect( 0, 0, this.width, this.height);
- //var hit = new createjs.Shape();
- //hit.graphics.beginFill("#000").drawRect(0, 0, this.width, this.height);
- //this.checkMarkBackground.hitArea = hit;
-
- this.checkMark = new createjs.Shape();
- this.checkMark.name = 'checkmark';
- this.checkMark.graphics.beginFill('white').drawRoundRect(0, 0, 32, 32, 6);
- this.checkMark.x = 4;
- this.checkMark.y = 4;
- this.checkMark.visible = this.selected;
-
- this.checkBoxLabel = new createjs.Text('checkbox', '20px Arial', '#ff7700');
- this.checkBoxLabel.name = 'label';
- this.checkBoxLabel.textAlign = 'left';
- this.checkBoxLabel.textBaseline = 'middle';
- this.checkBoxLabel.x = 45;
- this.checkBoxLabel.y = 40 / 2;
-
- this.element = new createjs.Container();
- this.element.name = 'checkbox';
- this.element.addChild(this.checkMarkBackground, this.checkBoxLabel,
- this.checkMark);
- // use bind(this) to avoid loose scope
- this.element.onClick = this.clickHandler.bind(this);
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.createjs.CheckBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.createjs.CheckBox} */
- get: function() {
- return this.checkBoxLabel.text;
- },
- /** @this {org.apache.flex.createjs.CheckBox} */
- set: function(value) {
- this.checkBoxLabel.text = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.createjs.CheckBox} */
- get: function() {
- return this.selected;
- },
- /** @this {org.apache.flex.createjs.CheckBox} */
- set: function(value) {
- this.checkMark.visible = this.selected = value;
- this.element.getStage().update();
- }
- }
-});
-
-
-/**
- * @export
- * @param {string|Object|goog.events.Event} event The event.
- */
-org.apache.flex.createjs.CheckBox.prototype.clickHandler =
- function(event) {
- this.selected = !this.selected;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Label.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Label.js
deleted file mode 100644
index d6751d9..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Label.js
+++ /dev/null
@@ -1,64 +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.createjs.Label');
-
-goog.require('org.apache.flex.createjs.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.createjs.core.UIBase}
- */
-org.apache.flex.createjs.Label = function() {
- org.apache.flex.createjs.core.UIBase.call(this);
-};
-goog.inherits(org.apache.flex.createjs.Label,
- org.apache.flex.createjs.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.createjs.Label.prototype.createElement =
- function(p) {
- org.apache.flex.createjs.Label.base(this, 'createElement');
-
- this.element = new createjs.Text('default text', '20px Arial', '#ff7700');
- this.element.x = 0;
- this.element.y = 20;
- this.element.textBaseline = 'alphabetic';
- p.addChild(this.element);
- p.getStage().update();
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-};
-
-
-Object.defineProperties(org.apache.flex.createjs.Label.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.createjs.Label} */
- get: function() {
- return this.element.text;
- },
- /** @this {org.apache.flex.createjs.Label} */
- set: function(value) {
- this.element.text = value;
- this.element.getStage().update();
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/TextButton.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/TextButton.js
deleted file mode 100644
index b98c873..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/TextButton.js
+++ /dev/null
@@ -1,91 +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.createjs.TextButton');
-
-goog.require('org.apache.flex.createjs.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.createjs.core.UIBase}
- */
-org.apache.flex.createjs.TextButton = function() {
- org.apache.flex.createjs.core.UIBase.call(this);
-};
-goog.inherits(org.apache.flex.createjs.TextButton,
- org.apache.flex.createjs.core.UIBase);
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.TextButton.prototype.buttonLabel = null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.TextButton.prototype.buttonBackground =
- null;
-
-
-/**
- * @override
- */
-org.apache.flex.createjs.TextButton.prototype.createElement =
- function(p) {
-
- this.buttonBackground = new createjs.Shape();
- this.buttonBackground.name = 'background';
- this.buttonBackground.graphics.beginFill('red').
- drawRoundRect(0, 0, 200, 60, 10);
-
- this.buttonLabel = new createjs.Text('button', 'bold 24px Arial',
- '#FFFFFF');
- this.buttonLabel.name = 'label';
- this.buttonLabel.textAlign = 'center';
- this.buttonLabel.textBaseline = 'middle';
- this.buttonLabel.x = 200 / 2;
- this.buttonLabel.y = 60 / 2;
-
- this.element = new createjs.Container();
- this.element.name = 'button';
- this.element.x = 50;
- this.element.y = 25;
- this.element.addChild(this.buttonBackground, this.buttonLabel);
- p.addChild(this.element);
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-};
-
-
-Object.defineProperties(org.apache.flex.createjs.TextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.createjs.TextButton} */
- get: function() {
- return this.buttonLabel.text;
- },
- /** @this {org.apache.flex.createjs.TextButton} */
- set: function(value) {
- this.buttonLabel.text = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/UIBase.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/UIBase.js
deleted file mode 100644
index 1a2a13a..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/UIBase.js
+++ /dev/null
@@ -1,136 +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.createjs.core.UIBase');
-
-goog.require('org.apache.flex.core.HTMLElementWrapper');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.HTMLElementWrapper}
- */
-org.apache.flex.createjs.core.UIBase = function() {
- org.apache.flex.createjs.core.UIBase.base(this, 'constructor');
-
- /**
- * @protected
- * @type {Object}
- */
- this.positioner = null;
-
- this.createElement();
-};
-goog.inherits(org.apache.flex.createjs.core.UIBase,
- org.apache.flex.core.HTMLElementWrapper);
-
-
-/**
- * @param {Object} c The child element.
- */
-org.apache.flex.createjs.core.UIBase.prototype.addElement =
- function(c) {
- this.addChild(c.element);
-};
-
-
-/**
- */
-org.apache.flex.createjs.core.UIBase.prototype.createElement =
- function() {
- this.element = new createjs.Container();
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-};
-
-
-Object.defineProperties(org.apache.flex.createjs.core.UIBase.prototype, {
- /** @export */
- x: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(pixels) {
- this.positioner.x = pixels;
- this.element.getStage().update();
- }
- },
- /** @export */
- y: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(pixels) {
- this.positioner.y = pixels;
- this.element.getStage().update();
- }
- },
- /** @export */
- width: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(pixels) {
- this.positioner.width = pixels;
- this.element.getStage().update();
- }
- },
- /** @export */
- height: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(pixels) {
- this.positioner.height = pixels;
- this.element.getStage().update();
- }
- },
- /** @export */
- id: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- get: function() {
- return this.name;
- },
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(value) {
- if (this.name !== value) {
- this.element.name = value;
- this.name = value;
- this.dispatchEvent('idChanged');
- }
- }
- },
- /** @export */
- model: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- get: function() {
- return this.model;
- },
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(value) {
- if (this.model !== value) {
- this.addBead(value);
- this.dispatchEvent('modelChanged');
- }
- }
- }
-});
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.createjs.core.UIBase.prototype.id = null;
-
-
-/**
- * @export
- * @type {object}
- */
-org.apache.flex.createjs.core.UIBase.prototype.model = null;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/ViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/ViewBase.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/ViewBase.js
deleted file mode 100644
index 7345e61..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/ViewBase.js
+++ /dev/null
@@ -1,76 +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.createjs.core.ViewBase');
-
-goog.require('org.apache.flex.createjs.core.UIBase');
-goog.require('org.apache.flex.utils.MXMLDataInterpreter');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.createjs.core.UIBase}
- */
-org.apache.flex.createjs.core.ViewBase = function() {
- org.apache.flex.createjs.core.ViewBase.base(this, 'constructor');
-
- /**
- * @private
- * @type {org.apache.flex.createjs.core.ViewBase}
- */
- this.currentObject_ = null;
-};
-goog.inherits(org.apache.flex.createjs.core.ViewBase,
- org.apache.flex.createjs.core.UIBase);
-
-
-Object.defineProperties(org.apache.flex.createjs.core.ViewBase.prototype, {
- /** @export */
- applicationModel: {
- /** @this {org.apache.flex.createjs.core.ViewBase} */
- get: function() {
- return this.applicationModel_;
- },
- set: function(value) {
- this.applicationModel = value;
- }
- }
-});
-
-
-/**
- * @export
- * @type {Array}
- */
-org.apache.flex.createjs.core.ViewBase.prototype.MXMLProperties = null;
-
-
-/**
- * @export
- * @type {Array}
- */
-org.apache.flex.createjs.core.ViewBase.prototype.MXMLDescriptor = null;
-
-
-/**
- * @param {Object} model The model for this view.
- */
-org.apache.flex.createjs.core.ViewBase.prototype.initUI = function(model) {
- this.applicationModel = model;
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this,
- this.MXMLProperties);
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this,
- this, this.MXMLDescriptor);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Flat/js/src/org/apache/flex/flat/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/js/src/org/apache/flex/flat/CheckBox.js b/frameworks/projects/Flat/js/src/org/apache/flex/flat/CheckBox.js
deleted file mode 100644
index e8fcfea..0000000
--- a/frameworks/projects/Flat/js/src/org/apache/flex/flat/CheckBox.js
+++ /dev/null
@@ -1,138 +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.flat.CheckBox');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.flat.CheckBox = function() {
- org.apache.flex.flat.CheckBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.flat.CheckBox,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.flat.CheckBox.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'CheckBox',
- qName: 'org.apache.flex.flat.CheckBox'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.flat.CheckBox.prototype.createElement =
- function() {
- var cb;
-
- this.element = document.createElement('label');
-
- this.input = document.createElement('input');
- this.input.type = 'checkbox';
- this.input.className = 'checkbox-input';
- this.input.addEventListener('change', goog.bind(this.selectionChangeHandler, this));
- this.element.appendChild(this.input);
-
- this.checkbox = document.createElement('span');
- this.checkbox.className = 'checkbox-icon';
- this.checkbox.addEventListener('mouseover', goog.bind(this.mouseOverHandler, this));
- this.checkbox.addEventListener('mouseout', goog.bind(this.mouseOutHandler, this));
- this.element.appendChild(this.checkbox);
-
- this.textNode = document.createTextNode('');
- this.element.appendChild(this.textNode);
- this.element.className = 'CheckBox';
- this.typeNames = 'CheckBox';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.input.flexjs_wrapper = this;
- this.checkbox.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.CheckBox.prototype.mouseOverHandler =
- function(e) {
- this.checkbox.className = 'checkbox-icon-hover';
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.CheckBox.prototype.mouseOutHandler =
- function(e) {
- if (this.input.checked)
- this.checkbox.className = 'checkbox-icon-checked';
- else
- this.checkbox.className = 'checkbox-icon';
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.CheckBox.prototype.selectionChangeHandler =
- function(e) {
- if (this.input.checked)
- this.checkbox.className = 'checkbox-icon-checked';
- else
- this.checkbox.className = 'checkbox-icon';
-};
-
-
-Object.defineProperties(org.apache.flex.flat.CheckBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.flat.CheckBox} */
- get: function() {
- return this.textNode.nodeValue;
- },
- /** @this {org.apache.flex.flat.CheckBox} */
- set: function(value) {
- this.textNode.nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.flat.CheckBox} */
- get: function() {
- return this.input.checked;
- },
- /** @this {org.apache.flex.flat.CheckBox} */
- set: function(value) {
- this.input.checked = value;
- if (value)
- this.checkbox.className = 'checkbox-icon-checked';
- else
- this.checkbox.className = 'checkbox-icon';
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js b/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
deleted file mode 100644
index 561f23c..0000000
--- a/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
+++ /dev/null
@@ -1,296 +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.flat.DropDownList');
-
-goog.require('org.apache.flex.core.ListBase');
-goog.require('org.apache.flex.html.beads.models.ArraySelectionModel');
-goog.require('org.apache.flex.utils.CSSUtils');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.flat.DropDownList = function() {
- org.apache.flex.flat.DropDownList.base(this, 'constructor');
- this.model = new org.apache.flex.html.beads.models.ArraySelectionModel();
-};
-goog.inherits(org.apache.flex.flat.DropDownList,
- org.apache.flex.core.ListBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.flat.DropDownList.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'DropDownList',
- qName: 'org.apache.flex.flat.DropDownList'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.flat.DropDownList.prototype.createElement =
- function() {
- var button, caret;
-
- this.element = document.createElement('div');
-
- this.button = button = document.createElement('button');
- button.className = 'dropdown-toggle-open-btn';
- if (this.className)
- button.className += ' ' + this.className;
- goog.events.listen(button, 'click', goog.bind(this.buttonClicked, this));
- this.element.appendChild(button);
-
- this.label = document.createElement('span');
- this.label.className = 'dropdown-label';
- button.appendChild(this.label);
- this.caret = caret = document.createElement('span');
- button.appendChild(caret);
- caret.className = 'dropdown-caret';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- // add a click handler so that a click outside of the combo box can
- // dismiss the pop-up should it be visible.
- goog.events.listen(document, 'click',
- goog.bind(this.dismissPopup, this));
-
- button.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
- this.label.flexjs_wrapper = this;
- caret.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @export
- * @param {Object} event The event.
- */
-org.apache.flex.flat.DropDownList.prototype.selectChanged =
- function(event) {
- var select;
-
- select = event.target;
-
- this.selectedIndex = parseInt(select.id, 10);
-
- this.menu.parentNode.removeChild(this.menu);
- this.menu = null;
-
- this.dispatchEvent('change');
-};
-
-
-/**
- * @export
- * @param {Object=} opt_event The event.
- */
-org.apache.flex.flat.DropDownList.prototype.dismissPopup =
- function(opt_event) {
- // remove the popup if it already exists
- if (this.menu) {
- this.menu.parentNode.removeChild(this.menu);
- this.menu = null;
- }
-};
-
-
-/**
- * @export
- * @param {Object} event The event.
- */
-org.apache.flex.flat.DropDownList.prototype.buttonClicked =
- function(event) {
- /**
- * @type {Array.<string>}
- */
- var dp;
- var i, button, left, n, opt, opts, pn, popup, select, si, top, width;
-
- event.stopPropagation();
-
- if (this.popup) {
- this.dismissPopup();
-
- return;
- }
-
- button = this.element.childNodes.item(0);
-
- pn = this.element;
- top = pn.offsetTop + button.offsetHeight;
- left = pn.offsetLeft;
- width = pn.offsetWidth;
-
- /*
- popup = document.createElement('div');
- popup.className = 'dropdown-menu';
- popup.id = 'test';
- popup.style.position = 'absolute';
- popup.style.top = top.toString() + 'px';
- popup.style.left = left.toString() + 'px';
- popup.style.width = width.toString() + 'px';
- popup.style.margin = '0px auto';
- popup.style.padding = '0px';
- popup.style.zIndex = '10000';
- */
-
- this.menu = select = document.createElement('ul');
- var el = /** @type {Element} */ (this.element);
- var cv = window.getComputedStyle(el);
- select.style.width = cv.width;
- goog.events.listen(select, 'click', goog.bind(this.selectChanged, this));
- select.className = 'dropdown-menu';
-
- var lf = this.labelField;
- dp = /** @type {Array.<string>} */ (this.dataProvider);
- n = dp.length;
- for (i = 0; i < n; i++) {
- opt = document.createElement('li');
- opt.style.backgroundColor = 'transparent';
- var ir = document.createElement('a');
- if (lf)
- ir.innerHTML = dp[i][lf];
- else
- ir.innerHTML = dp[i];
- ir.id = i.toString();
- if (i == this.selectedIndex)
- ir.className = 'dropdown-menu-item-renderer-selected';
- else
- ir.className = 'dropdown-menu-item-renderer';
- opt.appendChild(ir);
- select.appendChild(opt);
- }
-
- this.element.appendChild(select);
-};
-
-
-/**
- * @override
- */
-org.apache.flex.flat.DropDownList.prototype.addedToParent = function() {
- org.apache.flex.flat.DropDownList.base(this, 'addedToParent');
- var el = /** @type {Element} */ (this.button);
- var cv = window.getComputedStyle(el);
- var s = /** @type {string} */ (cv.paddingLeft);
- var pl = org.apache.flex.utils.CSSUtils.toNumber(s);
- s = /** @type {string} */ (cv.paddingRight);
- var pr = org.apache.flex.utils.CSSUtils.toNumber(s);
- s = /** @type {string} */ (cv.borderLeftWidth);
- var bl = org.apache.flex.utils.CSSUtils.toNumber(s);
- s = /** @type {string} */ (cv.borderRightWidth);
- var br = org.apache.flex.utils.CSSUtils.toNumber(s);
- var caretWidth = this.caret.offsetWidth;
- // 10 seems to factor spacing between span and extra FF padding?
- var fluff = pl + pr + bl + br + caretWidth + 1 + 10;
- var labelWidth = this.width - fluff;
- var strWidth = labelWidth.toString();
- strWidth += 'px';
- this.label.style.width = strWidth;
-};
-
-
-Object.defineProperties(org.apache.flex.flat.DropDownList.prototype, {
- /** @export */
- className: {
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return org.apache.flex.utils.Language.superGetter(org.apache.flex.flat.DropDownList, this, 'className');
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(org.apache.flex.flat.DropDownList, this, 'className', value);
- if (this.button) {
- this.button.className = this.typeNames ?
- value + ' ' + 'dropdown-toggle-open-btn' + ' ' + this.typeNames :
- value + ' ' + 'dropdown-toggle-open-btn';
- }
- }
- },
- dataProvider: {
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return this.model.dataProvider;
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- var dp, i, n, opt;
-
- this.model.dataProvider = value;
- }
- },
- /** @export */
- labelField: {
- // TODO: (aharui) copied from ListBase because you
- // can't just override the setter in a defineProps
- // structure.
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return this.model.labelField;
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- this.model.labelField = value;
- }
- },
- /** @export */
- selectedIndex: {
- // TODO: (aharui) copied from ListBase because you
- // can't just override the setter in a defineProps
- // structure.
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return this.model.selectedIndex;
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- this.model.selectedIndex = value;
- var lf = this.labelField;
- if (lf)
- this.label.innerHTML = this.selectedItem[lf];
- else
- this.label.innerHTML = this.selectedItem;
- }
- },
- /** @export */
- selectedItem: {
- // TODO: (aharui) copied from ListBase because you
- // can't just override the setter in a defineProps
- // structure.
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return this.model.selectedItem;
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- this.model.selectedItem = value;
- var lf = this.labelField;
- if (lf)
- this.label.innerHTML = this.selectedItem[lf];
- else
- this.label.innerHTML = this.selectedItem;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Flat/js/src/org/apache/flex/flat/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/js/src/org/apache/flex/flat/RadioButton.js b/frameworks/projects/Flat/js/src/org/apache/flex/flat/RadioButton.js
deleted file mode 100644
index fda6762..0000000
--- a/frameworks/projects/Flat/js/src/org/apache/flex/flat/RadioButton.js
+++ /dev/null
@@ -1,228 +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.flat.RadioButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.flat.RadioButton = function() {
- org.apache.flex.flat.RadioButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.flat.RadioButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.flat.RadioButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'RadioButton',
- qName: 'org.apache.flex.flat.RadioButton'}] };
-
-
-/**
- * Provides unique name
- */
-org.apache.flex.flat.RadioButton.radioCounter = 0;
-
-
-/**
- * @override
- */
-org.apache.flex.flat.RadioButton.prototype.createElement =
- function() {
-
- // hide this eleement
- this.input = document.createElement('input');
- this.input.type = 'radio';
- this.input.className = 'radio-input';
- this.input.id = '_radio_' + org.apache.flex.flat.RadioButton.radioCounter++;
- this.input.addEventListener('change', goog.bind(this.selectionChangeHandler, this));
-
- this.radio = document.createElement('span');
- this.radio.className = 'radio-icon';
- this.radio.addEventListener('mouseover', goog.bind(this.mouseOverHandler, this));
- this.radio.addEventListener('mouseout', goog.bind(this.mouseOutHandler, this));
-
- this.textNode = document.createTextNode('radio button');
-
- this.labelFor = document.createElement('label');
- this.labelFor.appendChild(this.input);
- this.labelFor.appendChild(this.radio);
- this.labelFor.appendChild(this.textNode);
- this.labelFor.style.position = 'relative';
-
- this.element = this.labelFor;
- this.element.className = 'RadioButton';
- this.typeNames = 'RadioButton';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.input.flexjs_wrapper = this;
- this.radio.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
- this.textNode.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.RadioButton.prototype.mouseOverHandler =
- function(e) {
- this.radio.className = 'radio-icon-hover';
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.RadioButton.prototype.mouseOutHandler =
- function(e) {
- if (this.input.checked)
- this.radio.className = 'radio-icon-checked';
- else
- this.radio.className = 'radio-icon';
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.RadioButton.prototype.selectionChangeHandler =
- function(e) {
- // this should reset the icons in the non-selected radio
- this.selectedValue = this.value;
-};
-
-
-/**
- * @export
- */
-org.apache.flex.flat.RadioButton.prototype.initModel =
- function() {
-};
-
-
-/**
- * @export
- */
-org.apache.flex.flat.RadioButton.prototype.initSkin =
- function() {
-};
-
-
-Object.defineProperties(org.apache.flex.flat.RadioButton.prototype, {
- /** @export */
- id: {
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(org.apache.flex.flat.RadioButton, this, 'id', value);
- this.labelFor.id = value;
- this.input.id = value;
- }
- },
- /** @export */
- groupName: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- return this.input.name;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- this.input.name = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- return this.textNode.nodeValue;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- this.textNode.nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- return this.input.checked;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- this.input.checked = value;
- if (this.input.checked)
- this.radio.className = 'radio-icon-checked';
- else
- this.radio.className = 'radio-icon';
- }
- },
- /** @export */
- value: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- return this.input.value;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- this.input.value = value;
- }
- },
- /** @export */
- selectedValue: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
-
- for (i = 0; i < n; i++) {
- if (buttons[i].checked) {
- return buttons[i].value;
- }
- }
- return null;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
- for (i = 0; i < n; i++) {
- if (buttons[i].value === value) {
- buttons[i].checked = true;
- buttons[i].flexjs_wrapper.selected = true;
- }
- else
- buttons[i].flexjs_wrapper.selected = false;
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Formatters/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/compile-config.xml b/frameworks/projects/Formatters/compile-config.xml
index 3fcc71c..96c7e48 100644
--- a/frameworks/projects/Formatters/compile-config.xml
+++ b/frameworks/projects/Formatters/compile-config.xml
@@ -64,10 +64,6 @@
<name>js/out/*</name>
<path>js/out/*</path>
</include-file>
- <include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
- </include-file>
<include-classes>
<class>FormattersClasses</class>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Formatters/js/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/js/src/org/apache/flex/core/FormatBase.js b/frameworks/projects/Formatters/js/src/org/apache/flex/core/FormatBase.js
deleted file mode 100644
index d26c916..0000000
--- a/frameworks/projects/Formatters/js/src/org/apache/flex/core/FormatBase.js
+++ /dev/null
@@ -1,126 +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.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.FormatBase');
-
-goog.require('org.apache.flex.core.IFormatBead');
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IFormatBead}
- * @extends {org.apache.flex.events.EventDispatcher}
- */
-org.apache.flex.core.FormatBase = function() {
- goog.base(this);
-};
-goog.inherits(org.apache.flex.core.FormatBase,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.FormatBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'FormatBase',
- qName: 'org.apache.flex.core.FormatBase' }],
- interfaces: [org.apache.flex.core.IFormatBead] };
-
-
-/**
- * @private
- * @type {org.apache.flex.core.IStrand}
- */
-org.apache.flex.core.FormatBase.prototype.strand_ = null;
-
-
-/**
- * @type {string}
- */
-org.apache.flex.core.FormatBase.prototype._propertyName = 'text';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.core.FormatBase.prototype._eventName = 'textChange';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.core.FormatBase.prototype._formattedResult = '';
-
-
-Object.defineProperties(org.apache.flex.core.FormatBase.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.core.FormatBase} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- propertyValue: {
- /** @this {org.apache.flex.core.FormatBase} */
- get: function() {
- var value = this.strand_[this.propertyName];
- return value;
- }
- },
- /** @export */
- propertyName: {
- /** @this {org.apache.flex.core.FormatBase} */
- get: function() {
- if (this._propertyName == null) {
- this._propertyName = 'text';
- }
- return this._propertyName;
- },
- /** @this {org.apache.flex.core.FormatBase} */
- set: function(value) {
- this._propertyName = value;
- }
- },
- /** @export */
- eventName: {
- /** @this {org.apache.flex.core.FormatBase} */
- get: function() {
- if (this._eventName == null) {
- return this._propertyName + 'Change';
- }
- return this._eventName;
- },
- /** @this {org.apache.flex.core.FormatBase} */
- set: function(value) {
- this._eventName = value;
- }
- },
- /** @export */
- formattedString: {
- /** @this {org.apache.flex.core.FormatBase} */
- get: function() {
- return null;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/compile-config.xml b/frameworks/projects/HTML5/compile-config.xml
index 3bca049..f2ece61 100644
--- a/frameworks/projects/HTML5/compile-config.xml
+++ b/frameworks/projects/HTML5/compile-config.xml
@@ -65,8 +65,8 @@
<path>as/defaults.css</path>
</include-file>
<include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
+ <name>js/out/*</name>
+ <path>js/out/*</path>
</include-file>
<include-classes>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/CheckBox.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/CheckBox.js
deleted file mode 100644
index 9817203..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/CheckBox.js
+++ /dev/null
@@ -1,76 +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.html5.CheckBox');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.CheckBox = function() {
- org.apache.flex.html5.CheckBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.CheckBox,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.CheckBox.prototype.createElement =
- function() {
- var cb;
-
- this.element = document.createElement('label');
-
- cb = document.createElement('input');
- cb.type = 'checkbox';
- this.element.appendChild(cb);
- this.element.appendChild(document.createTextNode('check box'));
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.CheckBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.CheckBox} */
- get: function() {
- return this.element.childNodes.item(1).nodeValue;
- },
- /** @this {org.apache.flex.html5.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(1).nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.html5.CheckBox} */
- get: function() {
- return this.element.childNodes.item(0).checked;
- },
- /** @this {org.apache.flex.html5.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(0).checked = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/ComboBox.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/ComboBox.js
deleted file mode 100644
index 889b611..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/ComboBox.js
+++ /dev/null
@@ -1,187 +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.html5.ComboBox');
-
-goog.require('org.apache.flex.core.ListBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html5.ComboBox = function() {
- org.apache.flex.html5.ComboBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.ComboBox,
- org.apache.flex.core.ListBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.ComboBox.prototype.createElement =
- function() {
- var button, input;
-
- this.element = document.createElement('div');
-
- input = document.createElement('input');
- input.style.position = 'absolute';
- input.style.width = '80px';
- this.element.appendChild(input);
-
- button = document.createElement('div');
- button.style.position = 'absolute';
- button.style.top = '0px';
- button.style.right = '0px';
- button.style.background = '#bbb';
- button.style.width = '16px';
- button.style.height = '20px';
- button.style.margin = '0';
- button.style.border = 'solid #609 1px';
- button.onclick = /** @type {function (Event)} */ (goog.bind(this.buttonClicked, this));
- this.element.appendChild(button);
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- // add a click handler so that a click outside of the combo box can
- // dismiss the pop-up should it be visible.
- goog.events.listen(document, 'click',
- goog.bind(this.dismissPopup, this));
-
- return this.element;
-};
-
-
-/**
- * @export
- * @param {Event} event The event.
- */
-org.apache.flex.html5.ComboBox.prototype.selectChanged =
- function(event) {
- var select;
-
- select = event.currentTarget;
- this.selectedItem = select.value;
-
- this.popup.parentNode.removeChild(this.popup);
- this.popup = null;
-
- this.dispatchEvent('change');
-};
-
-
-/**
- * @export
- * @param {Event} event The event.
- */
-org.apache.flex.html5.ComboBox.prototype.dismissPopup =
- function(event) {
- if (this.popup) {
- this.popup.parentNode.removeChild(this.popup);
- this.popup = null;
- }
-};
-
-
-/**
- * @export
- * @param {Event} event The event.
- */
-org.apache.flex.html5.ComboBox.prototype.buttonClicked =
- function(event) {
- /**
- * @type {Array.<string>}
- */
- var dp;
- var i, input, left, n, opt, opts, pn, popup, select, si, top, width;
-
- event.stopPropagation();
-
- if (this.popup) {
- this.popup.parentNode.removeChild(this.popup);
- this.popup = null;
- return;
- }
-
- input = this.element.childNodes.item(0);
-
- pn = this.element;
- top = pn.offsetTop + input.offsetHeight;
- left = pn.offsetLeft;
- width = pn.offsetWidth;
-
- popup = document.createElement('div');
- popup.className = 'popup';
- popup.id = 'test';
- popup.style.position = 'absolute';
- popup.style.top = top.toString() + 'px';
- popup.style.left = left.toString() + 'px';
- popup.style.width = width.toString() + 'px';
- popup.style.margin = '0px auto';
- popup.style.padding = '0px';
- popup.style.zIndex = '10000';
-
- select = document.createElement('select');
- select.style.width = width.toString() + 'px';
- select.onchange = /** @type {function(Event)} */ (goog.bind(this.selectChanged, this));
- opts = select.options;
-
- dp = /** @type {Array.<string>} */ (this.dataProvider);
- n = dp.length;
- for (i = 0; i < n; i++) {
- opt = document.createElement('option');
- opt.text = dp[i];
- opts.add(opt);
- }
-
- select.size = n;
-
- si = this.selectedIndex;
- if (si < 0) {
- select.value = null;
- } else {
- select.value = dp[si];
- }
-
- this.popup = popup;
-
- popup.appendChild(select);
- document.body.appendChild(popup);
-};
-
-
-Object.defineProperties(org.apache.flex.html5.ComboBox.prototype, {
- /** @export */
- dataProvider: {
- /** @this {org.apache.flex.html5.ComboBox} */
- set: function(value) {
- this.dataProvider = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.ComboBox} */
- get: function() {
- return this.element.childNodes.item(0).value;
- },
- /** @this {org.apache.flex.html5.ComboBox} */
- set: function(value) {
- this.element.childNodes.item(0).value = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/DropDownList.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/DropDownList.js
deleted file mode 100644
index e0dfe8b..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/DropDownList.js
+++ /dev/null
@@ -1,29 +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.html5.DropDownList');
-
-goog.require('org.apache.flex.core.ListBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html5.DropDownList = function() {
- org.apache.flex.html5.DropDownList.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.DropDownList,
- org.apache.flex.core.ListBase);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/Label.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/Label.js
deleted file mode 100644
index 1db5781..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/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.html5.Label');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.Label = function() {
- org.apache.flex.html5.Label.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.Label,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.Label.prototype.createElement =
- function() {
- org.apache.flex.html5.Label.base(this, 'createElement');
-
- this.positioner = this.element;
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.Label.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.Label} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html5.Label} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/List.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/List.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/List.js
deleted file mode 100644
index 4861cb3..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/List.js
+++ /dev/null
@@ -1,42 +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.html5.List');
-
-goog.require('org.apache.flex.core.ListBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html5.List = function() {
- org.apache.flex.html5.List.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.List,
- org.apache.flex.core.ListBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.List.prototype.createElement =
- function() {
- org.apache.flex.html5.List.base(this, 'createElement');
-
- this.element.size = 5;
-
- return this.element;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/RadioButton.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/RadioButton.js
deleted file mode 100644
index ee5289a..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/RadioButton.js
+++ /dev/null
@@ -1,87 +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.html5.RadioButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.RadioButton = function() {
- org.apache.flex.html5.RadioButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.RadioButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.RadioButton.prototype.createElement =
- function() {
- var rb;
-
- this.element = document.createElement('label');
-
- rb = document.createElement('input');
- rb.type = 'radio';
- this.element.appendChild(rb);
- this.element.appendChild(document.createTextNode('radio button'));
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.RadioButton.prototype, {
- /** @export */
- groupName: {
- /** @this {org.apache.flex.html5.RadioButton} */
- get: function() {
- return this.element.childNodes.item(0).name;
- },
- /** @this {org.apache.flex.html5.RadioButton} */
- set: function(value) {
- this.element.childNodes.item(0).name = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.RadioButton} */
- get: function() {
- return this.element.childNodes.item(1).nodeValue;
- },
- /** @this {org.apache.flex.html5.RadioButton} */
- set: function(value) {
- this.element.childNodes.item(1).nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.html5.RadioButton} */
- get: function() {
- return this.element.childNodes.item(0).checked;
- },
- /** @this {org.apache.flex.html5.RadioButton} */
- set: function(value) {
- this.element.childNodes.item(0).checked = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextArea.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextArea.js
deleted file mode 100644
index b033682..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextArea.js
+++ /dev/null
@@ -1,58 +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.html5.TextArea');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.TextArea = function() {
- org.apache.flex.html5.TextArea.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.TextArea,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.TextArea.prototype.createElement =
- function() {
- this.element = document.createElement('textarea');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.TextArea.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.TextArea} */
- get: function() {
- return this.element.value;
- },
- /** @this {org.apache.flex.html5.TextArea} */
- set: function(value) {
- this.element.value = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextButton.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextButton.js
deleted file mode 100644
index fac23d5..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextButton.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('org.apache.flex.html5.TextButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.TextButton = function() {
- org.apache.flex.html5.TextButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.TextButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.TextButton.prototype.createElement =
- function() {
- this.element = document.createElement('button');
- this.element.setAttribute('type', 'button');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.TextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.TextButton} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html5.TextButton} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextInput.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextInput.js
deleted file mode 100644
index e5392b7..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextInput.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('org.apache.flex.html5.TextInput');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.TextInput = function() {
- org.apache.flex.html5.TextInput.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.TextInput,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.TextInput.prototype.createElement =
- function() {
- this.element = document.createElement('input');
- this.element.setAttribute('type', 'input');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.TextInput.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.TextInput} */
- get: function() {
- return this.element.value;
- },
- /** @this {org.apache.flex.html5.TextInput} */
- set: function(value) {
- this.element.value = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/jquery_externals.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/jquery_externals.js b/frameworks/projects/JQuery/js/src/jquery_externals.js
deleted file mode 100644
index a49165a..0000000
--- a/frameworks/projects/JQuery/js/src/jquery_externals.js
+++ /dev/null
@@ -1,21 +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.
- */
-
-
-/**
- * This file is used to establish external APIs so the closure-compiler
- * can resolve references and won't minify names
- * @param {Object} arg Selector.
- */
-function $(arg) {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/Application.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/Application.js
deleted file mode 100644
index d646b13..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/Application.js
+++ /dev/null
@@ -1,42 +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.
- */
-
-/*
-FalconJX will inject html into the index.html file. Surround with
-"inject_html" tag as follows:
-
-<inject_html>
-<link rel="stylesheet"
- href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
-<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
-<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
-</inject_html>
-*/
-
-goog.provide('org.apache.flex.jquery.Application');
-
-goog.require('org.apache.flex.core.Application');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.Application}
- */
-org.apache.flex.jquery.Application = function() {
- org.apache.flex.jquery.Application.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.jquery.Application,
- org.apache.flex.core.Application);
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
deleted file mode 100644
index 1e877ba..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
+++ /dev/null
@@ -1,88 +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.jquery.CheckBox');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.jquery.CheckBox = function() {
- org.apache.flex.jquery.CheckBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.jquery.CheckBox,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.jquery.CheckBox.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'CheckBox',
- qName: 'org.apache.flex.jquery.CheckBox'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.CheckBox.prototype.createElement =
- function() {
- var cb;
-
- this.element = document.createElement('label');
-
- cb = document.createElement('input');
- cb.type = 'checkbox';
- this.element.appendChild(cb);
- this.element.appendChild(document.createTextNode(''));
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- cb.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.jquery.CheckBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.jquery.CheckBox} */
- get: function() {
- return this.element.childNodes.item(1).nodeValue;
- },
- /** @this {org.apache.flex.jquery.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(1).nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.jquery.CheckBox} */
- get: function() {
- return this.element.childNodes.item(0).checked;
- },
- /** @this {org.apache.flex.jquery.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(0).checked = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
deleted file mode 100644
index 6961301..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
+++ /dev/null
@@ -1,191 +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.jquery.RadioButton');
-
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.jquery.RadioButton = function() {
-
- org.apache.flex.jquery.RadioButton.base(this, 'constructor');
-
- org.apache.flex.core.UIBase.call(this);
- org.apache.flex.jquery.RadioButton.radioCounter++;
-};
-goog.inherits(org.apache.flex.jquery.RadioButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @export
- * @type {?string}
- * The name of the radioGroup.
- */
-org.apache.flex.jquery.RadioButton.prototype.radioGroupName = null;
-
-
-/**
- * @export
- * Used to provide ids to the radio buttons.
- */
-org.apache.flex.jquery.RadioButton.radioCounter = 0;
-
-
-/**
- * @export
- * Used to manage groups on the radio buttons.
- */
-org.apache.flex.jquery.RadioButton.groups = { };
-
-
-/**
- * Flag to make sure the event handler is set only once.
- */
-org.apache.flex.jquery.RadioButton.groupHandlerSet = false;
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.RadioButton.prototype.createElement =
- function() {
-
- // the radio itself
- this.input = document.createElement('input');
- this.input.type = 'radio';
- this.input.name = 'radio';
- this.input.id = '_radio_' + org.apache.flex.jquery.RadioButton.radioCounter++;
-
- this.labelFor = document.createElement('label');
- this.labelFor.htmlFor = this.input.id;
-
- this.positioner = document.createElement('div');
- this.positioner.style.position = 'relative';
- this.positioner.appendChild(this.input);
- this.positioner.appendChild(this.labelFor);
- this.element = this.input;
-
- this.input.flexjs_wrapper = this;
- this.labelFor.flexjs_wrapper = this;
- this.positioner.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.RadioButton.prototype.addedToParent =
- function() {
- org.apache.flex.jquery.RadioButton.base(this, 'addedToParent');
- $(this.input).button();
-};
-
-
-Object.defineProperties(org.apache.flex.jquery.RadioButton.prototype, {
- /** @export */
- id: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- org.apache.flex.utils.Language(org.apache.flex.jquery.RadioButton.base, this, 'id', value);
- this.labelFor.id = value;
- this.labelFor.htmlFor = value;
- }
- },
- /** @export */
- groupName: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- return this.radioGroupName;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- this.radioGroupName = value;
- this.input.name = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- return this.labelFor.innerHTML;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- this.labelFor.innerHTML = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- return this.input.checked;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- this.input.checked = value;
- }
- },
- /** @export */
- value: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- return this.input.value;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- this.input.value = value;
- }
- },
- /** @export */
- selectedValue: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
-
- for (i = 0; i < n; i++) {
- if (buttons[i].checked) {
- return buttons[i].value;
- }
- }
- return null;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
- for (i = 0; i < n; i++) {
- if (buttons[i].value === value) {
- buttons[i].checked = true;
- break;
- }
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
deleted file mode 100644
index 46348fd..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
+++ /dev/null
@@ -1,69 +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.jquery.TextButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.jquery.TextButton = function() {
- org.apache.flex.jquery.TextButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.jquery.TextButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.TextButton.prototype.createElement =
- function() {
- this.element = document.createElement('button');
- this.element.setAttribute('type', 'button');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
- return this.element;
-};
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.TextButton.prototype.addedToParent =
- function() {
- org.apache.flex.jquery.TextButton.base(this, 'addedToParent');
- $(this.element).button();
-};
-
-
-Object.defineProperties(org.apache.flex.jquery.TextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.jquery.TextButton} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.jquery.TextButton} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- }
-});