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:33 UTC
[28/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/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
deleted file mode 100644
index ae7b7a0..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org_apache_flex_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/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
deleted file mode 100644
index 37df650..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
+++ /dev/null
@@ -1,104 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org_apache_flex_html_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/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
deleted file mode 100644
index 84959e7..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org_apache_flex_html_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/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
deleted file mode 100644
index 625d4c3..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
+++ /dev/null
@@ -1,132 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org_apache_flex_html_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/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
deleted file mode 100644
index 5d9465d..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
+++ /dev/null
@@ -1,134 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org_apache_flex_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/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
deleted file mode 100644
index 3e977dc..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
+++ /dev/null
@@ -1,139 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org_apache_flex_html_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/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
deleted file mode 100644
index 6bda43f..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
+++ /dev/null
@@ -1,180 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org_apache_flex_html_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/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
deleted file mode 100644
index 1febffa..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
+++ /dev/null
@@ -1,75 +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;
-
- 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/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
deleted file mode 100644
index 96ec8af..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
+++ /dev/null
@@ -1,188 +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.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/js/FlexJS/src/org/apache/flex/html5/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/DropDownList.js
deleted file mode 100644
index 587f002..0000000
--- a/frameworks/js/FlexJS/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/b677c658/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
deleted file mode 100644
index 97c65a1..0000000
--- a/frameworks/js/FlexJS/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, {
- /** @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/js/FlexJS/src/org/apache/flex/html5/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/List.js
deleted file mode 100644
index 984b43d..0000000
--- a/frameworks/js/FlexJS/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/b677c658/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
deleted file mode 100644
index 0775f7e..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
+++ /dev/null
@@ -1,86 +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;
-
- 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/js/FlexJS/src/org/apache/flex/html5/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
deleted file mode 100644
index 6771ea5..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.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_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/js/FlexJS/src/org/apache/flex/html5/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
deleted file mode 100644
index d95ecc7..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.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_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/js/FlexJS/src/org/apache/flex/html5/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
deleted file mode 100644
index a9f9314..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.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_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/js/FlexJS/src/org/apache/flex/jquery/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/Application.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/Application.js
deleted file mode 100644
index 16c3dec..0000000
--- a/frameworks/js/FlexJS/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/b677c658/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
deleted file mode 100644
index 9b0ddbf..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.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_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/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
deleted file mode 100644
index 39b9639..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
+++ /dev/null
@@ -1,190 +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);
-
-
-/**
- * @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/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
deleted file mode 100644
index 01d660f..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
+++ /dev/null
@@ -1,68 +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.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/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
deleted file mode 100644
index 2ff0908..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
+++ /dev/null
@@ -1,148 +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'}] };
-
-
-/**
- * @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/js/FlexJS/src/org/apache/flex/maps/google/Geometry.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Geometry.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Geometry.js
deleted file mode 100644
index 0c18920..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Geometry.js
+++ /dev/null
@@ -1,50 +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_maps_google_Geometry');
-
-goog.require('org_apache_flex_maps_google_LatLng');
-
-
-// IMPORTANT:
-// In order to use this class, the Google MAP API must be downloaded
-// from the <head> section of the main HTML file.
-
-
-
-/**
- * @constructor
- */
-org_apache_flex_maps_google_Geometry = function() {
- this.location = new org_apache_flex_maps_google_LatLng();
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org_apache_flex_maps_google_Geometry.prototype.
-FLEXJS_CLASS_INFO =
-{ names: [{ name: 'Geometry',
- qName: 'org_apache_flex_maps_google_Geometry' }],
- interfaces: [] };
-
-
-/**
- * @type {Object} The current location
- */
-org_apache_flex_maps_google_Geometry.prototype.location = null;
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/js/FlexJS/src/org/apache/flex/maps/google/LatLng.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/LatLng.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/LatLng.js
deleted file mode 100644
index 8cafa2e..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/LatLng.js
+++ /dev/null
@@ -1,53 +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_maps_google_LatLng');
-
-
-// IMPORTANT:
-// In order to use this class, the Google MAP API must be downloaded
-// from the <head> section of the main HTML file.
-
-
-
-/**
- * @constructor
- */
-org_apache_flex_maps_google_LatLng = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org_apache_flex_maps_google_LatLng.prototype.
-FLEXJS_CLASS_INFO =
-{ names: [{ name: 'LatLng',
- qName: 'org_apache_flex_maps_google_LatLng' }],
- interfaces: [] };
-
-
-/**
- * @type {number} The latitude
- */
-org_apache_flex_maps_google_LatLng.prototype.lat = 0;
-
-
-/**
- * @type {number} The longitude
- */
-org_apache_flex_maps_google_LatLng.prototype.lng = 0;
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
deleted file mode 100644
index 9a16e5d..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
+++ /dev/null
@@ -1,349 +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_maps_google_Map');
-
-goog.require('org_apache_flex_core_IBeadModel');
-goog.require('org_apache_flex_maps_google_Geometry');
-goog.require('org_apache_flex_maps_google_LatLng');
-goog.require('org_apache_flex_maps_google_Marker');
-goog.require('org_apache_flex_maps_google_Place');
-goog.require('org_apache_flex_maps_google_models_MapModel');
-
-
-// IMPORTANT:
-// In order to use this class, the Google MAP API must be downloaded
-// from the <head> section of the main HTML file.
-
-
-
-/**
- * @constructor
- * @extends {org_apache_flex_core_UIBase}
- */
-org_apache_flex_maps_google_Map = function() {
- org_apache_flex_maps_google_Map.base(this, 'constructor');
- this.initialized = false;
-};
-goog.inherits(org_apache_flex_maps_google_Map,
- org_apache_flex_core_UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org_apache_flex_maps_google_Map.prototype.
-FLEXJS_CLASS_INFO =
-{ names: [{ name: 'Map',
- qName: 'org_apache_flex_maps_google_Map' }],
- interfaces: [] };
-
-
-/**
- *
- */
-org_apache_flex_maps_google_Map.prototype.searchResults = null;
-
-
-/**
- * @override
- * @protected
- * @return {Object} The actual element to be parented.
- */
-org_apache_flex_maps_google_Map.prototype.createElement =
- function() {
-
- var model = new org_apache_flex_maps_google_models_MapModel();
- this.addBead(model);
-
- this.element = document.createElement('div');
- this.className = 'Map';
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-Object.defineProperties(org_apache_flex_maps_google_Map.prototype, {
- /** @expose */
- token: {
- /** @this {org_apache_flex_maps_google_Map} */
- set: function(value) {
- this.token = value;
- }
- },
- /** @expose */
- selectedMarker: {
- /** @this {org_apache_flex_maps_google_Map} */
- get: function() {
- return this._selectedMarker;
- }
- }
-});
-
-
-/**
- */
-org_apache_flex_maps_google_Map.prototype.finishInitalization = function() {
- this.loadMap(37.333, -121.900, 12);
- this.initialized = true;
- this.dispatchEvent('ready');
-};
-
-
-/**
- * @expose
- * @param {number} centerLat center latitude.
- * @param {number} centerLong center longitude.
- * @param {number} zoom zoom level.
- */
-org_apache_flex_maps_google_Map.prototype.loadMap =
- function(centerLat, centerLong, zoom) {
- if (!this.initialized) {
- this.currentCenter = new window['google']['maps']['LatLng'](centerLat, centerLong);
- var mapOptions = {};
- mapOptions['center'] = this.currentCenter;
- mapOptions['zoom'] = zoom;
- this.map = new window['google']['maps']['Map'](this.element, mapOptions);
- this.geocoder = null;
- google.maps.event.addListener(this.map, 'center_changed', goog.bind(this.centerChangeHandler, this));
- google.maps.event.addListener(this.map, 'bounds_changed', goog.bind(this.boundsChangeHandler, this));
- google.maps.event.addListener(this.map, 'zoom_changed', goog.bind(this.zoomChangeHandler, this));
- }
-};
-
-
-/**
- * @expose
- * @param {Number} zoomLevel The level of magnification.
- */
-org_apache_flex_maps_google_Map.prototype.setZoom =
- function(zoomLevel) {
- if (this.initialized) {
- this.map.setZoom(zoomLevel);
- }
-};
-
-
-/**
- * @expose
- * @param {string} address The new center of the map.
- */
-org_apache_flex_maps_google_Map.prototype.centerOnAddress = function(address) {
- if (!this.geocoder) this.geocoder = new window['google']['maps']['Geocoder']();
- this.geocoder.geocode({ 'address': address}, goog.bind(this.positionHandler, this));
-};
-
-
-/**
- * @expose
- * @param {Object} location The new center of the map.
- */
-org_apache_flex_maps_google_Map.prototype.setCenter = function(location) {
- this.currentCenter = new window['google']['maps']['LatLng'](location.lat, location.lng);
- this.map.setCenter(this.currentCenter);
-};
-
-
-/**
- * @expose
- */
-org_apache_flex_maps_google_Map.prototype.markCurrentLocation = function() {
- this.createMarker(this.currentCenter);
-};
-
-
-/**
- * @expose
- * @param {string} address The address to locate and mark on the map.
- */
-org_apache_flex_maps_google_Map.prototype.markAddress =
- function(address) {
- if (this.initialized) {
- if (!this.geocoder) this.geocoder = new window['google']['maps']['Geocoder']();
- this.geocoder.geocode({ 'address': address}, goog.bind(this.geoCodeHandler, this));
- }
-};
-
-
-/**
- * @expose
- * @param {Object} location A LatLng that denotes the position of the marker.
- * @return {Object} A marker object.
- */
-org_apache_flex_maps_google_Map.prototype.createMarker =
- function(location) {
- var marker = new window['google']['maps']['Marker']({
- map: this.map,
- position: location
- });
- google.maps.event.addListener(marker, 'click', goog.bind(this.markerClicked, this, marker));
- return marker;
-};
-
-
-/**
- * @expose
- * @param {string} placeName A place to search for.
- */
-org_apache_flex_maps_google_Map.prototype.nearbySearch =
- function(placeName) {
- if (this.markers == null) this.markers = [];
- this.service = new window['google']['maps']['places']['PlacesService'](this.map);
- this.service.nearbySearch({'location': this.currentCenter,
- 'radius': 5000,
- 'name': placeName}, goog.bind(this.searchResultHandler, this));
-};
-
-
-/**
- * @expose
- */
-org_apache_flex_maps_google_Map.prototype.clearSearchResults =
-function() {
- if (this.markers) {
- for (var i = 0; i < this.markers.length; i++) {
- this.markers[i]['setMap'](null);
- }
- this.markers = null;
- }
-};
-
-
-/**
- * @param {Object} marker The marker that was clicked.
- * @param {Object} event The mouse event for the marker click.
- */
-org_apache_flex_maps_google_Map.prototype.markerClicked =
-function(marker, event) {
- var newMarker = new org_apache_flex_maps_google_Marker();
- newMarker.position.lat = marker.position.lat();
- newMarker.position.lng = marker.position.lng();
- newMarker.title = marker.title;
- newMarker.map = this;
-
- this._selectedMarker = newMarker;
-
- var newEvent = new org_apache_flex_events_Event('markerClicked');
- newEvent.marker = newMarker;
- this.dispatchEvent(newEvent);
-};
-
-
-/**
- * @param {Array} results The found location(s).
- * @param {string} status Status of the call.
- */
-org_apache_flex_maps_google_Map.prototype.positionHandler =
- function(results, status) {
- if (status == window['google']['maps']['GeocoderStatus']['OK']) {
- this.currentCenter = results[0]['geometry']['location'];
- this.map['setCenter'](this.currentCenter);
-
- var newEvent = document.createEvent('Event');
- newEvent.initEvent('mapCentered', true, true);
- window.dispatchEvent(newEvent);
- } else {
- alert('Geocode was not successful for the following reason: ' + status);
- }
-};
-
-
-/**
- * @param {Array} results The found location(s).
- * @param {string} status Status of the call.
- */
-org_apache_flex_maps_google_Map.prototype.geoCodeHandler =
- function(results, status) {
- if (status == window['google']['maps']['GeocoderStatus']['OK']) {
- this.currentCenter = results[0]['geometry']['location'];
- this.map['setCenter'](this.currentCenter);
- var marker = new window['google']['maps']['Marker']({
- map: this.map,
- position: this.currentCenter
- });
- } else {
- alert('Geocode was not successful for the following reason: ' + status);
- }
-};
-
-
-/**
- * @param {Array} results The result of the search.
- * @param {string} status Status of the search.
- */
-org_apache_flex_maps_google_Map.prototype.searchResultHandler =
-function(results, status) {
- this.searchResults = [];
- if (status == window['google']['maps']['places']['PlacesServiceStatus']['OK']) {
- for (var i = 0; i < results.length; i++) {
- var place = new org_apache_flex_maps_google_Place();
- place.geometry.location.lat = results[i]['geometry']['location']['lat'];
- place.geometry.location.lng = results[i]['geometry']['location']['lng'];
- place.icon = results[i]['icon'];
- place.id = results[i]['id'];
- place.name = results[i]['name'];
- place.reference = results[i]['reference'];
- place.vicinity = results[i]['vicinity'];
- this.searchResults.push(place);
-
- var marker = this.createMarker(results[i]['geometry']['location']);
- marker.title = place.name;
-
- this.markers.push(marker);
- }
- var model = this.model;
- model.searchResults = this.searchResults;
- }
-};
-
-
-/**
- * Handles changes in map center
- */
-org_apache_flex_maps_google_Map.prototype.centerChangeHandler =
- function() {
- this.currentCenter = this.map['getCenter']();
-
- var newEvent = new org_apache_flex_events_Event('centered');
- this.dispatchEvent(newEvent);
-};
-
-
-/**
- * Handles changes in map bounds
- */
-org_apache_flex_maps_google_Map.prototype.boundsChangeHandler =
- function() {
- this.currentCenter = this.map['getCenter']();
-
- var newEvent = new org_apache_flex_events_Event('boundsChanged');
- this.dispatchEvent(newEvent);
-};
-
-
-/**
- * Handles changes in map bounds
- */
-org_apache_flex_maps_google_Map.prototype.zoomChangeHandler =
- function() {
- this.currentCenter = this.map['getCenter']();
-
- var newEvent = new org_apache_flex_events_Event('zoomChanged');
- this.dispatchEvent(newEvent);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b677c658/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Marker.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Marker.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Marker.js
deleted file mode 100644
index 36b14da..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Marker.js
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org_apache_flex_maps_google_Marker');
-
-goog.require('org_apache_flex_maps_google_LatLng');
-
-
-
-// IMPORTANT:
-// In order to use this class, the Google MAP API must be downloaded
-// from the <head> section of the main HTML file.
-
-
-
-/**
- * @constructor
- */
-org_apache_flex_maps_google_Marker = function() {
- this.position = new org_apache_flex_maps_google_LatLng();
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org_apache_flex_maps_google_Marker.prototype.
-FLEXJS_CLASS_INFO =
-{ names: [{ name: 'Marker',
- qName: 'org_apache_flex_maps_google_Marker' }],
- interfaces: [] };
-
-
-/**
- * @type {Object} The marker's location.
- */
-org_apache_flex_maps_google_Marker.prototype.position = null;
-
-
-/**
- * @type {String} The title for the marker.
- */
-org_apache_flex_maps_google_Marker.prototype.title = null;
-
-
-/**
- * @type {Object} The map to which the marker belongs.
- */
-org_apache_flex_maps_google_Marker.prototype.map = null;
-