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/04/15 23:43:23 UTC

[18/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - move handwritten JS code to final home. Build scripts still need fixing up

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/RangeModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/RangeModel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/RangeModel.js
new file mode 100644
index 0000000..f623972
--- /dev/null
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/RangeModel.js
@@ -0,0 +1,158 @@
+/**
+ * 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_beads_models_RangeModel');
+
+goog.require('org_apache_flex_core_IBeadModel');
+goog.require('org_apache_flex_events_EventDispatcher');
+
+
+
+/**
+ * @constructor
+ * @extends {org_apache_flex_events_EventDispatcher}
+ */
+org_apache_flex_html_beads_models_RangeModel = function() {
+  org_apache_flex_html_beads_models_RangeModel.base(this, 'constructor');
+
+  this.minimum_ = 0;
+  this.maximum_ = 100;
+  this.value_ = 0;
+  this.snapInterval_ = 1;
+  this.stepSize_ = 1;
+};
+goog.inherits(org_apache_flex_html_beads_models_RangeModel,
+    org_apache_flex_events_EventDispatcher);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_html_beads_models_RangeModel.prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'RangeModel',
+                qName: 'org_apache_flex_html_beads_models_RangeModel'}],
+      interfaces: [org_apache_flex_core_IBeadModel]};
+
+
+Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype, {
+    /** @expose */
+    strand: {
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        set: function(value) {
+            this.strand_ = value;
+        }
+    },
+    /** @expose */
+    minimum: {
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        get: function() {
+            return this.minimum_;
+        },
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        set: function(value) {
+            if (this.minimum_ != value) {
+              this.minimum_ = value;
+              this.dispatchEvent('minimumChange');
+            }
+        }
+    },
+    /** @expose */
+    maximum: {
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        get: function() {
+            return this.maximum_;
+        },
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        set: function(value) {
+            if (this.maximum_ != value) {
+              this.maximum_ = value;
+              this.dispatchEvent('maximumChange');
+            }
+        }
+    },
+    /** @expose */
+    value: {
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        get: function() {
+            return this.value_;
+        },
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        set: function(newValue) {
+            if (this.value_ != newValue) {
+
+              // value must lie within the boundaries of minimum & maximum
+              // and be on a step interval, so the value is adjusted to
+              // what is coming in.
+              newValue = Math.max(this.minimum_, newValue - this.stepSize_);
+              newValue = Math.min(this.maximum_, newValue + this.stepSize_);
+              this.value_ = this.snap(newValue);
+
+              this.dispatchEvent('valueChange');
+            }
+        }
+    },
+    /** @expose */
+    snapInterval: {
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        get: function() {
+            return this.snapInterval_;
+        },
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        set: function(value) {
+            if (this.snapInterval_ != value) {
+              this.snapInterval_ = value;
+              this.dispatchEvent('snapIntervalChange');
+            }
+        }
+    },
+    /** @expose */
+    stepSize: {
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        get: function() {
+            return this.stepSize_;
+        },
+        /** @this {org_apache_flex_html_beads_models_RangeModel} */
+        set: function(value) {
+            if (this.stepSize_ != value) {
+              this.stepSize_ = value;
+              this.dispatchEvent('stepSizeChange');
+            }
+        }
+    }
+});
+
+
+/**
+ * @expose
+ * @param {number} value The candidate number.
+ * @return {number} Adjusted value.
+ */
+org_apache_flex_html_beads_models_RangeModel.prototype.
+    snap = function(value) {
+  var si = this.snapInterval_;
+  var n = Math.round((value - this.minimum_) / si) *
+                 si + this.minimum_;
+  if (value > 0)
+  {
+    if (value - n < n + si - value)
+      return n;
+    return n + si;
+  }
+  if (value - n > n + si - value)
+    return n + si;
+  return n;
+};
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/TextModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/TextModel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/TextModel.js
new file mode 100644
index 0000000..10ac1bc
--- /dev/null
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/TextModel.js
@@ -0,0 +1,68 @@
+/**
+ * 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_beads_models_TextModel');
+
+goog.require('org_apache_flex_core_ITextModel');
+goog.require('org_apache_flex_events_EventDispatcher');
+
+
+
+/**
+ * @constructor
+ * @extends {org_apache_flex_events_EventDispatcher}
+ * @implements {org_apache_flex_core_ITextModel}
+ */
+org_apache_flex_html_beads_models_TextModel =
+    function() {
+  org_apache_flex_html_beads_models_TextModel.base(this, 'constructor');
+  this.className = 'TextModel';
+};
+goog.inherits(
+    org_apache_flex_html_beads_models_TextModel,
+    org_apache_flex_events_EventDispatcher);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_html_beads_models_TextModel.prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'TextModel',
+                qName: 'org_apache_flex_html_beads_models_TextModel' }],
+      interfaces: [org_apache_flex_core_ITextModel] };
+
+
+Object.defineProperties(org_apache_flex_html_beads_models_TextModel.prototype, {
+    /** @expose */
+    strand: {
+        /** @this {org_apache_flex_html_beads_models_TextModel} */
+        set: function(value) {
+            this.strand_ = value;
+        }
+    },
+    /** @expose */
+    text: {
+        /** @this {org_apache_flex_html_beads_models_TextModel} */
+        get: function() {
+            return this.text_;
+        },
+        /** @this {org_apache_flex_html_beads_models_TextModel} */
+        set: function(value) {
+            this.text_ = value;
+            this.dispatchEvent('textChange');
+        }
+    }
+});

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/TitleBarModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/TitleBarModel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/TitleBarModel.js
new file mode 100644
index 0000000..ae7b7a0
--- /dev/null
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/TitleBarModel.js
@@ -0,0 +1,112 @@
+/**
+ * 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_beads_models_TitleBarModel');
+
+goog.require('org_apache_flex_core_IBeadModel');
+goog.require('org_apache_flex_events_EventDispatcher');
+
+
+
+/**
+ * @constructor
+ * @extends {org_apache_flex_events_EventDispatcher}
+ * @implements {org_apache_flex_core_IBeadModel}
+ */
+org_apache_flex_html_beads_models_TitleBarModel = function() {
+  org_apache_flex_html_beads_models_TitleBarModel.base(this, 'constructor');
+
+  /**
+   * @private
+   * @type {string}
+   */
+  this.title_ = '';
+  /**
+   * @private
+   * @type {string}
+   */
+  this.htmlTitle_ = '';
+  /**
+   * @private
+   * @type {boolean}
+   */
+  this.showCloseButton_ = false;
+};
+goog.inherits(org_apache_flex_html_beads_models_TitleBarModel,
+    org_apache_flex_events_EventDispatcher);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_html_beads_models_TitleBarModel.prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'RangeModel',
+                qName: 'org_apache_flex_html_beads_models_TitleBarModel'}],
+      interfaces: [org_apache_flex_core_IBeadModel]
+    };
+
+
+Object.defineProperties(org_apache_flex_html_beads_models_TitleBarModel.prototype, {
+    /** @expose */
+    strand: {
+        /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+        set: function(value) {
+            this.strand_ = value;
+        }
+    },
+    /** @expose */
+    title: {
+        /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+        get: function() {
+            return this.title_;
+        },
+        /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+        set: function(value) {
+            if (this.title_ != value) {
+              this.title_ = value;
+              this.dispatchEvent('titleChange');
+            }
+        }
+    },
+    /** @expose */
+    htmlTitle: {
+        /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+        get: function() {
+            return this.htmlTitle_;
+        },
+        /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+        set: function(value) {
+            if (this.htmlTitle_ != value) {
+              this.htmlTitle_ = value;
+              this.dispatchEvent('htmlTitleChange');
+            }
+        }
+    },
+    /** @expose */
+    showCloseButton: {
+        /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+        get: function() {
+            return this.showCloseButton_;
+        },
+        /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+        set: function(value) {
+            if (this.showCloseButton_ != value) {
+              this.showCloseButton_ = value;
+              this.dispatchEvent('showCloseButtonChange');
+            }
+        }
+    }
+});

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
new file mode 100644
index 0000000..37df650
--- /dev/null
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
@@ -0,0 +1,104 @@
+/**
+ * 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_supportClasses_ButtonBarButtonItemRenderer');
+
+goog.require('org_apache_flex_html_beads_controllers_ItemRendererMouseController');
+goog.require('org_apache_flex_html_supportClasses_DataItemRenderer');
+goog.require('org_apache_flex_utils_Language');
+
+
+
+/**
+ * @constructor
+ * @extends {org_apache_flex_html_supportClasses_DataItemRenderer}
+ */
+org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer =
+    function() {
+  org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.base(this, 'constructor');
+};
+goog.inherits(
+    org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer,
+    org_apache_flex_html_supportClasses_DataItemRenderer);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'ButtonBarButtonItemRenderer',
+                qName: 'org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer' }] };
+
+
+/**
+ * @override
+ */
+org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.
+    prototype.createElement = function() {
+
+  this.element = document.createElement('div');
+  this.positioner = this.element;
+
+  this.button = document.createElement('button');
+  this.button.style.width = '100%';
+  this.button.style.height = '100%';
+  this.element.appendChild(this.button);
+
+  this.element.flexjs_wrapper = this;
+  this.className = 'ButtonBarButtonItemRenderer';
+
+  // itemRenderers should provide something for the background to handle
+  // the selection and highlight
+  this.backgroundView = this.element;
+
+  this.controller = new org_apache_flex_html_beads_controllers_ItemRendererMouseController();
+  this.controller.strand = this;
+
+  return this.element;
+};
+
+
+Object.defineProperties(org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.prototype, {
+    /** @expose */
+    strand: {
+        /** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */
+        set: function(value) {
+            this.strand_ = value;
+        },
+        /** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */
+        get: function() {
+            return this.strand_;
+        }
+    },
+    /** @expose */
+    data: {
+        /** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */
+        set: function(value) {
+            org_apache_flex_utils_Language.superSetter(
+                org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer, this, 'data', value);
+
+            if (value.hasOwnProperty('label')) {
+              this.button.innerHTML = value.label;
+            }
+            else if (value.hasOwnProperty('title')) {
+              this.button.innerHTML = value.title;
+            }
+            else {
+              this.button.innerHTML = value;
+            }
+        }
+    }
+});

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGridColumn.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGridColumn.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGridColumn.js
new file mode 100644
index 0000000..84959e7
--- /dev/null
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGridColumn.js
@@ -0,0 +1,75 @@
+/**
+ * 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_supportClasses_DataGridColumn');
+
+goog.require('mx_core_IFactory');
+
+
+
+/**
+ * @constructor
+ */
+org_apache_flex_html_supportClasses_DataGridColumn =
+    function() {
+};
+
+
+Object.defineProperties(org_apache_flex_html_supportClasses_DataGridColumn.prototype, {
+    /** @expose */
+    itemRenderer: {
+        /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+        get: function() {
+            return this.itemRenderer_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+        set: function(value) {
+            this.itemRenderer_ = value;
+        }
+    },
+    /** @expose */
+    columnWidth: {
+        /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+        get: function() {
+            return this.columnWidth_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+        set: function(value) {
+            this.columnWidth_ = value;
+        }
+    },
+    /** @expose */
+    label: {
+        /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+        get: function() {
+            return this.label_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+        set: function(value) {
+            this.label_ = value;
+        }
+    },
+    /** @expose */
+    dataField: {
+        /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+        get: function() {
+            return this.dataField_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+        set: function(value) {
+            this.dataField_ = value;
+        }
+    }
+});
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataItemRenderer.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
new file mode 100644
index 0000000..625d4c3
--- /dev/null
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
@@ -0,0 +1,132 @@
+/**
+ * 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_supportClasses_DataItemRenderer');
+
+goog.require('org_apache_flex_core_IItemRenderer');
+goog.require('org_apache_flex_html_beads_controllers_ItemRendererMouseController');
+goog.require('org_apache_flex_html_supportClasses_UIItemRendererBase');
+
+
+
+/**
+ * @constructor
+ * @extends {org_apache_flex_html_supportClasses_UIItemRendererBase}
+ * @implements {org_apache_flex_core_IItemRenderer}
+ */
+org_apache_flex_html_supportClasses_DataItemRenderer =
+    function() {
+  org_apache_flex_html_supportClasses_DataItemRenderer.base(this, 'constructor');
+};
+goog.inherits(
+    org_apache_flex_html_supportClasses_DataItemRenderer,
+    org_apache_flex_html_supportClasses_UIItemRendererBase);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_html_supportClasses_DataItemRenderer.
+    prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'DataItemRenderer',
+                qName: 'org_apache_flex_html_supportClasses_DataItemRenderer' }],
+      interfaces: [org_apache_flex_core_IItemRenderer] };
+
+
+/**
+ * @override
+ */
+org_apache_flex_html_supportClasses_DataItemRenderer.
+    prototype.createElement = function() {
+
+  this.element = document.createElement('div');
+  this.positioner = this.element;
+
+  this.element.flexjs_wrapper = this;
+  this.className = 'DataItemRenderer';
+
+  // itemRenderers should provide something for the background to handle
+  // the selection and highlight
+  this.backgroundView = this.element;
+
+  this.controller = new org_apache_flex_html_beads_controllers_ItemRendererMouseController();
+  this.controller.strand = this;
+
+  return this.element;
+};
+
+
+Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.prototype, {
+    /** @expose */
+    itemRendererParent: {
+        /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+        get: function() {
+            return this.rendererParent_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+        set: function(value) {
+            this.rendererParent_ = value;
+        }
+    },
+    /** @expose */
+    index: {
+        /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+        set: function(value) {
+            this.index_ = value;
+        }
+    },
+    /** @expose */
+    dataField: {
+        /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+        set: function(value) {
+            this.dataField_ = value;
+        },
+        /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+        get: function() {
+            return this.dataField_;
+        }
+    },
+    /** @expose */
+    selected: {
+        /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+        set: function(value) {
+            this.selected_ = value;
+
+            if (value) {
+                this.backgroundView.style.backgroundColor = '#9C9C9C';
+            } else {
+                this.backgroundView.style.backgroundColor = null;
+            }
+        }
+    },
+    /** @expose */
+    hovered: {
+        /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+        set: function(value) {
+            this.hovered_ = value;
+
+            if (value) {
+              this.backgroundView.style.backgroundColor = '#ECECEC';
+            } else {
+              if (this.selected_) {
+                this.backgroundView.style.backgroundColor = '#9C9C9C';
+              } else {
+                this.backgroundView.style.backgroundColor = null;
+              }
+            }
+        }
+    }
+});

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
new file mode 100644
index 0000000..5d9465d
--- /dev/null
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
@@ -0,0 +1,134 @@
+/**
+ * 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_supportClasses_NonVirtualDataGroup');
+
+goog.require('org_apache_flex_core_UIBase');
+goog.require('org_apache_flex_html_supportClasses_DataItemRenderer');
+goog.require('org_apache_flex_utils_Language');
+
+
+
+/**
+ * @constructor
+ * @extends {org_apache_flex_core_UIBase}
+ */
+org_apache_flex_html_supportClasses_NonVirtualDataGroup =
+    function() {
+  this.renderers = [];
+  org_apache_flex_html_supportClasses_NonVirtualDataGroup.base(this, 'constructor');
+};
+goog.inherits(
+    org_apache_flex_html_supportClasses_NonVirtualDataGroup,
+    org_apache_flex_core_UIBase);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'NonVirtualDataGroup',
+                qName: 'org_apache_flex_html_supportClasses_NonVirtualDataGroup' }] };
+
+
+Object.defineProperties(org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype, {
+    /** @expose */
+    strand: {
+        /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
+        set: function(value) {
+            this.strand_ = value;
+        }
+    },
+    /** @expose */
+    numElements: {
+        /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
+        get: function() {
+
+            var n = this.element.childNodes.length;
+            return n;
+        }
+    }
+});
+
+
+/**
+ * @override
+ */
+org_apache_flex_html_supportClasses_NonVirtualDataGroup.
+    prototype.createElement = function() {
+  this.element = document.createElement('div');
+  this.element.style.overflow = 'auto';
+  this.element.style.display = 'inline-block';
+  this.element.style.position = 'inherit';
+  this.element.flexjs_wrapper = this;
+  this.className = 'NonVirtualDataGroup';
+
+  this.positioner = this.element;
+
+  return this.element;
+};
+
+
+/**
+ * @override
+ * @param {Object} value The child element being added.
+ */
+org_apache_flex_html_supportClasses_NonVirtualDataGroup.
+    prototype.addElement = function(value) {
+  org_apache_flex_html_supportClasses_NonVirtualDataGroup.base(this, 'addElement', value);
+
+  var itemRenderer = org_apache_flex_utils_Language.as(value,
+                           org_apache_flex_html_supportClasses_DataItemRenderer);
+  itemRenderer.index = this.renderers.length;
+  itemRenderer.itemRendererParent = this;
+  this.renderers.push(value);
+};
+
+
+/**
+ * @expose
+ */
+org_apache_flex_html_supportClasses_NonVirtualDataGroup.
+    prototype.removeAllElements = function() {
+
+  while (this.element.hasChildNodes()) {
+    this.element.removeChild(this.element.lastChild);
+  }
+};
+
+
+/**
+ * @expose
+ * @param {number} index The index of the desired element.
+ * @return {Object} The element at the given index.
+ */
+org_apache_flex_html_supportClasses_NonVirtualDataGroup.
+    prototype.getElementAt = function(index) {
+
+  var e = this.element.childNodes[index];
+  return e.flexjs_wrapper;
+};
+
+
+/**
+ * @expose
+ * @param {Object} index The index for the itemRenderer.
+ * @return {Object} The itemRenderer that matches the index.
+ */
+org_apache_flex_html_supportClasses_NonVirtualDataGroup.
+    prototype.getItemRendererForIndex = function(index) {
+  return this.renderers[index];
+};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
new file mode 100644
index 0000000..3e977dc
--- /dev/null
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
@@ -0,0 +1,139 @@
+/**
+ * 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_supportClasses_StringItemRenderer');
+
+goog.require('org_apache_flex_core_IItemRenderer');
+goog.require('org_apache_flex_core_UIBase');
+goog.require('org_apache_flex_html_beads_controllers_ItemRendererMouseController');
+goog.require('org_apache_flex_html_supportClasses_DataItemRenderer');
+goog.require('org_apache_flex_utils_Language');
+
+
+
+/**
+ * @constructor
+ * @extends {org_apache_flex_html_supportClasses_DataItemRenderer}
+ * @implements {org_apache_flex_core_IItemRenderer}
+ */
+org_apache_flex_html_supportClasses_StringItemRenderer =
+    function() {
+  org_apache_flex_html_supportClasses_StringItemRenderer.base(this, 'constructor');
+};
+goog.inherits(
+    org_apache_flex_html_supportClasses_StringItemRenderer,
+    org_apache_flex_html_supportClasses_DataItemRenderer);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_html_supportClasses_StringItemRenderer.
+    prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'StringItemRenderer',
+                qName: 'org_apache_flex_html_supportClasses_StringItemRenderer' }],
+      interfaces: [org_apache_flex_core_IItemRenderer] };
+
+
+/**
+ * @override
+ */
+org_apache_flex_html_supportClasses_StringItemRenderer.
+    prototype.createElement = function() {
+
+  this.element = document.createElement('div');
+  this.positioner = this.element;
+
+  this.element.flexjs_wrapper = this;
+  this.className = 'StringItemRenderer';
+
+  // itemRenderers should provide something for the background to handle
+  // the selection and highlight
+  this.backgroundView = this.element;
+
+  this.controller = new org_apache_flex_html_beads_controllers_ItemRendererMouseController();
+  this.controller.strand = this;
+
+  return this.element;
+};
+
+
+Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.prototype, {
+    /** @expose */
+    strand: {
+        /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+        set: function(value) {
+            this.strand_ = value;
+        },
+        /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+        get: function() {
+             return this.strand_;
+        }
+    },
+    /** @expose */
+    itemRendererParent: {
+        /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+        get: function() {
+            return this.rendererParent_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+        set: function(value) {
+            this.rendererParent_ = value;
+        }
+    },
+    /** @expose */
+    index: {
+        /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+        set: function(value) {
+            this.index_ = value;
+        }
+    },
+    /** @expose */
+    text: {
+        /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+        set: function(value) {
+            this.element.innerHTML = value;
+        },
+        /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+        get: function() {
+            return this.element.innerHTML;
+        }
+    },
+    /** @expose */
+    data: {
+        /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+        set: function(value) {
+            org_apache_flex_utils_Language.superSetter(
+                org_apache_flex_html_supportClasses_StringItemRenderer, this, 'data', value);
+
+            if (this.labelField) {
+              this.element.innerHTML = String(value[this.labelField]);
+            }
+            else if (this.dataField) {
+              this.element.innerHTML = String(value[this.dataField]);
+            }
+            else if (value.toString) {
+              this.element.innerHTML = value.toString();
+            } else {
+              this.element.innerHTML = String(value);
+            }
+        },
+        /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+        get: function() {
+            return this.element.innerHTML;
+        }
+    }
+});

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
new file mode 100644
index 0000000..6bda43f
--- /dev/null
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
@@ -0,0 +1,180 @@
+/**
+ * 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_supportClasses_UIItemRendererBase');
+
+goog.require('org_apache_flex_core_IItemRenderer');
+goog.require('org_apache_flex_core_IItemRendererFactory');
+goog.require('org_apache_flex_core_UIBase');
+goog.require('org_apache_flex_events_Event');
+goog.require('org_apache_flex_utils_MXMLDataInterpreter');
+
+
+
+/**
+ * @constructor
+ * @extends {org_apache_flex_core_UIBase}
+ * @implements {org_apache_flex_core_IItemRenderer}
+ */
+org_apache_flex_html_supportClasses_UIItemRendererBase =
+function() {
+  org_apache_flex_html_supportClasses_UIItemRendererBase.base(this, 'constructor');
+};
+goog.inherits(
+    org_apache_flex_html_supportClasses_UIItemRendererBase,
+    org_apache_flex_core_UIBase);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'UIItemRendererBase',
+                qName: 'org_apache_flex_html_supportClasses_UIItemRendererBase' }],
+      interfaces: [org_apache_flex_core_IItemRenderer, org_apache_flex_core_IItemRendererFactory]};
+
+
+/**
+ * @expose
+ */
+org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.addedToParent =
+function() {
+  org_apache_flex_html_supportClasses_UIItemRendererBase.base(this, 'addedToParent');
+
+  // very common for item renderers to be resized by their containers,
+  this.addEventListener('widthChanged', goog.bind(this.sizeChangeHandler, this));
+  this.addEventListener('heightChanged', goog.bind(this.sizeChangeHandler, this));
+
+  // each MXML file can also have styles in fx:Style block
+  //? appropriate for JavaScript? ValuesManager.valuesImpl.init(this);
+
+  org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this, this, this.MXMLDescriptor);
+
+  this.dispatchEvent(new org_apache_flex_events_Event('initComplete'));
+};
+
+
+/**
+ * @expose
+ * @param {Array} data The data for the attributes.
+ */
+org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.generateMXMLAttributes = function(data) {
+  org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties(this, data);
+};
+
+
+Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.prototype, {
+    /** @expose */
+    MXMLDescriptor: {
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        get: function() {
+            return null;
+        }
+    },
+    /** @expose */
+    data: {
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        get: function() {
+            return this.data_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        set: function(value) {
+            this.data_ = value;
+        }
+    },
+    /** @expose */
+    labelField: {
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        get: function() {
+            return this.labelField_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        set: function(value) {
+            this.labelField_ = value;
+        }
+    },
+    /** @expose */
+    index: {
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        get: function() {
+            return this.index_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        set: function(value) {
+            this.index_ = value;
+        }
+    },
+    /** @expose */
+    hovered: {
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        get: function() {
+            return this.hovered_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        set: function(value) {
+            this.hovered_ = value;
+        }
+    },
+    /** @expose */
+    selected: {
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        get: function() {
+            return this.selected_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        set: function(value) {
+            this.selected_ = value;
+        }
+    },
+    /** @expose */
+    down: {
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        get: function() {
+            return this.down_;
+        },
+        /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+        set: function(value) {
+            this.down_ = value;
+        }
+    }
+});
+
+
+/**
+ * @expose
+ */
+org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.updateRenderer =
+function() {
+};
+
+
+/**
+ * @expose
+ * @param {Event} value The event that triggered the size change.
+ */
+org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.sizeChangeHandler =
+function(value) {
+  //this.adjustSize();
+};
+
+
+/**
+ * @expose
+ */
+org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.adjustSize =
+function() {
+  // handle in sub-class
+};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/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
new file mode 100644
index 0000000..1febffa
--- /dev/null
+++ b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/CheckBox.js
@@ -0,0 +1,75 @@
+/**
+ * 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;
+
+  return this.element;
+};
+
+
+Object.defineProperties(org_apache_flex_html5_CheckBox.prototype, {
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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/b677c658/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
new file mode 100644
index 0000000..96ec8af
--- /dev/null
+++ b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/ComboBox.js
@@ -0,0 +1,188 @@
+/**
+ * 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.element.style.position = 'relative';
+
+  this.positioner = this.element;
+
+  // 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;
+};
+
+
+/**
+ * @expose
+ * @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');
+};
+
+
+/**
+ * @expose
+ * @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;
+  }
+};
+
+
+/**
+ * @expose
+ * @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, {
+    /** @expose */
+    dataProvider: {
+        /** @this {org_apache_flex_html5_ComboBox} */
+        set: function(value) {
+            this.dataProvider = value;
+        }
+    },
+    /** @expose */
+    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/b677c658/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
new file mode 100644
index 0000000..587f002
--- /dev/null
+++ b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/DropDownList.js
@@ -0,0 +1,29 @@
+/**
+ * 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/b677c658/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
new file mode 100644
index 0000000..97c65a1
--- /dev/null
+++ b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/Label.js
@@ -0,0 +1,57 @@
+/**
+ * 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, {
+    /** @expose */
+    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/b677c658/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
new file mode 100644
index 0000000..984b43d
--- /dev/null
+++ b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/List.js
@@ -0,0 +1,42 @@
+/**
+ * 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/b677c658/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
new file mode 100644
index 0000000..0775f7e
--- /dev/null
+++ b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/RadioButton.js
@@ -0,0 +1,86 @@
+/**
+ * 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;
+
+  return this.element;
+};
+
+
+Object.defineProperties(org_apache_flex_html5_RadioButton.prototype, {
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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/b677c658/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
new file mode 100644
index 0000000..6771ea5
--- /dev/null
+++ b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextArea.js
@@ -0,0 +1,57 @@
+/**
+ * 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;
+
+  return this.element;
+};
+
+
+Object.defineProperties(org_apache_flex_html5_TextArea.prototype, {
+    /** @expose */
+    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/b677c658/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
new file mode 100644
index 0000000..d95ecc7
--- /dev/null
+++ b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextButton.js
@@ -0,0 +1,58 @@
+/**
+ * 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;
+
+  return this.element;
+};
+
+
+Object.defineProperties(org_apache_flex_html5_TextButton.prototype, {
+    /** @expose */
+    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/b677c658/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
new file mode 100644
index 0000000..a9f9314
--- /dev/null
+++ b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextInput.js
@@ -0,0 +1,58 @@
+/**
+ * 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;
+
+  return this.element;
+};
+
+
+Object.defineProperties(org_apache_flex_html5_TextInput.prototype, {
+    /** @expose */
+    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/b677c658/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
new file mode 100644
index 0000000..a14392f
--- /dev/null
+++ b/frameworks/projects/JQuery/js/src/jquery_externals.js
@@ -0,0 +1,20 @@
+/**
+ * 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 $() {}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/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
new file mode 100644
index 0000000..16c3dec
--- /dev/null
+++ b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/Application.js
@@ -0,0 +1,42 @@
+/**
+ * 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/b677c658/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
new file mode 100644
index 0000000..9b0ddbf
--- /dev/null
+++ b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
@@ -0,0 +1,87 @@
+/**
+ * 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;
+  cb.flexjs_wrapper = this;
+  this.element.flexjs_wrapper = this;
+
+  return this.element;
+};
+
+
+Object.defineProperties(org_apache_flex_jquery_CheckBox.prototype, {
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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/b677c658/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
new file mode 100644
index 0000000..39b9639
--- /dev/null
+++ b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
@@ -0,0 +1,190 @@
+/**
+ * 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);
+
+
+/**
+ * @expose
+ * @type {?string}
+ * The name of the radioGroup.
+ */
+org_apache_flex_jquery_RadioButton.prototype.radioGroupName = null;
+
+
+/**
+ * @expose
+ * Used to provide ids to the radio buttons.
+ */
+org_apache_flex_jquery_RadioButton.radioCounter = 0;
+
+
+/**
+ * @expose
+ * 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.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, {
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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/b677c658/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
new file mode 100644
index 0000000..01d660f
--- /dev/null
+++ b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
@@ -0,0 +1,68 @@
+/**
+ * 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.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, {
+    /** @expose */
+    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;
+        }
+    }
+});

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/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
new file mode 100644
index 0000000..2ff0908
--- /dev/null
+++ b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -0,0 +1,148 @@
+/**
+ * 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'}] };
+
+
+/**
+ * @expose
+ * 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.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, {
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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;
+        }
+    },
+    /** @expose */
+    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';
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/JQuery/js/tests/FlexJSTest.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/tests/FlexJSTest.js b/frameworks/projects/JQuery/js/tests/FlexJSTest.js
new file mode 100644
index 0000000..cb81eac
--- /dev/null
+++ b/frameworks/projects/JQuery/js/tests/FlexJSTest.js
@@ -0,0 +1,59 @@
+/**
+ * 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);

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/JQuery/js/tests/MyController.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/tests/MyController.js b/frameworks/projects/JQuery/js/tests/MyController.js
new file mode 100644
index 0000000..beb6618
--- /dev/null
+++ b/frameworks/projects/JQuery/js/tests/MyController.js
@@ -0,0 +1,56 @@
+/**
+ * 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');
+};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/projects/JQuery/js/tests/MyInitialView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/tests/MyInitialView.js b/frameworks/projects/JQuery/js/tests/MyInitialView.js
new file mode 100644
index 0000000..35f35d2
--- /dev/null
+++ b/frameworks/projects/JQuery/js/tests/MyInitialView.js
@@ -0,0 +1,67 @@
+/**
+ * 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.Label');
+goog.require('org.apache.flex.html.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.Label,
+            null,
+            'lbl',
+            2, 'x', 100, 'y', 25,
+            0,
+            0,
+            1, 'text', 0, 'model', 'labelText', 'labelTextChanged',
+        org.apache.flex.html.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']
+            )
+        )
+    );
+};