You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/12/02 20:36:08 UTC
[02/12] git commit: [flex-asjs] [refs/heads/core_js_to_as] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ListPresentationModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ListPresentationModel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ListPresentationModel.js
deleted file mode 100644
index 91d4371..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ListPresentationModel.js
+++ /dev/null
@@ -1,94 +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.ListPresentationModel');
-
-goog.require('org.apache.flex.core.IListPresentationModel');
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- * @implements {org.apache.flex.core.IListPresentationModel}
- */
-org.apache.flex.html.beads.models.ListPresentationModel =
- function() {
- org.apache.flex.html.beads.models.ListPresentationModel.base(this, 'constructor');
- this.className = 'ListPresentationModel';
-};
-goog.inherits(
- org.apache.flex.html.beads.models.ListPresentationModel,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * @private
- * @type {number}
- */
-org.apache.flex.html.beads.models.ListPresentationModel.prototype.rowHeight_ = 30;
-
-
-/**
- * @private
- * @type {number}
- */
-org.apache.flex.html.beads.models.ListPresentationModel.prototype.separatorThickness_ = 0;
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.models.ListPresentationModel.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ListPresentationModel',
- qName: 'org.apache.flex.html.beads.models.ListPresentationModel' }],
- interfaces: [org.apache.flex.core.IListPresentationModel] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.models.ListPresentationModel.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.models.ListPresentationModel} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- rowHeight: {
- /** @this {org.apache.flex.html.beads.models.ListPresentationModel} */
- get: function() {
- return this.rowHeight_;
- },
- /** @this {org.apache.flex.html.beads.models.ListPresentationModel} */
- set: function(value) {
- this.rowHeight_ = value;
- this.dispatchEvent('rowHeightChanged');
- }
- },
- /** @export */
- separatorThickness: {
- /** @this {org.apache.flex.html.beads.models.ListPresentationModel} */
- get: function() {
- return this.separatorThickness_;
- },
- /** @this {org.apache.flex.html.beads.models.ListPresentationModel} */
- set: function(value) {
- this.separatorThickness_ = value;
- this.dispatchEvent('separatorThicknessChanged');
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/PanelModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/PanelModel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/PanelModel.js
deleted file mode 100644
index 1a33077..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/PanelModel.js
+++ /dev/null
@@ -1,110 +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.PanelModel');
-
-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.PanelModel = function() {
- org.apache.flex.html.beads.models.PanelModel.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.PanelModel,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.models.PanelModel.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'PanelModel',
- qName: 'org.apache.flex.html.beads.models.PanelModel'}],
- interfaces: [org.apache.flex.core.IBeadModel] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.models.PanelModel.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.models.PanelModel} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- title: {
- /** @this {org.apache.flex.html.beads.models.PanelModel} */
- get: function() {
- return this.title_;
- },
- /** @this {org.apache.flex.html.beads.models.PanelModel} */
- set: function(value) {
- if (this.title_ != value) {
- this.title_ = value;
- this.dispatchEvent('titleChange');
- }
- }
- },
- /** @export */
- htmlTitle: {
- /** @this {org.apache.flex.html.beads.models.PanelModel} */
- get: function() {
- return this.htmlTitle_;
- },
- /** @this {org.apache.flex.html.beads.models.PanelModel} */
- set: function(value) {
- if (this.htmlTitle_ != value) {
- this.htmlTitle_ = value;
- this.dispatchEvent('htmlTitleChange');
- }
- }
- },
- /** @export */
- showCloseButton: {
- /** @this {org.apache.flex.html.beads.models.PanelModel} */
- get: function() {
- return this.showCloseButton_;
- },
- /** @this {org.apache.flex.html.beads.models.PanelModel} */
- set: function(value) {
- if (this.showCloseButton_ != value) {
- this.showCloseButton_ = value;
- this.dispatchEvent('showCloseButtonChange');
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/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
deleted file mode 100644
index ec7ac92..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/RangeModel.js
+++ /dev/null
@@ -1,158 +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.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, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.models.RangeModel} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- 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');
- }
- }
- },
- /** @export */
- 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');
- }
- }
- },
- /** @export */
- 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');
- }
- }
- },
- /** @export */
- 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');
- }
- }
- },
- /** @export */
- 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');
- }
- }
- }
-});
-
-
-/**
- * @export
- * @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/d4cace4a/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
deleted file mode 100644
index 9e9967c..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/TextModel.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.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, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.models.TextModel} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- 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/d4cace4a/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
deleted file mode 100644
index 3f59620..0000000
--- a/frameworks/projects/HTML/js/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, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.models.TitleBarModel} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- 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');
- }
- }
- },
- /** @export */
- 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');
- }
- }
- },
- /** @export */
- 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/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ViewportModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ViewportModel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ViewportModel.js
deleted file mode 100644
index 8d01d77..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ViewportModel.js
+++ /dev/null
@@ -1,93 +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.ViewportModel');
-
-goog.require('org.apache.flex.core.IStrand');
-goog.require('org.apache.flex.core.IViewportModel');
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- * @implements {org.apache.flex.core.IViewportModel}
- */
-org.apache.flex.html.beads.models.ViewportModel = function() {
- org.apache.flex.html.beads.models.ViewportModel.base(this, 'constructor');
-};
-goog.inherits(
- org.apache.flex.html.beads.models.ViewportModel,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.models.ViewportModel.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ViewportModel',
- qName: 'org.apache.flex.html.beads.models.ViewportModel' }],
- interfaces: [org.apache.flex.core.IViewportModel]
- };
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.html.beads.models.ViewportModel.prototype.strand_ = null;
-
-
-/**
- * @type {org.apache.flex.geom.Rectangle}
- */
-org.apache.flex.html.beads.models.ViewportModel.prototype.borderMetrics = null;
-
-
-/**
- * @type {org.apache.flex.geom.Rectangle}
- */
-org.apache.flex.html.beads.models.ViewportModel.prototype.chromeMetrics = null;
-
-
-/**
- * @type {number}
- */
-org.apache.flex.html.beads.models.ViewportModel.prototype.verticalScrollPosition = NaN;
-
-
-/**
- * @type {number}
- */
-org.apache.flex.html.beads.models.ViewportModel.prototype.horizontalScrollPosition = NaN;
-
-
-Object.defineProperties(org.apache.flex.html.beads.models.ViewportModel.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.models.ViewportModel} */
- set: function(value) {
- this.strand_ = value;
- },
- /** @this {org.apache.flex.html.beads.models.ViewportModel} */
- get: function() {
- return this.strand_;
- }
- }
-
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/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
deleted file mode 100644
index 2275c68..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
+++ /dev/null
@@ -1,105 +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.positioner.style.position = 'relative';
-
- 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, {
- /** @export */
- 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_;
- }
- },
- /** @export */
- 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/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ContainerContentArea.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ContainerContentArea.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ContainerContentArea.js
deleted file mode 100644
index 011b73c..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ContainerContentArea.js
+++ /dev/null
@@ -1,80 +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.ContainerContentArea');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.supportClasses.ContainerContentArea =
-function() {
- org.apache.flex.html.supportClasses.ContainerContentArea.base(this, 'constructor');
-};
-goog.inherits(
- org.apache.flex.html.supportClasses.ContainerContentArea,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.supportClasses.ContainerContentArea.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ContainerContentArea',
- qName: 'org.apache.flex.html.supportClasses.ContainerContentArea' }]};
-
-
-/**
- * @override
- */
-org.apache.flex.html.supportClasses.ContainerContentArea.prototype.createElement =
- function() {
- this.element = document.createElement('div');
- this.element.className = 'ContainerContentArea';
-
- this.positioner = this.element;
- // absolute positioned children need a non-null
- // position value in the parent. It might
- // get set to 'absolute' if the container is
- // also absolutely positioned
- this.positioner.style.position = 'relative';
- this.positioner.style.backgroundColor = 'transparent';
- this.positioner.style.paddingLeft = 'inherit';
- this.positioner.style.paddingRight = 'inherit';
- this.positioner.style.paddingTop = 'inherit';
- this.positioner.style.paddingBottom = 'inherit';
- this.positioner.style.padding = 'inherit';
- this.element.flexjs_wrapper = this;
-
- this.addEventListener('layoutNeeded',
- goog.bind(this.forwardEventHandler_, this));
- return this.element;
-};
-
-
-/**
- * @private
- * @param {Object} e The Event.;
- */
-org.apache.flex.html.supportClasses.ContainerContentArea.prototype.forwardEventHandler_ =
- function(e) {
- if (this.parent)
- this.parent.dispatchEvent(e);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/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
deleted file mode 100644
index 9a48b33..0000000
--- a/frameworks/projects/HTML/js/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('org.apache.flex.core.IFactory');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.supportClasses.DataGridColumn =
- function() {
-};
-
-
-Object.defineProperties(org.apache.flex.html.supportClasses.DataGridColumn.prototype, {
- /** @export */
- 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;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @export */
- 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/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGroup.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGroup.js
deleted file mode 100644
index f1a5ea2..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGroup.js
+++ /dev/null
@@ -1,138 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html.supportClasses.DataGroup');
-
-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.DataGroup =
- function() {
- this.renderers = [];
- org.apache.flex.html.supportClasses.DataGroup.base(this, 'constructor');
-};
-goog.inherits(
- org.apache.flex.html.supportClasses.DataGroup,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.supportClasses.DataGroup.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'DataGroup',
- qName: 'org.apache.flex.html.supportClasses.DataGroup' }] };
-
-
-Object.defineProperties(org.apache.flex.html.supportClasses.DataGroup.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.supportClasses.DataGroup} */
- set: function(value) {
- this.strand_ = value;
- },
- /** @this {org.apache.flex.html.supportClasses.DataGroup} */
- get: function() {
- return this.strand_;
- }
- },
- /** @export */
- numElements: {
- /** @this {org.apache.flex.html.supportClasses.DataGroup} */
- get: function() {
-
- var n = this.element.childNodes.length;
- return n;
- }
- }
-});
-
-
-/**
- * @override
- */
-org.apache.flex.html.supportClasses.DataGroup.
- 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 = 'DataGroup';
-
- this.positioner = this.element;
-
- return this.element;
-};
-
-
-/**
- * @override
- * @param {Object} value The child element being added.
- */
-org.apache.flex.html.supportClasses.DataGroup.
- prototype.addElement = function(value) {
- org.apache.flex.html.supportClasses.DataGroup.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);
-};
-
-
-/**
- * @export
- */
-org.apache.flex.html.supportClasses.DataGroup.
- prototype.removeAllElements = function() {
-
- while (this.element.hasChildNodes()) {
- this.element.removeChild(this.element.lastChild);
- }
-};
-
-
-/**
- * @export
- * @param {number} index The index of the desired element.
- * @return {Object} The element at the given index.
- */
-org.apache.flex.html.supportClasses.DataGroup.
- prototype.getElementAt = function(index) {
-
- var e = this.element.childNodes[index];
- return e.flexjs_wrapper;
-};
-
-
-/**
- * @export
- * @param {number} index The selected index.
- * @return {Object} The itemRenderer at the given index.
- */
-org.apache.flex.html.supportClasses.DataGroup.
- prototype.getItemRendererForIndex = function(index) {
- return this.renderers[index];
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/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
deleted file mode 100644
index 7a7ca0d..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataItemRenderer.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.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.positioner.style.position = 'relative';
-
- 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, {
- /** @export */
- 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;
- }
- },
- /** @export */
- 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_;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @this {org.apache.flex.html.supportClasses.DataItemRenderer} */
- get: function(value) {
- return this.selected_;
- }
- },
- /** @export */
- 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;
- }
- }
- },
- /** @this {org.apache.flex.html.supportClasses.DataItemRenderer} */
- get: function() {
- return this.hovered_;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ScrollingViewport.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ScrollingViewport.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ScrollingViewport.js
deleted file mode 100644
index 0146912..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ScrollingViewport.js
+++ /dev/null
@@ -1,130 +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.ScrollingViewport');
-
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.geom.Size');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBead}
- * @implements {org.apache.flex.core.IViewport}
- */
-org.apache.flex.html.supportClasses.ScrollingViewport =
-function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.supportClasses.ScrollingViewport.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ScrollingViewport',
- qName: 'org.apache.flex.html.supportClasses.ScrollingViewport' }],
- interfaces: [org.apache.flex.core.IBead,
- org.apache.flex.core.IViewport]};
-
-
-/**
- * @protected
- * @type {Object}
- */
-org.apache.flex.html.supportClasses.ScrollingViewport.prototype._strand = null;
-
-
-/**
- * @type {org.apache.flex.html.supportClasses.ContainerContentArea}
- */
-org.apache.flex.html.supportClasses.ScrollingViewport.prototype.contentView = null;
-
-
-/**
- * @param {number} x The x position of the viewport.
- * @param {number} y The y position of the viewport.
- */
-org.apache.flex.html.supportClasses.ScrollingViewport.prototype.setPosition =
- function(x, y) {
- this.contentView.x = x;
- this.contentView.y = y;
-};
-
-
-/**
- * @param {number} width The width or NaN if sized to content.
- * @param {number} height The height or NaN if sized to content.
- */
-org.apache.flex.html.supportClasses.ScrollingViewport.prototype.layoutViewportBeforeContentLayout =
- function(width, height) {
- if (!isNaN(width))
- this.contentView.width = width;
- if (!isNaN(height))
- this.contentView.height = height;
-};
-
-
-/**
- * @return {org.apache.flex.geom.Size} The size of the viewport.
- */
-org.apache.flex.html.supportClasses.ScrollingViewport.prototype.layoutViewportAfterContentLayout =
- function() {
- // nothing to do here? In theory, the layout and browser will have stretched or shrunk
- // the contentView to the right size
- return new org.apache.flex.geom.Size(this.contentView.width, this.contentView.height);
-};
-
-
-Object.defineProperties(org.apache.flex.html.supportClasses.ScrollingViewport.prototype, {
- /** @export */
- verticalScrollPosition: {
- /** @this {org.apache.flex.html.supportClasses.ScrollingViewport} */
- get: function() {
- return this.contentView.positioner.scrollTop;
- },
- /** @this {org.apache.flex.html.supportClasses.ScrollingViewport} */
- set: function(value) {
- this.contentView.positioner.scrollTop = value;
- }
- },
- /** @export */
- horizontalScrollPosition: {
- /** @this {org.apache.flex.html.supportClasses.ScrollingViewport} */
- get: function() {
- return this.contentView.positioner.scrollLeft;
- },
- /** @this {org.apache.flex.html.supportClasses.ScrollingViewport} */
- set: function(value) {
- this.contentView.positioner.scrollLeft = value;
- }
- },
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.supportClasses.ScrollingViewport} */
- set: function(value) {
- this._strand = value;
- this.contentView = this._strand.getBeadByType(org.apache.flex.core.IContentView);
- if (this.contentView == null) {
- var c = org.apache.flex.core.ValuesManager.valuesImpl.getValue(
- this._strand, 'iContentView');
- if (c)
- this.contentView = new c();
- }
- this.contentView.element.style.overflow = 'auto';
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/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
deleted file mode 100644
index 7f89724..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
+++ /dev/null
@@ -1,144 +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.positioner.style.position = 'relative';
-
- 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, {
- /** @export */
- 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_;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @export */
- index: {
- /** @this {org.apache.flex.html.supportClasses.StringItemRenderer} */
- set: function(value) {
- this.index_ = value;
- },
- /** @this {org.apache.flex.html.supportClasses.StringItemRenderer} */
- get: function() {
- return this.index_;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @export */
- 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/d4cace4a/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
deleted file mode 100644
index 0fe4293..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
+++ /dev/null
@@ -1,181 +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.ISelectableItemRenderer');
-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.ISelectableItemRenderer}
- */
-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.ISelectableItemRenderer, org.apache.flex.core.IItemRendererFactory]};
-
-
-/**
- * @export
- */
-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'));
-};
-
-
-/**
- * @export
- * @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, {
- /** @export */
- MXMLDescriptor: {
- /** @this {org.apache.flex.html.supportClasses.UIItemRendererBase} */
- get: function() {
- return null;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @export */
- 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;
- }
- },
- /** @export */
- 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;
- }
- }
-});
-
-
-/**
- * @export
- */
-org.apache.flex.html.supportClasses.UIItemRendererBase.prototype.updateRenderer =
-function() {
-};
-
-
-/**
- * @export
- * @param {Event} value The event that triggered the size change.
- */
-org.apache.flex.html.supportClasses.UIItemRendererBase.prototype.sizeChangeHandler =
-function(value) {
- //this.adjustSize();
-};
-
-
-/**
- * @export
- */
-org.apache.flex.html.supportClasses.UIItemRendererBase.prototype.adjustSize =
-function() {
- // handle in sub-class
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/Viewport.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/Viewport.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/Viewport.js
deleted file mode 100644
index 4be4ef4..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/Viewport.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.supportClasses.Viewport');
-
-goog.require('org.apache.flex.core.IBead');
-goog.require('org.apache.flex.core.IContentView');
-goog.require('org.apache.flex.core.IViewport');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.geom.Rectangle');
-goog.require('org.apache.flex.geom.Size');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBead}
- * @implements {org.apache.flex.core.IViewport}
- */
-org.apache.flex.html.supportClasses.Viewport =
-function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.supportClasses.Viewport.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Viewport',
- qName: 'org.apache.flex.html.supportClasses.Viewport' }],
- interfaces: [org.apache.flex.core.IBead,
- org.apache.flex.core.IViewport]};
-
-
-/**
- * @protected
- * @type {Object}
- */
-org.apache.flex.html.supportClasses.Viewport.prototype._strand = null;
-
-
-/**
- * @type {org.apache.flex.html.supportClasses.ContainerContentArea}
- */
-org.apache.flex.html.supportClasses.Viewport.prototype.contentView = null;
-
-
-/**
- * @param {number} x The x position of the viewport.
- * @param {number} y The y position of the viewport.
- */
-org.apache.flex.html.supportClasses.Viewport.prototype.setPosition =
- function(x, y) {
- this.contentView.x = x;
- this.contentView.y = y;
-};
-
-
-/**
- * @param {number} width The width or NaN if sized to content.
- * @param {number} height The height or NaN if sized to content.
- */
-org.apache.flex.html.supportClasses.Viewport.prototype.layoutViewportBeforeContentLayout =
- function(width, height) {
- if (!isNaN(width))
- this.contentView.width = width;
- if (!isNaN(height))
- this.contentView.height = height;
-};
-
-
-/**
- * @return {org.apache.flex.geom.Size}
- */
-org.apache.flex.html.supportClasses.Viewport.prototype.layoutViewportAfterContentLayout =
- function() {
- // nothing to do here? In theory, the layout and browser will have stretched or shrunk
- // the contentView to the right size
- return new org.apache.flex.geom.Size(this.contentView.width, this.contentView.height);
-};
-
-
-Object.defineProperties(org.apache.flex.html.supportClasses.Viewport.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.supportClasses.Viewport} */
- set: function(value) {
- this._strand = value;
- this.contentView = this._strand.getBeadByType(org.apache.flex.core.IContentView);
- if (this.contentView == null) {
- var c = org.apache.flex.core.ValuesManager.valuesImpl.getValue(
- this._strand, 'iContentView');
- if (c)
- this.contentView = new c();
- }
- this.contentView.element.style.overflow = 'visible';
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Mobile/js/src/org/apache/cordova/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/js/src/org/apache/cordova/Application.js b/frameworks/projects/Mobile/js/src/org/apache/cordova/Application.js
deleted file mode 100644
index 0c63452..0000000
--- a/frameworks/projects/Mobile/js/src/org/apache/cordova/Application.js
+++ /dev/null
@@ -1,61 +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.
- */
-
-
-/**
- * org.apache.cordova.Application
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.cordova.Application');
-
-goog.require('org.apache.flex.core.Application');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.Application}
- */
-org.apache.cordova.Application = function() {
- org.apache.cordova.Application.base(this, 'constructor');
-
- document.addEventListener('deviceready',
- goog.bind(this.devicereadyredispatcher, this),
- false);
-};
-goog.inherits(org.apache.cordova.Application,
- org.apache.flex.core.Application);
-
-
-/**
- * @protected
- * @param {Object} event
- */
-org.apache.cordova.Application.prototype.devicereadyredispatcher = function(event) {
- this.dispatchEvent('deviceready');
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.cordova.Application.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'Application', qName: 'org.apache.cordova.Application'}]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Mobile/js/src/org/apache/cordova/Weinre.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/js/src/org/apache/cordova/Weinre.js b/frameworks/projects/Mobile/js/src/org/apache/cordova/Weinre.js
deleted file mode 100644
index c7b9098..0000000
--- a/frameworks/projects/Mobile/js/src/org/apache/cordova/Weinre.js
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
- * org.apache.cordova.Application
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.cordova.Weinre');
-
-
-
-/**
- * @constructor
- */
-org.apache.cordova.Weinre = function() {
-};
-
-
-Object.defineProperties(org.apache.cordova.Weinre.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.cordova.Weinre} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- guid: {
- /** @this {org.apache.cordova.Weinre} */
- set: function(value) {
-
- var scriptNode = document.createElement('SCRIPT');
- scriptNode.type = 'text/javascript';
- scriptNode.src = 'http://debug.phonegap.com/target/target-script-min.js#' + value;
-
- var headNode = document.getElementsByTagName('HEAD');
- if (headNode[0] != null)
- headNode[0].appendChild(scriptNode);
- }
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.cordova.Weinre.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'Weinre', qName: 'org.apache.cordova.Weinre'}]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Mobile/js/src/org/apache/cordova/camera/Camera.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/js/src/org/apache/cordova/camera/Camera.js b/frameworks/projects/Mobile/js/src/org/apache/cordova/camera/Camera.js
deleted file mode 100644
index 28288c6..0000000
--- a/frameworks/projects/Mobile/js/src/org/apache/cordova/camera/Camera.js
+++ /dev/null
@@ -1,136 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- FalconJX will inject html into the index.html file. Surround with
- "inject_html" tag as follows:
-
- <inject_html>
- <script type="text/javascript" src="cordova.js"></script>
- </inject_html>
- */
-
-/**
- * org.apache.cordova.camera.Camera
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.cordova.camera.Camera');
-
-
-
-/**
- * @constructor
- */
-org.apache.cordova.camera.Camera = function() {
- this.pictureSourceType = org.apache.cordova.camera.Camera.PictureSourceType.PHOTOLIBRARY;
- this.destinationType = org.apache.cordova.camera.Camera.DestinationType.DATA_URL;
- this.mediaType = org.apache.cordova.camera.Camera.MediaType.PICTURE;
- this.encodingType = org.apache.cordova.camera.Camera.EncodingType.JPEG;
- this.direction = org.apache.cordova.camera.Camera.Direction.BACK;
-};
-
-
-/**
- * @type {Object}
- */
-org.apache.cordova.camera.Camera.DestinationType = {DATA_URL: 0, FILE_URI: 1, NATIVE_URI: 2};
-
-
-/**
- * @type {Object}
- */
-org.apache.cordova.camera.Camera.PictureSourceType = {PHOTOLIBRARY: 0, CAMERA: 1, SAVEDPHOTOALBUM: 2};
-
-
-/**
- * @type {Object}
- */
-org.apache.cordova.camera.Camera.EncodingType = {JPEG: 0, PNG: 1};
-
-
-/**
- * @type {Object}
- */
-org.apache.cordova.camera.Camera.MediaType = {PICTURE: 0, VIDEO: 1, ALLMEDIA: 2};
-
-
-/**
- * @type {Object}
- */
-org.apache.cordova.camera.Camera.Direction = {BACK: 0, FRONT: 1};
-
-
-/**
- * @type {number}
- */
-//org.apache.cordova.camera.Camera.prototype.pictureSourceType;
-
-
-/**
- * @type {number}
- */
-//org.apache.cordova.camera.Camera.prototype.destinationType;
-
-
-/**
- * @type {number}
- */
-//org.apache.cordova.camera.Camera.prototype.mediaType;
-
-
-/**
- * @type {number}
- */
-//org.apache.cordova.camera.Camera.prototype.encodingType;
-
-
-/**
- * @type {number}
- */
-//org.apache.cordova.camera.Camera.prototype.direction;
-
-
-/**
- * @export
- * @param {Function} cameraSuccess
- * @param {Function} cameraError
- * @param {Object} cameraOptions
- */
-org.apache.cordova.camera.Camera.prototype.getPicture = function(cameraSuccess, cameraError, cameraOptions) {
- navigator.camera.getPicture(cameraSuccess, cameraError, cameraOptions);
-};
-
-
-/**
- * @export
- * @param {Function} cameraSuccess
- * @param {Function} cameraError
- */
-org.apache.cordova.camera.Camera.prototype.cleanup = function(cameraSuccess, cameraError) {
- navigator.camera.cleanup();
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.cordova.camera.Camera.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'Camera', qName: 'org.apache.cordova.camera.Camera'}]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Mobile/js/src/org/apache/flex/mobile/ManagerBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/js/src/org/apache/flex/mobile/ManagerBase.js b/frameworks/projects/Mobile/js/src/org/apache/flex/mobile/ManagerBase.js
deleted file mode 100644
index 1cc77d5..0000000
--- a/frameworks/projects/Mobile/js/src/org/apache/flex/mobile/ManagerBase.js
+++ /dev/null
@@ -1,136 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.mobile.ManagerBase');
-
-goog.require('org.apache.flex.core.IChrome');
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.mobile.ManagerBase = function() {
- org.apache.flex.mobile.ManagerBase.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.mobile.ManagerBase,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.mobile.ManagerBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ManagerBase',
- qName: 'org.apache.flex.mobile.ManagerBase' }] };
-
-
-/**
- * @type {org.apache.flex.core.UIBase}
- */
-org.apache.flex.mobile.ManagerBase.prototype._contentArea = null;
-
-
-Object.defineProperties(org.apache.flex.mobile.ManagerBase.prototype, {
- /** @export */
- contentArea: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this._contentArea;
- },
- /** @this {org.apache.flex.core.UIBase} */
- set: function(value) {
- this._contentArea = value;
- }
- }
-});
-
-
-/**
- * @override
- * @param {Object} c Element being added.
- */
-org.apache.flex.mobile.ManagerBase.prototype.addElement = function(c) {
- if (org.apache.flex.utils.Language.is(c, org.apache.flex.core.IChrome)) {
- org.apache.flex.mobile.ManagerBase.base(this, 'addElement', c);
- }
- else {
- this._contentArea.addElement(c);
- }
-};
-
-
-/**
- * @override
- * @param {Object} c The child element.
- * @param {number} index The index.
- */
-org.apache.flex.mobile.ManagerBase.prototype.addElementAt =
- function(c, index) {
- if (org.apache.flex.utils.Language.is(c, org.apache.flex.core.IChrome)) {
- org.apache.flex.mobile.ManagerBase.base(this, 'addElementAt', c, index);
- }
- else {
- this._contentArea.addElementAt(c, index);
- }
-};
-
-
-/**
- * @override
- * @param {Object} c The child element.
- * @return {number} The index in parent.
- */
-org.apache.flex.mobile.ManagerBase.prototype.getElementIndex =
- function(c) {
- return this._contentArea.getElementIndex(c);
-};
-
-
-/**
- * @override
- * @param {Object} c The child element.
- */
-org.apache.flex.mobile.ManagerBase.prototype.removeElement =
- function(c) {
- this._contentArea.removeElement(c);
-};
-
-
-/**
- * @override
- */
-org.apache.flex.mobile.ManagerBase.prototype.createElement =
- function() {
-
- this.element = document.createElement('div');
- this.element.className = 'ManagerBase';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-
- this._contentArea = new org.apache.flex.core.UIBase();
- this._contentArea.className = 'ContentArea';
- this._contentArea.positioner.style['width'] = '100%';
- this._contentArea.positioner.style['height'] = '100%';
- org.apache.flex.core.UIBase.prototype.addElement.call(this, this._contentArea);
-
- return this.element;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Network/js/src/org/apache/flex/net/BinaryUploader.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/js/src/org/apache/flex/net/BinaryUploader.js b/frameworks/projects/Network/js/src/org/apache/flex/net/BinaryUploader.js
deleted file mode 100644
index cd00950..0000000
--- a/frameworks/projects/Network/js/src/org/apache/flex/net/BinaryUploader.js
+++ /dev/null
@@ -1,360 +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.net.BinaryUploader');
-
-goog.require('org.apache.flex.core.HTMLElementWrapper');
-goog.require('org.apache.flex.net.HTTPHeader');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.HTMLElementWrapper}
- */
-org.apache.flex.net.BinaryUploader = function() {
- org.apache.flex.net.BinaryUploader.base(this, 'constructor');
-
- /**
- * @private
- * @type {string}
- */
- this.url_ = null;
-
- /**
- * @private
- * @type {Number}
- */
- this.status_ = -1;
-
- /**
- * @private
- * @type {string}
- */
- this.method_ = 'POST';
-
- /**
- * @private
- * @type {Array}
- */
- this.headers_ = null;
-
- /**
- * @private
- * @type {Array}
- */
- this.responseHeaders_ = null;
-
- /**
- * @private
- * @type {string}
- */
- this.responseURL_ = null;
-
- /**
- * @private
- * @type {Number}
- */
- this.timeout_ = 0;
-
- /**
- * @private
- * @type {string}
- */
- this.binaryData_ = null;
-
- /**
- * @private
- * @type {string}
- */
- this.contentType_ = 'application/octet-stream';
-
- //try { // (erikdebruin) 'desperate' attempt to bypass XDR security in IE < 10
- // this.contentType_ = 'text/plain';
- // this.element = new XDomainRequest();
- //} catch (e) {}
-
- this.element = new XMLHttpRequest();
-};
-goog.inherits(org.apache.flex.net.BinaryUploader,
- org.apache.flex.core.HTMLElementWrapper);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.net.BinaryUploader.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'BinaryUploader',
- qName: 'org.apache.flex.net.BinaryUploader'}] };
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.BinaryUploader.HTTP_METHOD_GET = 'GET';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.BinaryUploader.HTTP_METHOD_POST = 'POST';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.BinaryUploader.HTTP_METHOD_PUT = 'PUT';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.BinaryUploader.HTTP_METHOD_DELETE = 'DELETE';
-
-
-Object.defineProperties(org.apache.flex.net.BinaryUploader.prototype, {
- /** @export */
- data: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return this.element.responseText;
- }
- },
- /** @export */
- binaryData: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return this.binaryData_;
- },
- /** @this {org.apache.flex.net.BinaryUploader} */
- set: function(value) {
- this.binaryData_ = value;
- }
- },
- /** @export */
- contentType: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return this.contentType_;
- },
- /** @this {org.apache.flex.net.BinaryUploader} */
- set: function(value) {
- this.contentType_ = value;
- }
- },
- /** @export */
- headers: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- if (this.headers_ === 'undefined') {
- this.headers_ = [];
- }
-
- return this.headers_;
- },
- /** @this {org.apache.flex.net.BinaryUploader} */
- set: function(value) {
- this.headers_ = value;
- }
- },
- /** @export */
- method: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return this.method_;
- },
- /** @this {org.apache.flex.net.BinaryUploader} */
- set: function(value) {
- this.method_ = value;
- }
- },
- /** @export */
- responseHeaders: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- var allHeaders, c, hdr, i, n, part1, part2;
-
- if (typeof this.responseHeaders_ === 'undefined') {
- allHeaders = this.element.getAllResponseHeaders();
- this.responseHeaders_ = allHeaders.split('\n');
- n = this.responseHeaders_.length;
- for (i = 0; i < n; i++) {
- hdr = this.responseHeaders_[i];
- c = hdr.indexOf(':');
- part1 = hdr.substring(0, c);
- part2 = hdr.substring(c + 2);
- this.responseHeaders_[i] =
- new org.apache.flex.net.HTTPHeader(part1, part2);
- }
- }
- return this.responseHeaders_;
- }
- },
- /** @export */
- responseURL: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return this.responseURL_;
- }
- },
- /** @export */
- status: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return this.status_;
- }
- },
- /** @export */
- timeout: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return this.timeout_;
- },
- /** @this {org.apache.flex.net.BinaryUploader} */
- set: function(value) {
- this.timeout_ = value;
- }
- },
- /** @export */
- url: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return this.url_;
- },
- /** @this {org.apache.flex.net.BinaryUploader} */
- set: function(value) {
- this.url_ = value;
- }
- },
- /** @export */
- id: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return this.id;
- },
- /** @this {org.apache.flex.net.BinaryUploader} */
- set: function(value) {
- if (this.id !== value) {
- this.id = value;
- this.dispatchEvent('idChanged');
- }
- }
- },
- /** @export */
- MXMLDescriptor: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return null;
- }
- },
- /** @export */
- MXMLProperties: {
- /** @this {org.apache.flex.net.BinaryUploader} */
- get: function() {
- return null;
- }
- }
-});
-
-
-/**
- * @export
- */
-org.apache.flex.net.BinaryUploader.prototype.send = function() {
- var binaryData, header, i, n, sawContentType, url;
-
- this.element.onreadystatechange = goog.bind(this.progressHandler, this);
-
- url = this.url_;
-
- binaryData = null;
- if (this.binaryData_ !== undefined) {
- if (this.method_ === org.apache.flex.net.BinaryUploader.HTTP_METHOD_GET) {
- if (url.indexOf('?') !== -1) {
- url += this.binaryData_.data;
- } else {
- url += '?' + this.binaryData_.data;
- }
- } else {
- binaryData = this.binaryData_.data.toString();
- }
- }
-
- this.element.open(this.method_, this.url_, true);
- this.element.timeout = this.timeout_;
-
- sawContentType = false;
- if (this.headers_) {
- n = this.headers_.length;
- for (i = 0; i < n; i++) {
- header = this.headers_[i];
- if (header.name === org.apache.flex.net.HTTPHeader.CONTENT_TYPE) {
- sawContentType = true;
- }
-
- this.element.setRequestHeader(header.name, header.value);
- }
- }
-
- if (this.method_ !== org.apache.flex.net.BinaryUploader.HTTP_METHOD_GET &&
- !sawContentType && binaryData) {
- this.element.setRequestHeader(
- org.apache.flex.net.HTTPHeader.CONTENT_TYPE, this.binaryType_);
- }
-
- if (binaryData) {
- this.element.setRequestHeader('Content-length', binaryData.length);
- this.element.setRequestHeader('Connection', 'close');
- this.element.send(binaryData);
- } else {
- this.element.send();
- }
-};
-
-
-/**
- * @protected
- */
-org.apache.flex.net.BinaryUploader.prototype.progressHandler = function() {
- if (this.element.readyState === 2) {
- this.status_ = this.element.status;
- this.dispatchEvent('httpResponseStatus');
- this.dispatchEvent('httpStatus');
- } else if (this.element.readyState === 4) {
- this.dispatchEvent('complete');
- }
-};
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.BinaryUploader.prototype.id = null;
-
-
-/**
- * @param {Object} document The MXML object.
- * @param {string} id The id for the instance.
- */
-org.apache.flex.net.BinaryUploader.prototype.setDocument =
- function(document, id) {
- this.document = document;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPHeader.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPHeader.js b/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPHeader.js
deleted file mode 100644
index bcbe285..0000000
--- a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPHeader.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.net.HTTPHeader');
-
-
-
-/**
- * @constructor
- * @param {string=} opt_name The name.
- * @param {string=} opt_value The value.
- */
-org.apache.flex.net.HTTPHeader = function(opt_name, opt_value) {
- if (typeof opt_name !== 'undefined') {
- this.name = opt_name;
- }
-
- if (typeof opt_value !== 'undefined') {
- this.value = opt_value;
- }
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.net.HTTPHeader.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'HTTPHeader',
- qName: 'org.apache.flex.net.HTTPHeader'}] };
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.HTTPHeader.CONTENT_TYPE = 'Content-type';
-
-
-/**
- * @export
- * @type {?string}
- */
-org.apache.flex.net.HTTPHeader.prototype.value = null;
-
-
-/**
- * @export
- * @type {?string}
- */
-org.apache.flex.net.HTTPHeader.prototype.name = null;