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/17 08:54:11 UTC
[01/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Repository: flex-asjs
Updated Branches:
refs/heads/develop d6c6ef191 -> ca81ab69d
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPService.js b/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPService.js
deleted file mode 100644
index cfdd874..0000000
--- a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPService.js
+++ /dev/null
@@ -1,420 +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.HTTPService');
-
-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.HTTPService = function() {
- org.apache.flex.net.HTTPService.base(this, 'constructor');
-
- /**
- * @private
- * @type {?string}
- */
- this.url_ = null;
-
- /**
- * @private
- * @type {number}
- */
- this.status_ = -1;
-
- /**
- * @private
- * @type {string}
- */
- this.method_ = 'GET';
-
- /**
- * @private
- * @type {Array}
- */
- this.headers_ = null;
-
- /**
- * @private
- * @type {Array}
- */
- this.responseHeaders_ = null;
-
- /**
- * @private
- * @type {?string}
- */
- this.responseURL_ = null;
-
- /**
- * @private
- * @type {Array.<Object>}
- */
- this.mxmlBeads_ = null;
-
- /**
- * @private
- * @type {number}
- */
- this.timeout_ = 0;
-
- /**
- * @private
- * @type {?string}
- */
- this.contentData_ = null;
-
- /**
- * @private
- * @type {string}
- */
- this.contentType_ = 'application/x-www-form-urlencoded';
-
- /**
- * @private
- * @type {?string}
- */
- this.id_ = null;
-
- //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.HTTPService,
- org.apache.flex.core.HTMLElementWrapper);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.net.HTTPService.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'HTTPService',
- qName: 'org.apache.flex.net.HTTPService'}] };
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.HTTPService.HTTP_METHOD_GET = 'GET';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.HTTPService.HTTP_METHOD_POST = 'POST';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.HTTPService.HTTP_METHOD_PUT = 'PUT';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.HTTPService.HTTP_METHOD_DELETE = 'DELETE';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.HTTPService.EVENT_COMPLETE = 'complete';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.HTTPService.EVENT_IO_ERROR = 'ioError';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.HTTPService.EVENT_HTTP_STATUS = 'httpStatus';
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.net.HTTPService.EVENT_HTTP_RESPONSE_STATUS = 'httpResponseStatus';
-
-
-Object.defineProperties(org.apache.flex.net.HTTPService.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.net.HTTPService} */
- set: function(value) {}
- },
- /** @export */
- beads: {
- /** @this {org.apache.flex.net.HTTPService} */
- set: function(value) {
- this.mxmlBeads_ = value;
- }
- },
- /** @export */
- data: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return this.element.responseText;
- }
- },
- /** @export */
- json: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- if (!this._json)
- this._json = JSON.parse(this.data);
- return this._json;
- }
- },
- /** @export */
- contentData: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return this.contentData_;
- },
- /** @this {org.apache.flex.net.HTTPService} */
- set: function(value) {
- this.contentData_ = value;
- }
- },
- /** @export */
- contentType: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return this.contentType_;
- },
- /** @this {org.apache.flex.net.HTTPService} */
- set: function(value) {
- this.contentType_ = value;
- }
- },
- /** @export */
- headers: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- if (this.headers_ === undefined) {
- this.headers_ = [];
- }
-
- return this.headers_;
- },
- /** @this {org.apache.flex.net.HTTPService} */
- set: function(value) {
- this.headers_ = value;
- }
- },
- /** @export */
- method: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return this.method_;
- },
- /** @this {org.apache.flex.net.HTTPService} */
- set: function(value) {
- this.method_ = value;
- }
- },
- /** @export */
- responseHeaders: {
- /** @this {org.apache.flex.net.HTTPService} */
- 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.HTTPService} */
- get: function() {
- return this.responseURL_;
- }
- },
- /** @export */
- status: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return this.status_;
- }
- },
- /** @export */
- timeout: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return this.timeout_;
- },
- /** @this {org.apache.flex.net.HTTPService} */
- set: function(value) {
- this.timeout_ = value;
- }
- },
- /** @export */
- url: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return this.url_;
- },
- /** @this {org.apache.flex.net.HTTPService} */
- set: function(value) {
- this.url_ = value;
- }
- },
- /** @export */
- id: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return this.id_;
- },
- /** @this {org.apache.flex.net.HTTPService} */
- set: function(value) {
- if (this.id_ !== value) {
- this.id_ = value;
- this.dispatchEvent('idChanged');
- }
- }
- },
- /** @export */
- MXMLDescriptor: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return null;
- }
- },
- /** @export */
- MXMLProperties: {
- /** @this {org.apache.flex.net.HTTPService} */
- get: function() {
- return null;
- }
- }
-});
-
-
-/**
- * @export
- */
-org.apache.flex.net.HTTPService.prototype.send = function() {
- var contentData, header, i, n, sawContentType, url;
-
- if (this._beads == null && this.mxmlBeads_) {
- var m = this.mxmlBeads_.length;
- for (var j = 0; j < m; j++) {
- this.addBead(this.mxmlBeads_[j]);
- }
- }
-
- this.element.onreadystatechange = goog.bind(this.progressHandler, this);
-
- url = this.url_;
-
- contentData = null;
- if (this.contentData_ !== undefined) {
- if (this.method_ === org.apache.flex.net.HTTPService.HTTP_METHOD_GET) {
- if (url.indexOf('?') !== -1) {
- url += this.contentData_;
- } else {
- url += '?' + this.contentData_;
- }
- } else {
- contentData = this.contentData_;
- }
- }
-
- 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.HTTPService.HTTP_METHOD_GET &&
- !sawContentType && contentData) {
- this.element.setRequestHeader(
- org.apache.flex.net.HTTPHeader.CONTENT_TYPE, this.contentType_);
- }
-
- if (contentData) {
- this.element.setRequestHeader('Content-length', contentData.length);
- this.element.setRequestHeader('Connection', 'close');
- this.element.send(contentData);
- } else {
- this.element.send();
- }
-};
-
-
-/**
- * @protected
- */
-org.apache.flex.net.HTTPService.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');
- }
-};
-
-
-/**
- * @param {Object} document The MXML object.
- * @param {string} id The id for the instance.
- */
-org.apache.flex.net.HTTPService.prototype.setDocument = function(document, id) {
- this.document = document;
-};
[46/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - add in
jquery externs swc
Posted by ah...@apache.org.
add in jquery externs swc
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9e7d5b78
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9e7d5b78
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9e7d5b78
Branch: refs/heads/develop
Commit: 9e7d5b78c9e2bf9c13171cc233a64daf1a4585d0
Parents: 87fbdb9
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 13:33:36 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 13:34:49 2015 -0800
----------------------------------------------------------------------
examples/flexjs/FlexJSStore_jquery/build.xml | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9e7d5b78/examples/flexjs/FlexJSStore_jquery/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/build.xml b/examples/flexjs/FlexJSStore_jquery/build.xml
index 7dc4d66..4412a04 100644
--- a/examples/flexjs/FlexJSStore_jquery/build.xml
+++ b/examples/flexjs/FlexJSStore_jquery/build.xml
@@ -57,6 +57,8 @@
property="GOOG_HOME"
value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/jquery/out/bin/jquery-1.9.swc"/>
+
<include file="${basedir}/../../build_example.xml" />
<target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
[02/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Posted by ah...@apache.org.
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;
[21/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - use
right version
Posted by ah...@apache.org.
use right version
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d6ee57df
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d6ee57df
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d6ee57df
Branch: refs/heads/develop
Commit: d6ee57df6b9fa19c781a761506bd7d0d4679b46f
Parents: e2a806e
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 9 13:36:24 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 9 13:38:02 2015 -0800
----------------------------------------------------------------------
frameworks/projects/CreateJS/compile-config.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d6ee57df/frameworks/projects/CreateJS/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/compile-config.xml b/frameworks/projects/CreateJS/compile-config.xml
index 96f74fd..3aecfb2 100644
--- a/frameworks/projects/CreateJS/compile-config.xml
+++ b/frameworks/projects/CreateJS/compile-config.xml
@@ -65,8 +65,8 @@
<path>as/defaults.css</path>
</include-file>
<include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
+ <name>js/out/*</name>
+ <path>js/out/*</path>
</include-file>
<include-classes>
[18/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - Forgot
to check this in.
Posted by ah...@apache.org.
Forgot to check this in.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7b7a6767
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7b7a6767
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7b7a6767
Branch: refs/heads/develop
Commit: 7b7a67677d5cfb1f80b8a2f10639504c23b60485
Parents: 9634f9a
Author: Peter Ent <pe...@apache.org>
Authored: Wed Dec 9 13:37:27 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Dec 9 13:37:27 2015 -0500
----------------------------------------------------------------------
.../projects/HTML5/compile-asjs-config.xml | 71 ++++++++++++++++++++
1 file changed, 71 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7b7a6767/frameworks/projects/HTML5/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/compile-asjs-config.xml b/frameworks/projects/HTML5/compile-asjs-config.xml
new file mode 100644
index 0000000..e67c744
--- /dev/null
+++ b/frameworks/projects/HTML5/compile-asjs-config.xml
@@ -0,0 +1,71 @@
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<flex-config>
+
+ <compiler>
+ <accessible>false</accessible>
+
+ <external-library-path>
+ <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
+ </external-library-path>
+
+ <mxml>
+ <children-as-data>true</children-as-data>
+ </mxml>
+ <binding-value-change-event>org.apache.flex.events.ValueChangeEvent</binding-value-change-event>
+ <binding-value-change-event-kind>org.apache.flex.events.ValueChangeEvent</binding-value-change-event-kind>
+ <binding-value-change-event-type>valueChange</binding-value-change-event-type>
+
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+
+ <locale/>
+
+ <library-path>
+ <!-- asjscompc won't 'link' these classes in, but will list their requires
+ if these swcs are on the external-library-path then their requires
+ will not be listed -->
+ <path-element>../../libs/Core.swc</path-element>
+ <path-element>../../libs/HTML.swc</path-element>
+ </library-path>
+
+ <source-path>
+ <path-element>as/src</path-element>
+ </source-path>
+
+ <warn-no-constructor>false</warn-no-constructor>
+ </compiler>
+
+ <include-sources>
+ <path-element>as/src</path-element>
+ </include-sources>
+
+ <include-namespaces>
+ <uri>library://ns.apache.org/flexjs/html5</uri>
+ </include-namespaces>
+
+ <target-player>${playerglobal.version}</target-player>
+
+
+</flex-config>
[05/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicShape.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicShape.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicShape.js
deleted file mode 100644
index 1ba8710..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicShape.js
+++ /dev/null
@@ -1,205 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.graphics.GraphicShape');
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.core.graphics.SolidColor');
-goog.require('org.apache.flex.core.graphics.SolidColorStroke');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.core.graphics.GraphicShape = function() {
-
- org.apache.flex.core.graphics.GraphicShape.base(this, 'constructor');
-
- /**
- * @private
- * @type {org.apache.flex.core.graphics.IFill}
- */
- this.fill_ = null;
-
- /**
- * @private
- * @type {org.apache.flex.core.graphics.IStroke}
- */
- this.stroke_ = null;
-
- /**
- * @private
- * @type {number}
- */
- this.x_ = 0;
-
- /**
- * @private
- * @type {number}
- */
- this.y_ = 0;
-
- /**
- * @private
- * @type {number}
- */
- this.xOffset_ = 0;
-
- /**
- * @private
- * @type {number}
- */
- this.yOffset_ = 0;
-
- /**
- * @export
- * @type {Object}
- */
- this.element = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
- this.element.flexjs_wrapper = this;
- this.element.offsetLeft = 0;
- this.element.offsetTop = 0;
- this.element.offsetParent = null;
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-};
-goog.inherits(org.apache.flex.core.graphics.GraphicShape,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.GraphicShape.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'GraphicShape',
- qName: 'org.apache.flex.core.graphics.GraphicShape' }] };
-
-
-Object.defineProperties(org.apache.flex.core.graphics.GraphicShape.prototype, {
- /** @export */
- fill: {
- /** @this {org.apache.flex.core.graphics.GraphicShape} */
- get: function() {
- return this.fill_;
- },
- /** @this {org.apache.flex.core.graphics.GraphicShape} */
- set: function(value) {
- this.fill_ = value;
- }
- },
- stroke: {
- /** @this {org.apache.flex.core.graphics.GraphicShape} */
- get: function() {
- return this.stroke_;
- },
- /** @this {org.apache.flex.core.graphics.GraphicShape} */
- set: function(value) {
- this.stroke_ = value;
- }
- }
-});
-
-
-/**
- *
- */
-org.apache.flex.core.graphics.GraphicShape.prototype.addedToParent = function() {
- this.draw();
- this.element.style.overflow = 'visible';
- /*
- * not sure this is valuable any longer
- var bbox = this.element.getBBox();
- if (bbox.width === 0 && !isNaN(this.width)) bbox.width = this.width;
- if (bbox.height === 0 && !isNaN(this.height)) bbox.height = this.height;
- this.resize(this.x, this.y, bbox);*/
-};
-
-
-/**
- * This is where the drawing methods get called from.
- */
-org.apache.flex.core.graphics.GraphicShape.prototype.draw = function() {
- //Overwrite in subclass
-};
-
-
-/**
- * @export
- * @return {string} The style attribute.
- */
-org.apache.flex.core.graphics.GraphicShape.prototype.getStyleStr = function() {
- var fillStr;
- if (this.fill)
- {
- fillStr = this.fill.addFillAttrib(this);
- }
- else
- {
- fillStr = 'fill:none';
- }
-
- var strokeStr;
- if (this.stroke)
- {
- strokeStr = this.stroke.addStrokeAttrib(this);
- }
- else
- {
- strokeStr = 'stroke:none';
- }
-
-
- return fillStr + ';' + strokeStr;
-};
-
-
-/**
- * @export
- * @param {number} x X position.
- * @param {number} y Y position.
- * @param {Object} bbox The bounding box of the svg element.
- */
-org.apache.flex.core.graphics.GraphicShape.prototype.resize = function(x, y, bbox) {
- var width = Math.max(this.width, bbox.width);
- var height = Math.max(this.height, bbox.height);
-
- this.element.style.position = 'absolute';
- if (!isNaN(x)) this.element.style.top = String(x) + 'px';
- if (!isNaN(y)) this.element.style.left = String(y) + 'px';
- this.element.style.width = String(width) + 'px';
- this.element.style.height = String(height) + 'px';
- this.element.offsetLeft = x;
- this.element.offsetTop = y;
-};
-
-
-/**
- * @export
- * @param {number} x X position.
- * @param {number} y Y position.
- * @param {number} xOffset offset from x position.
- * @param {number} yOffset offset from y position.
- */
-org.apache.flex.core.graphics.GraphicShape.prototype.setPosition = function(x, y, xOffset, yOffset) {
- this.x_ = x;
- this.y_ = y;
- this.xOffset_ = xOffset;
- this.yOffset_ = yOffset;
- this.element.offsetLeft = xOffset;
- this.element.offsetTop = yOffset;
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicsContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicsContainer.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicsContainer.js
deleted file mode 100644
index 2894cab..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicsContainer.js
+++ /dev/null
@@ -1,250 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.graphics.GraphicsContainer');
-
-goog.require('org.apache.flex.core.graphics.GraphicShape');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.graphics.GraphicShape}
- */
-org.apache.flex.core.graphics.GraphicsContainer = function() {
- org.apache.flex.core.graphics.GraphicsContainer.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.core.graphics.GraphicsContainer, org.apache.flex.core.graphics.GraphicShape);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.GraphicsContainer.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'GraphicsContainer',
- qName: 'org.apache.flex.core.graphics.GraphicsContainer'}] };
-
-
-/**
- * @export
- */
-org.apache.flex.core.graphics.GraphicsContainer.prototype.removeAllElements = function() {
- var svg = this.element;
- while (svg.lastChild) {
- svg.removeChild(svg.lastChild);
- }
-};
-
-
-Object.defineProperties(org.apache.flex.core.graphics.GraphicsContainer.prototype, {
- /** @export */
- numChildren: {
- /** @this {org.apache.flex.core.graphics.GraphicsContainer} */
- get: function() {
- return this.internalChildren().length;
- }
- },
- /** @export */
- width: {
- /** @this {org.apache.flex.core.graphics.GraphicsContainer} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(
- org.apache.flex.core.graphics.GraphicsContainer, this, 'width', value);
- this.element.setAttribute('width', String(value) + 'px');
- this.element.style.width = String(value) + 'px';
- },
- get: function() {
- return org.apache.flex.utils.Language.superGetter(
- org.apache.flex.core.graphics.GraphicsContainer, this, 'width');
- }
- },
- /** @export */
- height: {
- /** @this {org.apache.flex.core.graphics.GraphicsContainer} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(
- org.apache.flex.core.graphics.GraphicsContainer, this, 'height', value);
- this.element.setAttribute('height', String(value) + 'px');
- this.element.style.height = String(value) + 'px';
- },
- get: function() {
- return org.apache.flex.utils.Language.superGetter(
- org.apache.flex.core.graphics.GraphicsContainer, this, 'height');
- }
- },
- /** @export */
- x: {
- /** @this {org.apache.flex.core.graphics.GraphicsContainer} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(
- org.apache.flex.core.graphics.GraphicsContainer, this, 'x', value);
- this.element.setAttribute('x', String(value) + 'px');
- this.element.style.position = 'absolute';
- this.element.style.left = String(value) + 'px';
- this.element.offsetLeft = value;
- },
- get: function() {
- return org.apache.flex.utils.Language.superGetter(
- org.apache.flex.core.graphics.GraphicsContainer, this, 'x');
- }
- },
- /** @export */
- y: {
- /** @this {org.apache.flex.core.graphics.GraphicsContainer} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(
- org.apache.flex.core.graphics.GraphicsContainer, this, 'y', value);
- this.element.setAttribute('y', String(value) + 'px');
- this.element.style.position = 'absolute';
- this.element.style.top = String(value) + 'px';
- this.element.offsetTop = value;
- },
- get: function() {
- return org.apache.flex.utils.Language.superGetter(
- org.apache.flex.core.graphics.GraphicsContainer, this, 'y');
- }
- }
-});
-
-
-/**
- * @export
- * @param {number} x The x position of the top-left corner of the rectangle.
- * @param {number} y The y position of the top-left corner.
- * @param {number} width The width of the rectangle.
- * @param {number} height The height of the rectangle.
- */
-org.apache.flex.core.graphics.GraphicsContainer.prototype.drawRect = function(x, y, width, height) {
- var style = this.getStyleStr();
- var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
- rect.flexjs_wrapper = this;
- rect.offsetLeft = x;
- rect.offsetTop = y;
- rect.offsetParent = this;
- rect.setAttribute('style', style);
- rect.setAttribute('x', String(x) + 'px');
- rect.setAttribute('y', String(y) + 'px');
- rect.setAttribute('width', String(width) + 'px');
- rect.setAttribute('height', String(height) + 'px');
- this.element.appendChild(rect);
-};
-
-
-/**
- * @export
- * @param {number} x The x position of the top-left corner of the bounding box of the ellipse.
- * @param {number} y The y position of the top-left corner of the bounding box of the ellipse.
- * @param {number} width The width of the ellipse.
- * @param {number} height The height of the ellipse.
- */
-org.apache.flex.core.graphics.GraphicsContainer.prototype.drawEllipse = function(x, y, width, height) {
- var style = this.getStyleStr();
- var ellipse = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse');
- ellipse.flexjs_wrapper = this;
- ellipse.offsetLeft = x;
- ellipse.offsetTop = y;
- ellipse.offsetParent = this;
- ellipse.setAttribute('style', style);
- ellipse.setAttribute('cx', String(x + width / 2));
- ellipse.setAttribute('cy', String(y + height / 2));
- ellipse.setAttribute('rx', String(width / 2));
- ellipse.setAttribute('ry', String(height / 2));
- this.element.appendChild(ellipse);
-};
-
-
-/**
- * @export
- * @param {number} x The x location of the center of the circle.
- * @param {number} y The y location of the center of the circle.
- * @param {number} radius The radius of the circle.
- */
-org.apache.flex.core.graphics.GraphicsContainer.prototype.drawCircle = function(x, y, radius) {
- var style = this.getStyleStr();
- var circle = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse');
- circle.flexjs_wrapper = this;
- circle.offsetLeft = x;
- circle.offsetTop = y;
- circle.offsetParent = this;
- circle.setAttribute('style', style);
- circle.setAttribute('cx', String(x));
- circle.setAttribute('cy', String(y));
- circle.setAttribute('rx', String(radius));
- circle.setAttribute('ry', String(radius));
- this.element.appendChild(circle);
-};
-
-
-/**
- * @export
- * @param {string} data A string containing a compact represention of the path segments.
- * The value is a space-delimited string describing each path segment. Each
- * segment entry has a single character which denotes the segment type and
- * two or more segment parameters.
- *
- * If the segment command is upper-case, the parameters are absolute values.
- * If the segment command is lower-case, the parameters are relative values.
- */
-org.apache.flex.core.graphics.GraphicsContainer.prototype.drawPath = function(data) {
- var style = this.getStyleStr();
- var path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
- path.flexjs_wrapper = this;
- path.offsetLeft = 0;
- path.offsetTop = 0;
- path.offsetParent = this;
- path.setAttribute('style', style);
- path.setAttribute('d', data);
- this.element.appendChild(path);
-};
-
-
-/**
- * @export
- * @param {string} value The text string to draw.
- * @param {number} x The x position of the text.
- * @param {number} y The y position of the text.
- * @return {Object} The text node created to display the graphics.
- */
-org.apache.flex.core.graphics.GraphicsContainer.prototype.drawText = function(value, x, y) {
- var style = this.getStyleStr();
- var text = document.createElementNS('http://www.w3.org/2000/svg', 'text');
- text.flexjs_wrapper = this;
- text.offsetLeft = x;
- text.offsetTop = y;
- text.offsetParent = this;
- text.setAttribute('style', style);
- text.setAttribute('x', String(x) + 'px');
- text.setAttribute('y', String(y + 15) + 'px');
- var textNode = document.createTextNode(value);
- text.appendChild(textNode);
- this.element.appendChild(text);
- return text;
-};
-
-
-/**
- * @export
- */
-org.apache.flex.core.graphics.GraphicsContainer.prototype.drawLine = function() {
-};
-
-
-/**
- * @export
- */
-org.apache.flex.core.graphics.GraphicsContainer.prototype.drawPolygon = function() {
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/IFill.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/IFill.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/IFill.js
deleted file mode 100644
index 9208fe7..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/IFill.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.graphics.IFill');
-
-
-
-/**
- * IFill
- *
- * @interface
- */
-org.apache.flex.core.graphics.IFill = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.IFill.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IFill',
- qName: 'org.apache.flex.core.graphics.IFill' }] };
-
-
-/**
- * addFillAttrib()
- *
- * @export
- * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the fill must be added.
- * @return {string} The fill style attribute.
- */
-org.apache.flex.core.graphics.IFill.prototype.addFillAttrib =
- function(value) {};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/IStroke.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/IStroke.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/IStroke.js
deleted file mode 100644
index c9ab6f9..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/IStroke.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.graphics.IStroke');
-
-
-
-/**
- * IStroke
- *
- * @interface
- */
-org.apache.flex.core.graphics.IStroke = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.IStroke.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IStroke',
- qName: 'org.apache.flex.core.graphics.IStroke' }] };
-
-
-/**
- * addStrokeAttrib()
- *
- * @export
- * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the stroke must be added.
- * @return {string} The stroke style attribute.
- */
-org.apache.flex.core.graphics.IStroke.prototype.addStrokeAttrib =
- function(value) {};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Line.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Line.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Line.js
deleted file mode 100644
index 167c060..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Line.js
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.graphics.Line');
-
-goog.require('org.apache.flex.core.graphics.GraphicShape');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.graphics.GraphicShape}
- */
-org.apache.flex.core.graphics.Line = function() {
- org.apache.flex.core.graphics.Line.base(this, 'constructor');
-
-};
-goog.inherits(org.apache.flex.core.graphics.Line,
- org.apache.flex.core.graphics.GraphicShape);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.Line.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Line',
- qName: 'org.apache.flex.core.graphics.Line' }] };
-
-
-/**
- * @export
- * @param {number} x1 The x1 attribute defines the start of the line on the x-axis.
- * @param {number} y1 The y1 attribute defines the start of the line on the y-axis.
- * @param {number} x2 The x2 attribute defines the end of the line on the x-axis.
- * @param {number} y2 The y2 attribute defines the end of the line on the y-axis.
- */
-org.apache.flex.core.graphics.Line.prototype.drawLine = function(x1, y1, x2, y2) {
- var style = this.getStyleStr();
- var line = document.createElementNS('http://www.w3.org/2000/svg', 'line');
- line.flexjs_wrapper = this;
- line.setAttribute('style', style);
- line.setAttribute('x1', 0);
- line.setAttribute('y1', y1);
- line.setAttribute('x2', x2 - x1);
- line.setAttribute('y2', y2);
- this.setPosition(x1, y2, this.stroke.weight, this.stroke.weight);
- this.element.appendChild(line);
-
- this.resize(x, y, line.getBBox());
- };
-
-
-/**
- * @override
- * @export
- * @param {number} x X position.
- * @param {number} y Y position.
- * @param {Object} bbox The bounding box of the svg element.
- */
-org.apache.flex.core.graphics.Line.prototype.resize = function(x, y, bbox) {
- this.element.setAttribute('width', String(bbox.width) + 'px');
- this.element.setAttribute('height', String(bbox.height) + 'px');
-
- this.element.setAttribute('style', 'position:absolute; left:' + String(x + bbox.x - this.xOffset_) +
- 'px; top:' + String(bbox.y - this.yOffset_) + 'px;');
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/LinearGradient.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/LinearGradient.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/LinearGradient.js
deleted file mode 100644
index e8f42e3..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/LinearGradient.js
+++ /dev/null
@@ -1,125 +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.flex.core.graphics.LinearGradient
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.graphics.LinearGradient');
-goog.require('org.apache.flex.core.graphics.GradientBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.graphics.GradientBase}
- * @implements {org.apache.flex.core.graphics.IFill}
- */
-org.apache.flex.core.graphics.LinearGradient = function() {
- org.apache.flex.core.graphics.LinearGradient.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.core.graphics.LinearGradient, org.apache.flex.core.graphics.GradientBase);
-
-
-/**
- * @type {number}
- */
-org.apache.flex.core.graphics.LinearGradient.prototype._scaleX = 1.0;
-
-
-Object.defineProperties(org.apache.flex.core.graphics.LinearGradient.prototype, {
- /** @export */
- scaleX: {
- /** @this {org.apache.flex.core.graphics.LinearGradient} */
- get: function() {
- return this._scaleX;
- },
- /** @this {org.apache.flex.core.graphics.LinearGradient} */
- set: function(value) {
- this._scaleX = value;
- }
- }
-});
-
-
-/**
- * addFillAttrib()
- *
- * @export
- * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the fill must be added.
- * @return {string}
- */
-org.apache.flex.core.graphics.LinearGradient.prototype.addFillAttrib = function(value) {
- //Create and add a linear gradient def
- var svgNS = value.element.namespaceURI;
- var grad = document.createElementNS(svgNS, 'linearGradient');
- var gradientId = this.newId;
- grad.setAttribute('id', gradientId);
-
- //Set x1, y1, x2, y2 of gradient
- grad.setAttribute('x1', '0%');
- grad.setAttribute('y1', '0%');
- grad.setAttribute('x2', '100%');
- grad.setAttribute('y2', '0%');
-
- //Apply rotation to the gradient if rotation is a number
- if (this.rotation)
- {
- grad.setAttribute('gradientTransform', 'rotate(' + this.rotation + ' 0.5 0.5)');
- }
-
- //Process gradient entries and create a stop for each entry
- var entries = this.entries;
- for (var i = 0; i < entries.length; i++)
- {
- var gradientEntry = entries[i];
- var stop = document.createElementNS(svgNS, 'stop');
- //Set Offset
- stop.setAttribute('offset', String(gradientEntry.ratio * 100) + '%');
- //Set Color
- var color = Number(gradientEntry.color).toString(16);
- if (color.length == 1) color = '00' + color;
- if (color.length == 2) color = '00' + color;
- if (color.length == 4) color = '00' + color;
- stop.setAttribute('stop-color', '#' + String(color));
- //Set Alpha
- stop.setAttribute('stop-opacity', String(gradientEntry.alpha));
-
- grad.appendChild(stop);
- }
-
- //Add defs element if not available already
- //Add newly created gradient to defs element
- var defs = value.element.querySelector('defs') ||
- value.element.insertBefore(document.createElementNS(svgNS, 'defs'), value.element.firstChild);
- defs.appendChild(grad);
-
- //Return the fill attribute
- return 'fill:url(#' + gradientId + ')';
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.LinearGradient.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'LinearGradient', qName: 'org.apache.flex.core.graphics.LinearGradient'}],
- interfaces: [org.apache.flex.core.graphics.IFill]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Path.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Path.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Path.js
deleted file mode 100644
index 1567ae9..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Path.js
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.graphics.Path');
-
-goog.require('org.apache.flex.core.graphics.GraphicShape');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.graphics.GraphicShape}
- */
-org.apache.flex.core.graphics.Path = function() {
- org.apache.flex.core.graphics.Path.base(this, 'constructor');
-
- /**
- * @private
- * @type {string}
- */
- this.data_ = '';
-};
-goog.inherits(org.apache.flex.core.graphics.Path,
- org.apache.flex.core.graphics.GraphicShape);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.Path.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Path',
- qName: 'org.apache.flex.core.graphics.Path' }] };
-
-
-Object.defineProperties(org.apache.flex.core.graphics.Path.prototype, {
- /** @export */
- data: {
- /** @this {org.apache.flex.core.graphics.Path} */
- set: function(v) {
- this.data_ = v;
- },
- /** @this {org.apache.flex.core.graphics.Path} */
- get: function() {
- return this.data_;
- }
- }
-});
-
-
-/**
- * @export
- * @param {number} x The x location of the Path.
- * @param {number} y The y location of the Path.
- * @param {string} data A string containing a compact represention of the path segments.
- * The value is a space-delimited string describing each path segment. Each
- * segment entry has a single character which denotes the segment type and
- * two or more segment parameters.
- *
- * If the segment command is upper-case, the parameters are absolute values.
- * If the segment command is lower-case, the parameters are relative values.
- */
-org.apache.flex.core.graphics.Path.prototype.drawPath = function(x, y, data) {
- if (data == null || data.length === 0) return;
- var style = this.getStyleStr();
- var path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
- path.flexjs_wrapper = this;
- path.setAttribute('style', style);
- path.setAttribute('d', data);
- this.element.appendChild(path);
- if (this.stroke)
- {
- this.setPosition(x, y, this.stroke.weight, this.stroke.weight);
- }
- else
- {
- this.setPosition(x, y, 0, 0);
- }
-
- this.resize(x, y, path['getBBox']());
- };
-
-
- /**
- * @override
- */
-org.apache.flex.core.graphics.Path.prototype.draw = function() {
- this.drawPath(this.x, this.y, this.data);
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Rect.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Rect.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Rect.js
deleted file mode 100644
index f468c44..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Rect.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.core.graphics.Rect');
-
-goog.require('org.apache.flex.core.graphics.GraphicShape');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.graphics.GraphicShape}
- */
-org.apache.flex.core.graphics.Rect = function() {
- org.apache.flex.core.graphics.Rect.base(this, 'constructor');
-
-};
-goog.inherits(org.apache.flex.core.graphics.Rect,
- org.apache.flex.core.graphics.GraphicShape);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.Rect.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Rect',
- qName: 'org.apache.flex.core.graphics.Rect' }] };
-
-
-/**
- * @export
- * @param {number} x The x position of the top-left corner of the rectangle.
- * @param {number} y The y position of the top-left corner.
- * @param {number} width The width of the rectangle.
- * @param {number} height The height of the rectangle.
- */
-org.apache.flex.core.graphics.Rect.prototype.drawRect = function(x, y, width, height) {
- var style = this.getStyleStr();
- var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
- rect.flexjs_wrapper = this;
- rect.setAttribute('style', style);
- if (this.stroke)
- {
- rect.setAttribute('x', String(this.stroke.weight / 2) + 'px');
- rect.setAttribute('y', String(this.stroke.weight / 2) + 'px');
- this.setPosition(x, y, this.stroke.weight, this.stroke.weight);
- }
- else
- {
- rect.setAttribute('x', '0' + 'px');
- rect.setAttribute('y', '0' + 'px');
- this.setPosition(x, y, 0, 0);
- }
- rect.setAttribute('width', String(width) + 'px');
- rect.setAttribute('height', String(height) + 'px');
- this.element.appendChild(rect);
-
- this.resize(x, y, rect['getBBox']());
- };
-
-
-/**
- * @override
-*/
-org.apache.flex.core.graphics.Rect.prototype.draw = function() {
- this.drawRect(this.x, this.y, this.width, this.height);
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/SolidColor.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/SolidColor.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/SolidColor.js
deleted file mode 100644
index 809d37b..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/SolidColor.js
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.graphics.SolidColor');
-goog.require('org.apache.flex.core.graphics.IFill');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.graphics.IFill}
- */
-org.apache.flex.core.graphics.SolidColor = function() {
-
- /**
- * @private
- * @type {number}
- */
- this.alpha_ = 1.0;
-
- /**
- * @private
- * @type {number}
- */
- this.color_ = 1.0;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.SolidColor.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SolidColor',
- qName: 'org.apache.flex.core.graphics.SolidColor' }],
- interfaces: [org.apache.flex.core.graphics.IFill] };
-
-
-Object.defineProperties(org.apache.flex.core.graphics.SolidColor.prototype, {
- /** @export */
- color: {
- /** @this {org.apache.flex.core.graphics.SolidColor} */
- get: function() {
- return this.color_;
- },
- /** @this {org.apache.flex.core.graphics.SolidColor} */
- set: function(value) {
- this.color_ = value;
- }
- },
- /** @export */
- alpha: {
- /** @this {org.apache.flex.core.graphics.SolidColor} */
- get: function() {
- return this.alpha_;
- },
- /** @this {org.apache.flex.core.graphics.SolidColor} */
- set: function(value) {
- this.alpha_ = value;
- }
- }
-});
-
-
-/**
- * addFillAttrib()
- *
- * @export
- * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the fill must be added.
- * @return {string}
- */
-org.apache.flex.core.graphics.SolidColor.prototype.addFillAttrib = function(value) {
- var color = Number(this.color).toString(16);
- if (color.length == 1) color = '00' + color;
- if (color.length == 2) color = '00' + color;
- if (color.length == 4) color = '00' + color;
- return 'fill:#' + String(color) + ';fill-opacity:' + String(this.alpha);
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/SolidColorStroke.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/SolidColorStroke.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/SolidColorStroke.js
deleted file mode 100644
index 10423f5..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/SolidColorStroke.js
+++ /dev/null
@@ -1,109 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.graphics.SolidColorStroke');
-goog.require('org.apache.flex.core.graphics.IStroke');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.graphics.IStroke}
- *
- */
-org.apache.flex.core.graphics.SolidColorStroke = function() {
-
- /**
- * @private
- * @type {number}
- */
- this.alpha_ = 1.0;
-
- /**
- * @private
- * @type {number}
- */
- this.color_ = 1.0;
-
- /**
- * @private
- * @type {number}
- */
- this.weight_ = 1.0;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.SolidColorStroke.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SolidColorStroke',
- qName: 'org.apache.flex.core.graphics.SolidColorStroke' }] };
-
-
-Object.defineProperties(org.apache.flex.core.graphics.SolidColorStroke.prototype, {
- /** @export */
- color: {
- /** @this {org.apache.flex.core.graphics.SolidColorStroke} */
- get: function() {
- return this.color_;
- },
- /** @this {org.apache.flex.core.graphics.SolidColorStroke} */
- set: function(value) {
- this.color_ = value;
- }
- },
- /** @export */
- alpha: {
- /** @this {org.apache.flex.core.graphics.SolidColorStroke} */
- get: function() {
- return this.alpha_;
- },
- /** @this {org.apache.flex.core.graphics.SolidColorStroke} */
- set: function(value) {
- this.alpha_ = value;
- }
- },
- /** @export */
- weight: {
- /** @this {org.apache.flex.core.graphics.SolidColorStroke} */
- get: function() {
- return this.weight_;
- },
- /** @this {org.apache.flex.core.graphics.SolidColorStroke} */
- set: function(value) {
- this.weight_ = value;
- }
- }
-});
-
-
-/**
- * addStrokeAttrib()
- *
- * @export
- * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the stroke must be added.
- * @return {string}
- */
-org.apache.flex.core.graphics.SolidColorStroke.prototype.addStrokeAttrib = function(value) {
- var strokeColor = Number(this.color).toString(16);
- if (strokeColor.length == 1) strokeColor = '00' + strokeColor;
- if (strokeColor.length == 2) strokeColor = '00' + strokeColor;
- if (strokeColor.length == 4) strokeColor = '00' + strokeColor;
- return 'stroke:#' + String(strokeColor) + ';stroke-width:' +
- String(this.weight) + ';stroke-opacity:' + String(this.alpha);
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Text.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Text.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Text.js
deleted file mode 100644
index 4bb77d6..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Text.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.graphics.Text');
-
-goog.require('org.apache.flex.core.graphics.GraphicShape');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.graphics.GraphicShape}
- */
-org.apache.flex.core.graphics.Text = function() {
- org.apache.flex.core.graphics.Text.base(this, 'constructor');
-
-};
-goog.inherits(org.apache.flex.core.graphics.Text,
- org.apache.flex.core.graphics.GraphicShape);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.Text.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Rect',
- qName: 'org.apache.flex.core.graphics.Text' }] };
-
-
-/**
- * @export
- * @param {string} value The text to be drawn.
- * @param {number} x The x position of the top-left corner of the rectangle.
- * @param {number} y The y position of the top-left corner.
- */
-org.apache.flex.core.graphics.Text.prototype.drawText = function(value, x, y) {
- var style = this.getStyleStr();
- var text = document.createElementNS('http://www.w3.org/2000/svg', 'text');
- text.flexjs_wrapper = this;
- text.setAttribute('style', style);
- text.setAttribute('x', String(x) + 'px');
- text.setAttribute('y', String(y) + 'px');
- this.setPosition(x, y, 0, 0);
- var textNode = document.createTextNode(value);
- text.appendChild(textNode);
- this.element.appendChild(text);
-
- this.resize(x, y, text.getBBox());
- };
-
-
-/**
- * @override
-*/
-org.apache.flex.core.graphics.Text.prototype.draw = function() {
-
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Alert.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Alert.js
deleted file mode 100644
index 099a7b3..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Alert.js
+++ /dev/null
@@ -1,193 +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.Alert');
-
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.html.Container');
-goog.require('org.apache.flex.html.Label');
-goog.require('org.apache.flex.html.TextButton');
-goog.require('org.apache.flex.html.TitleBar');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Container}
- */
-org.apache.flex.html.Alert = function() {
- org.apache.flex.html.Alert.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.Alert,
- org.apache.flex.html.Container);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.Alert.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Alert',
- qName: 'org.apache.flex.html.Alert'}] };
-
-
-/**
- * @type {number} The value for the Yes button option.
- */
-org.apache.flex.html.Alert.YES = 0x000001;
-
-
-/**
- * @type {number} The value for the No button option.
- */
-org.apache.flex.html.Alert.NO = 0x000002;
-
-
-/**
- * @type {number} The value for the OK button option.
- */
-org.apache.flex.html.Alert.OK = 0x000004;
-
-
-/**
- * @type {number} The value for the Cancel button option.
- */
-org.apache.flex.html.Alert.CANCEL = 0x000008;
-
-
-/**
- * @override
- */
-org.apache.flex.html.Alert.prototype.createElement =
- function() {
- org.apache.flex.html.Alert.base(this, 'createElement');
-
- this.element.className = 'Alert';
-
- // add in a title bar
- this.titleBar = new org.apache.flex.html.TitleBar();
- this.addElement(this.titleBar);
- this.titleBar.element.id = 'titleBar';
-
- this.message = new org.apache.flex.html.Label();
- this.addElement(this.message);
- this.message.element.id = 'message';
-
- // add a place for the buttons
- this.buttonArea = new org.apache.flex.html.Container();
- this.addElement(this.buttonArea);
- this.buttonArea.element.id = 'buttonArea';
-
- return this.element;
-};
-
-
-/**
- * @param {string} message The message to be displayed.
- * @param {Object} host The object to display the alert.
- * @param {string} title The message to be displayed in the title bar.
- * @param {number} flags The options for the buttons.
- */
-org.apache.flex.html.Alert.show =
- function(message, host, title, flags) {
-
- var a = new org.apache.flex.html.Alert();
- host.addElement(a);
- a.title = title;
- a.text = message;
- a.flags = flags;
-
- a.positioner.style.position = 'relative';
- a.positioner.style.width = '200px';
- a.positioner.style.margin = 'auto';
- a.positioner.style.top = '100px';
-};
-
-
-Object.defineProperties(org.apache.flex.html.Alert.prototype, {
- /** @export */
- title: {
- /** @this {org.apache.flex.html.Alert} */
- get: function() {
- return this.titleBar.title;
- },
- /** @this {org.apache.flex.html.Alert} */
- set: function(value) {
- this.titleBar.title = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.html.Alert} */
- get: function() {
- return this.message.text;
- },
- /** @this {org.apache.flex.html.Alert} */
- set: function(value) {
- this.message.text = value;
- }
- },
- /** @export */
- flags: {
- /** @this {org.apache.flex.html.Alert} */
- get: function() {
- return this.flags;
- },
- /** @this {org.apache.flex.html.Alert} */
- set: function(value) {
- this.flags = value;
-
- // add buttons based on flags
- if (this.flags & org.apache.flex.html.Alert.OK) {
- var ok = new org.apache.flex.html.TextButton();
- this.buttonArea.addElement(ok);
- ok.text = 'OK';
- goog.events.listen(/** @type {EventTarget} */ (ok.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- if (this.flags & org.apache.flex.html.Alert.CANCEL) {
- var cancel = new org.apache.flex.html.TextButton();
- this.buttonArea.addElement(cancel);
- cancel.text = 'Cancel';
- goog.events.listen(/** @type {EventTarget} */ (cancel.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- if (this.flags & org.apache.flex.html.Alert.YES) {
- var yes = new org.apache.flex.html.TextButton();
- this.buttonArea.addElement(yes);
- yes.text = 'YES';
- goog.events.listen(/** @type {EventTarget} */ (yes.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- if (this.flags & org.apache.flex.html.Alert.NO) {
- var nob = new org.apache.flex.html.TextButton();
- this.buttonArea.addElement(nob);
- nob.text = 'NO';
- goog.events.listen(/** @type {EventTarget} */ (nob.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- }
- }
-});
-
-
-/**
- * @param {Object} event The event object.
- */
-org.apache.flex.html.Alert.prototype.dismissAlert =
- function(event)
- {
- this.element.parentElement.removeChild(this.element);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/Button.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Button.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Button.js
deleted file mode 100644
index 1917ecf..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Button.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.
- */
-
-goog.provide('org.apache.flex.html.Button');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.Button = function() {
- org.apache.flex.html.Button.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.Button,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.Button.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Button',
- qName: 'org.apache.flex.html.Button'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.Button.prototype.createElement =
- function() {
- this.element = document.createElement('button');
- this.element.setAttribute('type', 'button');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) {
- var impl = org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iStatesImpl');
- }
-
- return this.element;
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/ButtonBar.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/ButtonBar.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/ButtonBar.js
deleted file mode 100644
index 82cfe9e..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/ButtonBar.js
+++ /dev/null
@@ -1,85 +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.ButtonBar');
-
-goog.require('org.apache.flex.core.ListBase');
-goog.require('org.apache.flex.html.List');
-goog.require('org.apache.flex.html.beads.DataItemRendererFactoryForArrayData');
-goog.require('org.apache.flex.html.beads.layouts.HorizontalLayout');
-goog.require('org.apache.flex.html.supportClasses.ButtonBarButtonItemRenderer');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.List}
- */
-org.apache.flex.html.ButtonBar = function() {
-
- // this.model = new
- // org.apache.flex.html.beads.models.ArraySelectionModel();
- // this.addBead(this.model);
-
- org.apache.flex.html.ButtonBar.base(this, 'constructor');
-
- // this.addBead(new
- // org.apache.flex.html.beads.ListView());
-
- // this.addBead(new
- //org.apache.flex.html.beads.layouts.HorizontalLayout());
-
- // this.itemRendererFactory = new
- // org.apache.flex.html.beads.
- // DataItemRendererFactoryForArrayData();
- // this.itemRendererFactory.itemRendererClass = 'org.apache.flex.html.' +
- // 'supportClasses_ButtonBarButtonItemRenderer';
- // this.addBead(this.itemRendererFactory);
-
- // this.addBead(new
- // org.apache.flex.html.beads.controllers.
- // ListSingleSelectionMouseController());
-};
-goog.inherits(org.apache.flex.html.ButtonBar,
- org.apache.flex.html.List);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.ButtonBar.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ButtonBar',
- qName: 'org.apache.flex.html.ButtonBar'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.ButtonBar.prototype.createElement =
- function() {
- //org.apache.flex.html.ButtonBar.base(this, 'createElement');
-
- this.element = document.createElement('div');
- this.element.style.overflow = 'auto';
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- this.className = 'ButtonBar';
-
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/CheckBox.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/CheckBox.js
deleted file mode 100644
index 7f0d2c4..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/CheckBox.js
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html.CheckBox');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.CheckBox = function() {
- org.apache.flex.html.CheckBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.CheckBox,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.CheckBox.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'CheckBox',
- qName: 'org.apache.flex.html.CheckBox'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.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.element.className = 'CheckBox';
- this.typeNames = 'CheckBox';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- cb.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.CheckBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html.CheckBox} */
- get: function() {
- return this.element.childNodes.item(1).nodeValue;
- },
- /** @this {org.apache.flex.html.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(1).nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.html.CheckBox} */
- get: function() {
- return this.element.childNodes.item(0).checked;
- },
- /** @this {org.apache.flex.html.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(0).checked = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/CloseButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/CloseButton.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/CloseButton.js
deleted file mode 100644
index fc212bb..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/CloseButton.js
+++ /dev/null
@@ -1,55 +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.CloseButton');
-
-goog.require('org.apache.flex.html.Button');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Button}
- */
-org.apache.flex.html.CloseButton = function() {
- org.apache.flex.html.CloseButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.CloseButton,
- org.apache.flex.html.Button);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.CloseButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'CloseButton',
- qName: 'org.apache.flex.html.CloseButton'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.CloseButton.prototype.createElement =
- function() {
- org.apache.flex.html.CloseButton.base(this, 'createElement');
- this.element.innerHTML = 'x';
-
- this.element.style.padding = 0;
- this.height = 11;
- this.width = 11;
- return this.element;
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/ComboBox.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/ComboBox.js
deleted file mode 100644
index 483a517..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/ComboBox.js
+++ /dev/null
@@ -1,194 +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.ComboBox');
-
-goog.require('org.apache.flex.core.ListBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html.ComboBox = function() {
- org.apache.flex.html.ComboBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.ComboBox,
- org.apache.flex.core.ListBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.ComboBox.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ComboBox',
- qName: 'org.apache.flex.html.ComboBox'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.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';
- goog.events.listen(button, 'click', goog.bind(this.buttonClicked, this));
- this.element.appendChild(button);
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- // add a click handler so that a click outside of the combo box can
- // dismiss the pop-up should it be visible.
- goog.events.listen(document, 'click',
- goog.bind(this.dismissPopup, this));
-
- input.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @export
- * @param {Object} event The event.
- */
-org.apache.flex.html.ComboBox.prototype.selectChanged =
- function(event) {
- var select;
-
- select = event.currentTarget;
-
- this.selectedItem = select.options[select.selectedIndex].value;
-
- this.popup.parentNode.removeChild(this.popup);
- this.popup = null;
-
- this.dispatchEvent(event);
-};
-
-
-/**
- * @export
- * @param {Object=} opt_event The event.
- */
-org.apache.flex.html.ComboBox.prototype.dismissPopup =
- function(opt_event) {
- // remove the popup if it already exists
- if (this.popup) {
- this.popup.parentNode.removeChild(this.popup);
- this.popup = null;
- }
-};
-
-
-/**
- * @export
- * @param {Object} event The event.
- */
-org.apache.flex.html.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.dismissPopup();
-
- 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';
- goog.events.listen(select, 'change', 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.html.ComboBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html.ComboBox} */
- get: function() {
- return this.element.childNodes.item(0).value;
- },
- /** @this {org.apache.flex.html.ComboBox} */
- set: function(value) {
- this.element.childNodes.item(0).value = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/Container.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Container.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Container.js
deleted file mode 100644
index b7d628a..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Container.js
+++ /dev/null
@@ -1,123 +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.Container');
-
-goog.require('org.apache.flex.core.ContainerBase');
-goog.require('org.apache.flex.core.IBeadLayout');
-goog.require('org.apache.flex.core.IContainer');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IContainer}
- * @extends {org.apache.flex.core.ContainerBase}
- */
-org.apache.flex.html.Container = function() {
- org.apache.flex.html.Container.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.Container,
- org.apache.flex.core.ContainerBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.Container.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Container',
- qName: 'org.apache.flex.html.Container' }],
- interfaces: [org.apache.flex.core.IContainer] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.Container.prototype.createElement =
- function() {
- var cb;
-
- this.element = document.createElement('div');
-
- 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.element.flexjs_wrapper = this;
-
- /*this.addEventListener('childrenAdded',
- goog.bind(this.runLayoutHandler, this));
- this.addEventListener('elementRemoved',
- goog.bind(this.runLayoutHandler, this));*/
-
- return this.element;
-};
-
-
-/**
- * @override
- *
-org.apache.flex.html.Container.prototype.addElement =
- function(child) {
- org.apache.flex.html.Container.base(this, 'addElement', child);
- this.dispatchEvent('elementAdded');
-};*/
-
-
-/**
- * @override
- *
-org.apache.flex.html.Container.prototype.removeElement =
- function(child) {
- org.apache.flex.html.Container.base(this, 'removeElement', child);
- this.dispatchEvent('elementRemoved');
-};*/
-
-
-/**
- * @export
- */
-org.apache.flex.html.Container.prototype.childrenAdded =
- function() {
- this.dispatchEvent('childrenAdded');
-};
-
-
-/**
- * @export
- * @param {Object} event The event invoking the layout.
- *
-org.apache.flex.html.Container.prototype.runLayoutHandler =
- function(event) {
- var layout = this.getBeadByType(org.apache.flex.core.IBeadLayout);
- if (layout) {
- layout.layout();
- }
-};*/
-
-
-/**
- * @export
- * @return {Array} the HTML DOM element children.
- */
-org.apache.flex.html.Container.prototype.internalChildren =
- function() {
- return this.element.children;
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/ControlBar.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/ControlBar.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/ControlBar.js
deleted file mode 100644
index a0afce5..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/ControlBar.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html.ControlBar');
-
-goog.require('org.apache.flex.html.Container');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Container}
- */
-org.apache.flex.html.ControlBar = function() {
- org.apache.flex.html.ControlBar.base(this, 'constructor');
-
-};
-goog.inherits(org.apache.flex.html.ControlBar,
- org.apache.flex.html.Container);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.ControlBar.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ControlBar',
- qName: 'org.apache.flex.html.ControlBar'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.ControlBar.prototype.createElement =
- function() {
-
- this.element = document.createElement('div');
- this.element.className = 'ControlBar';
- this.element.style.display = 'inline';
- this.typeNames = 'ControlBar';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/DropDownList.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/DropDownList.js
deleted file mode 100644
index 3b060df..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/DropDownList.js
+++ /dev/null
@@ -1,142 +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.DropDownList');
-
-goog.require('org.apache.flex.core.ListBase');
-goog.require('org.apache.flex.html.beads.models.ArraySelectionModel');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html.DropDownList = function() {
- org.apache.flex.html.DropDownList.base(this, 'constructor');
- this.model = new org.apache.flex.html.beads.models.ArraySelectionModel();
-};
-goog.inherits(org.apache.flex.html.DropDownList,
- org.apache.flex.core.ListBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.DropDownList.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'DropDownList',
- qName: 'org.apache.flex.html.DropDownList'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.DropDownList.prototype.createElement =
- function() {
- this.element = document.createElement('select');
- this.element.size = 1;
- goog.events.listen(this.element, 'change',
- goog.bind(this.changeHandler, this));
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.DropDownList.prototype, {
- /** @export */
- dataProvider: {
- /** @this {org.apache.flex.html.DropDownList} */
- set: function(value) {
- var dp, i, n, opt;
-
- this.model.dataProvider = value;
- dp = this.element.options;
- n = dp.length;
- for (i = 0; i < n; i++) {
- dp.remove(0);
- }
-
- var lf = this.labelField;
- n = value.length;
- for (i = 0; i < n; i++) {
- opt = document.createElement('option');
- if (lf)
- opt.text = value[i][lf];
- else
- opt.text = value[i];
- dp.add(opt);
- }
- }
- },
- /** @export */
- labelField: {
- // TODO: (aharui) copied from ListBase because you
- // can't just override the setter in a defineProps
- // structure.
- /** @this {org.apache.flex.html.DropDownList} */
- get: function() {
- return this.model.labelField;
- },
- /** @this {org.apache.flex.html.DropDownList} */
- set: function(value) {
- this.model.labelField = value;
- }
- },
- /** @export */
- selectedIndex: {
- // TODO: (aharui) copied from ListBase because you
- // can't just override the setter in a defineProps
- // structure.
- /** @this {org.apache.flex.html.DropDownList} */
- get: function() {
- return this.model.selectedIndex;
- },
- /** @this {org.apache.flex.html.DropDownList} */
- set: function(value) {
- this.model.selectedIndex = value;
- this.element.selectedIndex = value;
- }
- },
- /** @export */
- selectedItem: {
- // TODO: (aharui) copied from ListBase because you
- // can't just override the setter in a defineProps
- // structure.
- /** @this {org.apache.flex.html.DropDownList} */
- get: function() {
- return this.model.selectedItem;
- },
- /** @this {org.apache.flex.html.DropDownList} */
- set: function(value) {
- this.model.selectedItem = value;
- this.element.selectedIndex = this.model.selectedIndex;
- }
- }
-});
-
-
-/**
- * @protected
- */
-org.apache.flex.html.DropDownList.prototype.changeHandler =
- function() {
- this.model.selectedIndex = this.element.selectedIndex;
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/HContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/HContainer.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/HContainer.js
deleted file mode 100644
index 13b96e3..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/HContainer.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.html.HContainer');
-
-goog.require('org.apache.flex.core.IContainer');
-goog.require('org.apache.flex.html.Container');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IContainer}
- * @extends {org.apache.flex.html.Container}
- */
-org.apache.flex.html.HContainer = function() {
- org.apache.flex.html.HContainer.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.HContainer,
- org.apache.flex.html.Container);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.HContainer.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'HContainer',
- qName: 'org.apache.flex.html.HContainer' }],
- interfaces: [org.apache.flex.core.IContainer] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/HRule.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/HRule.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/HRule.js
deleted file mode 100644
index 5c2cea8..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/HRule.js
+++ /dev/null
@@ -1,45 +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.HRule');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.HRule = function() {
- org.apache.flex.html.HRule.base(this, 'constructor');
-
- this.element = document.createElement('hr');
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-};
-goog.inherits(org.apache.flex.html.HRule,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.HRule.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'HRule',
- qName: 'org.apache.flex.html.HRule' }] };
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/Image.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Image.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Image.js
deleted file mode 100644
index f535f44..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Image.js
+++ /dev/null
@@ -1,82 +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.Image');
-
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.html.beads.ImageView');
-goog.require('org.apache.flex.html.beads.models.ImageModel');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.Image = function() {
- org.apache.flex.html.Image.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.Image,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.Image.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Image',
- qName: 'org.apache.flex.html.Image' }] };
-
-
-/**
- * @override
- * @protected
- * @return {Object} The actual element to be parented.
- */
-org.apache.flex.html.Image.prototype.createElement =
- function() {
-
- this.element = document.createElement('img');
- this.element.className = 'Image';
- this.typeNames = 'Image';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-
- this.model = new
- org.apache.flex.html.beads.models.ImageModel();
-
- this.addBead(new
- org.apache.flex.html.beads.ImageView());
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.Image.prototype, {
- /** @export */
- source: {
- /** @this {org.apache.flex.html.Image} */
- get: function() {
- return this.model.source;
- },
- /** @this {org.apache.flex.html.Image} */
- set: function(value) {
- this.model.source = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/ImageAndTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/ImageAndTextButton.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/ImageAndTextButton.js
deleted file mode 100644
index de49513..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/ImageAndTextButton.js
+++ /dev/null
@@ -1,103 +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.ImageAndTextButton');
-
-goog.require('org.apache.flex.html.Button');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Button}
- */
-org.apache.flex.html.ImageAndTextButton = function() {
- org.apache.flex.html.ImageAndTextButton.base(this, 'constructor');
-
- this._text = '';
- this._src = '';
-};
-goog.inherits(org.apache.flex.html.ImageAndTextButton,
- org.apache.flex.html.Button);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.ImageAndTextButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ImageAndTextButton',
- qName: 'org.apache.flex.html.ImageAndTextButton'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.ImageAndTextButton.prototype.createElement =
- function() {
- this.element = document.createElement('button');
- this.element.setAttribute('type', 'button');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) {
- var impl = org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iStatesImpl');
- }
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.ImageAndTextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html.ImageAndTextButton} */
- get: function() {
- return this._text;
- },
- /** @this {org.apache.flex.html.ImageAndTextButton} */
- set: function(value) {
- this._text = value;
- this.setInnerHTML();
- }
- },
- /** @export */
- image: {
- /** @this {org.apache.flex.html.ImageAndTextButton} */
- get: function() {
- return this._src;
- },
- /** @this {org.apache.flex.html.ImageAndTextButton} */
- set: function(value) {
- this._src = value;
- this.setInnerHTML();
- }
- }
-});
-
-
-/**
- */
-org.apache.flex.html.ImageAndTextButton.prototype.setInnerHTML = function() {
- var inner = '';
- if (this._src != null)
- inner += '<img src=\'' + this._src + '\'/>';
- inner += ' ';
- inner += this._text;
- this.element.innerHTML = inner;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js
deleted file mode 100644
index 82a35c5..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js
+++ /dev/null
@@ -1,71 +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.Label');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.Label = function() {
- org.apache.flex.html.Label.base(this, 'constructor');
-
- this.element = document.createElement('span');
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
-};
-goog.inherits(org.apache.flex.html.Label,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.Label.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Label',
- qName: 'org.apache.flex.html.Label' }] };
-
-
-Object.defineProperties(org.apache.flex.html.Label.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html.Label} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html.Label} */
- set: function(value) {
- this.element.innerHTML = value;
- this.dispatchEvent('textChange');
- }
- },
- /** @export */
- html: {
- /** @this {org.apache.flex.html.Label} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html.Label} */
- set: function(value) {
- this.element.innerHTML = value;
- this.dispatchEvent('htmlChange');
- }
- }
-});
[55/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - Merge
branch 'core_js_to_as' into develop
Posted by ah...@apache.org.
Merge branch 'core_js_to_as' into develop
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ca81ab69
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ca81ab69
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ca81ab69
Branch: refs/heads/develop
Commit: ca81ab69d455bd35bfc8f63ea14a541e64e18180
Parents: d6c6ef1 93a57d0
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 22:34:31 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 22:34:31 2015 -0800
----------------------------------------------------------------------
build.xml | 38 +-
examples/build_example.xml | 70 +-
examples/flexjs/ChartExample/build.xml | 31 +-
examples/flexjs/CordovaCameraExample/build.xml | 29 -
examples/flexjs/DataBindingExample/build.xml | 29 -
.../flexjs/DataBindingExample_Flat/build.xml | 29 -
examples/flexjs/DataBindingExample_as/build.xml | 29 -
examples/flexjs/DataGridExample/build.xml | 31 +-
examples/flexjs/DesktopMap/build.xml | 35 +-
examples/flexjs/FlexJSStore/build.xml | 29 -
.../productsView/ProductCatalogThumbnail.mxml | 6 +-
.../src/productsView/ProductDetails.mxml | 6 +-
.../src/productsView/ProductListItem.mxml | 2 +-
examples/flexjs/FlexJSStore_jquery/build.xml | 31 +-
.../productsView/ProductCatalogThumbnail.mxml | 6 +-
.../src/productsView/ProductDetails.mxml | 6 +-
.../src/productsView/ProductListItem.mxml | 2 +-
.../flexjs/FlexWebsiteStatsViewer/build.xml | 29 -
examples/flexjs/MapSearch/build.xml | 35 +-
.../flexjs/MapSearch/src/MyInitialView.mxml | 15 +-
examples/flexjs/MobileTrader/build.xml | 31 +-
examples/flexjs/TodoListSampleApp/build.xml | 29 -
examples/native/ButtonExample/build.xml | 69 +-
examples/native/USStatesMap/build.xml | 73 +-
frameworks/build.xml | 59 --
.../projects/Binding/.actionScriptProperties | 2 +-
.../flex/binding/ApplicationDataBinding.as | 338 +++++++
.../src/org/apache/flex/binding/ChainBinding.as | 3 -
.../org/apache/flex/binding/ConstantBinding.as | 39 +-
.../apache/flex/binding/ContainerDataBinding.as | 384 ++++++++
.../org/apache/flex/binding/GenericBinding.as | 2 -
.../flex/binding/MXMLBeadViewBaseDataBinding.as | 333 +++++++
.../org/apache/flex/binding/SimpleBinding.as | 5 +-
.../src/org/apache/flex/binding/WatcherBase.as | 28 +-
.../flex/binding/ApplicationDataBinding.as | 338 -------
.../apache/flex/binding/ContainerDataBinding.as | 384 --------
.../flex/binding/MXMLBeadViewBaseDataBinding.as | 333 -------
frameworks/projects/Binding/build.xml | 86 +-
.../projects/Binding/compile-asjs-config.xml | 15 +-
frameworks/projects/Binding/compile-config.xml | 5 -
.../src/org/apache/flex/binding/BindingBase.js | 117 ---
.../src/org/apache/flex/binding/ChainBinding.js | 207 -----
.../org/apache/flex/binding/ConstantBinding.js | 72 --
.../org/apache/flex/binding/GenericBinding.js | 172 ----
.../org/apache/flex/binding/PropertyWatcher.js | 195 -----
.../org/apache/flex/binding/SimpleBinding.js | 94 --
.../apache/flex/binding/ViewBaseDataBinding.js | 349 --------
.../src/org/apache/flex/binding/WatcherBase.js | 246 ------
.../projects/Charts/.actionScriptProperties | 2 +-
frameworks/projects/Charts/as/defaults.css | 108 +++
.../projects/Charts/as/src/ChartsClasses.as | 27 +
.../as/src/org/apache/flex/charts/BarChart.as | 49 ++
.../src/org/apache/flex/charts/ColumnChart.as | 48 +
.../as/src/org/apache/flex/charts/LineChart.as | 48 +
.../as/src/org/apache/flex/charts/PieChart.as | 47 +
.../org/apache/flex/charts/StackedBarChart.as | 48 +
.../apache/flex/charts/StackedColumnChart.as | 48 +
.../apache/flex/charts/beads/AxisBaseBead.as | 246 ++++++
.../charts/beads/ChartItemRendererFactory.as | 155 ++++
.../org/apache/flex/charts/beads/ChartView.as | 174 ++++
.../DataItemRendererFactoryForSeriesData.as | 131 +++
.../org/apache/flex/charts/beads/DataTipBead.as | 162 ++++
.../charts/beads/HorizontalCategoryAxisBead.as | 191 ++++
.../charts/beads/HorizontalLinearAxisBead.as | 246 ++++++
.../charts/beads/VerticalCategoryAxisBead.as | 198 +++++
.../flex/charts/beads/VerticalLinearAxisBead.as | 236 +++++
.../flex/charts/beads/layouts/BarChartLayout.as | 149 ++++
.../charts/beads/layouts/ChartBaseLayout.as | 147 ++++
.../charts/beads/layouts/ColumnChartLayout.as | 140 +++
.../layouts/LineChartCategoryVsLinearLayout.as | 152 ++++
.../layouts/LineChartLinearVsLinearLayout.as | 166 ++++
.../flex/charts/beads/layouts/PieChartLayout.as | 140 +++
.../beads/layouts/StackedBarChartLayout.as | 164 ++++
.../beads/layouts/StackedColumnChartLayout.as | 161 ++++
.../flex/charts/optimized/SVGBoxItemRenderer.as | 166 ++++
.../flex/charts/optimized/SVGChartAxisGroup.as | 142 +++
.../flex/charts/optimized/SVGChartDataGroup.as | 192 ++++
.../optimized/SVGLineSegmentItemRenderer.as | 205 +++++
.../charts/optimized/SVGWedgeItemRenderer.as | 281 ++++++
.../flex/charts/supportClasses/BarSeries.as | 103 +++
.../charts/supportClasses/BoxItemRenderer.as | 268 ++++++
.../charts/supportClasses/ChartAxisGroup.as | 11 +-
.../charts/supportClasses/ChartDataGroup.as | 8 +-
.../flex/charts/supportClasses/ColumnSeries.as | 93 ++
.../supportClasses/ILineSegmentItemRenderer.as | 57 ++
.../charts/supportClasses/IWedgeItemRenderer.as | 113 +++
.../supportClasses/LineSegmentItemRenderer.as | 198 +++++
.../flex/charts/supportClasses/LineSeries.as | 114 +++
.../flex/charts/supportClasses/PieSeries.as | 85 ++
.../charts/supportClasses/WedgeItemRenderer.as | 272 ++++++
frameworks/projects/Charts/asjs/defaults.css | 108 ---
.../Charts/asjs/src/ChartASJSClasses.as | 61 --
.../asjs/src/org/apache/flex/charts/BarChart.as | 49 --
.../src/org/apache/flex/charts/ColumnChart.as | 48 -
.../src/org/apache/flex/charts/LineChart.as | 48 -
.../asjs/src/org/apache/flex/charts/PieChart.as | 47 -
.../org/apache/flex/charts/StackedBarChart.as | 48 -
.../apache/flex/charts/StackedColumnChart.as | 48 -
.../apache/flex/charts/beads/AxisBaseBead.as | 246 ------
.../charts/beads/ChartItemRendererFactory.as | 155 ----
.../org/apache/flex/charts/beads/ChartView.as | 174 ----
.../DataItemRendererFactoryForSeriesData.as | 131 ---
.../org/apache/flex/charts/beads/DataTipBead.as | 162 ----
.../charts/beads/HorizontalCategoryAxisBead.as | 191 ----
.../charts/beads/HorizontalLinearAxisBead.as | 246 ------
.../charts/beads/VerticalCategoryAxisBead.as | 198 -----
.../flex/charts/beads/VerticalLinearAxisBead.as | 236 -----
.../flex/charts/beads/layouts/BarChartLayout.as | 149 ----
.../charts/beads/layouts/ChartBaseLayout.as | 147 ----
.../charts/beads/layouts/ColumnChartLayout.as | 140 ---
.../layouts/LineChartCategoryVsLinearLayout.as | 152 ----
.../layouts/LineChartLinearVsLinearLayout.as | 166 ----
.../flex/charts/beads/layouts/PieChartLayout.as | 140 ---
.../beads/layouts/StackedBarChartLayout.as | 164 ----
.../beads/layouts/StackedColumnChartLayout.as | 161 ----
.../flex/charts/optimized/SVGBoxItemRenderer.as | 166 ----
.../flex/charts/optimized/SVGChartAxisGroup.as | 142 ---
.../flex/charts/optimized/SVGChartDataGroup.as | 192 ----
.../optimized/SVGLineSegmentItemRenderer.as | 205 -----
.../charts/optimized/SVGWedgeItemRenderer.as | 281 ------
.../flex/charts/supportClasses/BarSeries.as | 103 ---
.../charts/supportClasses/BoxItemRenderer.as | 268 ------
.../flex/charts/supportClasses/ColumnSeries.as | 93 --
.../supportClasses/ILineSegmentItemRenderer.as | 57 --
.../charts/supportClasses/IWedgeItemRenderer.as | 113 ---
.../supportClasses/LineSegmentItemRenderer.as | 198 -----
.../flex/charts/supportClasses/LineSeries.as | 114 ---
.../flex/charts/supportClasses/PieSeries.as | 85 --
.../charts/supportClasses/WedgeItemRenderer.as | 272 ------
frameworks/projects/Charts/build.xml | 97 +--
.../projects/Charts/compile-as-to-js-config.xml | 76 ++
.../projects/Charts/compile-asjs-config.xml | 12 +-
frameworks/projects/Charts/compile-config.xml | 8 +-
.../projects/Charts/compile-js-config.xml | 87 ++
.../org/apache/flex/charts/core/ChartBase.js | 87 --
.../org/apache/flex/charts/core/IAxisBead.js | 61 --
.../org/apache/flex/charts/core/IAxisGroup.js | 45 -
.../flex/charts/core/ICartesianChartLayout.js | 39 -
.../src/org/apache/flex/charts/core/IChart.js | 48 -
.../org/apache/flex/charts/core/IChartAxis.js | 39 -
.../apache/flex/charts/core/IChartDataGroup.js | 53 --
.../flex/charts/core/IChartItemRenderer.js | 78 --
.../org/apache/flex/charts/core/IChartSeries.js | 65 --
.../flex/charts/core/IHorizontalAxisBead.js | 60 --
.../flex/charts/core/IVerticalAxisBead.js | 59 --
.../charts/supportClasses/ChartAxisGroup.js | 162 ----
.../charts/supportClasses/ChartDataGroup.js | 83 --
.../Collections/.actionScriptProperties | 2 +-
.../Collections/as/src/CollectionsClasses.as | 3 +-
.../org/apache/flex/collections/ArrayList.as | 396 +++++++++
.../apache/flex/collections/LazyCollection.as | 33 +-
.../asjs/src/CollectionsASJSClasses.as | 33 -
.../org/apache/flex/collections/ArrayList.as | 396 ---------
frameworks/projects/Collections/build.xml | 128 ++-
.../Collections/compile-asjs-config.xml | 11 +-
.../projects/Collections/compile-config.xml | 8 +-
.../org/apache/flex/collections/ICollection.js | 50 --
.../apache/flex/collections/LazyCollection.js | 163 ----
.../collections/converters/JSONItemConverter.js | 48 -
.../flex/collections/parsers/JSONInputParser.js | 48 -
.../projects/Core/.actionScriptProperties | 2 +-
frameworks/projects/Core/as/src/CoreClasses.as | 80 +-
.../projects/Core/as/src/CoreJSClasses.as | 99 +++
.../as/src/org/apache/flex/core/Application.as | 369 +++++---
.../src/org/apache/flex/core/ApplicationBase.as | 110 +++
.../as/src/org/apache/flex/core/BeadViewBase.as | 2 +-
.../org/apache/flex/core/BindableCSSStyles.as | 134 +++
.../apache/flex/core/BrowserResizeListener.as | 72 +-
.../src/org/apache/flex/core/BrowserScroller.as | 31 +-
.../src/org/apache/flex/core/BrowserWindow.as | 18 +-
.../src/org/apache/flex/core/CSSFontFaceBead.as | 54 +-
.../as/src/org/apache/flex/core/CSSShape.as | 1 +
.../as/src/org/apache/flex/core/CSSSprite.as | 1 +
.../as/src/org/apache/flex/core/CSSTextField.as | 42 +-
.../src/org/apache/flex/core/CallLaterBead.as | 26 +-
.../src/org/apache/flex/core/ContainerBase.as | 44 +-
.../src/org/apache/flex/core/DataBindingBase.as | 2 +-
.../src/org/apache/flex/core/FilledRectangle.as | 35 +-
.../org/apache/flex/core/HTMLElementWrapper.as | 247 ++++++
.../as/src/org/apache/flex/core/IAlertModel.as | 2 +-
.../org/apache/flex/core/IApplicationView.as | 45 +
.../Core/as/src/org/apache/flex/core/IBead.as | 2 +-
.../src/org/apache/flex/core/IBeadController.as | 2 +-
.../as/src/org/apache/flex/core/IBeadLayout.as | 2 +-
.../as/src/org/apache/flex/core/IBeadModel.as | 2 +-
.../as/src/org/apache/flex/core/IBeadView.as | 2 +-
.../as/src/org/apache/flex/core/IBorderModel.as | 3 +-
.../Core/as/src/org/apache/flex/core/IChild.as | 19 +-
.../Core/as/src/org/apache/flex/core/IChrome.as | 2 +-
.../src/org/apache/flex/core/IComboBoxModel.as | 2 +-
.../as/src/org/apache/flex/core/IContainer.as | 2 +-
.../as/src/org/apache/flex/core/IContentView.as | 10 +-
.../src/org/apache/flex/core/IDataGridModel.as | 44 +
.../flex/core/IDataGridPresentationModel.as | 45 +
.../core/IDataProviderItemRendererMapper.as | 2 +-
.../org/apache/flex/core/IDateChooserModel.as | 101 +++
.../as/src/org/apache/flex/core/IDocument.as | 2 +-
.../src/org/apache/flex/core/IDragInitiator.as | 2 +-
.../as/src/org/apache/flex/core/IFactory.as | 2 +-
.../as/src/org/apache/flex/core/IFlexInfo.as | 2 +-
.../src/org/apache/flex/core/IFlexJSElement.as | 29 +
.../as/src/org/apache/flex/core/IFormatBead.as | 2 +-
.../as/src/org/apache/flex/core/IImageModel.as | 2 +-
.../src/org/apache/flex/core/IItemRenderer.as | 2 +-
.../flex/core/IItemRendererClassFactory.as | 2 +-
.../org/apache/flex/core/IItemRendererParent.as | 2 +-
.../apache/flex/core/IItemRendererProvider.as | 58 ++
.../as/src/org/apache/flex/core/ILayoutChild.as | 7 +-
.../apache/flex/core/IListPresentationModel.as | 2 +-
.../src/org/apache/flex/core/IMXMLDocument.as | 2 +-
.../as/src/org/apache/flex/core/IPanelModel.as | 2 +-
.../Core/as/src/org/apache/flex/core/IParent.as | 2 +-
.../src/org/apache/flex/core/IParentIUIBase.as | 6 +-
.../Core/as/src/org/apache/flex/core/IPopUp.as | 2 +-
.../as/src/org/apache/flex/core/IPopUpHost.as | 2 +-
.../as/src/org/apache/flex/core/IRangeModel.as | 2 +-
.../src/org/apache/flex/core/IRollOverModel.as | 2 +-
.../src/org/apache/flex/core/IScrollBarModel.as | 3 +-
.../apache/flex/core/ISelectableItemRenderer.as | 2 +-
.../src/org/apache/flex/core/ISelectionModel.as | 2 +-
.../as/src/org/apache/flex/core/IStatesImpl.as | 2 +-
.../src/org/apache/flex/core/IStatesObject.as | 7 +-
.../Core/as/src/org/apache/flex/core/IStrand.as | 2 +-
.../org/apache/flex/core/IStrandWithModel.as | 4 +-
.../as/src/org/apache/flex/core/IStyleObject.as | 2 +-
.../org/apache/flex/core/IStyleableObject.as | 2 +-
.../as/src/org/apache/flex/core/ITextModel.as | 2 +-
.../src/org/apache/flex/core/ITitleBarModel.as | 2 +-
.../org/apache/flex/core/IToggleButtonModel.as | 2 +-
.../Core/as/src/org/apache/flex/core/IUIBase.as | 31 +-
.../apache/flex/core/IValueToggleButtonModel.as | 2 +-
.../as/src/org/apache/flex/core/IValuesImpl.as | 18 +-
.../as/src/org/apache/flex/core/IViewport.as | 37 +-
.../src/org/apache/flex/core/IViewportModel.as | 2 +-
.../org/apache/flex/core/IViewportScroller.as | 3 +-
.../flex/core/ItemRendererClassFactory.as | 28 +-
.../as/src/org/apache/flex/core/ListBase.as | 3 -
.../org/apache/flex/core/MXMLDragInitiator.as | 2 +-
.../org/apache/flex/core/ParentDocumentBead.as | 127 +++
.../src/org/apache/flex/core/SimpleCSSStyles.as | 106 +++
.../org/apache/flex/core/SimpleCSSValuesImpl.as | 185 +++-
.../org/apache/flex/core/SimpleStatesImpl.as | 9 +-
.../org/apache/flex/core/SimpleValuesImpl.as | 8 +-
.../as/src/org/apache/flex/core/StageProxy.as | 3 +-
.../Core/as/src/org/apache/flex/core/Strand.as | 2 +-
.../apache/flex/core/StyleableCSSTextField.as | 3 +-
.../Core/as/src/org/apache/flex/core/UIBase.as | 544 ++++++++++--
.../as/src/org/apache/flex/core/UIButtonBase.as | 11 +-
.../src/org/apache/flex/core/ValuesManager.as | 2 +-
.../as/src/org/apache/flex/core/ViewBase.as | 4 +-
.../org/apache/flex/core/WrappedHTMLElement.as | 21 +
.../src/org/apache/flex/events/BrowserEvent.as | 475 ++++++++++
.../src/org/apache/flex/events/CustomEvent.as | 58 +-
.../src/org/apache/flex/events/ElementEvents.as | 51 ++
.../Core/as/src/org/apache/flex/events/Event.as | 148 ++--
.../org/apache/flex/events/EventDispatcher.as | 57 +-
.../org/apache/flex/events/IEventDispatcher.as | 35 +-
.../as/src/org/apache/flex/events/MouseEvent.as | 158 +++-
.../org/apache/flex/events/ValueChangeEvent.as | 11 +-
.../as/src/org/apache/flex/events/ValueEvent.as | 13 +-
.../flex/events/utils/MouseEventConverter.as | 3 +-
.../org/apache/flex/events/utils/MouseUtils.as | 2 +-
.../Core/as/src/org/apache/flex/geom/Point.as | 34 +-
.../as/src/org/apache/flex/geom/Rectangle.as | 57 +-
.../as/src/org/apache/flex/states/AddItems.as | 2 +-
.../org/apache/flex/states/ItemAndDescriptor.as | 2 +-
.../org/apache/flex/states/SetEventHandler.as | 2 +-
.../src/org/apache/flex/states/SetProperty.as | 2 +-
.../Core/as/src/org/apache/flex/states/State.as | 2 +-
.../as/src/org/apache/flex/utils/BinaryData.as | 181 +++-
.../src/org/apache/flex/utils/CSSBorderUtils.as | 3 +-
.../as/src/org/apache/flex/utils/CSSUtils.as | 328 +++++++
.../as/src/org/apache/flex/utils/EffectTimer.as | 63 +-
.../as/src/org/apache/flex/utils/Language.as | 348 ++++++++
.../apache/flex/utils/MXMLDataInterpreter.as | 96 +-
.../src/org/apache/flex/utils/MixinManager.as | 40 +-
.../as/src/org/apache/flex/utils/PNGEncoder.as | 1 +
.../as/src/org/apache/flex/utils/PointUtils.as | 61 +-
.../org/apache/flex/utils/SolidBorderUtil.as | 1 +
.../src/org/apache/flex/utils/StringTrimmer.as | 3 +-
.../Core/as/src/org/apache/flex/utils/Timer.as | 72 +-
.../as/src/org/apache/flex/utils/UIUtils.as | 2 +-
.../flex/utils/ViewSourceContextMenuOption.as | 41 +-
.../org/apache/flex/utils/dbg/DOMPathUtil.as | 3 +-
frameworks/projects/Core/as/tests/build.xml | 4 +-
.../projects/Core/asjs/basic-manifest.xml | 28 -
frameworks/projects/Core/asjs/build.xml | 79 --
.../projects/Core/asjs/compile-config.xml | 76 --
frameworks/projects/Core/asjs/defaults.css | 138 ---
.../projects/Core/asjs/src/CoreASJSClasses.as | 38 -
.../org/apache/flex/core/BindableCSSStyles.as | 134 ---
.../src/org/apache/flex/core/IDataGridModel.as | 44 -
.../flex/core/IDataGridPresentationModel.as | 45 -
.../org/apache/flex/core/IDateChooserModel.as | 101 ---
.../org/apache/flex/core/ParentDocumentBead.as | 127 ---
.../src/org/apache/flex/core/SimpleCSSStyles.as | 106 ---
.../asjs/src/org/apache/flex/utils/CSSUtils.as | 323 -------
frameworks/projects/Core/basic-manifest.xml | 7 +-
frameworks/projects/Core/build.xml | 112 +--
.../projects/Core/compile-as-to-js-config.xml | 77 ++
.../projects/Core/compile-asjs-config.xml | 26 +-
frameworks/projects/Core/compile-config.xml | 5 +-
frameworks/projects/Core/compile-js-config.xml | 87 ++
.../js/src/org/apache/flex/core/Application.js | 176 ----
.../js/src/org/apache/flex/core/BeadViewBase.js | 71 --
.../apache/flex/core/BrowserResizeListener.js | 78 --
.../src/org/apache/flex/core/BrowserScroller.js | 55 --
.../src/org/apache/flex/core/BrowserWindow.js | 45 -
.../src/org/apache/flex/core/CSSFontFaceBead.js | 54 --
.../src/org/apache/flex/core/CallLaterBead.js | 93 --
.../js/src/org/apache/flex/core/ClassFactory.js | 64 --
.../src/org/apache/flex/core/ContainerBase.js | 378 --------
.../flex/core/ContainerBaseStrandChildren.js | 112 ---
.../src/org/apache/flex/core/DataBindingBase.js | 34 -
.../src/org/apache/flex/core/FilledRectangle.js | 86 --
.../org/apache/flex/core/HTMLElementWrapper.js | 177 ----
.../Core/js/src/org/apache/flex/core/IBead.js | 49 --
.../src/org/apache/flex/core/IBeadController.js | 42 -
.../js/src/org/apache/flex/core/IBeadLayout.js | 42 -
.../js/src/org/apache/flex/core/IBeadModel.js | 45 -
.../js/src/org/apache/flex/core/IBeadView.js | 38 -
.../Core/js/src/org/apache/flex/core/IChild.js | 49 --
.../Core/js/src/org/apache/flex/core/IChrome.js | 31 -
.../js/src/org/apache/flex/core/IContainer.js | 52 --
.../src/org/apache/flex/core/IContainerView.js | 44 -
.../js/src/org/apache/flex/core/IContentView.js | 79 --
.../org/apache/flex/core/IContentViewHost.js | 52 --
.../core/IDataProviderItemRendererMapper.js | 53 --
.../js/src/org/apache/flex/core/IDocument.js | 51 --
.../js/src/org/apache/flex/core/IEffectTimer.js | 45 -
.../js/src/org/apache/flex/core/IFactory.js | 45 -
.../js/src/org/apache/flex/core/IFormatBead.js | 62 --
.../src/org/apache/flex/core/IItemRenderer.js | 38 -
.../flex/core/IItemRendererClassFactory.js | 38 -
.../apache/flex/core/IItemRendererFactory.js | 45 -
.../org/apache/flex/core/IItemRendererParent.js | 48 -
.../js/src/org/apache/flex/core/ILayoutChild.js | 42 -
.../js/src/org/apache/flex/core/ILayoutHost.js | 46 -
.../apache/flex/core/IListPresentationModel.js | 60 --
.../src/org/apache/flex/core/IMXMLDocument.js | 41 -
.../org/apache/flex/core/IMeasurementBead.js | 38 -
.../Core/js/src/org/apache/flex/core/IParent.js | 70 --
.../src/org/apache/flex/core/IParentIUIBase.js | 46 -
.../js/src/org/apache/flex/core/IPopUpHost.js | 45 -
.../src/org/apache/flex/core/IRollOverModel.js | 58 --
.../apache/flex/core/ISelectableItemRenderer.js | 75 --
.../src/org/apache/flex/core/ISelectionModel.js | 65 --
.../js/src/org/apache/flex/core/IStatesImpl.js | 47 -
.../Core/js/src/org/apache/flex/core/IStrand.js | 70 --
.../org/apache/flex/core/IStyleableObject.js | 46 -
.../js/src/org/apache/flex/core/ITextModel.js | 54 --
.../Core/js/src/org/apache/flex/core/IUIBase.js | 40 -
.../js/src/org/apache/flex/core/IValuesImpl.js | 73 --
.../js/src/org/apache/flex/core/IViewport.js | 44 -
.../src/org/apache/flex/core/IViewportModel.js | 44 -
.../flex/core/ItemRendererClassFactory.js | 96 --
.../js/src/org/apache/flex/core/ListBase.js | 179 ----
.../apache/flex/core/ListBaseStrandChildren.js | 112 ---
.../org/apache/flex/core/SimpleApplication.js | 49 --
.../org/apache/flex/core/SimpleCSSValuesImpl.js | 361 --------
.../org/apache/flex/core/SimpleStatesImpl.js | 221 -----
.../org/apache/flex/core/SimpleValuesImpl.js | 33 -
.../Core/js/src/org/apache/flex/core/UIBase.js | 872 -------------------
.../src/org/apache/flex/core/ValuesManager.js | 57 --
.../js/src/org/apache/flex/core/ViewBase.js | 143 ---
.../src/org/apache/flex/events/BrowserEvent.js | 162 ----
.../src/org/apache/flex/events/CustomEvent.js | 58 --
.../src/org/apache/flex/events/ElementEvents.js | 52 --
.../Core/js/src/org/apache/flex/events/Event.js | 71 --
.../org/apache/flex/events/EventDispatcher.js | 138 ---
.../org/apache/flex/events/IEventDispatcher.js | 40 -
.../js/src/org/apache/flex/events/MouseEvent.js | 186 ----
.../org/apache/flex/events/ValueChangeEvent.js | 119 ---
.../js/src/org/apache/flex/events/ValueEvent.js | 69 --
.../org/apache/flex/events/utils/MouseUtils.js | 62 --
.../Core/js/src/org/apache/flex/geom/Point.js | 56 --
.../js/src/org/apache/flex/geom/Rectangle.js | 104 ---
.../Core/js/src/org/apache/flex/geom/Size.js | 56 --
.../js/src/org/apache/flex/states/AddItems.js | 249 ------
.../org/apache/flex/states/SetEventHandler.js | 152 ----
.../src/org/apache/flex/states/SetProperty.js | 173 ----
.../Core/js/src/org/apache/flex/states/State.js | 82 --
.../js/src/org/apache/flex/svg/TextButton.js | 90 --
.../apache/flex/svg/assets/TextButton_Skin.svg | 279 ------
.../js/src/org/apache/flex/utils/BinaryData.js | 223 -----
.../org/apache/flex/utils/CSSContainerUtils.js | 83 --
.../js/src/org/apache/flex/utils/EffectTimer.js | 94 --
.../js/src/org/apache/flex/utils/Language.js | 316 -------
.../apache/flex/utils/MXMLDataInterpreter.js | 412 ---------
.../src/org/apache/flex/utils/MixinManager.js | 62 --
.../js/src/org/apache/flex/utils/PointUtils.js | 82 --
.../Core/js/src/org/apache/flex/utils/Timer.js | 148 ----
.../js/src/org/apache/flex/utils/UIUtils.js | 84 --
.../flex/utils/ViewSourceContextMenuOption.js | 47 -
.../projects/CreateJS/.actionScriptProperties | 2 +-
.../src/org/apache/flex/createjs/Application.as | 182 ++--
.../as/src/org/apache/flex/createjs/CheckBox.as | 100 ++-
.../as/src/org/apache/flex/createjs/Label.as | 58 +-
.../src/org/apache/flex/createjs/TextButton.as | 74 +-
.../src/org/apache/flex/createjs/core/UIBase.as | 328 ++++++-
.../org/apache/flex/createjs/core/ViewBase.as | 157 +++-
frameworks/projects/CreateJS/build.xml | 98 ++-
.../projects/CreateJS/compile-asjs-config.xml | 83 ++
frameworks/projects/CreateJS/compile-config.xml | 4 +-
.../CreateJS/js/src/createjs_externals.js | 20 -
.../src/org/apache/flex/createjs/Application.js | 121 ---
.../js/src/org/apache/flex/createjs/CheckBox.js | 131 ---
.../js/src/org/apache/flex/createjs/Label.js | 64 --
.../src/org/apache/flex/createjs/TextButton.js | 91 --
.../src/org/apache/flex/createjs/core/UIBase.js | 136 ---
.../org/apache/flex/createjs/core/ViewBase.js | 76 --
.../projects/DragDrop/.actionScriptProperties | 2 +-
.../projects/DragDrop/as/src/DragDropClasses.as | 1 +
.../as/src/org/apache/flex/core/DropType.as | 64 ++
.../as/src/org/apache/flex/events/DragEvent.as | 86 +-
.../src/org/apache/flex/events/DragEventBase.as | 51 ++
.../beads/controllers/DragMouseController.as | 261 ++++++
.../beads/controllers/DropMouseController.as | 185 ++++
.../DragDrop/asjs/src/DragDropASJSClasses.as | 34 -
.../asjs/src/org/apache/flex/core/DropType.as | 64 --
.../beads/controllers/DragMouseController.as | 261 ------
.../beads/controllers/DropMouseController.as | 181 ----
frameworks/projects/DragDrop/build.xml | 87 +-
.../projects/DragDrop/compile-asjs-config.xml | 19 +-
frameworks/projects/DragDrop/compile-config.xml | 6 -
.../js/src/org/apache/flex/events/DragEvent.js | 146 ----
.../projects/Effects/as/src/EffectsClasses.as | 6 +-
.../flex/core/StatesWithTransitionsImpl.as | 346 ++++++++
.../as/src/org/apache/flex/effects/Effect.as | 263 ++++++
.../as/src/org/apache/flex/effects/Fade.as | 165 ++++
.../as/src/org/apache/flex/effects/IEffect.as | 136 +++
.../as/src/org/apache/flex/effects/Move.as | 240 +++++
.../as/src/org/apache/flex/effects/Parallel.as | 152 ++++
.../org/apache/flex/effects/PlatformWiper.as | 50 +-
.../as/src/org/apache/flex/effects/Resize.as | 197 +++++
.../as/src/org/apache/flex/effects/Sequence.as | 152 ++++
.../as/src/org/apache/flex/effects/Tween.as | 665 ++++++++++++++
.../as/src/org/apache/flex/effects/Wipe.as | 156 ++++
.../as/src/org/apache/flex/states/Transition.as | 80 ++
.../Effects/asjs/src/EffectsASJSClasses.as | 38 -
.../flex/core/StatesWithTransitionsImpl.as | 346 --------
.../asjs/src/org/apache/flex/effects/Effect.as | 263 ------
.../asjs/src/org/apache/flex/effects/Fade.as | 165 ----
.../asjs/src/org/apache/flex/effects/IEffect.as | 136 ---
.../asjs/src/org/apache/flex/effects/Move.as | 240 -----
.../src/org/apache/flex/effects/Parallel.as | 152 ----
.../asjs/src/org/apache/flex/effects/Resize.as | 197 -----
.../src/org/apache/flex/effects/Sequence.as | 152 ----
.../asjs/src/org/apache/flex/effects/Tween.as | 665 --------------
.../asjs/src/org/apache/flex/effects/Wipe.as | 156 ----
.../src/org/apache/flex/states/Transition.as | 80 --
frameworks/projects/Effects/build.xml | 91 +-
.../projects/Effects/compile-asjs-config.xml | 19 +-
frameworks/projects/Effects/compile-config.xml | 6 -
.../org/apache/flex/effects/PlatformWiper.js | 85 --
frameworks/projects/Flat/as/src/FlatClasses.as | 15 +-
.../as/src/org/apache/flex/flat/CheckBox.as | 116 ++-
.../as/src/org/apache/flex/flat/DropDownList.as | 324 ++++++-
.../as/src/org/apache/flex/flat/RadioButton.as | 200 ++++-
frameworks/projects/Flat/build.xml | 92 +-
.../projects/Flat/compile-asjs-config.xml | 80 ++
frameworks/projects/Flat/compile-config.xml | 8 +-
frameworks/projects/Flat/flat-as-manifest.xml | 26 +
frameworks/projects/Flat/flat-manifest.xml | 6 -
.../js/src/org/apache/flex/flat/CheckBox.js | 138 ---
.../js/src/org/apache/flex/flat/DropDownList.js | 296 -------
.../js/src/org/apache/flex/flat/RadioButton.js | 228 -----
.../Formatters/as/src/FormattersClasses.as | 7 +
.../as/src/org/apache/flex/core/FormatBase.as | 2 -
.../flex/html/accessories/CurrencyFormatter.as | 215 +++++
.../html/accessories/DateFormatMMDDYYYYBead.as | 158 ++++
.../flex/html/accessories/NumberFormatter.as | 210 +++++
.../flex/html/beads/FormatableLabelView.as | 90 ++
.../flex/html/beads/FormatableTextInputView.as | 91 ++
.../asjs/src/FormattersASJSClasses.as | 36 -
.../flex/html/accessories/CurrencyFormatter.as | 215 -----
.../html/accessories/DateFormatMMDDYYYYBead.as | 158 ----
.../flex/html/accessories/NumberFormatter.as | 210 -----
.../flex/html/beads/FormatableLabelView.as | 90 --
.../flex/html/beads/FormatableTextInputView.as | 91 --
frameworks/projects/Formatters/build.xml | 105 ++-
.../projects/Formatters/compile-asjs-config.xml | 21 +-
.../projects/Formatters/compile-config.xml | 6 -
.../js/src/org/apache/flex/core/FormatBase.js | 126 ---
frameworks/projects/GoogleMaps/as/defaults.css | 3 +-
.../GoogleMaps/as/src/GoogleMapsClasses.as | 3 +
.../src/org/apache/flex/maps/google/Geometry.as | 30 -
.../org/apache/flex/maps/google/GoogleMap.as | 132 +++
.../src/org/apache/flex/maps/google/LatLng.as | 30 -
.../as/src/org/apache/flex/maps/google/Map.as | 233 -----
.../src/org/apache/flex/maps/google/Marker.as | 32 -
.../as/src/org/apache/flex/maps/google/Place.as | 43 -
.../flex/maps/google/beads/GoogleMapView.as | 571 ++++++++++++
.../apache/flex/maps/google/beads/MapView.as | 473 ----------
.../flex/maps/google/beads/MapView_original.as | 515 +++++++++++
.../apache/flex/maps/google/models/MapModel.as | 69 +-
frameworks/projects/GoogleMaps/build.xml | 121 +--
.../projects/GoogleMaps/compile-asjs-config.xml | 74 ++
.../projects/GoogleMaps/compile-config.xml | 4 +-
.../projects/GoogleMaps/google-manifest.xml | 2 +-
.../src/org/apache/flex/maps/google/Geometry.js | 50 --
.../src/org/apache/flex/maps/google/LatLng.js | 53 --
.../js/src/org/apache/flex/maps/google/Map.js | 360 --------
.../src/org/apache/flex/maps/google/Marker.js | 63 --
.../js/src/org/apache/flex/maps/google/Place.js | 93 --
.../apache/flex/maps/google/beads/MapView.js | 67 --
.../apache/flex/maps/google/models/MapModel.js | 108 ---
.../projects/Graphics/.actionScriptProperties | 2 +-
.../projects/Graphics/as/src/GraphicsClasses.as | 1 -
.../src/org/apache/flex/core/graphics/Circle.as | 52 +-
.../org/apache/flex/core/graphics/Ellipse.as | 53 +-
.../apache/flex/core/graphics/GradientBase.as | 19 +-
.../apache/flex/core/graphics/GradientEntry.as | 10 +-
.../apache/flex/core/graphics/GraphicShape.as | 114 ++-
.../flex/core/graphics/GraphicsContainer.as | 204 ++++-
.../src/org/apache/flex/core/graphics/IFill.as | 11 +-
.../org/apache/flex/core/graphics/IStroke.as | 8 +
.../apache/flex/core/graphics/LinearGradient.as | 79 +-
.../src/org/apache/flex/core/graphics/Path.as | 58 +-
.../src/org/apache/flex/core/graphics/Rect.as | 53 +-
.../org/apache/flex/core/graphics/SolidColor.as | 25 +-
.../flex/core/graphics/SolidColorStroke.as | 25 +-
.../src/org/apache/flex/core/graphics/Text.as | 83 +-
frameworks/projects/Graphics/build.xml | 100 ++-
.../projects/Graphics/compile-asjs-config.xml | 82 ++
frameworks/projects/Graphics/compile-config.xml | 4 +-
.../src/org/apache/flex/core/graphics/Circle.js | 101 ---
.../org/apache/flex/core/graphics/Ellipse.js | 80 --
.../apache/flex/core/graphics/GradientBase.js | 141 ---
.../apache/flex/core/graphics/GradientEntry.js | 126 ---
.../apache/flex/core/graphics/GraphicShape.js | 205 -----
.../flex/core/graphics/GraphicsContainer.js | 250 ------
.../src/org/apache/flex/core/graphics/IFill.js | 52 --
.../org/apache/flex/core/graphics/IStroke.js | 52 --
.../src/org/apache/flex/core/graphics/Line.js | 79 --
.../apache/flex/core/graphics/LinearGradient.js | 125 ---
.../src/org/apache/flex/core/graphics/Path.js | 101 ---
.../src/org/apache/flex/core/graphics/Rect.js | 80 --
.../org/apache/flex/core/graphics/SolidColor.js | 92 --
.../flex/core/graphics/SolidColorStroke.js | 109 ---
.../src/org/apache/flex/core/graphics/Text.js | 70 --
.../projects/HTML/.actionScriptProperties | 2 +-
frameworks/projects/HTML/as/defaults.css | 25 +-
frameworks/projects/HTML/as/src/HTMLClasses.as | 176 ++--
.../apache/flex/core/IScrollingLayoutParent.as | 68 ++
.../HTML/as/src/org/apache/flex/html/Alert.as | 94 +-
.../HTML/as/src/org/apache/flex/html/Button.as | 43 +-
.../as/src/org/apache/flex/html/ButtonBar.as | 23 +
.../as/src/org/apache/flex/html/CheckBox.as | 69 +-
.../as/src/org/apache/flex/html/CloseButton.as | 21 +
.../as/src/org/apache/flex/html/ComboBox.as | 165 +++-
.../as/src/org/apache/flex/html/Container.as | 31 +-
.../as/src/org/apache/flex/html/ControlBar.as | 23 +
.../as/src/org/apache/flex/html/DataGrid.as | 164 ++++
.../as/src/org/apache/flex/html/DateChooser.as | 74 ++
.../as/src/org/apache/flex/html/DateField.as | 95 ++
.../as/src/org/apache/flex/html/DropDownList.as | 78 ++
.../as/src/org/apache/flex/html/HContainer.as | 3 -
.../HTML/as/src/org/apache/flex/html/HRule.as | 22 +-
.../HTML/as/src/org/apache/flex/html/Image.as | 35 +-
.../org/apache/flex/html/ImageAndTextButton.as | 58 ++
.../as/src/org/apache/flex/html/ImageButton.as | 89 ++
.../HTML/as/src/org/apache/flex/html/Label.as | 58 +-
.../HTML/as/src/org/apache/flex/html/List.as | 65 +-
.../org/apache/flex/html/MXMLBeadViewBase.as | 317 +++++++
.../src/org/apache/flex/html/MultilineLabel.as | 16 +
.../src/org/apache/flex/html/NumericStepper.as | 71 +-
.../HTML/as/src/org/apache/flex/html/Panel.as | 15 +-
.../as/src/org/apache/flex/html/RadioButton.as | 147 +++-
.../as/src/org/apache/flex/html/SimpleAlert.as | 18 +-
.../as/src/org/apache/flex/html/SimpleList.as | 33 +
.../HTML/as/src/org/apache/flex/html/Slider.as | 83 +-
.../HTML/as/src/org/apache/flex/html/Spacer.as | 21 +-
.../HTML/as/src/org/apache/flex/html/Spinner.as | 41 +
.../as/src/org/apache/flex/html/TextArea.as | 39 +-
.../as/src/org/apache/flex/html/TextButton.as | 38 +-
.../as/src/org/apache/flex/html/TextInput.as | 81 +-
.../as/src/org/apache/flex/html/TitleBar.as | 23 +-
.../org/apache/flex/html/ToggleTextButton.as | 70 +-
.../as/src/org/apache/flex/html/VContainer.as | 3 -
.../HTML/as/src/org/apache/flex/html/VRule.as | 25 +-
.../accessories/NumericOnlyTextInputBead.as | 63 +-
.../flex/html/accessories/PasswordInputBead.as | 23 +-
.../flex/html/accessories/TextPromptBead.as | 57 +-
.../apache/flex/html/accessories/ToolTipBead.as | 141 +++
.../org/apache/flex/html/beads/ButtonBarView.as | 3 -
.../org/apache/flex/html/beads/ContainerView.as | 4 +-
.../flex/html/beads/DataGridColumnView.as | 104 +++
.../apache/flex/html/beads/DataGridLinesBead.as | 199 +++++
.../org/apache/flex/html/beads/DataGridView.as | 318 +++++++
.../DataItemRendererFactoryForArrayList.as | 174 ++++
.../DataItemRendererFactoryForColumnData.as | 142 +++
.../html/beads/DataProviderChangeNotifier.as | 154 ++++
.../apache/flex/html/beads/DateChooserView.as | 256 ++++++
.../org/apache/flex/html/beads/DateFieldView.as | 192 ++++
.../org/apache/flex/html/beads/IDataGridView.as | 36 +
.../org/apache/flex/html/beads/ISliderView.as | 8 +-
.../org/apache/flex/html/beads/ISpinnerView.as | 7 +-
.../apache/flex/html/beads/ImageButtonView.as | 77 +-
.../src/org/apache/flex/html/beads/ImageView.as | 110 ++-
.../flex/html/beads/NumericStepperView.as | 3 +-
.../src/org/apache/flex/html/beads/PanelView.as | 2 -
.../apache/flex/html/beads/SliderThumbView.as | 91 +-
.../apache/flex/html/beads/SliderTrackView.as | 80 +-
.../flex/html/beads/TitleBarMeasurementBead.as | 108 +++
.../apache/flex/html/beads/TitleBarView.mxml | 58 ++
.../controllers/DateChooserMouseController.as | 126 +++
.../controllers/DateFieldMouseController.as | 95 ++
.../controllers/ItemRendererMouseController.as | 78 +-
.../ListSingleSelectionMouseController.as | 4 +-
.../beads/controllers/SliderMouseController.as | 164 +++-
.../beads/controllers/SpinnerMouseController.as | 39 +-
.../flex/html/beads/layouts/BasicLayout.as | 517 ++++++-----
.../flex/html/beads/layouts/DataGridLayout.as | 157 ++++
.../FlexibleFirstChildHorizontalLayout.as | 244 ++++++
.../flex/html/beads/layouts/HorizontalLayout.as | 255 +++---
.../html/beads/layouts/LayoutChangeNotifier.as | 103 +++
.../layouts/OneFlexibleChildHorizontalLayout.as | 332 +++++++
.../layouts/OneFlexibleChildVerticalLayout.as | 459 ++++++++++
.../flex/html/beads/layouts/TileLayout.as | 157 ++--
.../html/beads/layouts/VerticalColumnLayout.as | 199 +++++
.../flex/html/beads/layouts/VerticalLayout.as | 343 +++++---
.../beads/models/ArrayListSelectionModel.as | 242 +++++
.../flex/html/beads/models/DataGridModel.as | 71 ++
.../beads/models/DataGridPresentationModel.as | 88 ++
.../flex/html/beads/models/DateChooserModel.as | 189 ++++
.../ButtonBarButtonItemRenderer.as | 4 +-
.../html/supportClasses/ContainerContentArea.as | 12 +-
.../flex/html/supportClasses/DataGridColumn.as | 127 +++
.../flex/html/supportClasses/DataGroup.as | 4 +-
.../html/supportClasses/DataItemRenderer.as | 83 +-
.../html/supportClasses/DateChooserButton.as | 67 ++
.../html/supportClasses/GraphicsItemRenderer.as | 295 +++++++
.../html/supportClasses/ScrollingViewport.as | 420 +++++----
.../html/supportClasses/StringItemRenderer.as | 98 ++-
.../supportClasses/TextFieldItemRenderer.as | 5 +-
.../apache/flex/html/supportClasses/Viewport.as | 50 +-
.../as/tests/FlexUnitFlexJSApplication.mxml | 46 +
frameworks/projects/HTML/as/tests/build.xml | 160 ++++
.../tests/flexUnitTests/DataGridColumnTester.as | 27 +
.../flexUnitTests/DataGridColumnTesterTest.as | 55 ++
.../projects/HTML/asjs/src/HTMLASJSClasses.as | 55 --
.../asjs/src/org/apache/flex/html/DataGrid.as | 164 ----
.../src/org/apache/flex/html/DateChooser.as | 74 --
.../asjs/src/org/apache/flex/html/DateField.as | 95 --
.../src/org/apache/flex/html/ImageButton.as | 60 --
.../org/apache/flex/html/MXMLBeadViewBase.as | 314 -------
.../apache/flex/html/accessories/ToolTipBead.as | 141 ---
.../flex/html/beads/DataGridColumnView.as | 104 ---
.../apache/flex/html/beads/DataGridLinesBead.as | 199 -----
.../org/apache/flex/html/beads/DataGridView.as | 318 -------
.../DataItemRendererFactoryForArrayList.as | 174 ----
.../DataItemRendererFactoryForColumnData.as | 142 ---
.../html/beads/DataProviderChangeNotifier.as | 154 ----
.../apache/flex/html/beads/DateChooserView.as | 256 ------
.../org/apache/flex/html/beads/DateFieldView.as | 192 ----
.../flex/html/beads/TitleBarMeasurementBead.as | 108 ---
.../apache/flex/html/beads/TitleBarView.mxml | 58 --
.../controllers/DateChooserMouseController.as | 126 ---
.../controllers/DateFieldMouseController.as | 95 --
.../FlexibleFirstChildHorizontalLayout.as | 244 ------
.../html/beads/layouts/LayoutChangeNotifier.as | 103 ---
.../layouts/OneFlexibleChildHorizontalLayout.as | 332 -------
.../layouts/OneFlexibleChildVerticalLayout.as | 459 ----------
.../html/beads/layouts/VerticalColumnLayout.as | 199 -----
.../beads/models/ArrayListSelectionModel.as | 242 -----
.../flex/html/beads/models/DataGridModel.as | 71 --
.../beads/models/DataGridPresentationModel.as | 88 --
.../flex/html/beads/models/DateChooserModel.as | 189 ----
.../flex/html/supportClasses/DataGridColumn.as | 127 ---
.../html/supportClasses/DateChooserButton.as | 67 --
.../html/supportClasses/GraphicsItemRenderer.as | 295 -------
.../asjs/tests/FlexUnitFlexJSApplication.mxml | 46 -
frameworks/projects/HTML/asjs/tests/build.xml | 160 ----
.../tests/flexUnitTests/DataGridColumnTester.as | 27 -
.../flexUnitTests/DataGridColumnTesterTest.as | 55 --
frameworks/projects/HTML/basic-as-manifest.xml | 37 +
frameworks/projects/HTML/basic-manifest.xml | 13 +-
frameworks/projects/HTML/build.xml | 85 +-
.../projects/HTML/compile-asjs-config.xml | 29 +-
frameworks/projects/HTML/compile-config.xml | 10 +-
.../HTML/js/src/org/apache/flex/html/Alert.js | 193 ----
.../HTML/js/src/org/apache/flex/html/Button.js | 61 --
.../js/src/org/apache/flex/html/ButtonBar.js | 85 --
.../js/src/org/apache/flex/html/CheckBox.js | 91 --
.../js/src/org/apache/flex/html/CloseButton.js | 55 --
.../js/src/org/apache/flex/html/ComboBox.js | 194 -----
.../js/src/org/apache/flex/html/Container.js | 123 ---
.../js/src/org/apache/flex/html/ControlBar.js | 59 --
.../js/src/org/apache/flex/html/DropDownList.js | 143 ---
.../js/src/org/apache/flex/html/HContainer.js | 42 -
.../HTML/js/src/org/apache/flex/html/HRule.js | 45 -
.../HTML/js/src/org/apache/flex/html/Image.js | 82 --
.../org/apache/flex/html/ImageAndTextButton.js | 103 ---
.../HTML/js/src/org/apache/flex/html/Label.js | 71 --
.../HTML/js/src/org/apache/flex/html/List.js | 196 -----
.../src/org/apache/flex/html/MultilineLabel.js | 69 --
.../src/org/apache/flex/html/NumericStepper.js | 163 ----
.../HTML/js/src/org/apache/flex/html/Panel.js | 163 ----
.../js/src/org/apache/flex/html/RadioButton.js | 180 ----
.../js/src/org/apache/flex/html/SimpleAlert.js | 51 --
.../js/src/org/apache/flex/html/SimpleList.js | 111 ---
.../HTML/js/src/org/apache/flex/html/Slider.js | 173 ----
.../HTML/js/src/org/apache/flex/html/Spacer.js | 44 -
.../HTML/js/src/org/apache/flex/html/Spinner.js | 171 ----
.../js/src/org/apache/flex/html/TextArea.js | 71 --
.../js/src/org/apache/flex/html/TextButton.js | 54 --
.../js/src/org/apache/flex/html/TextInput.js | 98 ---
.../js/src/org/apache/flex/html/TitleBar.js | 87 --
.../org/apache/flex/html/ToggleTextButton.js | 122 ---
.../HTML/js/src/org/apache/flex/html/ToolTip.js | 40 -
.../js/src/org/apache/flex/html/VContainer.js | 42 -
.../HTML/js/src/org/apache/flex/html/VRule.js | 50 --
.../accessories/NumericOnlyTextInputBead.js | 92 --
.../flex/html/accessories/PasswordInputBead.js | 54 --
.../flex/html/accessories/TextPromptBead.js | 64 --
.../org/apache/flex/html/beads/ButtonBarView.js | 70 --
.../org/apache/flex/html/beads/ContainerView.js | 433 ---------
.../DataItemRendererFactoryForArrayData.js | 140 ---
.../src/org/apache/flex/html/beads/IListView.js | 43 -
.../apache/flex/html/beads/ImageButtonView.js | 45 -
.../src/org/apache/flex/html/beads/ImageView.js | 117 ---
.../src/org/apache/flex/html/beads/ListView.js | 169 ----
.../src/org/apache/flex/html/beads/PanelView.js | 204 -----
.../flex/html/beads/ScrollingContainerView.js | 81 --
.../apache/flex/html/beads/SliderThumbView.js | 62 --
.../apache/flex/html/beads/SliderTrackView.js | 62 --
.../flex/html/beads/TextInputWithBorderView.js | 45 -
.../TextItemRendererFactoryForArrayData.js | 117 ---
.../controllers/ItemRendererMouseController.js | 127 ---
.../ListSingleSelectionMouseController.js | 77 --
.../beads/controllers/SliderMouseController.js | 172 ----
.../beads/controllers/SpinnerMouseController.js | 85 --
.../flex/html/beads/layouts/BasicLayout.js | 125 ---
.../flex/html/beads/layouts/ButtonBarLayout.js | 110 ---
.../flex/html/beads/layouts/HorizontalLayout.js | 100 ---
.../flex/html/beads/layouts/TileLayout.js | 168 ----
.../flex/html/beads/layouts/VerticalLayout.js | 97 ---
.../html/beads/models/ArraySelectionModel.js | 127 ---
.../apache/flex/html/beads/models/ImageModel.js | 66 --
.../html/beads/models/ListPresentationModel.js | 94 --
.../apache/flex/html/beads/models/PanelModel.js | 110 ---
.../apache/flex/html/beads/models/RangeModel.js | 158 ----
.../apache/flex/html/beads/models/TextModel.js | 68 --
.../flex/html/beads/models/TitleBarModel.js | 112 ---
.../flex/html/beads/models/ViewportModel.js | 93 --
.../ButtonBarButtonItemRenderer.js | 105 ---
.../html/supportClasses/ContainerContentArea.js | 80 --
.../flex/html/supportClasses/DataGridColumn.js | 75 --
.../flex/html/supportClasses/DataGroup.js | 138 ---
.../html/supportClasses/DataItemRenderer.js | 134 ---
.../html/supportClasses/ScrollingViewport.js | 130 ---
.../html/supportClasses/StringItemRenderer.js | 144 ---
.../html/supportClasses/UIItemRendererBase.js | 181 ----
.../apache/flex/html/supportClasses/Viewport.js | 112 ---
frameworks/projects/HTML5/build.xml | 121 +--
.../projects/HTML5/compile-asjs-config.xml | 70 ++
frameworks/projects/HTML5/compile-config.xml | 4 +-
.../js/src/org/apache/flex/html5/CheckBox.js | 76 --
.../js/src/org/apache/flex/html5/ComboBox.js | 187 ----
.../src/org/apache/flex/html5/DropDownList.js | 29 -
.../HTML5/js/src/org/apache/flex/html5/Label.js | 57 --
.../HTML5/js/src/org/apache/flex/html5/List.js | 42 -
.../js/src/org/apache/flex/html5/RadioButton.js | 87 --
.../js/src/org/apache/flex/html5/TextArea.js | 58 --
.../js/src/org/apache/flex/html5/TextButton.js | 59 --
.../js/src/org/apache/flex/html5/TextInput.js | 59 --
.../src/org/apache/flex/jquery/Application.as | 12 +
.../as/src/org/apache/flex/jquery/CheckBox.as | 1 +
.../src/org/apache/flex/jquery/RadioButton.as | 17 +
.../as/src/org/apache/flex/jquery/TextButton.as | 26 +
.../org/apache/flex/jquery/ToggleTextButton.as | 61 +-
frameworks/projects/JQuery/build.xml | 130 +--
.../projects/JQuery/compile-asjs-config.xml | 86 ++
frameworks/projects/JQuery/compile-config.xml | 4 +-
.../projects/JQuery/js/src/jquery_externals.js | 21 -
.../src/org/apache/flex/jquery/Application.js | 42 -
.../js/src/org/apache/flex/jquery/CheckBox.js | 88 --
.../src/org/apache/flex/jquery/RadioButton.js | 191 ----
.../js/src/org/apache/flex/jquery/TextButton.js | 69 --
.../org/apache/flex/jquery/ToggleTextButton.js | 149 ----
frameworks/projects/Mobile/as/defaults.css | 33 +
.../projects/Mobile/as/src/CordovaClasses.as | 36 +
.../projects/Mobile/as/src/MobileClasses.as | 13 +-
.../Mobile/as/src/org/apache/cordova/Weinre.as | 24 +-
.../as/src/org/apache/cordova/camera/Camera.as | 92 +-
.../as/src/org/apache/flex/mobile/IView.as | 43 +
.../src/org/apache/flex/mobile/IViewManager.as | 42 +
.../src/org/apache/flex/mobile/ManagerBase.as | 35 +-
.../apache/flex/mobile/StackedViewManager.as | 161 ++++
.../org/apache/flex/mobile/TabbedViewManager.as | 85 ++
.../as/src/org/apache/flex/mobile/View.as | 103 +++
.../org/apache/flex/mobile/ViewManagerBase.as | 236 +++++
.../flex/mobile/beads/StackedViewManagerView.as | 127 +++
.../flex/mobile/beads/TabbedViewManagerView.as | 139 +++
.../apache/flex/mobile/beads/ViewManagerView.as | 165 ++++
.../apache/flex/mobile/chrome/NavigationBar.as | 103 +++
.../src/org/apache/flex/mobile/chrome/TabBar.as | 50 ++
.../org/apache/flex/mobile/chrome/ToolBar.as | 80 ++
.../flex/mobile/models/ViewManagerModel.as | 263 ++++++
frameworks/projects/Mobile/asjs/defaults.css | 33 -
.../Mobile/asjs/src/MobileASJSClasses.as | 41 -
.../asjs/src/org/apache/flex/mobile/IView.as | 43 -
.../src/org/apache/flex/mobile/IViewManager.as | 42 -
.../apache/flex/mobile/StackedViewManager.as | 161 ----
.../org/apache/flex/mobile/TabbedViewManager.as | 85 --
.../asjs/src/org/apache/flex/mobile/View.as | 96 --
.../org/apache/flex/mobile/ViewManagerBase.as | 229 -----
.../flex/mobile/beads/StackedViewManagerView.as | 127 ---
.../flex/mobile/beads/TabbedViewManagerView.as | 139 ---
.../apache/flex/mobile/beads/ViewManagerView.as | 165 ----
.../apache/flex/mobile/chrome/NavigationBar.as | 103 ---
.../src/org/apache/flex/mobile/chrome/TabBar.as | 50 --
.../org/apache/flex/mobile/chrome/ToolBar.as | 81 --
.../flex/mobile/models/ViewManagerModel.as | 263 ------
frameworks/projects/Mobile/build.xml | 102 ++-
.../projects/Mobile/compile-asjs-config.xml | 30 +-
frameworks/projects/Mobile/compile-config.xml | 11 +-
.../js/src/org/apache/cordova/Application.js | 61 --
.../Mobile/js/src/org/apache/cordova/Weinre.js | 67 --
.../js/src/org/apache/cordova/camera/Camera.js | 136 ---
.../src/org/apache/flex/mobile/ManagerBase.js | 136 ---
.../src/org/apache/flex/net/BinaryUploader.as | 277 ++++--
.../as/src/org/apache/flex/net/HTTPService.as | 266 ++++--
.../src/org/apache/flex/net/HTTPServiceBase.as | 47 +
frameworks/projects/Network/build.xml | 102 ++-
.../projects/Network/compile-asjs-config.xml | 82 ++
frameworks/projects/Network/compile-config.xml | 4 +-
.../src/org/apache/flex/net/BinaryUploader.js | 360 --------
.../js/src/org/apache/flex/net/HTTPHeader.js | 63 --
.../js/src/org/apache/flex/net/HTTPService.js | 420 ---------
manualtests/FlexJSTest_createjs/build.xml | 2 +
manualtests/build_example.xml | 12 +-
833 files changed, 32846 insertions(+), 50746 deletions(-)
----------------------------------------------------------------------
[44/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] -
back-port of GoogleMaps.
Posted by ah...@apache.org.
back-port of GoogleMaps.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/dd81a263
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/dd81a263
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/dd81a263
Branch: refs/heads/develop
Commit: dd81a263ff695e262cbd1b0d16c150c4aac5e767
Parents: 325df7b
Author: Peter Ent <pe...@apache.org>
Authored: Wed Dec 16 15:46:19 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Dec 16 15:46:19 2015 -0500
----------------------------------------------------------------------
.../flex/maps/google/beads/GoogleMapView.as | 147 +++++++++++++++++--
.../projects/GoogleMaps/compile-asjs-config.xml | 8 +-
2 files changed, 138 insertions(+), 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dd81a263/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
index f8fb790..e705f80 100644
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
+++ b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
@@ -60,6 +60,14 @@ package org.apache.flex.maps.google.beads
COMPILE::JS
public class GoogleMapView extends BeadViewBase implements IBeadView
{
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
public function GoogleMapView()
{
super();
@@ -74,6 +82,14 @@ package org.apache.flex.maps.google.beads
private var _strand:IStrand;
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
override public function set strand(value:IStrand):void
{
super.strand = value;
@@ -97,6 +113,14 @@ package org.apache.flex.maps.google.beads
document.head.appendChild(script);
}
+ /**
+ * Adjusts the map to the given coordinate and zoom level.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
public function mapit( centerLat:Number, centerLng:Number, zoom:Number ):void
{
if (!initialized) {
@@ -118,6 +142,9 @@ package org.apache.flex.maps.google.beads
}
}
+ /**
+ * @private
+ */
private function finishInitialization():void
{
mapit(37.333, -121.900, 12);
@@ -125,25 +152,58 @@ package org.apache.flex.maps.google.beads
dispatchEvent(new Event('ready'));
}
+ /**
+ * Centers the map on the address given.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
public function centerOnAddress(value:String):void
{
if (geocoder == null) geocoder = new Geocoder();
geocoder.geocode({address:value}, positionHandler);
}
+ /**
+ * Sets the center of the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
public function setCenter(location:LatLng):void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
model.currentCenter = new LatLng(location.lat(), location.lng());
- realMap.setCenter(model.currentCenter as LatLng);
+ realMap.setCenter(model.currentCenter);
}
+ /**
+ * Marks the current center of the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
public function markCurrentLocation():void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
createMarker(model.currentCenter as LatLng);
}
+ /**
+ * Finds the given address and places a marker on it. This function may be dropped
+ * since centerOnAddress + markCurrentLocation does the same thing.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
public function markAddress(address:String):void
{
if (initialized) {
@@ -152,13 +212,33 @@ package org.apache.flex.maps.google.beads
}
}
+ /**
+ * Creates a marker for placement on the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ * @flexjsignorecoercion google.maps.Marker
+ */
public function createMarker(location:LatLng):Marker
{
var marker:Marker = new Marker({map:realMap, position:location});
- google.maps.event.addListener(marker, 'click', goog.bind(markerClicked, this));
+ // google.maps.event.addListener(marker, 'click', goog.bind(markerClicked, this));
+ marker.addListener('click', markerClicked);
+
return marker;
}
+ /**
+ * Performs a search near the center of map. The result is a set of
+ * markers displayed on the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
public function nearbySearch(placeName:String):void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
@@ -168,6 +248,14 @@ package org.apache.flex.maps.google.beads
service.nearbySearch({location:model.currentCenter, radius:5000, name:placeName}, searchResultsHandler);
}
+ /**
+ * Clears the previous search results.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
public function clearSearchResults():void
{
if (markers) {
@@ -181,6 +269,9 @@ package org.apache.flex.maps.google.beads
// Callbacks
+ /**
+ * @private
+ */
public function centerChangeHandler() : void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
@@ -190,6 +281,9 @@ package org.apache.flex.maps.google.beads
(_strand as IEventDispatcher).dispatchEvent(newEvent);
}
+ /**
+ * @private
+ */
public function boundsChangeHandler():void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
@@ -199,6 +293,9 @@ package org.apache.flex.maps.google.beads
(_strand as IEventDispatcher).dispatchEvent(newEvent);
}
+ /**
+ * @private
+ */
public function zoomChangeHandler():void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
@@ -208,28 +305,38 @@ package org.apache.flex.maps.google.beads
(_strand as IEventDispatcher).dispatchEvent(newEvent);
}
+ /**
+ * @private
+ */
public function positionHandler(results:Array, status:String):void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
if (status == GeocoderStatus.OK) {
model.currentCenter = results[0].geometry.location;
- realMap.setCenter(model.currentCenter as LatLng);
+ realMap.setCenter(model.currentCenter);
// dispatch an event to indicate the map has been centered
}
}
+ /**
+ * @flexjsignorecoercion google.maps.Marker
+ * @flexjsignorecoercion google.maps.LatLng
+ */
public function geocodeHandler(results:Array, status:String):void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
if (status == GeocoderStatus.OK) {
model.currentCenter = results[0].geometry.location;
- realMap.setCenter(model.currentCenter as LatLng);
+ realMap.setCenter(model.currentCenter);
var marker:Marker = new Marker({map:realMap, position:model.currentCenter});
}
}
+ /**
+ * @private
+ */
public function searchResultsHandler(results:Array, status:String):void
{
searchResults = [];
@@ -270,16 +377,22 @@ package org.apache.flex.maps.google.beads
}
}
- public function markerClicked(marker:Marker, event:Object):void
+ /**
+ * @flexjsignorecoercion google.maps.Marker
+ * @flexjsignorecoercion google.maps.LatLng
+ */
+ public function markerClicked(marker:Marker):void
{
- var newMarker:Marker = new Marker();
- var pos:LatLng = marker.getPosition();
- newMarker.setPosition(pos);
- newMarker.setTitle(marker.getTitle());
- newMarker.setMap(realMap);
-
- var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- model.selectedMarker = newMarker;
+ var pos:LatLng = marker["latLng"] as LatLng;//marker.getPosition();
+
+ for (var i:int=0; i < markers.length; i++) {
+ var test:LatLng = marker.getPosition();
+ if (test.lat() == pos.lat() && test.lng() == pos.lng()) {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.selectedMarker = markers[i];
+ break;
+ }
+ }
var newEvent:Event = new Event('markerClicked');
dispatchEvent(newEvent);
@@ -441,6 +554,14 @@ package org.apache.flex.maps.google.beads
}
+ /**
+ * Clears the previous search results.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
public function clearSearchResults():void
{
// not implemented
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dd81a263/frameworks/projects/GoogleMaps/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/compile-asjs-config.xml b/frameworks/projects/GoogleMaps/compile-asjs-config.xml
index e17db6a..f76a6f2 100644
--- a/frameworks/projects/GoogleMaps/compile-asjs-config.xml
+++ b/frameworks/projects/GoogleMaps/compile-asjs-config.xml
@@ -59,10 +59,10 @@
<warn-no-constructor>false</warn-no-constructor>
</compiler>
-
- <include-sources>
- <path-element>as/src</path-element>
- </include-sources>
+
+ <include-classes>
+ <class>GoogleMapsClasses</class>
+ </include-classes>
<include-namespaces>
<uri>library://ns.apache.org/flexjs/google</uri>
[33/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - remove
the last of the handwritten js files (except for googlemaps)
Posted by ah...@apache.org.
remove the last of the handwritten js files (except for googlemaps)
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/46e3dc61
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/46e3dc61
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/46e3dc61
Branch: refs/heads/develop
Commit: 46e3dc61aa72abbe781e40d115ab18d0cd5b71f8
Parents: 20e764d
Author: Alex Harui <ah...@apache.org>
Authored: Mon Dec 14 08:08:45 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 14 08:08:45 2015 -0800
----------------------------------------------------------------------
.../CreateJS/js/src/createjs_externals.js | 20 --
.../src/org/apache/flex/createjs/Application.js | 121 --------
.../js/src/org/apache/flex/createjs/CheckBox.js | 131 --------
.../js/src/org/apache/flex/createjs/Label.js | 64 ----
.../src/org/apache/flex/createjs/TextButton.js | 91 ------
.../src/org/apache/flex/createjs/core/UIBase.js | 136 ---------
.../org/apache/flex/createjs/core/ViewBase.js | 76 -----
.../js/src/org/apache/flex/flat/CheckBox.js | 138 ---------
.../js/src/org/apache/flex/flat/DropDownList.js | 296 -------------------
.../js/src/org/apache/flex/flat/RadioButton.js | 228 --------------
.../projects/Formatters/compile-config.xml | 4 -
.../js/src/org/apache/flex/core/FormatBase.js | 126 --------
frameworks/projects/HTML5/compile-config.xml | 4 +-
.../js/src/org/apache/flex/html5/CheckBox.js | 76 -----
.../js/src/org/apache/flex/html5/ComboBox.js | 187 ------------
.../src/org/apache/flex/html5/DropDownList.js | 29 --
.../HTML5/js/src/org/apache/flex/html5/Label.js | 57 ----
.../HTML5/js/src/org/apache/flex/html5/List.js | 42 ---
.../js/src/org/apache/flex/html5/RadioButton.js | 87 ------
.../js/src/org/apache/flex/html5/TextArea.js | 58 ----
.../js/src/org/apache/flex/html5/TextButton.js | 59 ----
.../js/src/org/apache/flex/html5/TextInput.js | 59 ----
.../projects/JQuery/js/src/jquery_externals.js | 21 --
.../src/org/apache/flex/jquery/Application.js | 42 ---
.../js/src/org/apache/flex/jquery/CheckBox.js | 88 ------
.../src/org/apache/flex/jquery/RadioButton.js | 191 ------------
.../js/src/org/apache/flex/jquery/TextButton.js | 69 -----
.../org/apache/flex/jquery/ToggleTextButton.js | 149 ----------
28 files changed, 2 insertions(+), 2647 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/createjs_externals.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/createjs_externals.js b/frameworks/projects/CreateJS/js/src/createjs_externals.js
deleted file mode 100644
index 7daaff1..0000000
--- a/frameworks/projects/CreateJS/js/src/createjs_externals.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
- * This file is used to establish external APIs so the closure-compiler
- * can resolve references and won't minify names
- */
-function createjs() {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Application.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Application.js
deleted file mode 100644
index b1449e0..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Application.js
+++ /dev/null
@@ -1,121 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-// ------------------------------------------------------------------
-// createjs
-// ------------------------------------------------------------------
-
-// Bring in the createjs sources. You can use the minified versions for
-// better performance.
-//var mainjs = document.createElement('script');
-//mainjs.src = './createjs/easeljs-0.6.0.min.js';
-//document.head.appendChild(mainjs);
-
-// ------------------------------------------------------------------
-// end createjs
-// ------------------------------------------------------------------
-
-goog.provide('org.apache.flex.createjs.Application');
-
-goog.require('org.apache.flex.core.HTMLElementWrapper');
-goog.require('org.apache.flex.utils.MXMLDataInterpreter');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.HTMLElementWrapper}
- */
-org.apache.flex.createjs.Application = function() {
- org.apache.flex.createjs.Application.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.createjs.Application,
- org.apache.flex.core.HTMLElementWrapper);
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.Application.prototype.controller = null;
-
-
-/**
- * @export
- * @type {org.apache.flex.createjs.core.ViewBase}
- */
-org.apache.flex.createjs.Application.prototype.initialView = null;
-
-
-/**
- * @export
- * @type {createjs.Stage}
- */
-org.apache.flex.createjs.Application.prototype.stage = null;
-
-
-/**
- * @export
- * @type {org.apache.flex.events.EventDispatcher}
- */
-org.apache.flex.createjs.Application.prototype.model = null;
-
-
-/**
- * @export
- * @type {org.apache.flex.core.SimpleValuesImpl}
- */
-org.apache.flex.createjs.Application.prototype.valuesImpl = null;
-
-
-/**
- * @export
- */
-org.apache.flex.createjs.Application.prototype.start = function() {
- var body;
-
- // For createjs, the application is the same as the canvas
- // and it provides convenient access to the stage.
-
- this.element = document.createElement('canvas');
- this.element.id = 'flexjsCanvas';
- this.element.width = 700;
- this.element.height = 500;
-
- body = document.getElementsByTagName('body')[0];
- body.appendChild(this.element);
-
- this.stage = new createjs.Stage('flexjsCanvas');
-
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this,
- this.MXMLProperties);
-
- this.dispatchEvent('initialize');
-
- this.initialView.applicationModel = this.model;
- this.addElement(this.initialView);
-
- this.dispatchEvent('viewChanged');
-};
-
-
-/**
- * @param {Object} c The child element.
- */
-org.apache.flex.createjs.core.Application.prototype.addElement =
- function(c) {
- this.stage.addChild(c.element);
- c.addedToParent();
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/CheckBox.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/CheckBox.js
deleted file mode 100644
index 4fa7714..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/CheckBox.js
+++ /dev/null
@@ -1,131 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.createjs.CheckBox');
-
-goog.require('org.apache.flex.createjs.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.createjs.core.UIBase}
- */
-org.apache.flex.createjs.CheckBox = function() {
- org.apache.flex.createjs.CheckBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.createjs.CheckBox,
- org.apache.flex.createjs.core.UIBase);
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.CheckBox.prototype.checkMark = null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.CheckBox.prototype.checkMarkBackground =
- null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.CheckBox.prototype.checkBoxLabel = null;
-
-
-/**
- * @override
- */
-org.apache.flex.createjs.CheckBox.prototype.createElement =
- function() {
- this.checkMarkBackground = new createjs.Shape();
- this.checkMarkBackground.name = 'checkmarkbackground';
- this.checkMarkBackground.graphics.beginFill('red').
- drawRoundRect(0, 0, 40, 40, 8);
- //this.checkMarkBackground.graphics.setStrokeStyle( 0 ).beginStroke('#000').
- // drawRect( 0, 0, this.width, this.height);
- //var hit = new createjs.Shape();
- //hit.graphics.beginFill("#000").drawRect(0, 0, this.width, this.height);
- //this.checkMarkBackground.hitArea = hit;
-
- this.checkMark = new createjs.Shape();
- this.checkMark.name = 'checkmark';
- this.checkMark.graphics.beginFill('white').drawRoundRect(0, 0, 32, 32, 6);
- this.checkMark.x = 4;
- this.checkMark.y = 4;
- this.checkMark.visible = this.selected;
-
- this.checkBoxLabel = new createjs.Text('checkbox', '20px Arial', '#ff7700');
- this.checkBoxLabel.name = 'label';
- this.checkBoxLabel.textAlign = 'left';
- this.checkBoxLabel.textBaseline = 'middle';
- this.checkBoxLabel.x = 45;
- this.checkBoxLabel.y = 40 / 2;
-
- this.element = new createjs.Container();
- this.element.name = 'checkbox';
- this.element.addChild(this.checkMarkBackground, this.checkBoxLabel,
- this.checkMark);
- // use bind(this) to avoid loose scope
- this.element.onClick = this.clickHandler.bind(this);
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.createjs.CheckBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.createjs.CheckBox} */
- get: function() {
- return this.checkBoxLabel.text;
- },
- /** @this {org.apache.flex.createjs.CheckBox} */
- set: function(value) {
- this.checkBoxLabel.text = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.createjs.CheckBox} */
- get: function() {
- return this.selected;
- },
- /** @this {org.apache.flex.createjs.CheckBox} */
- set: function(value) {
- this.checkMark.visible = this.selected = value;
- this.element.getStage().update();
- }
- }
-});
-
-
-/**
- * @export
- * @param {string|Object|goog.events.Event} event The event.
- */
-org.apache.flex.createjs.CheckBox.prototype.clickHandler =
- function(event) {
- this.selected = !this.selected;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Label.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Label.js
deleted file mode 100644
index d6751d9..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/Label.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.createjs.Label');
-
-goog.require('org.apache.flex.createjs.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.createjs.core.UIBase}
- */
-org.apache.flex.createjs.Label = function() {
- org.apache.flex.createjs.core.UIBase.call(this);
-};
-goog.inherits(org.apache.flex.createjs.Label,
- org.apache.flex.createjs.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.createjs.Label.prototype.createElement =
- function(p) {
- org.apache.flex.createjs.Label.base(this, 'createElement');
-
- this.element = new createjs.Text('default text', '20px Arial', '#ff7700');
- this.element.x = 0;
- this.element.y = 20;
- this.element.textBaseline = 'alphabetic';
- p.addChild(this.element);
- p.getStage().update();
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-};
-
-
-Object.defineProperties(org.apache.flex.createjs.Label.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.createjs.Label} */
- get: function() {
- return this.element.text;
- },
- /** @this {org.apache.flex.createjs.Label} */
- set: function(value) {
- this.element.text = value;
- this.element.getStage().update();
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/TextButton.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/TextButton.js
deleted file mode 100644
index b98c873..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/TextButton.js
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.createjs.TextButton');
-
-goog.require('org.apache.flex.createjs.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.createjs.core.UIBase}
- */
-org.apache.flex.createjs.TextButton = function() {
- org.apache.flex.createjs.core.UIBase.call(this);
-};
-goog.inherits(org.apache.flex.createjs.TextButton,
- org.apache.flex.createjs.core.UIBase);
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.TextButton.prototype.buttonLabel = null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.createjs.TextButton.prototype.buttonBackground =
- null;
-
-
-/**
- * @override
- */
-org.apache.flex.createjs.TextButton.prototype.createElement =
- function(p) {
-
- this.buttonBackground = new createjs.Shape();
- this.buttonBackground.name = 'background';
- this.buttonBackground.graphics.beginFill('red').
- drawRoundRect(0, 0, 200, 60, 10);
-
- this.buttonLabel = new createjs.Text('button', 'bold 24px Arial',
- '#FFFFFF');
- this.buttonLabel.name = 'label';
- this.buttonLabel.textAlign = 'center';
- this.buttonLabel.textBaseline = 'middle';
- this.buttonLabel.x = 200 / 2;
- this.buttonLabel.y = 60 / 2;
-
- this.element = new createjs.Container();
- this.element.name = 'button';
- this.element.x = 50;
- this.element.y = 25;
- this.element.addChild(this.buttonBackground, this.buttonLabel);
- p.addChild(this.element);
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-};
-
-
-Object.defineProperties(org.apache.flex.createjs.TextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.createjs.TextButton} */
- get: function() {
- return this.buttonLabel.text;
- },
- /** @this {org.apache.flex.createjs.TextButton} */
- set: function(value) {
- this.buttonLabel.text = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/UIBase.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/UIBase.js
deleted file mode 100644
index 1a2a13a..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/UIBase.js
+++ /dev/null
@@ -1,136 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.createjs.core.UIBase');
-
-goog.require('org.apache.flex.core.HTMLElementWrapper');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.HTMLElementWrapper}
- */
-org.apache.flex.createjs.core.UIBase = function() {
- org.apache.flex.createjs.core.UIBase.base(this, 'constructor');
-
- /**
- * @protected
- * @type {Object}
- */
- this.positioner = null;
-
- this.createElement();
-};
-goog.inherits(org.apache.flex.createjs.core.UIBase,
- org.apache.flex.core.HTMLElementWrapper);
-
-
-/**
- * @param {Object} c The child element.
- */
-org.apache.flex.createjs.core.UIBase.prototype.addElement =
- function(c) {
- this.addChild(c.element);
-};
-
-
-/**
- */
-org.apache.flex.createjs.core.UIBase.prototype.createElement =
- function() {
- this.element = new createjs.Container();
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-};
-
-
-Object.defineProperties(org.apache.flex.createjs.core.UIBase.prototype, {
- /** @export */
- x: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(pixels) {
- this.positioner.x = pixels;
- this.element.getStage().update();
- }
- },
- /** @export */
- y: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(pixels) {
- this.positioner.y = pixels;
- this.element.getStage().update();
- }
- },
- /** @export */
- width: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(pixels) {
- this.positioner.width = pixels;
- this.element.getStage().update();
- }
- },
- /** @export */
- height: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(pixels) {
- this.positioner.height = pixels;
- this.element.getStage().update();
- }
- },
- /** @export */
- id: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- get: function() {
- return this.name;
- },
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(value) {
- if (this.name !== value) {
- this.element.name = value;
- this.name = value;
- this.dispatchEvent('idChanged');
- }
- }
- },
- /** @export */
- model: {
- /** @this {org.apache.flex.createjs.core.UIBase} */
- get: function() {
- return this.model;
- },
- /** @this {org.apache.flex.createjs.core.UIBase} */
- set: function(value) {
- if (this.model !== value) {
- this.addBead(value);
- this.dispatchEvent('modelChanged');
- }
- }
- }
-});
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.createjs.core.UIBase.prototype.id = null;
-
-
-/**
- * @export
- * @type {object}
- */
-org.apache.flex.createjs.core.UIBase.prototype.model = null;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/ViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/ViewBase.js b/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/ViewBase.js
deleted file mode 100644
index 7345e61..0000000
--- a/frameworks/projects/CreateJS/js/src/org/apache/flex/createjs/core/ViewBase.js
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.createjs.core.ViewBase');
-
-goog.require('org.apache.flex.createjs.core.UIBase');
-goog.require('org.apache.flex.utils.MXMLDataInterpreter');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.createjs.core.UIBase}
- */
-org.apache.flex.createjs.core.ViewBase = function() {
- org.apache.flex.createjs.core.ViewBase.base(this, 'constructor');
-
- /**
- * @private
- * @type {org.apache.flex.createjs.core.ViewBase}
- */
- this.currentObject_ = null;
-};
-goog.inherits(org.apache.flex.createjs.core.ViewBase,
- org.apache.flex.createjs.core.UIBase);
-
-
-Object.defineProperties(org.apache.flex.createjs.core.ViewBase.prototype, {
- /** @export */
- applicationModel: {
- /** @this {org.apache.flex.createjs.core.ViewBase} */
- get: function() {
- return this.applicationModel_;
- },
- set: function(value) {
- this.applicationModel = value;
- }
- }
-});
-
-
-/**
- * @export
- * @type {Array}
- */
-org.apache.flex.createjs.core.ViewBase.prototype.MXMLProperties = null;
-
-
-/**
- * @export
- * @type {Array}
- */
-org.apache.flex.createjs.core.ViewBase.prototype.MXMLDescriptor = null;
-
-
-/**
- * @param {Object} model The model for this view.
- */
-org.apache.flex.createjs.core.ViewBase.prototype.initUI = function(model) {
- this.applicationModel = model;
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this,
- this.MXMLProperties);
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this,
- this, this.MXMLDescriptor);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Flat/js/src/org/apache/flex/flat/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/js/src/org/apache/flex/flat/CheckBox.js b/frameworks/projects/Flat/js/src/org/apache/flex/flat/CheckBox.js
deleted file mode 100644
index e8fcfea..0000000
--- a/frameworks/projects/Flat/js/src/org/apache/flex/flat/CheckBox.js
+++ /dev/null
@@ -1,138 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.flat.CheckBox');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.flat.CheckBox = function() {
- org.apache.flex.flat.CheckBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.flat.CheckBox,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.flat.CheckBox.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'CheckBox',
- qName: 'org.apache.flex.flat.CheckBox'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.flat.CheckBox.prototype.createElement =
- function() {
- var cb;
-
- this.element = document.createElement('label');
-
- this.input = document.createElement('input');
- this.input.type = 'checkbox';
- this.input.className = 'checkbox-input';
- this.input.addEventListener('change', goog.bind(this.selectionChangeHandler, this));
- this.element.appendChild(this.input);
-
- this.checkbox = document.createElement('span');
- this.checkbox.className = 'checkbox-icon';
- this.checkbox.addEventListener('mouseover', goog.bind(this.mouseOverHandler, this));
- this.checkbox.addEventListener('mouseout', goog.bind(this.mouseOutHandler, this));
- this.element.appendChild(this.checkbox);
-
- this.textNode = document.createTextNode('');
- this.element.appendChild(this.textNode);
- this.element.className = 'CheckBox';
- this.typeNames = 'CheckBox';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.input.flexjs_wrapper = this;
- this.checkbox.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.CheckBox.prototype.mouseOverHandler =
- function(e) {
- this.checkbox.className = 'checkbox-icon-hover';
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.CheckBox.prototype.mouseOutHandler =
- function(e) {
- if (this.input.checked)
- this.checkbox.className = 'checkbox-icon-checked';
- else
- this.checkbox.className = 'checkbox-icon';
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.CheckBox.prototype.selectionChangeHandler =
- function(e) {
- if (this.input.checked)
- this.checkbox.className = 'checkbox-icon-checked';
- else
- this.checkbox.className = 'checkbox-icon';
-};
-
-
-Object.defineProperties(org.apache.flex.flat.CheckBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.flat.CheckBox} */
- get: function() {
- return this.textNode.nodeValue;
- },
- /** @this {org.apache.flex.flat.CheckBox} */
- set: function(value) {
- this.textNode.nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.flat.CheckBox} */
- get: function() {
- return this.input.checked;
- },
- /** @this {org.apache.flex.flat.CheckBox} */
- set: function(value) {
- this.input.checked = value;
- if (value)
- this.checkbox.className = 'checkbox-icon-checked';
- else
- this.checkbox.className = 'checkbox-icon';
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js b/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
deleted file mode 100644
index 561f23c..0000000
--- a/frameworks/projects/Flat/js/src/org/apache/flex/flat/DropDownList.js
+++ /dev/null
@@ -1,296 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.flat.DropDownList');
-
-goog.require('org.apache.flex.core.ListBase');
-goog.require('org.apache.flex.html.beads.models.ArraySelectionModel');
-goog.require('org.apache.flex.utils.CSSUtils');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.flat.DropDownList = function() {
- org.apache.flex.flat.DropDownList.base(this, 'constructor');
- this.model = new org.apache.flex.html.beads.models.ArraySelectionModel();
-};
-goog.inherits(org.apache.flex.flat.DropDownList,
- org.apache.flex.core.ListBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.flat.DropDownList.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'DropDownList',
- qName: 'org.apache.flex.flat.DropDownList'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.flat.DropDownList.prototype.createElement =
- function() {
- var button, caret;
-
- this.element = document.createElement('div');
-
- this.button = button = document.createElement('button');
- button.className = 'dropdown-toggle-open-btn';
- if (this.className)
- button.className += ' ' + this.className;
- goog.events.listen(button, 'click', goog.bind(this.buttonClicked, this));
- this.element.appendChild(button);
-
- this.label = document.createElement('span');
- this.label.className = 'dropdown-label';
- button.appendChild(this.label);
- this.caret = caret = document.createElement('span');
- button.appendChild(caret);
- caret.className = 'dropdown-caret';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- // add a click handler so that a click outside of the combo box can
- // dismiss the pop-up should it be visible.
- goog.events.listen(document, 'click',
- goog.bind(this.dismissPopup, this));
-
- button.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
- this.label.flexjs_wrapper = this;
- caret.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @export
- * @param {Object} event The event.
- */
-org.apache.flex.flat.DropDownList.prototype.selectChanged =
- function(event) {
- var select;
-
- select = event.target;
-
- this.selectedIndex = parseInt(select.id, 10);
-
- this.menu.parentNode.removeChild(this.menu);
- this.menu = null;
-
- this.dispatchEvent('change');
-};
-
-
-/**
- * @export
- * @param {Object=} opt_event The event.
- */
-org.apache.flex.flat.DropDownList.prototype.dismissPopup =
- function(opt_event) {
- // remove the popup if it already exists
- if (this.menu) {
- this.menu.parentNode.removeChild(this.menu);
- this.menu = null;
- }
-};
-
-
-/**
- * @export
- * @param {Object} event The event.
- */
-org.apache.flex.flat.DropDownList.prototype.buttonClicked =
- function(event) {
- /**
- * @type {Array.<string>}
- */
- var dp;
- var i, button, left, n, opt, opts, pn, popup, select, si, top, width;
-
- event.stopPropagation();
-
- if (this.popup) {
- this.dismissPopup();
-
- return;
- }
-
- button = this.element.childNodes.item(0);
-
- pn = this.element;
- top = pn.offsetTop + button.offsetHeight;
- left = pn.offsetLeft;
- width = pn.offsetWidth;
-
- /*
- popup = document.createElement('div');
- popup.className = 'dropdown-menu';
- popup.id = 'test';
- popup.style.position = 'absolute';
- popup.style.top = top.toString() + 'px';
- popup.style.left = left.toString() + 'px';
- popup.style.width = width.toString() + 'px';
- popup.style.margin = '0px auto';
- popup.style.padding = '0px';
- popup.style.zIndex = '10000';
- */
-
- this.menu = select = document.createElement('ul');
- var el = /** @type {Element} */ (this.element);
- var cv = window.getComputedStyle(el);
- select.style.width = cv.width;
- goog.events.listen(select, 'click', goog.bind(this.selectChanged, this));
- select.className = 'dropdown-menu';
-
- var lf = this.labelField;
- dp = /** @type {Array.<string>} */ (this.dataProvider);
- n = dp.length;
- for (i = 0; i < n; i++) {
- opt = document.createElement('li');
- opt.style.backgroundColor = 'transparent';
- var ir = document.createElement('a');
- if (lf)
- ir.innerHTML = dp[i][lf];
- else
- ir.innerHTML = dp[i];
- ir.id = i.toString();
- if (i == this.selectedIndex)
- ir.className = 'dropdown-menu-item-renderer-selected';
- else
- ir.className = 'dropdown-menu-item-renderer';
- opt.appendChild(ir);
- select.appendChild(opt);
- }
-
- this.element.appendChild(select);
-};
-
-
-/**
- * @override
- */
-org.apache.flex.flat.DropDownList.prototype.addedToParent = function() {
- org.apache.flex.flat.DropDownList.base(this, 'addedToParent');
- var el = /** @type {Element} */ (this.button);
- var cv = window.getComputedStyle(el);
- var s = /** @type {string} */ (cv.paddingLeft);
- var pl = org.apache.flex.utils.CSSUtils.toNumber(s);
- s = /** @type {string} */ (cv.paddingRight);
- var pr = org.apache.flex.utils.CSSUtils.toNumber(s);
- s = /** @type {string} */ (cv.borderLeftWidth);
- var bl = org.apache.flex.utils.CSSUtils.toNumber(s);
- s = /** @type {string} */ (cv.borderRightWidth);
- var br = org.apache.flex.utils.CSSUtils.toNumber(s);
- var caretWidth = this.caret.offsetWidth;
- // 10 seems to factor spacing between span and extra FF padding?
- var fluff = pl + pr + bl + br + caretWidth + 1 + 10;
- var labelWidth = this.width - fluff;
- var strWidth = labelWidth.toString();
- strWidth += 'px';
- this.label.style.width = strWidth;
-};
-
-
-Object.defineProperties(org.apache.flex.flat.DropDownList.prototype, {
- /** @export */
- className: {
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return org.apache.flex.utils.Language.superGetter(org.apache.flex.flat.DropDownList, this, 'className');
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(org.apache.flex.flat.DropDownList, this, 'className', value);
- if (this.button) {
- this.button.className = this.typeNames ?
- value + ' ' + 'dropdown-toggle-open-btn' + ' ' + this.typeNames :
- value + ' ' + 'dropdown-toggle-open-btn';
- }
- }
- },
- dataProvider: {
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return this.model.dataProvider;
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- var dp, i, n, opt;
-
- this.model.dataProvider = value;
- }
- },
- /** @export */
- labelField: {
- // TODO: (aharui) copied from ListBase because you
- // can't just override the setter in a defineProps
- // structure.
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return this.model.labelField;
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- this.model.labelField = value;
- }
- },
- /** @export */
- selectedIndex: {
- // TODO: (aharui) copied from ListBase because you
- // can't just override the setter in a defineProps
- // structure.
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return this.model.selectedIndex;
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- this.model.selectedIndex = value;
- var lf = this.labelField;
- if (lf)
- this.label.innerHTML = this.selectedItem[lf];
- else
- this.label.innerHTML = this.selectedItem;
- }
- },
- /** @export */
- selectedItem: {
- // TODO: (aharui) copied from ListBase because you
- // can't just override the setter in a defineProps
- // structure.
- /** @this {org.apache.flex.flat.DropDownList} */
- get: function() {
- return this.model.selectedItem;
- },
- /** @this {org.apache.flex.flat.DropDownList} */
- set: function(value) {
- this.model.selectedItem = value;
- var lf = this.labelField;
- if (lf)
- this.label.innerHTML = this.selectedItem[lf];
- else
- this.label.innerHTML = this.selectedItem;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Flat/js/src/org/apache/flex/flat/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/js/src/org/apache/flex/flat/RadioButton.js b/frameworks/projects/Flat/js/src/org/apache/flex/flat/RadioButton.js
deleted file mode 100644
index fda6762..0000000
--- a/frameworks/projects/Flat/js/src/org/apache/flex/flat/RadioButton.js
+++ /dev/null
@@ -1,228 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.flat.RadioButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.flat.RadioButton = function() {
- org.apache.flex.flat.RadioButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.flat.RadioButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.flat.RadioButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'RadioButton',
- qName: 'org.apache.flex.flat.RadioButton'}] };
-
-
-/**
- * Provides unique name
- */
-org.apache.flex.flat.RadioButton.radioCounter = 0;
-
-
-/**
- * @override
- */
-org.apache.flex.flat.RadioButton.prototype.createElement =
- function() {
-
- // hide this eleement
- this.input = document.createElement('input');
- this.input.type = 'radio';
- this.input.className = 'radio-input';
- this.input.id = '_radio_' + org.apache.flex.flat.RadioButton.radioCounter++;
- this.input.addEventListener('change', goog.bind(this.selectionChangeHandler, this));
-
- this.radio = document.createElement('span');
- this.radio.className = 'radio-icon';
- this.radio.addEventListener('mouseover', goog.bind(this.mouseOverHandler, this));
- this.radio.addEventListener('mouseout', goog.bind(this.mouseOutHandler, this));
-
- this.textNode = document.createTextNode('radio button');
-
- this.labelFor = document.createElement('label');
- this.labelFor.appendChild(this.input);
- this.labelFor.appendChild(this.radio);
- this.labelFor.appendChild(this.textNode);
- this.labelFor.style.position = 'relative';
-
- this.element = this.labelFor;
- this.element.className = 'RadioButton';
- this.typeNames = 'RadioButton';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.input.flexjs_wrapper = this;
- this.radio.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
- this.textNode.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.RadioButton.prototype.mouseOverHandler =
- function(e) {
- this.radio.className = 'radio-icon-hover';
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.RadioButton.prototype.mouseOutHandler =
- function(e) {
- if (this.input.checked)
- this.radio.className = 'radio-icon-checked';
- else
- this.radio.className = 'radio-icon';
-};
-
-
-/**
- * @param {Event} e The event object.
- */
-org.apache.flex.flat.RadioButton.prototype.selectionChangeHandler =
- function(e) {
- // this should reset the icons in the non-selected radio
- this.selectedValue = this.value;
-};
-
-
-/**
- * @export
- */
-org.apache.flex.flat.RadioButton.prototype.initModel =
- function() {
-};
-
-
-/**
- * @export
- */
-org.apache.flex.flat.RadioButton.prototype.initSkin =
- function() {
-};
-
-
-Object.defineProperties(org.apache.flex.flat.RadioButton.prototype, {
- /** @export */
- id: {
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(org.apache.flex.flat.RadioButton, this, 'id', value);
- this.labelFor.id = value;
- this.input.id = value;
- }
- },
- /** @export */
- groupName: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- return this.input.name;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- this.input.name = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- return this.textNode.nodeValue;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- this.textNode.nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- return this.input.checked;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- this.input.checked = value;
- if (this.input.checked)
- this.radio.className = 'radio-icon-checked';
- else
- this.radio.className = 'radio-icon';
- }
- },
- /** @export */
- value: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- return this.input.value;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- this.input.value = value;
- }
- },
- /** @export */
- selectedValue: {
- /** @this {org.apache.flex.flat.RadioButton} */
- get: function() {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
-
- for (i = 0; i < n; i++) {
- if (buttons[i].checked) {
- return buttons[i].value;
- }
- }
- return null;
- },
- /** @this {org.apache.flex.flat.RadioButton} */
- set: function(value) {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
- for (i = 0; i < n; i++) {
- if (buttons[i].value === value) {
- buttons[i].checked = true;
- buttons[i].flexjs_wrapper.selected = true;
- }
- else
- buttons[i].flexjs_wrapper.selected = false;
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Formatters/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/compile-config.xml b/frameworks/projects/Formatters/compile-config.xml
index 3fcc71c..96c7e48 100644
--- a/frameworks/projects/Formatters/compile-config.xml
+++ b/frameworks/projects/Formatters/compile-config.xml
@@ -64,10 +64,6 @@
<name>js/out/*</name>
<path>js/out/*</path>
</include-file>
- <include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
- </include-file>
<include-classes>
<class>FormattersClasses</class>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/Formatters/js/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/js/src/org/apache/flex/core/FormatBase.js b/frameworks/projects/Formatters/js/src/org/apache/flex/core/FormatBase.js
deleted file mode 100644
index d26c916..0000000
--- a/frameworks/projects/Formatters/js/src/org/apache/flex/core/FormatBase.js
+++ /dev/null
@@ -1,126 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.FormatBase');
-
-goog.require('org.apache.flex.core.IFormatBead');
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IFormatBead}
- * @extends {org.apache.flex.events.EventDispatcher}
- */
-org.apache.flex.core.FormatBase = function() {
- goog.base(this);
-};
-goog.inherits(org.apache.flex.core.FormatBase,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.FormatBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'FormatBase',
- qName: 'org.apache.flex.core.FormatBase' }],
- interfaces: [org.apache.flex.core.IFormatBead] };
-
-
-/**
- * @private
- * @type {org.apache.flex.core.IStrand}
- */
-org.apache.flex.core.FormatBase.prototype.strand_ = null;
-
-
-/**
- * @type {string}
- */
-org.apache.flex.core.FormatBase.prototype._propertyName = 'text';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.core.FormatBase.prototype._eventName = 'textChange';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.core.FormatBase.prototype._formattedResult = '';
-
-
-Object.defineProperties(org.apache.flex.core.FormatBase.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.core.FormatBase} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- propertyValue: {
- /** @this {org.apache.flex.core.FormatBase} */
- get: function() {
- var value = this.strand_[this.propertyName];
- return value;
- }
- },
- /** @export */
- propertyName: {
- /** @this {org.apache.flex.core.FormatBase} */
- get: function() {
- if (this._propertyName == null) {
- this._propertyName = 'text';
- }
- return this._propertyName;
- },
- /** @this {org.apache.flex.core.FormatBase} */
- set: function(value) {
- this._propertyName = value;
- }
- },
- /** @export */
- eventName: {
- /** @this {org.apache.flex.core.FormatBase} */
- get: function() {
- if (this._eventName == null) {
- return this._propertyName + 'Change';
- }
- return this._eventName;
- },
- /** @this {org.apache.flex.core.FormatBase} */
- set: function(value) {
- this._eventName = value;
- }
- },
- /** @export */
- formattedString: {
- /** @this {org.apache.flex.core.FormatBase} */
- get: function() {
- return null;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/compile-config.xml b/frameworks/projects/HTML5/compile-config.xml
index 3bca049..f2ece61 100644
--- a/frameworks/projects/HTML5/compile-config.xml
+++ b/frameworks/projects/HTML5/compile-config.xml
@@ -65,8 +65,8 @@
<path>as/defaults.css</path>
</include-file>
<include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
+ <name>js/out/*</name>
+ <path>js/out/*</path>
</include-file>
<include-classes>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/CheckBox.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/CheckBox.js
deleted file mode 100644
index 9817203..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/CheckBox.js
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html5.CheckBox');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.CheckBox = function() {
- org.apache.flex.html5.CheckBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.CheckBox,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.CheckBox.prototype.createElement =
- function() {
- var cb;
-
- this.element = document.createElement('label');
-
- cb = document.createElement('input');
- cb.type = 'checkbox';
- this.element.appendChild(cb);
- this.element.appendChild(document.createTextNode('check box'));
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.CheckBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.CheckBox} */
- get: function() {
- return this.element.childNodes.item(1).nodeValue;
- },
- /** @this {org.apache.flex.html5.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(1).nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.html5.CheckBox} */
- get: function() {
- return this.element.childNodes.item(0).checked;
- },
- /** @this {org.apache.flex.html5.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(0).checked = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/ComboBox.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/ComboBox.js
deleted file mode 100644
index 889b611..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/ComboBox.js
+++ /dev/null
@@ -1,187 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html5.ComboBox');
-
-goog.require('org.apache.flex.core.ListBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html5.ComboBox = function() {
- org.apache.flex.html5.ComboBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.ComboBox,
- org.apache.flex.core.ListBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.ComboBox.prototype.createElement =
- function() {
- var button, input;
-
- this.element = document.createElement('div');
-
- input = document.createElement('input');
- input.style.position = 'absolute';
- input.style.width = '80px';
- this.element.appendChild(input);
-
- button = document.createElement('div');
- button.style.position = 'absolute';
- button.style.top = '0px';
- button.style.right = '0px';
- button.style.background = '#bbb';
- button.style.width = '16px';
- button.style.height = '20px';
- button.style.margin = '0';
- button.style.border = 'solid #609 1px';
- button.onclick = /** @type {function (Event)} */ (goog.bind(this.buttonClicked, this));
- this.element.appendChild(button);
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- // add a click handler so that a click outside of the combo box can
- // dismiss the pop-up should it be visible.
- goog.events.listen(document, 'click',
- goog.bind(this.dismissPopup, this));
-
- return this.element;
-};
-
-
-/**
- * @export
- * @param {Event} event The event.
- */
-org.apache.flex.html5.ComboBox.prototype.selectChanged =
- function(event) {
- var select;
-
- select = event.currentTarget;
- this.selectedItem = select.value;
-
- this.popup.parentNode.removeChild(this.popup);
- this.popup = null;
-
- this.dispatchEvent('change');
-};
-
-
-/**
- * @export
- * @param {Event} event The event.
- */
-org.apache.flex.html5.ComboBox.prototype.dismissPopup =
- function(event) {
- if (this.popup) {
- this.popup.parentNode.removeChild(this.popup);
- this.popup = null;
- }
-};
-
-
-/**
- * @export
- * @param {Event} event The event.
- */
-org.apache.flex.html5.ComboBox.prototype.buttonClicked =
- function(event) {
- /**
- * @type {Array.<string>}
- */
- var dp;
- var i, input, left, n, opt, opts, pn, popup, select, si, top, width;
-
- event.stopPropagation();
-
- if (this.popup) {
- this.popup.parentNode.removeChild(this.popup);
- this.popup = null;
- return;
- }
-
- input = this.element.childNodes.item(0);
-
- pn = this.element;
- top = pn.offsetTop + input.offsetHeight;
- left = pn.offsetLeft;
- width = pn.offsetWidth;
-
- popup = document.createElement('div');
- popup.className = 'popup';
- popup.id = 'test';
- popup.style.position = 'absolute';
- popup.style.top = top.toString() + 'px';
- popup.style.left = left.toString() + 'px';
- popup.style.width = width.toString() + 'px';
- popup.style.margin = '0px auto';
- popup.style.padding = '0px';
- popup.style.zIndex = '10000';
-
- select = document.createElement('select');
- select.style.width = width.toString() + 'px';
- select.onchange = /** @type {function(Event)} */ (goog.bind(this.selectChanged, this));
- opts = select.options;
-
- dp = /** @type {Array.<string>} */ (this.dataProvider);
- n = dp.length;
- for (i = 0; i < n; i++) {
- opt = document.createElement('option');
- opt.text = dp[i];
- opts.add(opt);
- }
-
- select.size = n;
-
- si = this.selectedIndex;
- if (si < 0) {
- select.value = null;
- } else {
- select.value = dp[si];
- }
-
- this.popup = popup;
-
- popup.appendChild(select);
- document.body.appendChild(popup);
-};
-
-
-Object.defineProperties(org.apache.flex.html5.ComboBox.prototype, {
- /** @export */
- dataProvider: {
- /** @this {org.apache.flex.html5.ComboBox} */
- set: function(value) {
- this.dataProvider = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.ComboBox} */
- get: function() {
- return this.element.childNodes.item(0).value;
- },
- /** @this {org.apache.flex.html5.ComboBox} */
- set: function(value) {
- this.element.childNodes.item(0).value = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/DropDownList.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/DropDownList.js
deleted file mode 100644
index e0dfe8b..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/DropDownList.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html5.DropDownList');
-
-goog.require('org.apache.flex.core.ListBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html5.DropDownList = function() {
- org.apache.flex.html5.DropDownList.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.DropDownList,
- org.apache.flex.core.ListBase);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/Label.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/Label.js
deleted file mode 100644
index 1db5781..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/Label.js
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html5.Label');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.Label = function() {
- org.apache.flex.html5.Label.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.Label,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.Label.prototype.createElement =
- function() {
- org.apache.flex.html5.Label.base(this, 'createElement');
-
- this.positioner = this.element;
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.Label.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.Label} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html5.Label} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/List.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/List.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/List.js
deleted file mode 100644
index 4861cb3..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/List.js
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html5.List');
-
-goog.require('org.apache.flex.core.ListBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html5.List = function() {
- org.apache.flex.html5.List.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.List,
- org.apache.flex.core.ListBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.List.prototype.createElement =
- function() {
- org.apache.flex.html5.List.base(this, 'createElement');
-
- this.element.size = 5;
-
- return this.element;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/RadioButton.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/RadioButton.js
deleted file mode 100644
index ee5289a..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/RadioButton.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html5.RadioButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.RadioButton = function() {
- org.apache.flex.html5.RadioButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.RadioButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.RadioButton.prototype.createElement =
- function() {
- var rb;
-
- this.element = document.createElement('label');
-
- rb = document.createElement('input');
- rb.type = 'radio';
- this.element.appendChild(rb);
- this.element.appendChild(document.createTextNode('radio button'));
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.RadioButton.prototype, {
- /** @export */
- groupName: {
- /** @this {org.apache.flex.html5.RadioButton} */
- get: function() {
- return this.element.childNodes.item(0).name;
- },
- /** @this {org.apache.flex.html5.RadioButton} */
- set: function(value) {
- this.element.childNodes.item(0).name = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.RadioButton} */
- get: function() {
- return this.element.childNodes.item(1).nodeValue;
- },
- /** @this {org.apache.flex.html5.RadioButton} */
- set: function(value) {
- this.element.childNodes.item(1).nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.html5.RadioButton} */
- get: function() {
- return this.element.childNodes.item(0).checked;
- },
- /** @this {org.apache.flex.html5.RadioButton} */
- set: function(value) {
- this.element.childNodes.item(0).checked = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextArea.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextArea.js
deleted file mode 100644
index b033682..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextArea.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html5.TextArea');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.TextArea = function() {
- org.apache.flex.html5.TextArea.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.TextArea,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.TextArea.prototype.createElement =
- function() {
- this.element = document.createElement('textarea');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.TextArea.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.TextArea} */
- get: function() {
- return this.element.value;
- },
- /** @this {org.apache.flex.html5.TextArea} */
- set: function(value) {
- this.element.value = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextButton.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextButton.js
deleted file mode 100644
index fac23d5..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextButton.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html5.TextButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.TextButton = function() {
- org.apache.flex.html5.TextButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.TextButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.TextButton.prototype.createElement =
- function() {
- this.element = document.createElement('button');
- this.element.setAttribute('type', 'button');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.TextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.TextButton} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html5.TextButton} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextInput.js b/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextInput.js
deleted file mode 100644
index e5392b7..0000000
--- a/frameworks/projects/HTML5/js/src/org/apache/flex/html5/TextInput.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html5.TextInput');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html5.TextInput = function() {
- org.apache.flex.html5.TextInput.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html5.TextInput,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.html5.TextInput.prototype.createElement =
- function() {
- this.element = document.createElement('input');
- this.element.setAttribute('type', 'input');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html5.TextInput.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html5.TextInput} */
- get: function() {
- return this.element.value;
- },
- /** @this {org.apache.flex.html5.TextInput} */
- set: function(value) {
- this.element.value = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/jquery_externals.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/jquery_externals.js b/frameworks/projects/JQuery/js/src/jquery_externals.js
deleted file mode 100644
index a49165a..0000000
--- a/frameworks/projects/JQuery/js/src/jquery_externals.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
- * This file is used to establish external APIs so the closure-compiler
- * can resolve references and won't minify names
- * @param {Object} arg Selector.
- */
-function $(arg) {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/Application.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/Application.js
deleted file mode 100644
index d646b13..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/Application.js
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
-FalconJX will inject html into the index.html file. Surround with
-"inject_html" tag as follows:
-
-<inject_html>
-<link rel="stylesheet"
- href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
-<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
-<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
-</inject_html>
-*/
-
-goog.provide('org.apache.flex.jquery.Application');
-
-goog.require('org.apache.flex.core.Application');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.Application}
- */
-org.apache.flex.jquery.Application = function() {
- org.apache.flex.jquery.Application.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.jquery.Application,
- org.apache.flex.core.Application);
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
deleted file mode 100644
index 1e877ba..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.jquery.CheckBox');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.jquery.CheckBox = function() {
- org.apache.flex.jquery.CheckBox.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.jquery.CheckBox,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.jquery.CheckBox.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'CheckBox',
- qName: 'org.apache.flex.jquery.CheckBox'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.CheckBox.prototype.createElement =
- function() {
- var cb;
-
- this.element = document.createElement('label');
-
- cb = document.createElement('input');
- cb.type = 'checkbox';
- this.element.appendChild(cb);
- this.element.appendChild(document.createTextNode(''));
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- cb.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.jquery.CheckBox.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.jquery.CheckBox} */
- get: function() {
- return this.element.childNodes.item(1).nodeValue;
- },
- /** @this {org.apache.flex.jquery.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(1).nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.jquery.CheckBox} */
- get: function() {
- return this.element.childNodes.item(0).checked;
- },
- /** @this {org.apache.flex.jquery.CheckBox} */
- set: function(value) {
- this.element.childNodes.item(0).checked = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
deleted file mode 100644
index 6961301..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
+++ /dev/null
@@ -1,191 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.jquery.RadioButton');
-
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.jquery.RadioButton = function() {
-
- org.apache.flex.jquery.RadioButton.base(this, 'constructor');
-
- org.apache.flex.core.UIBase.call(this);
- org.apache.flex.jquery.RadioButton.radioCounter++;
-};
-goog.inherits(org.apache.flex.jquery.RadioButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @export
- * @type {?string}
- * The name of the radioGroup.
- */
-org.apache.flex.jquery.RadioButton.prototype.radioGroupName = null;
-
-
-/**
- * @export
- * Used to provide ids to the radio buttons.
- */
-org.apache.flex.jquery.RadioButton.radioCounter = 0;
-
-
-/**
- * @export
- * Used to manage groups on the radio buttons.
- */
-org.apache.flex.jquery.RadioButton.groups = { };
-
-
-/**
- * Flag to make sure the event handler is set only once.
- */
-org.apache.flex.jquery.RadioButton.groupHandlerSet = false;
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.RadioButton.prototype.createElement =
- function() {
-
- // the radio itself
- this.input = document.createElement('input');
- this.input.type = 'radio';
- this.input.name = 'radio';
- this.input.id = '_radio_' + org.apache.flex.jquery.RadioButton.radioCounter++;
-
- this.labelFor = document.createElement('label');
- this.labelFor.htmlFor = this.input.id;
-
- this.positioner = document.createElement('div');
- this.positioner.style.position = 'relative';
- this.positioner.appendChild(this.input);
- this.positioner.appendChild(this.labelFor);
- this.element = this.input;
-
- this.input.flexjs_wrapper = this;
- this.labelFor.flexjs_wrapper = this;
- this.positioner.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.RadioButton.prototype.addedToParent =
- function() {
- org.apache.flex.jquery.RadioButton.base(this, 'addedToParent');
- $(this.input).button();
-};
-
-
-Object.defineProperties(org.apache.flex.jquery.RadioButton.prototype, {
- /** @export */
- id: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- org.apache.flex.utils.Language(org.apache.flex.jquery.RadioButton.base, this, 'id', value);
- this.labelFor.id = value;
- this.labelFor.htmlFor = value;
- }
- },
- /** @export */
- groupName: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- return this.radioGroupName;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- this.radioGroupName = value;
- this.input.name = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- return this.labelFor.innerHTML;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- this.labelFor.innerHTML = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- return this.input.checked;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- this.input.checked = value;
- }
- },
- /** @export */
- value: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- return this.input.value;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- this.input.value = value;
- }
- },
- /** @export */
- selectedValue: {
- /** @this {org.apache.flex.jquery.RadioButton} */
- get: function() {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
-
- for (i = 0; i < n; i++) {
- if (buttons[i].checked) {
- return buttons[i].value;
- }
- }
- return null;
- },
- /** @this {org.apache.flex.jquery.RadioButton} */
- set: function(value) {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
- for (i = 0; i < n; i++) {
- if (buttons[i].value === value) {
- buttons[i].checked = true;
- break;
- }
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
deleted file mode 100644
index 46348fd..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.jquery.TextButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.jquery.TextButton = function() {
- org.apache.flex.jquery.TextButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.jquery.TextButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.TextButton.prototype.createElement =
- function() {
- this.element = document.createElement('button');
- this.element.setAttribute('type', 'button');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
- return this.element;
-};
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.TextButton.prototype.addedToParent =
- function() {
- org.apache.flex.jquery.TextButton.base(this, 'addedToParent');
- $(this.element).button();
-};
-
-
-Object.defineProperties(org.apache.flex.jquery.TextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.jquery.TextButton} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.jquery.TextButton} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- }
-});
[39/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix
formatters build
Posted by ah...@apache.org.
fix formatters build
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c9bec300
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c9bec300
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c9bec300
Branch: refs/heads/develop
Commit: c9bec3003dc5ed188f6ced19428430f8d21b2310
Parents: e04974e
Author: Alex Harui <ah...@apache.org>
Authored: Tue Dec 15 08:48:20 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Dec 15 08:48:20 2015 -0800
----------------------------------------------------------------------
frameworks/projects/Formatters/compile-asjs-config.xml | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c9bec300/frameworks/projects/Formatters/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/compile-asjs-config.xml b/frameworks/projects/Formatters/compile-asjs-config.xml
index 7626601..6b9466f 100644
--- a/frameworks/projects/Formatters/compile-asjs-config.xml
+++ b/frameworks/projects/Formatters/compile-asjs-config.xml
@@ -49,6 +49,13 @@
<path-element>../../externs/HTML.swc</path-element>
</library-path>
+ <namespaces>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/basic</uri>
+ <manifest>basic-manifest.xml</manifest>
+ </namespace>
+ </namespaces>
+
<source-path>
<path-element>as/src</path-element>
</source-path>
[17/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] -
backport clean compile of CreateJS
Posted by ah...@apache.org.
backport clean compile of CreateJS
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/4b7f2c06
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/4b7f2c06
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/4b7f2c06
Branch: refs/heads/develop
Commit: 4b7f2c0658800b69d05ed58bbf16022a47f461ab
Parents: 0e9b17d
Author: Alex Harui <ah...@apache.org>
Authored: Fri Dec 4 21:19:45 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 7 21:56:35 2015 -0800
----------------------------------------------------------------------
.../src/org/apache/flex/createjs/Application.as | 176 +++++++---------
.../as/src/org/apache/flex/createjs/CheckBox.as | 98 ++++++++-
.../src/org/apache/flex/createjs/core/UIBase.as | 208 ++++++++++++++++++-
.../org/apache/flex/createjs/core/ViewBase.as | 17 +-
frameworks/projects/CreateJS/build.xml | 95 ++++++---
.../projects/CreateJS/compile-asjs-config.xml | 83 ++++++++
6 files changed, 531 insertions(+), 146 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b7f2c06/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as
index fd78f89..c6048ff 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as
@@ -17,23 +17,25 @@
//
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.createjs
-{
- import flash.display.DisplayObject;
- import flash.display.Sprite;
- import flash.display.StageAlign;
- import flash.display.StageScaleMode;
- import flash.events.IOErrorEvent;
-
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IFlexInfo;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.IUIBase;
- import org.apache.flex.core.IValuesImpl;
- import org.apache.flex.core.ValuesManager;
- import org.apache.flex.createjs.core.ViewBase;
- import org.apache.flex.events.Event;
- import org.apache.flex.utils.MXMLDataInterpreter;
+{
+ import org.apache.flex.core.ApplicationBase;
+ import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IFlexInfo;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.core.IUIBase;
+ import org.apache.flex.core.IValuesImpl;
+ import org.apache.flex.core.ValuesManager;
+ import org.apache.flex.createjs.core.ViewBase;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.utils.MXMLDataInterpreter;
+ COMPILE::JS
+ {
+ import org.apache.flex.core.WrappedHTMLElement;
+ import createjs.DisplayObject;
+ import createjs.Stage;
+ }
+
//--------------------------------------
// Events
//--------------------------------------
@@ -43,98 +45,70 @@ package org.apache.flex.createjs
*/
[Event(name="initialize", type="org.apache.flex.events.Event")]
- public class Application extends Sprite implements IStrand, IFlexInfo
+ /**
+ * FalconJX will inject html into the index.html file. Surround with
+ * "inject_html" tag as follows:
+ *
+ * <inject_html>
+ * <script src="https://code.createjs.com/easeljs-0.8.1.min.js"></script>
+ * </inject_html>
+ */
+ public class Application extends org.apache.flex.core.Application implements IStrand, IFlexInfo
{
public function Application()
{
super();
- if (stage)
- {
- stage.align = StageAlign.TOP_LEFT;
- stage.scaleMode = StageScaleMode.NO_SCALE;
- }
-
- loaderInfo.addEventListener(flash.events.Event.INIT, initHandler);
- }
-
- private function initHandler(event:flash.events.Event):void
- {
- MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
-
- ValuesManager.valuesImpl = valuesImpl;
- ValuesManager.valuesImpl.init(this);
-
- dispatchEvent(new Event("initialize"));
-
- addElement(initialView);
- initialView.initUI(model);
- dispatchEvent(new Event("viewChanged"));
- }
-
- public var valuesImpl:IValuesImpl;
-
- public var initialView:ViewBase;
-
- public var model:Object;
-
- public var controller:Object;
-
- public function get MXMLDescriptor():Array
- {
- return null;
- }
-
- public function get MXMLProperties():Array
- {
- return null;
- }
-
- // beads declared in MXML are added to the strand.
- // from AS, just call addBead()
- public var beads:Array;
-
- private var _beads:Vector.<IBead>;
- public function addBead(bead:IBead):void
- {
- if (!_beads)
- _beads = new Vector.<IBead>;
- _beads.push(bead);
- bead.strand = this;
- }
-
- public function getBeadByType(classOrInterface:Class):IBead
- {
- for each (var bead:IBead in _beads)
- {
- if (bead is classOrInterface)
- return bead;
- }
- return null;
- }
-
- public function removeBead(value:IBead):IBead
- {
- var n:int = _beads.length;
- for (var i:int = 0; i < n; i++)
- {
- var bead:IBead = _beads[i];
- if (bead == value)
- {
- _beads.splice(i, 1);
- return bead;
- }
- }
- return null;
- }
-
- public function info():Object
- {
- return {};
}
- public function addElement(c:Object):void
+ COMPILE::JS
+ private var stage:Stage;
+
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLBodyElement
+ * @flexjsignorecoercion HTMLCanvasElement
+ */
+ COMPILE::JS
+ override public function start():void
+ {
+ var body:HTMLBodyElement;
+ var canvas:HTMLCanvasElement;
+
+ // For createjs, the application is the same as the canvas
+ // and it provides convenient access to the stage.
+
+ element = document.createElement('canvas') as WrappedHTMLElement;
+ canvas = element as HTMLCanvasElement;
+ canvas.id = 'flexjsCanvas';
+ canvas.width = 700;
+ canvas.height = 500;
+
+ body = document.getElementsByTagName('body')[0] as HTMLBodyElement;
+ body.appendChild(this.element);
+
+ stage = new createjs.Stage('flexjsCanvas');
+
+ /* AJH is this needed
+ MXMLDataInterpreter.generateMXMLProperties(this,
+ MXMLProperties);
+ */
+
+ dispatchEvent('initialize');
+
+ initialView.applicationModel = this.model;
+ addElement(initialView);
+
+ dispatchEvent('viewChanged');
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ override public function addElement(c:Object, dispatchEvent:Boolean = true):void
{
- addChild(c as DisplayObject);
+ stage.addChild(c as DisplayObject);
+ c.addedToParent();
}
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b7f2c06/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as
index 571afa9..d072e82 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as
@@ -18,9 +18,105 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.createjs
{
- import org.apache.flex.html.CheckBox;
+ COMPILE::AS3
+ {
+ import org.apache.flex.html.CheckBox;
+ }
+ COMPILE::JS
+ {
+ import createjs.Container;
+ import createjs.Shape;
+ import createjs.Text;
+
+ import org.apache.flex.createjs.core.UIBase;
+ import org.apache.flex.core.WrappedHTMLElement;
+ import org.apache.flex.events.Event;
+ }
+ COMPILE::AS3
public class CheckBox extends org.apache.flex.html.CheckBox
{
}
+
+ COMPILE::JS
+ public class CheckBox extends UIBase
+ {
+ private var checkMark:Shape;
+ private var checkMarkBackground:Shape;
+ private var checkBoxLabel:Text;
+
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ */
+ override public function createElement():WrappedHTMLElement
+ {
+ checkMarkBackground = new createjs.Shape(null);
+ checkMarkBackground.name = 'checkmarkbackground';
+ checkMarkBackground.graphics.beginFill('red').
+ drawRoundRect(0, 0, 40, 40, 8);
+
+ checkMark = new createjs.Shape(null);
+ checkMark.name = 'checkmark';
+ checkMark.graphics.beginFill('white').drawRoundRect(0, 0, 32, 32, 6);
+ checkMark.x = 4;
+ checkMark.y = 4;
+ checkMark.visible = false;
+
+ checkBoxLabel = new createjs.Text('checkbox', '20px Arial', '#ff7700');
+ checkBoxLabel.name = 'label';
+ checkBoxLabel.textAlign = 'left';
+ checkBoxLabel.textBaseline = 'middle';
+ checkBoxLabel.x = 45;
+ checkBoxLabel.y = 40 / 2;
+
+ var container:createjs.Container = new createjs.Container();
+ element = container as WrappedHTMLElement;
+ container.name = 'checkbox';
+ container.addChild(this.checkMarkBackground);
+ container.addChild(this.checkBoxLabel);
+ container.addChild(this.checkMark);
+ container.onClick = clickHandler;
+
+ this.positioner = this.element;
+ this.positioner.style.position = 'relative';
+
+ return this.element;
+ }
+
+ public function get text():String
+ {
+ return checkBoxLabel.text;
+ }
+
+ public function set text(value:String):void
+ {
+ checkBoxLabel.text = value;
+ }
+
+ public function get selected():Boolean
+ {
+ return checkMark.visible;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Container
+ */
+ public function set selected(value:Boolean):void
+ {
+ checkMark.visible = value;
+ (element as Container).getStage().update();
+ }
+
+
+ /**
+ * @param event The event.
+ */
+ private function clickHandler(event:Event):void
+ {
+ selected = !selected;
+ }
+
+
+ }
+
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b7f2c06/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as
index dcb1e7c..b3051d7 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as
@@ -18,44 +18,223 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.createjs.core
{
- import flash.display.DisplayObjectContainer;
- import flash.display.Sprite;
+ import org.apache.flex.core.HTMLElementWrapper;
import org.apache.flex.core.IStrand;
import org.apache.flex.core.IBeadModel;
import org.apache.flex.core.IBead;
import org.apache.flex.events.Event;
import org.apache.flex.events.IEventDispatcher;
- public class UIBase extends Sprite implements IStrand, IEventDispatcher
+ COMPILE::JS
+ {
+ import createjs.Container;
+ import createjs.DisplayObject;
+ import org.apache.flex.core.WrappedHTMLElement;
+ }
+
+ public class UIBase extends HTMLElementWrapper implements IStrand, IEventDispatcher
{
public function UIBase()
{
super();
+ COMPILE::JS
+ {
+ createElement();
+ }
}
+ COMPILE::JS
+ public var positioner:WrappedHTMLElement;
+
+ /**
+ * @flexjsignorecoercion createjs.Container
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function addElement(c:Object, dispatchEvent:Boolean = true):void
+ {
+ (element as Container).addChild(c as DisplayObject);
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Container
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function addElementAt(c:Object, index:int, dispatchEvent:Boolean = true):void
+ {
+ (element as Container).addChildAt(c as DisplayObject, index);
+ }
+
+
+ /**
+ * @flexjsignorecoercion createjs.Container
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function getElementIndex(c:Object):int
+ {
+ return (element as Container).getChildIndex(c as DisplayObject);
+ }
+
+
+ /**
+ * @flexjsignorecoercion createjs.Container
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function removeElement(c:Object, dispatchEvent:Boolean = true):void
+ {
+ (element as Container).removeChild(c as DisplayObject);
+ }
+
+
+ /**
+ * @flexjsignorecoercion createjs.Container
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function getElementAt(index:int):Object
+ {
+ return (element as Container).getChildAt(index);
+ }
+
+
+ /**
+ * @flexjsignorecoercion createjs.Container
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function get numElements():int
+ {
+ return (element as Container).numChildren;
+ }
+
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement;
+ */
+ COMPILE::JS
+ public function createElement():WrappedHTMLElement
+ {
+ element = new Container() as WrappedHTMLElement;
+
+ positioner = this.element;
+ positioner.style.position = 'relative';
+ return element;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Container;
+ */
+ COMPILE::JS
+ public function get x():Number
+ {
+ return (positioner as Container).x;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Container;
+ */
+ COMPILE::JS
+ public function set x(value:Number):void
+ {
+ var container:Container = positioner as Container;
+ container.x = value;
+ container.getStage().update();
+ }
+
+
+ /**
+ * @flexjsignorecoercion createjs.Container;
+ */
+ COMPILE::JS
+ public function get y():Number
+ {
+ return (positioner as Container).y;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Container;
+ */
+ COMPILE::JS
+ public function set y(value:Number):void
+ {
+ var container:Container = positioner as Container;
+ container.y = value;
+ container.getStage().update();
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Container;
+ */
+ COMPILE::JS
+ public function get width():Number
+ {
+ return (positioner as Container).width;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Container;
+ */
+ COMPILE::JS
+ public function set width(value:Number):void
+ {
+ var container:Container = positioner as Container;
+ container.width = value;
+ container.getStage().update();
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Container;
+ */
+ COMPILE::JS
+ public function get height():Number
+ {
+ return (positioner as Container).height;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Container;
+ */
+ COMPILE::JS
+ public function set height(value:Number):void
+ {
+ var container:Container = positioner as Container;
+ container.height = value;
+ container.getStage().update();
+ }
+
+ COMPILE::AS3
private var _width:Number = 0;
+ COMPILE::AS3
override public function get width():Number
{
- return _width;
+ return _width;
}
+
+ COMPILE::AS3
override public function set width(value:Number):void
{
- if (_width != value)
- {
- _width = value;
- dispatchEvent(new Event("widthChanged"));
- }
+ if (_width != value)
+ {
+ _width = value;
+ dispatchEvent(new Event("widthChanged"));
+ }
}
+ COMPILE::AS3
protected function get $width():Number
{
return super.width;
}
+ COMPILE::AS3
private var _height:Number = 0;
+ COMPILE::AS3
override public function get height():Number
{
return _height;
}
+ COMPILE::AS3
override public function set height(value:Number):void
{
if (_height != value)
@@ -64,16 +243,20 @@ package org.apache.flex.createjs.core
dispatchEvent(new Event("heightChanged"));
}
}
+ COMPILE::AS3
protected function get $height():Number
{
return super.height;
}
+ COMPILE::AS3
private var _model:IBeadModel;
+ COMPILE::AS3
public function get model():IBeadModel
{
return _model;
}
+ COMPILE::AS3
public function set model(value:IBeadModel):void
{
if (_model != value)
@@ -99,10 +282,13 @@ package org.apache.flex.createjs.core
// beads declared in MXML are added to the strand.
// from AS, just call addBead()
+ COMPILE::AS3
public var beads:Array;
+ COMPILE::AS3
private var _beads:Vector.<IBead>;
- public function addBead(bead:IBead):void
+ COMPILE::AS3
+ override public function addBead(bead:IBead):void
{
if (!_beads)
_beads = new Vector.<IBead>;
@@ -112,6 +298,7 @@ package org.apache.flex.createjs.core
bead.strand = this;
}
+ COMPILE::AS3
public function getBeadByType(classOrInterface:Class):IBead
{
for each (var bead:IBead in _beads)
@@ -122,6 +309,7 @@ package org.apache.flex.createjs.core
return null;
}
+ COMPILE::AS3
public function removeBead(value:IBead):IBead
{
var n:int = _beads.length;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b7f2c06/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
index d3ffe23..3331b8a 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
@@ -18,7 +18,10 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.createjs.core
{
- import flash.display.DisplayObject;
+ COMPILE::AS3
+ {
+ import flash.display.DisplayObject;
+ }
import org.apache.flex.core.IParent;
import org.apache.flex.core.IUIBase;
@@ -37,7 +40,9 @@ package org.apache.flex.createjs.core
{
_applicationModel = model;
dispatchEvent(new Event("modelChanged"));
+ /* AJH needed?
MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
+ */
MXMLDataInterpreter.generateMXMLInstances(this, this, MXMLDescriptor);
}
@@ -46,11 +51,13 @@ package org.apache.flex.createjs.core
return null;
}
+ /*
public function get MXMLProperties():Array
{
return null;
}
-
+ */
+
public var mxmlContent:Array;
private var _applicationModel:Object;
@@ -61,31 +68,37 @@ package org.apache.flex.createjs.core
return _applicationModel;
}
+ COMPILE::AS3
public function addElement(c:Object, dispatchEvent:Boolean = true):void
{
addChild(c as DisplayObject);
}
+ COMPILE::AS3
public function addElementAt(c:Object, index:int, dispatchEvent:Boolean = true):void
{
addChildAt(c as DisplayObject, index);
}
+ COMPILE::AS3
public function getElementAt(index:int):Object
{
return getChildAt(index);
}
+ COMPILE::AS3
public function getElementIndex(c:Object):int
{
return getChildIndex(c as DisplayObject);
}
+ COMPILE::AS3
public function removeElement(c:Object, dispatchEvent:Boolean = true):void
{
removeChild(c as DisplayObject);
}
+ COMPILE::AS3
public function get numElements():int
{
return numChildren;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b7f2c06/frameworks/projects/CreateJS/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/build.xml b/frameworks/projects/CreateJS/build.xml
index 8aa4f7f..742c197 100644
--- a/frameworks/projects/CreateJS/build.xml
+++ b/frameworks/projects/CreateJS/build.xml
@@ -28,8 +28,6 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
<condition property="no.lint" value="true">
<os family="windows"/>
</condition>
@@ -37,7 +35,7 @@
<target name="main" depends="clean,compile,test" description="Clean build of CreateJS.swc">
</target>
- <target name="all" depends="main,compile-asjs,lint-js,test-js" description="Full build of Binding.swc">
+ <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of CreateJS.swc">
</target>
<target name="test" unless="is.jenkins">
@@ -95,46 +93,79 @@
<load-config filename="compile-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-define=COMPILE::AS3,true" />
+ <arg value="-define=COMPILE::JS,false" />
</compc>
</target>
<target name="compile-asjs" >
- <!-- nothing to cross-compile yet -->
+ <echo message="Cross-compiling CreateJS"/>
+ <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
+ <java jar="${FALCONJX_HOME}/lib/compc.jar" fork="true" >
+ <jvmarg value="-Xmx384m" />
+ <jvmarg value="-Dsun.io.useCanonCaches=false" />
+ <jvmarg value="-Dflexcompiler=${FALCONJX_HOME}/../compiler" />
+ <jvmarg value="-Dflexlib=${FLEXJS_HOME}/frameworks" />
+ <arg value="+flexlib=${FLEX_HOME}/frameworks" />
+ <arg value="-js-output-type=FLEXJS" />
+ <arg value="-keep-asdoc" /><!-- allows compiler to see @flexjsignorecoercion annotations -->
+ <arg value="-output=${basedir}/js/out" />
+ <arg value="-load-config=${basedir}/compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/createjs/out/bin/createjs.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </java>
+ </target>
+
+ <target name="compile-extern-swc" description="Compiles .as files into .swc used for cross-compiling other projects">
+ <echo message="Compiling externs/CreateJS.swc"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <!-- make JS output folder now so include-file doesn't error -->
+ <mkdir dir="${FLEXJS_HOME}/frameworks/externs"/>
+
+ <!-- Load the <compc> task. We can't do this at the <project> level -->
+ <!-- because targets that run before flexTasks.jar gets built would fail. -->
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+ <!--
+ Link in the classes (and their dependencies) for the MXML tags
+ listed in this project's manifest.xml.
+ Also link the additional classes (and their dependencies)
+ listed in CoreClasses.as,
+ because these aren't referenced by the manifest classes.
+ Keep the standard metadata when compiling.
+ Include the appropriate CSS files and assets in the SWC.
+ Don't include any resources in the SWC.
+ Write a bundle list of referenced resource bundles
+ into the file bundles.properties in this directory.
+ -->
+ <compc fork="true"
+ output="${FLEXJS_HOME}/frameworks/externs/CreateJS.swc">
+ <jvmarg line="${compc.jvm.args}"/>
+ <load-config filename="compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/createjs/out/bin/createjs.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </compc>
</target>
- <target name="lint-js" depends="gjslint, jshint, copy-js" />
<target name="copy-js" >
<copy todir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
- <fileset dir="${basedir}/js/src">
+ <fileset dir="${basedir}/js/out">
<include name="**/**" />
</fileset>
</copy>
</target>
- <target name="gjslint" unless="no.lint">
- <echo>running gjslint</echo>
- <exec executable="${gjslint}" dir="${basedir}" failonerror="true">
- <arg value="--strict" />
- <arg value="--disable" />
- <arg value="006,100,214,300" />
- <!-- 006: wrong indentation -->
- <!-- 100: cannot have non-primitive value -->
- <!-- 214: @fileoverview tag missing description -->
- <!-- 300: missing newline at end of file -->
- <arg value="--max_line_length" />
- <arg value="120" />
- <arg value="-r" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
- <target name="jshint" unless="no.lint">
- <echo>running jshint</echo>
- <exec executable="${jshint}" dir="${basedir}" failonerror="true">
- <arg value="--config" />
- <arg value="${FLEX_HOME}/frameworks/js/jshint.properties" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b7f2c06/frameworks/projects/CreateJS/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/compile-asjs-config.xml b/frameworks/projects/CreateJS/compile-asjs-config.xml
new file mode 100644
index 0000000..35c65b3
--- /dev/null
+++ b/frameworks/projects/CreateJS/compile-asjs-config.xml
@@ -0,0 +1,83 @@
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<flex-config>
+
+ <compiler>
+ <accessible>false</accessible>
+
+ <external-library-path>
+ </external-library-path>
+
+ <mxml>
+ <children-as-data>true</children-as-data>
+ </mxml>
+ <binding-value-change-event>org.apache.flex.events.ValueChangeEvent</binding-value-change-event>
+ <binding-value-change-event-kind>org.apache.flex.events.ValueChangeEvent</binding-value-change-event-kind>
+ <binding-value-change-event-type>valueChange</binding-value-change-event-type>
+
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+
+ <locale/>
+
+ <library-path>
+ </library-path>
+
+ <namespaces>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/createjs</uri>
+ <manifest>createjs-manifest.xml</manifest>
+ </namespace>
+ </namespaces>
+
+ <source-path>
+ <path-element>as/src</path-element>
+ </source-path>
+
+ <library-path>
+ <path-element>../../externs/Core.swc</path-element>
+ <path-element>../../externs/HTML.swc</path-element>
+ </library-path>
+
+ <warn-no-constructor>false</warn-no-constructor>
+ </compiler>
+
+ <include-file>
+ </include-file>
+
+ <include-sources>
+ </include-sources>
+
+ <include-classes>
+ <class>CreateJSClasses</class>
+ </include-classes>
+
+ <include-namespaces>
+ <uri>library://ns.apache.org/flexjs/createjs</uri>
+ </include-namespaces>
+
+ <!--<target-player>${playerglobal.version}</target-player>-->
+
+
+</flex-config>
[06/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/svg/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/svg/TextButton.js b/frameworks/projects/Core/js/src/org/apache/flex/svg/TextButton.js
deleted file mode 100644
index 5622f0f..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/svg/TextButton.js
+++ /dev/null
@@ -1,90 +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.svg.TextButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.svg.TextButton = function() {
- org.apache.flex.svg.TextButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.svg.TextButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.svg.TextButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'TextButton',
- qName: 'org.apache.flex.svg.TextButton'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.svg.TextButton.prototype.createElement =
- function() {
- this.element = document.createElement('embed');
- this.element.setAttribute('src', 'org/apache/flex/svg/assets/TextButton_Skin.svg');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- return this.element;
-};
-
-
-/**
- * @override
- */
-org.apache.flex.svg.TextButton.prototype.finalizeElement =
- function() {
- var listenersArray;
- if (goog.events.hasListener(this.element, goog.events.EventType.CLICK)) {
- listenersArray = goog.events.getListeners(this.element, goog.events.EventType.CLICK, false);
-
- /* As we are assigning an actual function object instead of just the name,
- make sure to use a unique name ('clickHandler') instead of a native
- name, like 'click' or 'onclick'.
-
- Note: use array notation for property assignment so the compiler doesn't
- rename the property ;-)
- */
- this.element['clickHandler'] = listenersArray[0].listener;
- }
-};
-
-
-Object.defineProperties(org.apache.flex.svg.TextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.svg.TextButton} */
- get: function() {
- return this.element.getAttribute('label');
- },
- /** @this {org.apache.flex.svg.TextButton} */
- set: function(value) {
- this.element.setAttribute('label', value);
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/svg/assets/TextButton_Skin.svg
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/svg/assets/TextButton_Skin.svg b/frameworks/projects/Core/js/src/org/apache/flex/svg/assets/TextButton_Skin.svg
deleted file mode 100644
index 7986725..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/svg/assets/TextButton_Skin.svg
+++ /dev/null
@@ -1,279 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="button" width="100%" height="100%"
- onload="return init(evt)"
- onmouseover="return handleMouseOver(evt)"
- onmousedown="return handleMouseDown(evt)"
- onmouseup="return handleMouseUp(evt)"
- onmouseout="return handleMouseOut(evt)"
- onclick="handleOnClick(evt)"
- >
- <style type="text/css">
- .button {cursor: pointer;}
- </style>
-
- <script type="text/ecmascript">
- <![CDATA[
-
- var labelStr = "";
- var clickHandler;
-
- function init(event)
- {
- //Set Initial button state
- document.getElementById("button_up").style.display="inline";
- document.getElementById("button_over").style.display="none";
- document.getElementById("button_down").style.display="none";
-
- //Set label from the embed's frameElement.attributes values
- labelStr = window.frameElement.attributes["label"].value;
- var labelElement = document.getElementById("labelDisplay");
- labelElement.firstChild.nodeValue = labelStr;
-
- //Store callbacks
- clickHandler = window.frameElement.clickHandler;
- }
-
- function handleMouseOver(event)
- {
- document.getElementById("button_up").style.display="none";
- document.getElementById("button_over").style.display="inline";
- document.getElementById("button_down").style.display="none";
- }
-
- function handleMouseDown(event)
- {
- document.getElementById("button_up").style.display="none";
- document.getElementById("button_over").style.display="none";
- document.getElementById("button_down").style.display="inline";
- }
-
- function handleMouseUp(event)
- {
- document.getElementById("button_up").style.display="none";
- document.getElementById("button_over").style.display="inline";
- document.getElementById("button_down").style.display="none";
- }
-
- function handleMouseOut(event)
- {
- document.getElementById("button_up").style.display="inline";
- document.getElementById("button_over").style.display="none";
- document.getElementById("button_down").style.display="none";
- }
-
- function handleOnClick(evt)
- {
- clickHandler(evt,this);
- }
-
- ]]></script>
- <svg xmlns="http://www.w3.org/2000/svg" id="button_up" width="100%" height="100%" version="1.1" >
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="-1" right="-1" top="-1" bottom="-1">
- <defs>
- <linearGradient id="button_up_idLinearGradientx63x32" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#000000" stop-opacity="0.01" />
- <stop offset="1" stop-color="#000000" stop-opacity="0.07" />
- </linearGradient>
- </defs>
- <rect id="button_up_shadow" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_up_idLinearGradientx63x32)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_up_idLinearGradientx63x54" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#FFFFFF" stop-opacity="0.85" />
- <stop offset="1" stop-color="#D8D8D8" stop-opacity="0.85" />
- </linearGradient>
- </defs>
- <rect id="button_up_fill" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_up_idLinearGradientx63x54)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_up_idLinearGradientx63x76" x1="0%" y1="100%" x2="0%" y2="0%">
- <stop offset="0.0" stop-color="#000000" stop-opacity="0.0627" />
- <stop offset="0.48" stop-color="#000000" stop-opacity="0.0099" />
- <stop offset="0.48001" stop-color="#000000" stop-opacity="0" />
- </linearGradient>
- </defs>
- <rect id="button_up_lowlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_up_idLinearGradientx63x76)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_up_idLinearGradientx63x100" gradientTransform="rotate(90)">
- <stop offset="0.0" stop-color="#FFFFFF" stop-opacity="0.33" />
- <stop offset="0.48" stop-color="#FFFFFF" stop-opacity="0.33" />
- <stop offset="0.48001" stop-color="#FFFFFF" stop-opacity="0" />
- </linearGradient>
- </defs>
- <rect id="button_up_highlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_up_idLinearGradientx63x100)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_up_idLinearGradientStrokex63x129" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#FFFFFF" />
- <stop offset="1" stop-color="#D8D8D8" />
- </linearGradient>
- </defs>
- <rect id="button_up_highlightStroke" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_up_idLinearGradientStrokex63x129)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="0" right="0" top="0" bottom="0">
- <defs>
- <linearGradient id="button_up_idLinearGradientStrokex63x205" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#000000" stop-opacity="0.5625" />
- <stop offset="1" stop-color="#000000" stop-opacity="0.75" />
- </linearGradient>
- </defs>
- <rect id="button_up_border" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_up_idLinearGradientStrokex63x205)" />
- </svg>
- </svg>
-
- <svg xmlns="http://www.w3.org/2000/svg" id="button_over" width="100%" height="100%" version="1.1" >
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="-1" right="-1" top="-1" bottom="-1">
- <defs>
- <linearGradient id="button_over_idLinearGradientx63x32" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#000000" stop-opacity="0.01" />
- <stop offset="1" stop-color="#000000" stop-opacity="0.07" />
- </linearGradient>
- </defs>
- <rect id="button_over_shadow" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_over_idLinearGradientx63x32)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_over_idLinearGradientx63x54" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#BBBDBD" stop-opacity="0.85" />
- <stop offset="1" stop-color="#9FA0A1" stop-opacity="0.85" />
- </linearGradient>
- </defs>
- <rect id="button_over_fill" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_over_idLinearGradientx63x54)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_over_idLinearGradientx63x76" x1="0%" y1="100%" x2="0%" y2="0%">
- <stop offset="0.0" stop-color="#000000" stop-opacity="0.0627" />
- <stop offset="0.48" stop-color="#000000" stop-opacity="0.0099" />
- <stop offset="0.48001" stop-color="#000000" stop-opacity="0" />
- </linearGradient>
- </defs>
- <rect id="button_over_lowlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_over_idLinearGradientx63x76)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_over_idLinearGradientx63x100" gradientTransform="rotate(90)">
- <stop offset="0.0" stop-color="#FFFFFF" stop-opacity="0.22" />
- <stop offset="0.48" stop-color="#FFFFFF" stop-opacity="0.22" />
- <stop offset="0.48001" stop-color="#FFFFFF" stop-opacity="0" />
- </linearGradient>
- </defs>
- <rect id="button_over_highlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_over_idLinearGradientx63x100)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_over_idLinearGradientStrokex63x129" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#FFFFFF" stop-opacity="0.22" />
- <stop offset="1" stop-color="#D8D8D8" stop-opacity="0.22" />
- </linearGradient>
- </defs>
- <rect id="button_over_highlightStroke" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_over_idLinearGradientStrokex63x129)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="0" right="0" top="0" bottom="0">
- <defs>
- <linearGradient id="button_over_idLinearGradientStrokex63x205" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#000000" stop-opacity="0.5625" />
- <stop offset="1" stop-color="#000000" stop-opacity="0.75" />
- </linearGradient>
- </defs>
- <rect id="button_over_border" width="100%" height="100%" rx="2" ry="2" fill="none" style="stroke-width:2;stroke:url(#button_over_idLinearGradientStrokex63x205)" />
- </svg>
- </svg>
- <svg xmlns="http://www.w3.org/2000/svg" id="button_down" width="100%" height="100%" version="1.1" >
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="-1" right="-1" top="-1" bottom="-1">
- <defs>
- <linearGradient id="button_down_idLinearGradientx63x32" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#FFFFFF" stop-opacity="0" />
- <stop offset="1" stop-color="#FFFFFF" stop-opacity="0.5" />
- </linearGradient>
- </defs>
- <rect id="button_down_shadow" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_down_idLinearGradientx63x32)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_down_idLinearGradientx63x54" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#AAAAAA" stop-opacity="0.85" />
- <stop offset="1" stop-color="#929496" stop-opacity="0.85" />
- </linearGradient>
- </defs>
- <rect id="button_down_fill" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_down_idLinearGradientx63x54)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_down_idLinearGradientx63x76" x1="0%" y1="100%" x2="0%" y2="0%">
- <stop offset="0.0" stop-color="#000000" stop-opacity="0.0627" />
- <stop offset="0.48" stop-color="#000000" stop-opacity="0.0099" />
- <stop offset="0.48001" stop-color="#000000" stop-opacity="0" />
- </linearGradient>
- </defs>
- <rect id="button_down_lowlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_down_idLinearGradientx63x76)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_down_idLinearGradientx63x100" gradientTransform="rotate(90)">
- <stop offset="0.0" stop-color="#FFFFFF" stop-opacity="0.12" />
- <stop offset="0.48" stop-color="#FFFFFF" stop-opacity="0.12" />
- <stop offset="0.48001" stop-color="#FFFFFF" stop-opacity="0" />
- </linearGradient>
- </defs>
- <rect id="button_down_highlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_down_idLinearGradientx63x100)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
- <defs>
- <linearGradient id="button_down_idLinearGradientStrokex63x149" gradientTransform="rotate(90)">
- <stop offset="0.0" stop-color="#000000" stop-opacity="0.25" />
- <stop offset="0.001" stop-color="#000000" stop-opacity="0.25" />
- <stop offset="0.0011" stop-color="#000000" stop-opacity="0.07" />
- <stop offset="0.965" stop-color="#000000" stop-opacity="0.07" />
- <stop offset="0.9651" stop-color="#000000" stop-opacity="0.00" />
- </linearGradient>
- </defs>
- <rect id="button_down_hldownstroke1" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_down_idLinearGradientStrokex63x149)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="2" right="2" top="2" bottom="2">
- <defs>
- <linearGradient id="button_down_idLinearGradientStrokex63x182" gradientTransform="rotate(90)">
- <stop offset="0.0" stop-color="#000000" stop-opacity="0.09" />
- <stop offset="0.0001" stop-color="#000000" stop-opacity="0.00" />
- </linearGradient>
- </defs>
- <rect id="button_down_hldownstroke2" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_down_idLinearGradientStrokex63x182)" />
- </svg>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="0" right="0" top="0" bottom="0">
- <defs>
- <linearGradient id="button_down_idLinearGradientStrokex63x205" gradientTransform="rotate(90)">
- <stop offset="0" stop-color="#000000" stop-opacity="0.6375" />
- <stop offset="1" stop-color="#000000" stop-opacity="0.85" />
- </linearGradient>
- </defs>
- <rect id="button_down_border" width="100%" height="100%" rx="2" ry="2" fill="none" style="stroke-width:2;stroke:url(#button_down_idLinearGradientStrokex63x205)" />
- </svg>
- </svg>
- <svg id="labelDisplaySVG" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" version="1.1" >
- <text id="labelDisplay" text-anchor="middle" font-family="verdana" font-size="12" dy=".3em" x="50%" y="50%" > </text>
- </svg>
- <rect id="mouse_catcher" width="100%" height="100%" fill="none" pointer-events="all"/>
-</svg>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/BinaryData.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/BinaryData.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/BinaryData.js
deleted file mode 100644
index 619b0ed..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/BinaryData.js
+++ /dev/null
@@ -1,223 +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.utils.BinaryData');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.utils.BinaryData = function() {
-
- /**
- * @private
- * @type {ArrayBuffer}
- */
- this.data_ = new ArrayBuffer();
-
- /**
- * @private
- * @type {number}
- */
- this.position_ = 0;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.BinaryData.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'BinaryData',
- qName: 'org.apache.flex.utils.BinaryData'}] };
-
-
-Object.defineProperties(org.apache.flex.utils.BinaryData.prototype, {
- /** @export */
- data: {
- /** @this {org.apache.flex.utils.BinaryData} */
- get: function() {
- return this.data_;
- }
- },
- /** @export */
- position: {
- /** @this {org.apache.flex.utils.BinaryData} */
- get: function() {
- return this.position_;
- },
- /** @this {org.apache.flex.utils.BinaryData} */
- set: function(value) {
- this.position_ = value;
- }
- },
- /** @export */
- length: {
- /** @this {org.apache.flex.utils.BinaryData} */
- get: function() {
- return this.data_.byteLength;
- }
- },
- /** @export */
- bytesAvailable: {
- /** @this {org.apache.flex.utils.BinaryData} */
- get: function() {
- return this.data_.byteLength - this.position_;
- }
- }
-});
-
-
-/**
- * @export
- * @param {number} b The byte to write.
- */
-org.apache.flex.utils.BinaryData.prototype.writeByte = function(b) {
- var view;
-
- this.growBuffer(1);
-
- view = new Int8Array(this.data_, this.position_, 1);
- view[0] = b;
- this.position_++;
-};
-
-
-/**
- * @export
- * @param {number} s The 16-bit integer to write.
- */
-org.apache.flex.utils.BinaryData.prototype.writeShort = function(s) {
- var view;
-
- this.growBuffer(2);
-
- view = new Int16Array(this.data_, this.position_, 1);
- view[0] = s;
- this.position_ += 2;
-};
-
-
-/**
- * @export
- * @param {number} num The 32-bit integer to write.
- */
-org.apache.flex.utils.BinaryData.prototype.writeInt = function(num) {
- var view;
-
- this.growBuffer(4);
-
- view = new Int32Array(this.data_, this.position_, 1);
- view[0] = num;
- this.position_ += 4;
-};
-
-
-/**
- * @export
- * @param {number} num The 32-bit unsigned integer to write.
- */
-org.apache.flex.utils.BinaryData.prototype.writeUnsignedInt =
- function(num) {
- var view;
-
- this.growBuffer(4);
-
- view = new Uint32Array(this.data_, this.position_, 1);
- view[0] = num;
- this.position_ += 4;
-};
-
-
-/**
- * @export
- * @return {number} The byte that was read.
- */
-org.apache.flex.utils.BinaryData.prototype.readByte = function() {
- var view;
-
- view = new Int8Array(this.data_, this.position_, 1);
- this.position_++;
- return view[0];
-};
-
-
-/**
- * @export
- * @return {number} The 16-bit integer that was read.
- */
-org.apache.flex.utils.BinaryData.prototype.readShort = function() {
- var view;
-
- view = new Int16Array(this.data_, this.position_, 1);
- this.position_ += 2;
- return view[0];
-};
-
-
-/**
- * @export
- * @return {number} The 32-bit integer that was read.
- */
-org.apache.flex.utils.BinaryData.prototype.readInteger = function() {
- var view;
-
- view = new Int32Array(this.data_, this.position_, 1);
- this.position_ += 4;
- return view[0];
-};
-
-
-/**
- * @export
- * @return {number} The 32-bit unsigned integer that was read.
- */
-org.apache.flex.utils.BinaryData.prototype.readUnsignedInteger =
- function() {
- var view;
-
- view = new Uint32Array(this.data_, this.position_, 1);
- this.position_ += 4;
- return view[0];
-};
-
-
-/**
- * @export
- * @param {number} extra The number of bytes to add to the buffer.
- */
-org.apache.flex.utils.BinaryData.prototype.growBuffer = function(extra) {
- var newBuffer, newView, view, i, n;
-
- if (this.position_ >= this.data_.byteLength)
- {
- n = this.data_.byteLength;
- newBuffer = new ArrayBuffer(n + extra);
- newView = new Int8Array(newBuffer, 0, n);
- view = new Int8Array(this.data_, 0, n);
- for (i = 0; i < n; i++)
- {
- newView[i] = view[i];
- }
- this.data_ = newBuffer;
- }
-};
-
-
-
-
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/CSSContainerUtils.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/CSSContainerUtils.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/CSSContainerUtils.js
deleted file mode 100644
index 77eee76..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/CSSContainerUtils.js
+++ /dev/null
@@ -1,83 +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.utils.CSSContainerUtils');
-
-goog.require('org.apache.flex.geom.Rectangle');
-goog.require('org.apache.flex.utils.CSSUtils');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.utils.CSSContainerUtils = function() {
-};
-
-
-/**
- * @export
- * @param {Object} object The strand whose border offsets are required.
- * @return {org.apache.flex.geom.Rectangle} The four border widths.
- */
-org.apache.flex.utils.CSSContainerUtils.getBorderMetrics = function(object) {
- var style = getComputedStyle(object.element);
- var borderLeft = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('border-left-width'), object.width);
- var borderRight = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('border-right-width'), object.width);
- var borderTop = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('border-top-width'), object.width);
- var borderBottom = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('border-bottom-width'),
- object.width);
- return new org.apache.flex.geom.Rectangle(borderLeft, borderTop, borderRight - borderLeft, borderBottom - borderTop);
-};
-
-
-/**
- * @export
- * @param {Object} object The strand whose padding offsets are required.
- * @return {org.apache.flex.geom.Rectangle} The four padding widths.
- */
-org.apache.flex.utils.CSSContainerUtils.getPaddingMetrics = function(object) {
- var style = getComputedStyle(object.element);
- var paddingLeft = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('padding-left'), object.width);
- var paddingRight = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('padding-right'), object.width);
- var paddingTop = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('padding-top'), object.width);
- var paddingBottom = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('padding-bottom'), object.width);
- return new org.apache.flex.geom.Rectangle(paddingLeft, paddingTop,
- paddingRight - paddingLeft, paddingBottom - paddingTop);
-};
-
-
-/**
- * @export
- * @param {Object} object The strand whose border and padding offsets are required.
- * @return {org.apache.flex.geom.Rectangle} The four border padding widths.
- */
-org.apache.flex.utils.CSSContainerUtils.getBorderAndPaddingMetrics = function(object) {
- var style = getComputedStyle(object.element);
- var borderLeft = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('border-left-width'), object.width);
- var borderRight = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('border-right-width'), object.width);
- var borderTop = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('border-top-width'), object.width);
- var borderBottom = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('border-bottom-width'),
- object.width);
- var paddingLeft = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('padding-left'), object.width);
- var paddingRight = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('padding-right'), object.width);
- var paddingTop = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('padding-top'), object.width);
- var paddingBottom = org.apache.flex.utils.CSSUtils.toNumber(style.getPropertyValue('padding-bottom'), object.width);
- paddingLeft += borderLeft;
- paddingRight += borderRight;
- paddingTop += borderTop;
- paddingBottom += borderBottom;
- return new org.apache.flex.geom.Rectangle(paddingLeft, paddingTop,
- paddingRight - paddingLeft, paddingBottom - paddingTop);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/EffectTimer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/EffectTimer.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/EffectTimer.js
deleted file mode 100644
index 3175605..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/EffectTimer.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.utils.EffectTimer');
-
-goog.require('org.apache.flex.core.IEffectTimer');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.events.EventDispatcher');
-goog.require('org.apache.flex.events.ValueEvent');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- * @suppress {checkTypes}
- */
-org.apache.flex.utils.EffectTimer = function() {
- org.apache.flex.utils.EffectTimer.base(this, 'constructor');
-
- /**
- * @protected
- * @type {number}
- */
- this.timerInterval = -1;
-
- /**
- * @protected
- * @type {number}
- */
- this._delay = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this,
- 'effectTimerInterval');
-
-};
-goog.inherits(org.apache.flex.utils.EffectTimer,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.EffectTimer.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'EffectTimer',
- qName: 'org.apache.flex.utils.EffectTimer'}],
- interfaces: [org.apache.flex.core.IEffectTimer] };
-
-
-/**
- * @export
- * Stops the timer.
- */
-org.apache.flex.utils.EffectTimer.prototype.stop = function() {
- clearInterval(this.timerInterval);
- this.timerInterval = -1;
-};
-
-
-/**
- * @export
- * Starts the timer.
- * @return {number} The start time.
- */
-org.apache.flex.utils.EffectTimer.prototype.start = function() {
- this.timerInterval =
- setInterval(goog.bind(this.timerHandler, this), this._delay);
- var d = new Date();
- return d.getTime();
-};
-
-
-/**
- * @protected
- */
-org.apache.flex.utils.EffectTimer.prototype.timerHandler =
- function() {
- var d = new Date();
- this.dispatchEvent(new org.apache.flex.events.ValueEvent('update', d.getTime()));
-
-};
-
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/Language.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/Language.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/Language.js
deleted file mode 100644
index f95b659..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/Language.js
+++ /dev/null
@@ -1,316 +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.utils.Language');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.utils.Language = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.Language.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Language',
- qName: 'org.apache.flex.utils.Language'}] };
-
-
-/**
- * as()
- *
- * @export
- * @param {?} leftOperand The lefthand operand of the
- * binary as operator in AS3.
- * @param {?} rightOperand The righthand operand of the
- * binary operator in AS3.
- * @param {?=} opt_coercion The cast is a coercion,
- * throw expception if it fails.
- * @return {?} Returns the lefthand operand if it is of the
- * type of the righthand operand, otherwise null.
- */
-org.apache.flex.utils.Language.as = function(leftOperand, rightOperand, opt_coercion) {
- var error, itIs, message;
-
- opt_coercion = (opt_coercion !== undefined) ? opt_coercion : false;
-
- itIs = org.apache.flex.utils.Language.is(leftOperand, rightOperand);
-
- if (!itIs && opt_coercion) {
- message = 'Type Coercion failed';
- if (TypeError) {
- error = new TypeError(message);
- } else {
- error = new Error(message);
- }
- throw error;
- }
-
- return (itIs) ? leftOperand : null;
-};
-
-
-/**
- * int()
- *
- * @export
- * @param {?} value The value to be cast.
- * @return {number}
- */
-org.apache.flex.utils.Language._int = function(value) {
- return value >> 0;
-};
-
-
-/**
- * is()
- *
- * @export
- * @param {?} leftOperand The lefthand operand of the
- * binary as operator in AS3.
- * @param {?} rightOperand The righthand operand of the
- * binary operator in AS3.
- * @return {boolean}
- */
-org.apache.flex.utils.Language.is = function(leftOperand, rightOperand) {
- var checkInterfaces, superClass;
-
- if (leftOperand == null)
- return false;
-
- if (leftOperand && rightOperand == null) {
- return false;
- }
-
- checkInterfaces = function(left) {
- var i, interfaces;
-
- interfaces = left.FLEXJS_CLASS_INFO.interfaces;
- for (i = interfaces.length - 1; i > -1; i--) {
- if (interfaces[i] === rightOperand) {
- return true;
- }
-
- if (interfaces[i].prototype.FLEXJS_CLASS_INFO.interfaces) {
- var isit = checkInterfaces(new interfaces[i]());
- if (isit) return true;
- }
- }
-
- return false;
- };
-
- if ((rightOperand === String && typeof leftOperand === 'string') ||
- (leftOperand instanceof /** @type {Object} */(rightOperand))) {
- return true;
- }
- if (typeof leftOperand === 'string')
- return false; // right was not String otherwise exit above
- if (typeof leftOperand === 'number')
- return rightOperand === Number;
- if (rightOperand === Array && Array.isArray(leftOperand))
- return true;
- if (leftOperand.FLEXJS_CLASS_INFO === undefined)
- return false; // could be a function but not an instance
- if (leftOperand.FLEXJS_CLASS_INFO.interfaces) {
- if (checkInterfaces(leftOperand)) {
- return true;
- }
- }
-
- superClass = leftOperand.constructor.superClass_;
- if (superClass) {
- while (superClass && superClass.FLEXJS_CLASS_INFO) {
- if (superClass.FLEXJS_CLASS_INFO.interfaces) {
- if (checkInterfaces(superClass)) {
- return true;
- }
- }
- superClass = superClass.constructor.superClass_;
- }
- }
-
- return false;
-};
-
-
-/**
- * trace()
- *
- * @export
- * @param {...Object} var_args The message(s) to be written to the console.
- */
-org.apache.flex.utils.Language.trace = function(var_args) {
- var theConsole;
-
- var msg = '';
- for (var i = 0; i < arguments.length; i++) {
- if (i > 0) msg += ' ';
- msg += arguments[i];
- }
-
- theConsole = goog.global.console;
-
- if (theConsole === undefined && window.console !== undefined)
- theConsole = window.console;
-
- try {
- if (theConsole && theConsole.log) {
- theConsole.log(msg);
- }
- } catch (e) {
- // ignore; at least we tried ;-)
- }
-};
-
-
-/**
- * uint()
- *
- * @export
- * @param {?} value The value to be cast.
- * @return {number}
- */
-org.apache.flex.utils.Language.uint = function(value) {
- return value >>> 0;
-};
-
-
-/**
- * preincrement handles --foo
- *
- * @export
- * @param {Object} obj The object with the getter/setter.
- * @param {string} prop The name of a property.
- * @return {number}
- */
-org.apache.flex.utils.Language.preincrement = function(obj, prop) {
- var value = obj[prop] + 1;
- obj[prop] = value;
- return value;
-};
-
-
-/**
- * predecrement handles ++foo
- *
- * @export
- * @param {Object} obj The object with the getter/setter.
- * @param {string} prop The name of a property.
- * @return {number}
- */
-org.apache.flex.utils.Language.predecrement = function(obj, prop) {
- var value = obj[prop] - 1;
- obj[prop] = value;
- return value;
-};
-
-
-/**
- * postincrement handles foo++
- *
- * @export
- * @param {Object} obj The object with the getter/setter.
- * @param {string} prop The name of a property.
- * @return {number}
- */
-org.apache.flex.utils.Language.postincrement = function(obj, prop) {
- var value = obj[prop];
- obj[prop] = value + 1;
- return value;
-};
-
-
-/**
- * postdecrement handles foo++
- *
- * @export
- * @param {Object} obj The object with the getter/setter.
- * @param {string} prop The name of a property.
- * @return {number}
- */
-org.apache.flex.utils.Language.postdecrement = function(obj, prop) {
- var value = obj[prop];
- obj[prop] = value + 1;
- return value;
-};
-
-
-/**
- * superGetter calls the getter on the given class' superclass.
- *
- * @export
- * @param {Object} clazz The class.
- * @param {Object} pthis The this pointer.
- * @param {string} prop The name of the getter.
- * @return {Object}
- */
-org.apache.flex.utils.Language.superGetter = function(clazz, pthis, prop) {
- var superClass = clazz.superClass_;
- var superdesc = Object.getOwnPropertyDescriptor(superClass, prop);
- while (superdesc == null)
- {
- superClass = superClass.constructor.superClass_;
- superdesc = Object.getOwnPropertyDescriptor(superClass, prop);
- }
- return superdesc.get.call(pthis);
-};
-
-
-/**
- * superSetter calls the setter on the given class' superclass.
- *
- * @export
- * @param {Object} clazz The class.
- * @param {Object} pthis The this pointer.
- * @param {string} prop The name of the getter.
- * @param {Object} value The value.
- */
-org.apache.flex.utils.Language.superSetter = function(clazz, pthis, prop, value) {
- var superClass = clazz.superClass_;
- var superdesc = Object.getOwnPropertyDescriptor(superClass, prop);
- while (superdesc == null)
- {
- superClass = superClass.constructor.superClass_;
- superdesc = Object.getOwnPropertyDescriptor(superClass, prop);
- }
- superdesc.set.apply(pthis, [value]);
-};
-
-
-/**
- * caches closures and returns the one closure
- *
- * @export
- * @param {Function} fn The method on the instance.
- * @param {Object} object The instance.
- * @param {string} boundMethodName The name to use to cache the closure.
- * @return {Function} The closure.
- */
-org.apache.flex.utils.Language.closure = function(fn, object, boundMethodName) {
- if (object.hasOwnProperty(boundMethodName)) {
- return object[boundMethodName];
- }
- var boundMethod = goog.bind(fn, object);
- Object.defineProperty(object, boundMethodName, {
- value: boundMethod
- });
- return boundMethod;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/MXMLDataInterpreter.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/MXMLDataInterpreter.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/MXMLDataInterpreter.js
deleted file mode 100644
index a56c912..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/MXMLDataInterpreter.js
+++ /dev/null
@@ -1,412 +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.utils.MXMLDataInterpreter');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.utils.MXMLDataInterpreter = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.MXMLDataInterpreter.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'MXMLDataInterpreter',
- qName: 'org.apache.flex.utils.MXMLDataInterpreter'}] };
-
-
-/**
- * @param {Object} document The MXML object.
- * @param {Array} data The data array.
- * @return {Object} The generated object.
- */
-org.apache.flex.utils.MXMLDataInterpreter.generateMXMLObject =
- function(document, data) {
- var assignComp, Cls, comp, generateMXMLArray, generateMXMLObject, i, id, j, m,
- name, simple, value;
-
- i = 0;
- Cls = data[i++];
- comp = new Cls();
-
- generateMXMLArray =
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLArray;
- generateMXMLObject =
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLObject;
-
- if (comp.addBead)
- org.apache.flex.utils.MXMLDataInterpreter.initializeStrandBasedObject(document, null, comp, data, i);
- else {
- m = data[i++]; // num props
- for (j = 0; j < m; j++) {
- name = data[i++];
- simple = data[i++];
- value = data[i++];
-
- if (simple === null) {
- value = generateMXMLArray(document, null, value);
- } else if (simple === false) {
- value = generateMXMLObject(document, value);
- }
-
- if (name === 'id') {
- document[value] = comp;
- id = value;
- }
-
- if (name == 'document' && !comp.document) {
- comp.document = document;
- }
- else if (name === '_id') {
- document[value] = comp;
- id = value;
- }
- else if (name === 'id') {
- try {
- comp.id = value;
- } catch (e) {}
- }
- else {
- comp[name] = value;
- }
- }
-
- if (typeof comp.setDocument === 'function') {
- comp.setDocument(document, id);
- }
- }
-
- return comp;
-};
-
-
-/**
- * @export
- * @param {Object} document The MXML object.
- * @param {Object} parent The parent object.
- * @param {Array} data The data array.
- * @return {Array} The generated array.
- */
-org.apache.flex.utils.MXMLDataInterpreter.generateMXMLArray =
- function(document, parent, data) {
- var comps = [];
-
- var n = data.length;
- var i = 0;
- while (i < n) {
- var cls = data[i++];
- var comp = new cls();
-
- i = org.apache.flex.utils.MXMLDataInterpreter.initializeStrandBasedObject(document, parent, comp, data, i);
-
- comps.push(comp);
- }
- return comps;
-};
-
-
-/**
- * @export
- * @param {Object} document The MXML object.
- * @param {Object} parent The parent object.
- * @param {Object} comp The component being initialized.
- * @param {Array} data The data array.
- * @param {number} i The offset into data.
- * @return {number} The new offset into the data.
- */
-org.apache.flex.utils.MXMLDataInterpreter.initializeStrandBasedObject =
- function(document, parent, comp, data, i) {
- var bead, beadOffset, beads, children, Cls, generateMXMLArray,
- generateMXMLObject, id, j, k, l, m, n, name, self, simple, value, dispatchBeadsAdded;
-
- generateMXMLArray =
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLArray;
- generateMXMLObject =
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLObject;
-
- id = null;
-
- m = data[i++]; // num props
- if (m > 0 && data[0] === 'model') {
- m--;
- name = data[i++];
- simple = data[i++];
- value = data[i++];
-
- if (simple === null) {
- value = generateMXMLArray(document, parent, value);
- } else if (simple === false) {
- value = generateMXMLObject(document, value);
- }
-
- comp[name] = value;
- }
-
- beadOffset = i + (m - 1) * 3;
- if (m > 0 && data[beadOffset] === 'beads') {
- m--;
- } else {
- beadOffset = -1;
- }
-
- for (j = 0; j < m; j++) {
- name = data[i++];
- simple = data[i++];
- value = data[i++];
-
- if (simple === null) {
- value = generateMXMLArray(document, null, value);
- } else if (simple === false) {
- value = generateMXMLObject(document, value);
- }
-
- if (name === 'id') {
- id = value;
- document[value] = comp;
- }
-
- if (name === 'document' && !comp.document) {
- comp.document = document;
- } else if (name === '_id') {
- id = value; // and don't assign to comp
- } else if (name === 'id') {
- try {
- comp.id = value;
- } catch (e) {}
- } else {
- comp[name] = value;
- }
- }
-
- if (beadOffset > -1)
- {
- name = data[i++];
- simple = data[i++];
- value = data[i++];
-
- if (simple === null) {
- value = generateMXMLArray(document, null, value);
- } else if (simple === false) {
- value = generateMXMLObject(document, value);
- }
- comp[name] = value;
- }
-
- m = data[i++]; // num styles
- for (j = 0; j < m; j++) {
- name = data[i++];
- simple = data[i++];
- value = data[i++];
-
- if (simple === null) {
- value = generateMXMLArray(document, null, value);
- } else if (simple === false) {
- value = generateMXMLObject(document, value);
- }
-
- if (comp.setStyle) {
- comp.setStyle(name, value);
- }
- }
-
- /*
- m = data[i++]; // num effects
- for (j = 0; j < m; j++)
- {
- name = data[i++];
- simple = data[i++];
- value = data[i++];
- if (simple === null)
- value = generateMXMLArray(document, null, value, opt_recursive);
- else if (simple === false)
- value = generateMXMLObject(document, value);
- comp.setStyle(name, value);
- }
- */
-
- m = data[i++]; // num events
- for (j = 0; j < m; j++) {
- name = data[i++];
- value = data[i++];
-
- comp.addEventListener(name, goog.bind(value, document));
- }
-
- var isContainer = (typeof comp.childrenAdded === 'function');
-
- children = data[i++];
- if (children && comp['setMXMLDescriptor']) {
- comp['setMXMLDescriptor'](document, children);
- }
- if (parent && org.apache.flex.utils.Language.is(comp,
- org.apache.flex.core.IUIBase)) {
- parent.addElement(comp, !isContainer);
- }
-
- if (children) {
- if (!comp['setMXMLDescriptor']) {
- self = org.apache.flex.utils.MXMLDataInterpreter;
- self.generateMXMLInstances(
- document, comp, children);
- if (isContainer)
- comp['childrenAdded']();
- }
- }
-
- if (id) {
- document[id] = comp;
- }
-
- if (typeof(comp.setDocument) === 'function') {
- comp.setDocument(document, id);
- }
-
- if (goog.isFunction(comp.finalizeElement)) {
- comp.finalizeElement();
- }
-
- return i;
-};
-
-
-/**
- * @export
- * @param {Object} document The MXML object.
- * @param {Object} parent The parent object.
- * @param {Array} data The data array.
- */
-org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances =
- function(document, parent, data) {
- if (data) {
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLArray(
- document, parent, data);
- }
-};
-
-
-/**
- * @export
- * @param {Object} host The MXML object.
- * @param {Array} data The data array.
- */
-org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties =
- function(host, data) {
- var bead, beadOffset, beads, generateMXMLArray, generateMXMLObject, i, id, j,
- k, l, m, name, simple, value;
-
- if (!data) {
- return;
- }
-
- i = 0;
- id = null;
-
- generateMXMLArray =
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLArray;
- generateMXMLObject =
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLObject;
-
- m = data[i++]; // num props
- beadOffset = i + (m - 1) * 3;
- if (m > 0 && data[beadOffset] === 'beads') {
- m--;
- } else {
- beadOffset = -1;
- }
-
- for (j = 0; j < m; j++) {
- name = data[i++];
- simple = data[i++];
- value = data[i++];
-
- if (simple === null) {
- value = generateMXMLArray(host, null, value);
- } else if (simple === false) {
- value = generateMXMLObject(host, value);
- }
-
- if (name === 'id') {
- id = value;
- }
-
- if (name === '_id') {
- id = value; // and don't assign
- } else {
- host[name] = value;
- }
- }
-
- if (beadOffset > -1) {
- name = data[i++];
- simple = data[i++];
- value = data[i++];
-
- if (simple === null) {
- value = generateMXMLArray(host, null, value);
- } else if (simple === false) {
- value = generateMXMLObject(host, value);
- }
-
- beads = value;
- l = beads.length;
- for (k = 0; k < l; k++) {
- bead = beads[k];
- host.addBead(bead);
- }
- }
-
- m = data[i++]; // num styles
- for (j = 0; j < m; j++) {
- name = data[i++];
- simple = data[i++];
- value = data[i++];
-
- if (simple === null) {
- value = generateMXMLArray(host, null, value);
- } else if (simple === false) {
- value = generateMXMLObject(host, value);
- }
-
- host[name] = value;
- }
-
- /*
- m = data[i++]; // num effects
- for (j = 0; j < m; j++)
- {
- name = data[i++];
- simple = data[i++];
- value = data[i++];
- if (simple === null)
- value = generateMXMLArray(host, null, value, false);
- else if (simple === false)
- value = generateMXMLObject(host, value);
- host[name] = value;
- }
- */
-
- m = data[i++]; // num events
- for (j = 0; j < m; j++) {
- name = data[i++];
- value = data[i++];
- host.addEventListener(name, goog.bind(value, host));
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/MixinManager.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/MixinManager.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/MixinManager.js
deleted file mode 100644
index 7dd8764..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/MixinManager.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.utils.MixinManager');
-
-goog.require('org.apache.flex.core.IBead');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBead}
- * Initialize mixins.
- * Compiler may not be generating list of mixins right now.
- */
-org.apache.flex.utils.MixinManager = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.MixinManager.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'MixinManager',
- qName: 'org.apache.flex.utils.MixinManager'}],
- interfaces: [org.apache.flex.core.IBead]};
-
-
-Object.defineProperties(org.apache.flex.utils.MixinManager.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.utils.MixinManager} */
- set: function(value) {
- this.strand_ = value;
-
- if (value) {
- if (typeof(value.info) == 'function') {
- var mixins = value.info()['mixins'];
- if (mixins) {
- var n = mixins.length;
- for (var i = 0; i < n; i++) {
- mixins[i].init(value);
- }
- }
- }
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/PointUtils.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/PointUtils.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/PointUtils.js
deleted file mode 100644
index 2ed13ff..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/PointUtils.js
+++ /dev/null
@@ -1,82 +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.utils.PointUtils');
-
-goog.require('org.apache.flex.geom.Point');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.utils.PointUtils = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.PointUtils.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'PointUtils',
- qName: 'org.apache.flex.utils.PointUtils' }] };
-
-
-/**
- * @export
- * @param {org.apache.flex.geom.Point} point The Point to be converted.
- * @param {Object} local The object used as reference.
- * @return {org.apache.flex.geom.Point} The converted Point.
- */
-org.apache.flex.utils.PointUtils.globalToLocal =
- function(point, local) {
- var x = point.x, y = point.y;
- var element = local.element;
-
- do {
- x -= element.offsetLeft;
- y -= element.offsetTop;
- if (local.hasOwnProperty('parent')) {
- local = local.parent;
- element = local.element;
- } else {
- element = null;
- }
- }
- while (element);
- return new org.apache.flex.geom.Point(x, y);
-};
-
-
-/**
- * @export
- * @param {org.apache.flex.geom.Point} point The Point to be converted.
- * @param {Object} local The object used as reference.
- * @return {org.apache.flex.geom.Point} The converted Point.
- */
-org.apache.flex.utils.PointUtils.localToGlobal =
- function(point, local) {
- var x = point.x, y = point.y;
- var element = local.element;
-
- do {
- x += element.offsetLeft;
- y += element.offsetTop;
- element = element.offsetParent;
- }
- while (element);
- return new org.apache.flex.geom.Point(x, y);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/Timer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/Timer.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/Timer.js
deleted file mode 100644
index 4c3936f..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/Timer.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.utils.Timer');
-
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- * @param {number} delay The delay.
- * @param {number=} opt_repeatCount The repeatCount.
- */
-org.apache.flex.utils.Timer = function(delay, opt_repeatCount) {
- org.apache.flex.utils.Timer.base(this, 'constructor');
-
- if (opt_repeatCount !== undefined) {
- this._repeatCount = opt_repeatCount;
- }
-
- /**
- * @protected
- * @type {number}
- */
- this.timerInterval = -1;
-
- /**
- * @protected
- * @type {number}
- */
- this._delay = delay;
-
- /**
- * @protected
- * @type {number}
- */
- this._currentCount = 0;
-};
-goog.inherits(org.apache.flex.utils.Timer,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.Timer.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Timer',
- qName: 'org.apache.flex.utils.Timer'}] };
-
-
-/**
- * @export
- * Stops the timer and sets currentCount = 0.
- */
-org.apache.flex.utils.Timer.prototype.reset = function() {
- this.stop();
- this._currentCount = 0;
-};
-
-
-/**
- * @export
- * Stops the timer.
- */
-org.apache.flex.utils.Timer.prototype.stop = function() {
- clearInterval(this.timerInterval);
- this.timerInterval = -1;
-};
-
-
-/**
- * @export
- * Starts the timer.
- */
-org.apache.flex.utils.Timer.prototype.start = function() {
- this.timerInterval =
- setInterval(goog.bind(this.timerHandler, this), this._delay);
-};
-
-
-/**
- * @protected
- */
-org.apache.flex.utils.Timer.prototype.timerHandler =
- function() {
- this._currentCount++;
- if (this._repeatCount > 0 && this._currentCount >= this._repeatCount) {
- this.stop();
- }
-
- this.dispatchEvent(new org.apache.flex.events.Event('timer'));
-
-};
-
-Object.defineProperties(org.apache.flex.utils.Timer.prototype, {
- /** @export */
- currentCount: {
- /** @this {org.apache.flex.utils.Timer} */
- get: function() {
- return this._currentCount;
- }
- },
- /** @export */
- running: {
- /** @this {org.apache.flex.utils.Timer} */
- get: function() {
- return this.timerInterval !== -1;
- }
- },
- /** @export */
- delay: {
- /** @this {org.apache.flex.utils.Timer} */
- get: function() {
- return this._delay;
- },
- /** @this {org.apache.flex.utils.Timer} */
- set: function(value) {
- this._delay = value;
- }
- },
- /** @export */
- repeatCount: {
- /** @this {org.apache.flex.utils.Timer} */
- get: function() {
- return this._repeatCount;
- },
- /** @this {org.apache.flex.utils.Timer} */
- set: function(value) {
- this._repeatCount = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/UIUtils.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/UIUtils.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/UIUtils.js
deleted file mode 100644
index 93ee622..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/UIUtils.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.utils.UIUtils');
-
-goog.require('org.apache.flex.core.IPopUpHost');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.utils.UIUtils = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.UIUtils.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'UIUtils',
- qName: 'org.apache.flex.utils.UIUtils' }] };
-
-
-/**
- * @export
- * @param {Object} item The item to be centered.
- * @param {Object} relativeTo The object used as reference.
- */
-org.apache.flex.utils.UIUtils.center =
- function(item, relativeTo) {
-
- var rw = relativeTo.width;
- if (isNaN(rw)) rw = window.innerWidth;
- var rh = relativeTo.height;
- if (isNaN(rh)) rh = window.innerHeight;
-
- var xpos = (rw - item.width) / 2;
- var ypos = (rh - item.height) / 2;
- item.x = xpos;
- item.y = ypos;
-};
-
-
-/**
- * @export
- * @param {Object} start A component to start the search.
- * @return {Object} A component that implements IPopUpHost.
- */
-org.apache.flex.utils.UIUtils.findPopUpHost =
- function(start) {
-
- while (start != null && !org.apache.flex.utils.Language.is(start, org.apache.flex.core.IPopUpHost)) {
- start = start.parent;
- }
-
- return start;
-};
-
-
-/**
- * @export
- * @param {Object} popUp An IPopUpHost component looking to be removed.
- */
-org.apache.flex.utils.UIUtils.removePopUp =
- function(popUp) {
-
- var p = popUp.parent;
- p.removeElement(popUp);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/ViewSourceContextMenuOption.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
deleted file mode 100644
index 934979d..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
+++ /dev/null
@@ -1,47 +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.utils.ViewSourceContextMenuOption');
-
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- */
-org.apache.flex.utils.ViewSourceContextMenuOption = function() {
- // no implementation in JS since ViewSource is already in menu
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.ViewSourceContextMenuOption.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ViewSourceContextMenuOption',
- qName: 'org.apache.flex.utils.ViewSourceContextMenuOption'}] };
-
-
-Object.defineProperties(org.apache.flex.utils.ViewSourceContextMenuOption.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.utils.ViewSourceContextMenuOption} */
- set: function(value) {}
- }
-});
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/DragDrop/js/src/org/apache/flex/events/DragEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/js/src/org/apache/flex/events/DragEvent.js b/frameworks/projects/DragDrop/js/src/org/apache/flex/events/DragEvent.js
deleted file mode 100644
index b0deee6..0000000
--- a/frameworks/projects/DragDrop/js/src/org/apache/flex/events/DragEvent.js
+++ /dev/null
@@ -1,146 +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.events.DragEvent');
-
-goog.require('goog.events.BrowserEvent');
-goog.require('org.apache.flex.events.ElementEvents');
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-
-/**
- * @constructor
- * This is a shim class. A native MouseEvent is actually
- * sent with additional properties like dragInitiator and
- * dragSource tacked on.
- *
- * @extends {goog.events.BrowserEvent}
- * @param {string} type The event type.
- */
-org.apache.flex.events.DragEvent = function(type) {
- org.apache.flex.events.DragEvent.base(this, 'constructor');
-
- this.type = type;
-};
-goog.inherits(org.apache.flex.events.DragEvent,
- goog.events.BrowserEvent);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.DragEvent.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'DragEvent',
- qName: 'org.apache.flex.events.DragEvent'}] };
-
-
-/**
- * @export
- * @param {string} type The event type.
- * @param {Event} e The mouse event to base the DragEvent on.
- * @return {MouseEvent} The new event.
- */
-org.apache.flex.events.DragEvent.createDragEvent =
- function(type, e) {
- var out = new MouseEvent(type);
- out.initMouseEvent(type, true, true,
- e.view, e.detail, e.screenX, e.screenY,
- e.clientX, e.clientY, e.ctrlKey, e.altKey,
- e.shiftKey, e.metaKey, e.button, e.relatedTarget);
- return out;
-};
-
-
-/**
- * @export
- * @param {Event} event The drag event.
- * @param {Object} target The target for the event.
- */
-org.apache.flex.events.DragEvent.dispatchDragEvent =
- function(event, target) {
- target.element.dispatchEvent(event);
-};
-
-
-/**
- * @export
- * @type {string} DRAG_START The event type for starting drag-drop.
- */
-org.apache.flex.events.DragEvent.DRAG_START = 'dragStart';
-
-
-/**
- * @export
- * @type {string} DRAG_MOVE The event type when moving mouse during drag-drop.
- */
-org.apache.flex.events.DragEvent.DRAG_MOVE = 'dragMove';
-
-
-/**
- * @export
- * @type {string} DRAG_END The event type for ending drag-drop.
- */
-org.apache.flex.events.DragEvent.DRAG_END = 'dragEnd';
-
-
-/**
- * @export
- * @type {string} DRAG_ENTER The event type for entering a potential drop target.
- */
-org.apache.flex.events.DragEvent.DRAG_ENTER = 'dragEnter';
-
-
-/**
- * @export
- * @type {string} DRAG_OVER The event type for moving over a potential drop target.
- */
-org.apache.flex.events.DragEvent.DRAG_OVER = 'dragOver';
-
-
-/**
- * @export
- * @type {string} DRAG_EXIT The event type for leaving a potential drop target.
- */
-org.apache.flex.events.DragEvent.DRAG_EXIT = 'dragExit';
-
-
-/**
- * @export
- * @type {string} DRAG_DROP The event type for dropping on a target.
- */
-org.apache.flex.events.DragEvent.DRAG_DROP = 'dragDrop';
-
-
-/**
- * @return {boolean}
- */
-org.apache.flex.events.DragEvent.installDragEventMixin = function() {
- var o = org.apache.flex.events.ElementEvents.elementEvents;
- o['dragEnd'] = 1;
- o['dragMove'] = 1;
- return true;
-};
-
-
-/**
- * Add some other events to listen from the element
- */
-/**
- * @type {boolean}
- */
-org.apache.flex.events.DragEvent.dragEventMixin =
- org.apache.flex.events.DragEvent.installDragEventMixin();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Effects/js/src/org/apache/flex/effects/PlatformWiper.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Effects/js/src/org/apache/flex/effects/PlatformWiper.js b/frameworks/projects/Effects/js/src/org/apache/flex/effects/PlatformWiper.js
deleted file mode 100644
index 468397b..0000000
--- a/frameworks/projects/Effects/js/src/org/apache/flex/effects/PlatformWiper.js
+++ /dev/null
@@ -1,85 +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.effects.PlatformWiper');
-
-goog.require('org.apache.flex.geom.Rectangle');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.effects.PlatformWiper = function() {
-
- /**
- * @private
- * @type {Object}
- */
- this.target_ = null;
-
-
- /**
- * @private
- * @type {Object}
- */
- this.overflow_ = null;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.effects.PlatformWiper.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'PlatformWiper',
- qName: 'org.apache.flex.effects.PlatformWiper'}] };
-
-
-Object.defineProperties(org.apache.flex.effects.PlatformWiper.prototype, {
- /** @export */
- target: {
- /** @this {org.apache.flex.effects.PlatformWiper} */
- set: function(target) {
- if (target == null) {
- if (this.overflow_ == null)
- delete this.target_.positioner.style.overflow;
- else
- this.target_.positioner.style.overflow = this.overflow_;
- }
- this.target_ = target;
- if (target != null) {
- this.overflow_ = this.target_.positioner.style.overflow;
- }
- }
- },
- /** @export */
- visibleRect: {
- /** @this {org.apache.flex.effects.PlatformWiper} */
- set: function(rect) {
- /*
- var styleString = 'rect(';
- styleString += rect.top.toString() + 'px,';
- styleString += rect.width.toString() + 'px,';
- styleString += rect.height.toString() + 'px,';
- styleString += rect.left.toString() + 'px)';
- this.target_.positioner.style.clip = styleString;
- */
- this.target_.positioner.style.height = rect.height.toString() + 'px';
- this.target_.positioner.style.overflow = 'hidden';
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Circle.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Circle.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Circle.js
deleted file mode 100644
index f101851..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Circle.js
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.graphics.Circle');
-
-goog.require('org.apache.flex.core.graphics.GraphicShape');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.graphics.GraphicShape}
- */
-org.apache.flex.core.graphics.Circle = function() {
- org.apache.flex.core.graphics.Circle.base(this, 'constructor');
-
- /**
- * @private
- * @type {number}
- */
- this.radius_ = 0;
-};
-goog.inherits(org.apache.flex.core.graphics.Circle,
- org.apache.flex.core.graphics.GraphicShape);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.Circle.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Circle',
- qName: 'org.apache.flex.core.graphics.Circle' }] };
-
-
-
-Object.defineProperties(org.apache.flex.core.graphics.Circle.prototype, {
- /** @export */
- radius: {
- /** @this {org.apache.flex.core.graphics.Circle} */
- set: function(v) {
- this.radius_ = v;
- },
- /** @this {org.apache.flex.core.graphics.Circle} */
- get: function() {
- return this.radius_;
- }
- }
-});
-
-
-/**
- * @export
- * @param {number} x The x location of the center of the circle.
- * @param {number} y The y location of the center of the circle.
- * @param {number} radius The radius of the circle.
- */
-org.apache.flex.core.graphics.Circle.prototype.drawCircle = function(x, y, radius) {
- var style = this.getStyleStr();
- var circle = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse');
- circle.flexjs_wrapper = this;
- circle.setAttribute('style', style);
- if (this.stroke)
- {
- circle.setAttribute('cx', String(radius + this.stroke.weight));
- circle.setAttribute('cy', String(radius + this.stroke.weight));
- this.setPosition(x - radius, y - radius, this.stroke.weight, this.stroke.weight);
- }
- else
- {
- circle.setAttribute('cx', String(radius));
- circle.setAttribute('cy', String(radius));
- this.setPosition(x - radius, y - radius, 0, 0);
- }
-
- circle.setAttribute('rx', String(radius));
- circle.setAttribute('ry', String(radius));
- this.element.appendChild(circle);
-
- this.resize(x, y, circle.getBBox());
- };
-
-
-/**
- * @override
- */
-org.apache.flex.core.graphics.Circle.prototype.draw = function() {
- this.drawCircle(this.x, this.y, this.radius);
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Ellipse.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Ellipse.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Ellipse.js
deleted file mode 100644
index e2337a2..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Ellipse.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.core.graphics.Ellipse');
-
-goog.require('org.apache.flex.core.graphics.GraphicShape');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.graphics.GraphicShape}
- */
-org.apache.flex.core.graphics.Ellipse = function() {
- org.apache.flex.core.graphics.Ellipse.base(this, 'constructor');
-
-};
-goog.inherits(org.apache.flex.core.graphics.Ellipse,
- org.apache.flex.core.graphics.GraphicShape);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.Ellipse.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Ellipse',
- qName: 'org.apache.flex.core.graphics.Ellipse' }] };
-
-
-/**
- * @export
- * @param {number} x The x position of the top-left corner of the bounding box of the ellipse.
- * @param {number} y The y position of the top-left corner of the bounding box of the ellipse.
- * @param {number} width The width of the ellipse.
- * @param {number} height The height of the ellipse.
- */
-org.apache.flex.core.graphics.Ellipse.prototype.drawEllipse = function(x, y, width, height) {
- var style = this.getStyleStr();
- var ellipse = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse');
- ellipse.flexjs_wrapper = this;
- ellipse.setAttribute('style', style);
- if (this.stroke)
- {
- ellipse.setAttribute('cx', String(width / 2 + this.stroke.weight));
- ellipse.setAttribute('cy', String(height / 2 + this.stroke.weight));
- this.setPosition(x, y, this.stroke.weight * 2, this.stroke.weight * 2);
- }
- else
- {
- ellipse.setAttribute('cx', String(width / 2));
- ellipse.setAttribute('cy', String(height / 2));
- this.setPosition(x, y, 0, 0);
- }
- ellipse.setAttribute('rx', String(width / 2));
- ellipse.setAttribute('ry', String(height / 2));
- this.element.appendChild(ellipse);
-
- this.resize(x, y, ellipse.getBBox());
- };
-
-
-/**
- * @override
-*/
-org.apache.flex.core.graphics.Ellipse.prototype.draw = function() {
- this.drawEllipse(this.x, this.y, this.width, this.height);
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GradientBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GradientBase.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GradientBase.js
deleted file mode 100644
index 12383e6..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GradientBase.js
+++ /dev/null
@@ -1,141 +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.flex.core.graphics.GradientBase
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.graphics.GradientBase');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.core.graphics.GradientBase = function() {
-};
-
-
-/**
- * @protected
- * @type {Array}
- */
-org.apache.flex.core.graphics.GradientBase.prototype.colors = [];
-
-
-/**
- * @protected
- * @type {Array}
- */
-org.apache.flex.core.graphics.GradientBase.prototype.ratios = [];
-
-
-/**
- * @protected
- * @type {Array}
- */
-org.apache.flex.core.graphics.GradientBase.prototype.alphas = [];
-
-
-/**
- * @type {Array}
- */
-org.apache.flex.core.graphics.GradientBase.prototype._entries = [];
-
-
-/**
- * @type {number}
- */
-org.apache.flex.core.graphics.GradientBase.prototype._rotation = 0.0;
-
-
-Object.defineProperties(org.apache.flex.core.graphics.GradientBase.prototype, {
- /** @export */
- entries: {
- /** @this {org.apache.flex.core.graphics.GradientBase} */
- get: function() {
- return this._entries;
- },
- /** @this {org.apache.flex.core.graphics.GradientBase} */
- set: function(value) {
- this._entries = value;
- }
- },
- /** @export */
- rotation: {
- /** @this {org.apache.flex.core.graphics.GradientBase} */
- get: function() {
- return this._rotation;
- },
- /** @this {org.apache.flex.core.graphics.GradientBase} */
- set: function(value) {
- this._rotation = value;
- }
- },
- /** @export */
- x: {
- /** @this {org.apache.flex.core.graphics.GradientBase} */
- get: function() {
- return this._x;
- },
- /** @this {org.apache.flex.core.graphics.GradientBase} */
- set: function(value) {
- this._x = value;
- }
- },
- /** @export */
- y: {
- /** @this {org.apache.flex.core.graphics.GradientBase} */
- set: function(value) {
- this._y = value;
- },
- /** @this {org.apache.flex.core.graphics.GradientBase} */
- get: function() {
- return this._y;
- }
- },
- /** @export */
- newId: {
- /** @this {org.apache.flex.core.graphics.GradientBase} */
- get: function() {
- return 'gradient' + String(Math.floor((Math.random() * 100000) + 1));
- }
- }
-});
-
-
-/**
- * @type {number}
- */
-org.apache.flex.core.graphics.GradientBase.prototype._x = 0;
-
-
-/**
- * @type {number}
- */
-org.apache.flex.core.graphics.GradientBase.prototype._y = 0;
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.GradientBase.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'GradientBase', qName: 'org.apache.flex.core.graphics.GradientBase'}]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GradientEntry.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GradientEntry.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GradientEntry.js
deleted file mode 100644
index 6b68af2..0000000
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GradientEntry.js
+++ /dev/null
@@ -1,126 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * org.apache.flex.core.graphics.GradientEntry
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.graphics.GradientEntry');
-
-
-
-/**
- * @constructor
- * @param {number} alpha
- * @param {number} color
- * @param {number} ratio
- */
-org.apache.flex.core.graphics.GradientEntry = function(alpha, color, ratio) {
- this._alpha = alpha;
- this._color = color;
- this._ratio = ratio;
-};
-
-
-/**
- * @type {number}
- */
-org.apache.flex.core.graphics.GradientEntry.prototype._alpha = 1.0;
-
-
-/**
- * @type {number}
- */
-org.apache.flex.core.graphics.GradientEntry.prototype._color = 0x000000;
-
-
-/**
- * @type {number}
- */
-org.apache.flex.core.graphics.GradientEntry.prototype._ratio = 0x000000;
-
-
-Object.defineProperties(org.apache.flex.core.graphics.GradientEntry.prototype, {
- /** @export */
- alpha: {
- /** @this {org.apache.flex.core.graphics.GradientEntry} */
- get: function() {
- return this._alpha;
- },
- /** @this {org.apache.flex.core.graphics.GradientEntry} */
- set: function(value) {
- var /** @type {number} */ oldValue = this._alpha;
- if (value != oldValue) {
- this._alpha = value;
- }
- }
- },
- /** @export */
- color: {
- /** @this {org.apache.flex.core.graphics.GradientEntry} */
- get: function() {
- return this._color;
- },
- /** @this {org.apache.flex.core.graphics.GradientEntry} */
- set: function(value) {
- var /** @type {number} */ oldValue = this._color;
- if (value != oldValue) {
- this._color = value;
- }
- }
- },
- /** @export */
- ratio: {
- /** @this {org.apache.flex.core.graphics.GradientEntry} */
- get: function() {
- return this._ratio;
- },
- /** @this {org.apache.flex.core.graphics.GradientEntry} */
- set: function(value) {
- this._ratio = value;
- }
- }
-});
-
-
-/**
- * @export
- * @param {org.apache.flex.core.graphics.GraphicShape} s
- */
-org.apache.flex.core.graphics.GradientEntry.prototype.begin = function(s) {
- s.graphics.beginFill(this.color, this.alpha);
-};
-
-
-/**
- * @export
- * @param {org.apache.flex.core.graphics.GraphicShape} s
- */
-org.apache.flex.core.graphics.GradientEntry.prototype.end = function(s) {
- s.graphics.endFill();
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.graphics.GradientEntry.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'GradientEntry', qName: 'org.apache.flex.core.graphics.GradientEntry'}]
- };
[41/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix
constant binding in release mode
Posted by ah...@apache.org.
fix constant binding in release mode
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/40535515
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/40535515
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/40535515
Branch: refs/heads/develop
Commit: 405355157514f3882794855aa3261846e8d6fbf6
Parents: 3f77eec
Author: Alex Harui <ah...@apache.org>
Authored: Tue Dec 15 15:13:56 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Dec 15 15:13:56 2015 -0800
----------------------------------------------------------------------
.../org/apache/flex/binding/ConstantBinding.as | 22 ++++++++++++++++++++
1 file changed, 22 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/40535515/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as b/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
index 0a2ae83..050489a 100644
--- a/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
+++ b/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
@@ -154,6 +154,28 @@ package org.apache.flex.binding
{
}
}
+ else
+ {
+ COMPILE::JS
+ {
+ // GCC optimizer only puts exported class constants on
+ // Window and not on the class itself (which got renamed)
+ var cname:Object = source.FLEXJS_CLASS_INFO;
+ if (cname)
+ {
+ cname = cname.names[0].qName;
+ var parts:Array = cname.split('.');
+ var n:int = parts.length;
+ var o:Object = window;
+ for (var i:int = 0; i < n; i++) {
+ o = o[parts[i]];
+ }
+ val = o[sourcePropertyName];
+ destination[destinationPropertyName] = val;
+ }
+ }
+ }
+
}
/**
[49/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - move
HTML test from asjs to as
Posted by ah...@apache.org.
move HTML test from asjs to as
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/653c047a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/653c047a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/653c047a
Branch: refs/heads/develop
Commit: 653c047aa9703d87a5fefdbf6fb02b4d3000f762
Parents: 6a71b85
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 14:40:46 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 14:40:46 2015 -0800
----------------------------------------------------------------------
.../as/tests/FlexUnitFlexJSApplication.mxml | 46 ++++++
frameworks/projects/HTML/as/tests/build.xml | 160 +++++++++++++++++++
.../tests/flexUnitTests/DataGridColumnTester.as | 27 ++++
.../flexUnitTests/DataGridColumnTesterTest.as | 55 +++++++
.../asjs/tests/FlexUnitFlexJSApplication.mxml | 46 ------
frameworks/projects/HTML/asjs/tests/build.xml | 160 -------------------
.../tests/flexUnitTests/DataGridColumnTester.as | 27 ----
.../flexUnitTests/DataGridColumnTesterTest.as | 55 -------
frameworks/projects/HTML/build.xml | 2 +-
9 files changed, 289 insertions(+), 289 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/653c047a/frameworks/projects/HTML/as/tests/FlexUnitFlexJSApplication.mxml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/tests/FlexUnitFlexJSApplication.mxml b/frameworks/projects/HTML/as/tests/FlexUnitFlexJSApplication.mxml
new file mode 100644
index 0000000..06ad1d6
--- /dev/null
+++ b/frameworks/projects/HTML/as/tests/FlexUnitFlexJSApplication.mxml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+
+<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:js="library://ns.apache.org/flexjs/basic"
+ applicationComplete="runTests()"
+ >
+ <fx:Script>
+ <![CDATA[
+ import flexUnitTests.DataGridColumnTesterTest;
+ import flexUnitTests.DataGridColumnTester;
+
+ import org.flexunit.listeners.CIListener;
+ import org.flexunit.runner.FlexUnitCore;
+
+ public function runTests() : void
+ {
+ var core : FlexUnitCore = new FlexUnitCore();
+ core.addListener(new CIListener());
+ core.run(DataGridColumnTester);
+ }
+
+ ]]>
+ </fx:Script>
+ <js:valuesImpl>
+ <js:SimpleValuesImpl />
+ </js:valuesImpl>
+
+</js:Application>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/653c047a/frameworks/projects/HTML/as/tests/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/tests/build.xml b/frameworks/projects/HTML/as/tests/build.xml
new file mode 100644
index 0000000..4951b51
--- /dev/null
+++ b/frameworks/projects/HTML/as/tests/build.xml
@@ -0,0 +1,160 @@
+<?xml version="1.0"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+
+
+<project name="flexjsjx.test" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../../../../.."/>
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
+ <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
+
+ <condition property="browser" value="C:/Program Files/Internet Explorer/iexplore.exe">
+ <os family="windows"/>
+ </condition>
+ <condition property="browser" value="/Applications/Safari.app/Contents/MacOS/Safari">
+ <os family="mac"/>
+ </condition>
+
+ <property name="report.dir" value="${basedir}/out" />
+
+ <available file="${FLEXJS_HOME}/../flex-flexunit"
+ type="dir"
+ property="FLEXUNIT_HOME"
+ value="${FLEXJS_HOME}/../flex-flexunit" />
+
+ <available file="${FLEXJS_HOME}/../flexunit"
+ type="dir"
+ property="FLEXUNIT_HOME"
+ value="${FLEXJS_HOME}/../flexunit" />
+
+ <available file="${env.FLEXUNIT_HOME}"
+ type="dir"
+ property="FLEXUNIT_HOME"
+ value="${env.FLEXUNIT_HOME}"/>
+
+ <available file="${FLEXUNIT_HOME}/FlexUnit4/target"
+ type="dir"
+ property="FLEXUNIT_LIBPATH1"
+ value="-library-path+=${FLEXUNIT_HOME}/FlexUnit4/target" />
+ <property name="FLEXUNIT_LIBPATH1" value="-library-path+=${FLEXUNIT_HOME}/flexunit" />
+
+ <available file="${FLEXUNIT_HOME}/FlexUnit4CIListener/target"
+ type="dir"
+ property="FLEXUNIT_LIBPATH2"
+ value="-library-path+=${FLEXUNIT_HOME}/FlexUnit4CIListener/target" />
+ <property name="FLEXUNIT_LIBPATH2" value="-define=CONFIG::dummy,false" />
+
+ <available file="${FLEXUNIT_HOME}/FlexUnit4AntTasks/target"
+ type="dir"
+ property="FLEXUNIT_CLASSPATH"
+ value="${FLEXUNIT_HOME}/FlexUnit4AntTasks/target" />
+ <property name="FLEXUNIT_CLASSPATH" value="${FLEXUNIT_HOME}/flexunit" />
+
+ <target name="main" depends="clean,compile,test" description="Clean test of FlexJSUI.swc">
+ </target>
+
+ <target name="clean">
+ <delete failonerror="false">
+ <fileset dir="${basedir}">
+ <include name="FlexUnitFlexJSApplication.swf"/>
+ </fileset>
+ </delete>
+ </target>
+
+ <path id="lib.path">
+ <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
+ </path>
+
+ <target name="compile" description="Compiles FlexUnitApplication.swf">
+ <echo message="Compiling FlexUnitFlexJSApplication.swf"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <echo message="FLEXUNIT_HOME: ${FLEXUNIT_HOME}"/>
+ <echo message="playerglobal.version: ${playerglobal.version}"/>
+
+ <!-- Load the <compc> task. We can't do this at the <project> level -->
+ <!-- because targets that run before flexTasks.jar gets built would fail. -->
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+ <!--
+ Link in the classes (and their dependencies) for the MXML tags
+ listed in this project's manifest.xml.
+ Also link the additional classes (and their dependencies)
+ listed in FlexJSUIClasses.as,
+ because these aren't referenced by the manifest classes.
+ Keep the standard metadata when compiling.
+ Include the appropriate CSS files and assets in the SWC.
+ Don't include any resources in the SWC.
+ Write a bundle list of referenced resource bundles
+ into the file bundles.properties in this directory.
+ -->
+ <mxmlc fork="true"
+ file="${basedir}/FlexUnitFlexJSApplication.mxml"
+ output="${basedir}/FlexUnitFlexJSApplication.swf">
+ <jvmarg line="${mxmlc.jvm.args}"/>
+ <arg value="+flexlib=${FLEXJS_HOME}/frameworks" />
+ <arg value="-debug" />
+ <arg value="-compiler.mxml.children-as-data" />
+ <arg value="-compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent" />
+ <arg value="-compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent" />
+ <arg value="-compiler.binding-value-change-event-type=valueChange" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="-source-path+=${FLEXJS_HOME}/frameworks/projects/HTML/as/src" />
+ <arg value="-library-path+=${FLEXJS_HOME}/frameworks/libs" />
+ <arg value="${FLEXUNIT_LIBPATH1}" />
+ <arg value="${FLEXUNIT_LIBPATH2}" />
+ </mxmlc>
+ </target>
+
+ <target name="test">
+ <taskdef resource="flexUnitTasks.tasks">
+ <classpath>
+ <fileset dir="${FLEXUNIT_CLASSPATH}">
+ <include name="flexUnitTasks*.jar" />
+ </fileset>
+ </classpath>
+ </taskdef>
+ <mkdir dir="${report.dir}" />
+ <flexunit
+ swf="${basedir}/FlexUnitFlexJSApplication.swf"
+ workingDir="${basedir}"
+ toDir="${report.dir}"
+ haltonfailure="false"
+ verbose="true"
+ localTrusted="true"
+ command="${browser}"
+ timeout="90000">
+ <source dir="${FLEXJS_HOME}/frameworks/projects/HTML/as/src" />
+ <library dir="${FLEXJS_HOME}/frameworks/libs" />
+ </flexunit>
+
+ <!-- Generate readable JUnit-style reports -->
+ <junitreport todir="${report.dir}">
+ <fileset dir="${report.dir}">
+ <include name="TEST-*.xml" />
+ </fileset>
+ <report format="frames" todir="${report.dir}/html" />
+ </junitreport>
+
+ </target>
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/653c047a/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTester.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTester.as b/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTester.as
new file mode 100644
index 0000000..e060b1f
--- /dev/null
+++ b/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTester.as
@@ -0,0 +1,27 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flexUnitTests
+{
+ [Suite]
+ [RunWith("org.flexunit.runners.Suite")]
+ public class DataGridColumnTester
+ {
+ public var dataGridColumnTesterTest:DataGridColumnTesterTest;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/653c047a/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTesterTest.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTesterTest.as b/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTesterTest.as
new file mode 100644
index 0000000..1a3cc0f
--- /dev/null
+++ b/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTesterTest.as
@@ -0,0 +1,55 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flexUnitTests
+{
+ import flexunit.framework.Assert;
+
+ import org.apache.flex.html.supportClasses.DataGridColumn;
+
+ public class DataGridColumnTesterTest
+ {
+ [Before]
+ public function setUp():void
+ {
+ }
+
+ [After]
+ public function tearDown():void
+ {
+ }
+
+ [BeforeClass]
+ public static function setUpBeforeClass():void
+ {
+ }
+
+ [AfterClass]
+ public static function tearDownAfterClass():void
+ {
+ }
+
+ [Test]
+ public function testLabelProperty():void
+ {
+ var column:DataGridColumn = new DataGridColumn();
+ column.label = "foo";
+ Assert.assertEquals("Error testing DataGridColumn.label", column.label, "foo");
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/653c047a/frameworks/projects/HTML/asjs/tests/FlexUnitFlexJSApplication.mxml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/asjs/tests/FlexUnitFlexJSApplication.mxml b/frameworks/projects/HTML/asjs/tests/FlexUnitFlexJSApplication.mxml
deleted file mode 100644
index 06ad1d6..0000000
--- a/frameworks/projects/HTML/asjs/tests/FlexUnitFlexJSApplication.mxml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
--->
-
-<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:js="library://ns.apache.org/flexjs/basic"
- applicationComplete="runTests()"
- >
- <fx:Script>
- <![CDATA[
- import flexUnitTests.DataGridColumnTesterTest;
- import flexUnitTests.DataGridColumnTester;
-
- import org.flexunit.listeners.CIListener;
- import org.flexunit.runner.FlexUnitCore;
-
- public function runTests() : void
- {
- var core : FlexUnitCore = new FlexUnitCore();
- core.addListener(new CIListener());
- core.run(DataGridColumnTester);
- }
-
- ]]>
- </fx:Script>
- <js:valuesImpl>
- <js:SimpleValuesImpl />
- </js:valuesImpl>
-
-</js:Application>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/653c047a/frameworks/projects/HTML/asjs/tests/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/asjs/tests/build.xml b/frameworks/projects/HTML/asjs/tests/build.xml
deleted file mode 100644
index 4a12b75..0000000
--- a/frameworks/projects/HTML/asjs/tests/build.xml
+++ /dev/null
@@ -1,160 +0,0 @@
-<?xml version="1.0"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-
-
-<project name="flexjsjx.test" default="main" basedir=".">
- <property name="FLEXJS_HOME" location="../../../../.."/>
-
- <property file="${FLEXJS_HOME}/env.properties"/>
- <property environment="env"/>
- <property file="${FLEXJS_HOME}/build.properties"/>
- <property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
- <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
-
- <condition property="browser" value="C:/Program Files/Internet Explorer/iexplore.exe">
- <os family="windows"/>
- </condition>
- <condition property="browser" value="/Applications/Safari.app/Contents/MacOS/Safari">
- <os family="mac"/>
- </condition>
-
- <property name="report.dir" value="${basedir}/out" />
-
- <available file="${FLEXJS_HOME}/../flex-flexunit"
- type="dir"
- property="FLEXUNIT_HOME"
- value="${FLEXJS_HOME}/../flex-flexunit" />
-
- <available file="${FLEXJS_HOME}/../flexunit"
- type="dir"
- property="FLEXUNIT_HOME"
- value="${FLEXJS_HOME}/../flexunit" />
-
- <available file="${env.FLEXUNIT_HOME}"
- type="dir"
- property="FLEXUNIT_HOME"
- value="${env.FLEXUNIT_HOME}"/>
-
- <available file="${FLEXUNIT_HOME}/FlexUnit4/target"
- type="dir"
- property="FLEXUNIT_LIBPATH1"
- value="-library-path+=${FLEXUNIT_HOME}/FlexUnit4/target" />
- <property name="FLEXUNIT_LIBPATH1" value="-library-path+=${FLEXUNIT_HOME}/flexunit" />
-
- <available file="${FLEXUNIT_HOME}/FlexUnit4CIListener/target"
- type="dir"
- property="FLEXUNIT_LIBPATH2"
- value="-library-path+=${FLEXUNIT_HOME}/FlexUnit4CIListener/target" />
- <property name="FLEXUNIT_LIBPATH2" value="-define=CONFIG::dummy,false" />
-
- <available file="${FLEXUNIT_HOME}/FlexUnit4AntTasks/target"
- type="dir"
- property="FLEXUNIT_CLASSPATH"
- value="${FLEXUNIT_HOME}/FlexUnit4AntTasks/target" />
- <property name="FLEXUNIT_CLASSPATH" value="${FLEXUNIT_HOME}/flexunit" />
-
- <target name="main" depends="clean,compile,test" description="Clean test of FlexJSUI.swc">
- </target>
-
- <target name="clean">
- <delete failonerror="false">
- <fileset dir="${basedir}">
- <include name="FlexUnitFlexJSApplication.swf"/>
- </fileset>
- </delete>
- </target>
-
- <path id="lib.path">
- <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
- </path>
-
- <target name="compile" description="Compiles FlexUnitApplication.swf">
- <echo message="Compiling FlexUnitFlexJSApplication.swf"/>
- <echo message="FLEX_HOME: ${FLEX_HOME}"/>
- <echo message="FALCON_HOME: ${FALCON_HOME}"/>
- <echo message="FLEXUNIT_HOME: ${FLEXUNIT_HOME}"/>
- <echo message="playerglobal.version: ${playerglobal.version}"/>
-
- <!-- Load the <compc> task. We can't do this at the <project> level -->
- <!-- because targets that run before flexTasks.jar gets built would fail. -->
- <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
- <!--
- Link in the classes (and their dependencies) for the MXML tags
- listed in this project's manifest.xml.
- Also link the additional classes (and their dependencies)
- listed in FlexJSUIClasses.as,
- because these aren't referenced by the manifest classes.
- Keep the standard metadata when compiling.
- Include the appropriate CSS files and assets in the SWC.
- Don't include any resources in the SWC.
- Write a bundle list of referenced resource bundles
- into the file bundles.properties in this directory.
- -->
- <mxmlc fork="true"
- file="${basedir}/FlexUnitFlexJSApplication.mxml"
- output="${basedir}/FlexUnitFlexJSApplication.swf">
- <jvmarg line="${mxmlc.jvm.args}"/>
- <arg value="+flexlib=${FLEXJS_HOME}/frameworks" />
- <arg value="-debug" />
- <arg value="-compiler.mxml.children-as-data" />
- <arg value="-compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent" />
- <arg value="-compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent" />
- <arg value="-compiler.binding-value-change-event-type=valueChange" />
- <arg value="+playerglobal.version=${playerglobal.version}" />
- <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
- <arg value="-source-path+=${FLEXJS_HOME}/frameworks/projects/HTML/asjs/src" />
- <arg value="-library-path+=${FLEXJS_HOME}/frameworks/libs" />
- <arg value="${FLEXUNIT_LIBPATH1}" />
- <arg value="${FLEXUNIT_LIBPATH2}" />
- </mxmlc>
- </target>
-
- <target name="test">
- <taskdef resource="flexUnitTasks.tasks">
- <classpath>
- <fileset dir="${FLEXUNIT_CLASSPATH}">
- <include name="flexUnitTasks*.jar" />
- </fileset>
- </classpath>
- </taskdef>
- <mkdir dir="${report.dir}" />
- <flexunit
- swf="${basedir}/FlexUnitFlexJSApplication.swf"
- workingDir="${basedir}"
- toDir="${report.dir}"
- haltonfailure="false"
- verbose="true"
- localTrusted="true"
- command="${browser}"
- timeout="90000">
- <source dir="${FLEXJS_HOME}/frameworks/projects/HTML/asjs/src" />
- <library dir="${FLEXJS_HOME}/frameworks/libs" />
- </flexunit>
-
- <!-- Generate readable JUnit-style reports -->
- <junitreport todir="${report.dir}">
- <fileset dir="${report.dir}">
- <include name="TEST-*.xml" />
- </fileset>
- <report format="frames" todir="${report.dir}/html" />
- </junitreport>
-
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/653c047a/frameworks/projects/HTML/asjs/tests/flexUnitTests/DataGridColumnTester.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/asjs/tests/flexUnitTests/DataGridColumnTester.as b/frameworks/projects/HTML/asjs/tests/flexUnitTests/DataGridColumnTester.as
deleted file mode 100644
index e060b1f..0000000
--- a/frameworks/projects/HTML/asjs/tests/flexUnitTests/DataGridColumnTester.as
+++ /dev/null
@@ -1,27 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package flexUnitTests
-{
- [Suite]
- [RunWith("org.flexunit.runners.Suite")]
- public class DataGridColumnTester
- {
- public var dataGridColumnTesterTest:DataGridColumnTesterTest;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/653c047a/frameworks/projects/HTML/asjs/tests/flexUnitTests/DataGridColumnTesterTest.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/asjs/tests/flexUnitTests/DataGridColumnTesterTest.as b/frameworks/projects/HTML/asjs/tests/flexUnitTests/DataGridColumnTesterTest.as
deleted file mode 100644
index 1a3cc0f..0000000
--- a/frameworks/projects/HTML/asjs/tests/flexUnitTests/DataGridColumnTesterTest.as
+++ /dev/null
@@ -1,55 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package flexUnitTests
-{
- import flexunit.framework.Assert;
-
- import org.apache.flex.html.supportClasses.DataGridColumn;
-
- public class DataGridColumnTesterTest
- {
- [Before]
- public function setUp():void
- {
- }
-
- [After]
- public function tearDown():void
- {
- }
-
- [BeforeClass]
- public static function setUpBeforeClass():void
- {
- }
-
- [AfterClass]
- public static function tearDownAfterClass():void
- {
- }
-
- [Test]
- public function testLabelProperty():void
- {
- var column:DataGridColumn = new DataGridColumn();
- column.label = "foo";
- Assert.assertEquals("Error testing DataGridColumn.label", column.label, "foo");
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/653c047a/frameworks/projects/HTML/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/build.xml b/frameworks/projects/HTML/build.xml
index b98d7a8..39812ce 100644
--- a/frameworks/projects/HTML/build.xml
+++ b/frameworks/projects/HTML/build.xml
@@ -44,7 +44,7 @@
<!-- no tests yet
<ant dir="as/tests" />
-->
- <ant dir="asjs/tests" />
+ <ant dir="as/tests" />
</target>
<target name="test-js" unless="is.jenkins">
[19/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] -
Converted Formatters project.
Posted by ah...@apache.org.
Converted Formatters project.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/e2a806e3
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/e2a806e3
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/e2a806e3
Branch: refs/heads/develop
Commit: e2a806e31c6ddb636ddad4f148d715693f0d5c02
Parents: 7b7a676
Author: Peter Ent <pe...@apache.org>
Authored: Wed Dec 9 14:03:00 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Dec 9 14:03:00 2015 -0500
----------------------------------------------------------------------
.../Formatters/as/src/FormattersClasses.as | 4 +
.../flex/html/accessories/CurrencyFormatter.as | 215 +++++++++++++++++++
.../html/accessories/DateFormatMMDDYYYYBead.as | 158 ++++++++++++++
.../flex/html/accessories/NumberFormatter.as | 210 ++++++++++++++++++
.../flex/html/beads/FormatableLabelView.as | 90 ++++++++
.../flex/html/beads/FormatableTextInputView.as | 91 ++++++++
.../flex/html/accessories/CurrencyFormatter.as | 215 -------------------
.../html/accessories/DateFormatMMDDYYYYBead.as | 158 --------------
.../flex/html/accessories/NumberFormatter.as | 210 ------------------
.../flex/html/beads/FormatableLabelView.as | 90 --------
.../flex/html/beads/FormatableTextInputView.as | 91 --------
frameworks/projects/Formatters/build.xml | 104 ++++-----
.../projects/Formatters/compile-asjs-config.xml | 5 +-
.../projects/Formatters/compile-config.xml | 2 -
14 files changed, 822 insertions(+), 821 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/as/src/FormattersClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/as/src/FormattersClasses.as b/frameworks/projects/Formatters/as/src/FormattersClasses.as
index 66f88ca..4c3646a 100644
--- a/frameworks/projects/Formatters/as/src/FormattersClasses.as
+++ b/frameworks/projects/Formatters/as/src/FormattersClasses.as
@@ -28,6 +28,10 @@ package
internal class FormattersClasses
{
import org.apache.flex.core.FormatBase; FormatBase;
+
+ import org.apache.flex.html.accessories.DateFormatMMDDYYYYBead; DateFormatMMDDYYYYBead;
+ import org.apache.flex.html.beads.FormatableLabelView; FormatableLabelView;
+ import org.apache.flex.html.beads.FormatableTextInputView; FormatableTextInputView;
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/CurrencyFormatter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/CurrencyFormatter.as b/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/CurrencyFormatter.as
new file mode 100644
index 0000000..208b5ff
--- /dev/null
+++ b/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/CurrencyFormatter.as
@@ -0,0 +1,215 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.html.accessories
+{
+ import org.apache.flex.core.IBeadModel;
+ import org.apache.flex.core.IFormatBead;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.EventDispatcher;
+ import org.apache.flex.events.IEventDispatcher;
+
+ /**
+ * The CurrencyFormatter class formats a value in separated groups. The formatter listens
+ * to a property on a model and when the property changes, formats it and dispatches a
+ * formatChanged event.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class CurrencyFormatter extends EventDispatcher implements IFormatBead
+ {
+ /**
+ * constructor
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function CurrencyFormatter()
+ {
+ super();
+ }
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+
+ // Listen for the beadsAdded event which signals when all of a strand's
+ // beads have been added.
+ IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
+ }
+
+ /**
+ * @private
+ */
+ private function handleBeadsAdded(event:Event):void
+ {
+ // Listen for the change in the model
+ var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
+ model.addEventListener(eventName,propertyChangeHandler);
+ model.addEventListener(propertyName+"Change",propertyChangeHandler);
+
+ // format the current value of that property
+ propertyChangeHandler(null);
+ }
+
+ private var _propertyName:String;
+ private var _eventName:String;
+ private var _formattedResult:String;
+ private var _fractionalDigits:Number = 2;
+ private var _currencySymbol:String = "$";
+
+ /**
+ * The name of the property on the model to format.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get propertyName():String
+ {
+ if (_propertyName == null) {
+ return "text";
+ }
+ return _propertyName;
+ }
+ public function set propertyName(value:String):void
+ {
+ _propertyName = value;
+ }
+
+ /**
+ * The event dispatched by the model when the property changes. The
+ * default is propertyName+"Changed".
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get eventName():String
+ {
+ if (_eventName == null) {
+ return _propertyName+"Changed";
+ }
+ return _eventName;
+ }
+ public function set eventName(value:String):void
+ {
+ _eventName = value;
+ }
+
+ /**
+ * Number of digits after the decimal separator
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get fractionalDigits():int
+ {
+ return _fractionalDigits;
+ }
+ public function set fractionalDigits(value:int):void
+ {
+ _fractionalDigits = value;
+ }
+
+ /**
+ * The currency symbol, such as "$"
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get currencySymbol():String
+ {
+ return _currencySymbol;
+ }
+ public function set currencySymbol(value:String):void
+ {
+ _currencySymbol = value;
+ }
+
+ /**
+ * The formatted string.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get formattedString():String
+ {
+ return _formattedResult;
+ }
+
+ /**
+ * @private
+ */
+ private function propertyChangeHandler(event:Event):void
+ {
+ // When the property changes, fetch it from the model and
+ // format it, storing the result in _formattedResult.
+ var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
+ var value:Object = model[propertyName];
+ _formattedResult = format(value);
+
+ // Dispatch the formatChanged event so any bead that's interested in
+ // the formatted string knows to use it.
+ var newEvent:Event = new Event("formatChanged");
+ this.dispatchEvent(newEvent);
+ }
+
+ /**
+ * Computes the formatted string.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function format(value:Object):String
+ {
+ if (value == null) return "";
+
+ var num:Number = Number(value);
+ var source:String = num.toFixed(fractionalDigits);
+
+ return currencySymbol + source;
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as b/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
new file mode 100644
index 0000000..94d7f20
--- /dev/null
+++ b/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
@@ -0,0 +1,158 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.html.accessories
+{
+ import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IDateChooserModel;
+ import org.apache.flex.core.IFormatBead;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.core.IStrandWithModel;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.EventDispatcher;
+ import org.apache.flex.html.TextInput;
+ import org.apache.flex.html.beads.DateFieldView;
+
+ /**
+ * The DateFormatBead class formats the display of a DateField using MM/DD/YYYY format.
+ *
+ * @flexjsignoreimport org.apache.flex.core.IStrandWithModel
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DateFormatMMDDYYYYBead extends EventDispatcher implements IBead, IFormatBead
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DateFormatMMDDYYYYBead()
+ {
+ }
+
+ private var _propertyName:String;
+ private var _eventName:String;
+ private var _formattedResult:String;
+
+ /**
+ * The name of the property on the model holding the value to be formatted.
+ * The default is selectedDate.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get propertyName():String
+ {
+ if (_propertyName == null) {
+ return "selectedDate";
+ }
+ return _propertyName;
+ }
+ public function set propertyName(value:String):void
+ {
+ _propertyName = value;
+ }
+
+ /**
+ * The name of the event dispatched when the property changes. The
+ * default is selectedDateChanged.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get eventName():String
+ {
+ if (_eventName == null) {
+ return _propertyName+"Changed";
+ }
+ return _eventName;
+ }
+ public function set eventName(value:String):void
+ {
+ _eventName = value;
+ }
+
+ /**
+ * The formatted result.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get formattedString():String
+ {
+ return _formattedResult;
+ }
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @flexjsignorecoercion org.apache.flex.core.IStrandWithModel
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+
+ var model:IDateChooserModel = IStrandWithModel(_strand).model as IDateChooserModel;
+ model.addEventListener("selectedDateChanged",handleTextChange);
+ }
+
+ /**
+ * @private
+ *
+ * @flexjsignorecoercion org.apache.flex.core.IStrandWithModel
+ */
+ private function handleTextChange(event:Event):void
+ {
+ var model:IDateChooserModel = IStrandWithModel(_strand).model as IDateChooserModel;
+ /*var view:DateFieldView = _strand.getBeadByType(DateFieldView) as DateFieldView;
+ var input:TextInput = view.textInput;*/
+
+ var d:Date = model.selectedDate;
+ var month:String = String(d.getMonth()+1);
+ if (Number(month)<10) month = "0"+month;
+ var date:String = String(d.getDate());
+ if (Number(date)<10) date = "0"+date;
+ var fmt:String = month+"/"+date+"/"+String(d.getFullYear());
+ /*input.text = fmt;*/
+ _formattedResult = month+"/"+date+"/"+String(d.getFullYear());
+
+ dispatchEvent( new Event("formatChanged") );
+ }
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/NumberFormatter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/NumberFormatter.as b/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/NumberFormatter.as
new file mode 100644
index 0000000..0d1b613
--- /dev/null
+++ b/frameworks/projects/Formatters/as/src/org/apache/flex/html/accessories/NumberFormatter.as
@@ -0,0 +1,210 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.html.accessories
+{
+ import org.apache.flex.core.IBeadModel;
+ import org.apache.flex.core.IFormatBead;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.EventDispatcher;
+ import org.apache.flex.events.IEventDispatcher;
+
+ /**
+ * The NumberFormatter class formats a value in separated groups. The formatter listens
+ * to a property on a model and when the property changes, formats it and dispatches a
+ * formatChanged event.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class NumberFormatter extends EventDispatcher implements IFormatBead
+ {
+ /**
+ * constructor
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function NumberFormatter()
+ {
+ super();
+ }
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+
+ // Listen for the beadsAdded event which signals when all of a strand's
+ // beads have been added.
+ IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
+ }
+
+ /**
+ * @private
+ */
+ private function handleBeadsAdded(event:Event):void
+ {
+ // Listen for the change in the model
+ var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
+ model.addEventListener(eventName,propertyChangeHandler);
+ model.addEventListener(propertyName+"Change",propertyChangeHandler);
+
+ // format the current value of that property
+ propertyChangeHandler(null);
+ }
+
+ private var _propertyName:String;
+ private var _eventName:String;
+ private var _formattedResult:String;
+ private var _groupSize:Number = 3;
+ private var _thousandsSeparator:String = ",";
+
+ /**
+ * The name of the property on the model to format.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get propertyName():String
+ {
+ if (_propertyName == null) {
+ return "text";
+ }
+ return _propertyName;
+ }
+ public function set propertyName(value:String):void
+ {
+ _propertyName = value;
+ }
+
+ /**
+ * The event dispatched by the model when the property changes. The
+ * default is propertyName+"Changed".
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get eventName():String
+ {
+ if (_eventName == null) {
+ return _propertyName+"Changed";
+ }
+ return _eventName;
+ }
+ public function set eventName(value:String):void
+ {
+ _eventName = value;
+ }
+
+ /**
+ * Character to use to separate thousands groups. The default is
+ * the comma (,).
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get thousandsSeparator():String
+ {
+ return _thousandsSeparator;
+ }
+ public function set thousandsSeparator(value:String):void
+ {
+ _thousandsSeparator = value;
+ }
+
+ /**
+ * The formatted string.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get formattedString():String
+ {
+ return _formattedResult;
+ }
+
+ /**
+ * @private
+ */
+ private function propertyChangeHandler(event:Event):void
+ {
+ // When the property changes, fetch it from the model and
+ // format it, storing the result in _formattedResult.
+ var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
+ var value:Object = model[propertyName];
+ _formattedResult = format(value);
+
+ // Dispatch the formatChanged event so any bead that's interested in
+ // the formatted string knows to use it.
+ var newEvent:Event = new Event("formatChanged");
+ this.dispatchEvent(newEvent);
+ }
+
+ /**
+ * @private
+ */
+ private function format(value:Object):String
+ {
+ if (value == null) return "";
+
+ var num:Number = Number(value);
+ var source:String = String(value);
+ var parts:Array = source.split(thousandsSeparator);
+ source = parts.join("");
+
+ var l:int = source.length;
+ var result:String = "";
+ var group:int = 0;
+
+ for(var i:int=l-1; i >= 0; i--)
+ {
+ if (group == _groupSize && result.length > 0) {
+ result = thousandsSeparator + result;
+ group = 0;
+ }
+ result = source.charAt(i) + result;
+ group++;
+ }
+
+ return result;
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/as/src/org/apache/flex/html/beads/FormatableLabelView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/as/src/org/apache/flex/html/beads/FormatableLabelView.as b/frameworks/projects/Formatters/as/src/org/apache/flex/html/beads/FormatableLabelView.as
new file mode 100644
index 0000000..03b6ccd
--- /dev/null
+++ b/frameworks/projects/Formatters/as/src/org/apache/flex/html/beads/FormatableLabelView.as
@@ -0,0 +1,90 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.html.beads
+{
+ import org.apache.flex.core.IFormatBead;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.IEventDispatcher;
+
+ /**
+ * The FormatableLabelView class is a View bead that is capable of working
+ * with a format bead to display a formatted value. When the format bead has
+ * created a formatted string, it dispatches a formatChanged event that the
+ * FormatableLabelView class intercepts and displays in the label.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class FormatableLabelView extends TextFieldView
+ {
+ /**
+ * constructor
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function FormatableLabelView()
+ {
+ super();
+ }
+
+ private var _formatter:IFormatBead;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+ IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
+ }
+
+ /**
+ * @private
+ */
+ private function handleBeadsAdded(event:Event):void
+ {
+ _formatter = _strand.getBeadByType(IFormatBead) as IFormatBead;
+ _formatter.addEventListener("formatChanged",formatReadyHandler);
+
+ // process any text set in the label at this moment
+ text = _formatter.formattedString;
+ }
+
+ /**
+ * @private
+ */
+ private function formatReadyHandler(event:Event):void
+ {
+ if (_formatter) {
+ text = _formatter.formattedString;
+ }
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/as/src/org/apache/flex/html/beads/FormatableTextInputView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/as/src/org/apache/flex/html/beads/FormatableTextInputView.as b/frameworks/projects/Formatters/as/src/org/apache/flex/html/beads/FormatableTextInputView.as
new file mode 100644
index 0000000..926253c
--- /dev/null
+++ b/frameworks/projects/Formatters/as/src/org/apache/flex/html/beads/FormatableTextInputView.as
@@ -0,0 +1,91 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.html.beads
+{
+ import org.apache.flex.core.IFormatBead;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.IEventDispatcher;
+
+ /**
+ * The FormatableTextInputView class is a View bead that extends TextInputWithBorderView
+ * and is capable of working with a format bead. When a format bead dispatches a
+ * formatChanged event, the FormatableTextInputView bead copies the formatted string to
+ * to the text field.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class FormatableTextInputView extends TextInputWithBorderView
+ {
+ /**
+ * constructor
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function FormatableTextInputView()
+ {
+ super();
+ }
+
+ private var _formatter:IFormatBead;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+ IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
+ }
+
+ /**
+ * @private
+ */
+ private function handleBeadsAdded(event:Event):void
+ {
+ _formatter = _strand.getBeadByType(IFormatBead) as IFormatBead;
+ if (_formatter) {
+ _formatter.addEventListener("formatChanged",formatChangedHandler);
+ }
+ }
+
+ /**
+ * @private
+ */
+ private function formatChangedHandler(event:Event):void
+ {
+ this.textField.text = _formatter.formattedString;
+
+ // move the cursor to the end
+ var l:int = this.textField.text.length;
+ this.textField.setSelection(l,l);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/CurrencyFormatter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/CurrencyFormatter.as b/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/CurrencyFormatter.as
deleted file mode 100644
index 208b5ff..0000000
--- a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/CurrencyFormatter.as
+++ /dev/null
@@ -1,215 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.accessories
-{
- import org.apache.flex.core.IBeadModel;
- import org.apache.flex.core.IFormatBead;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.EventDispatcher;
- import org.apache.flex.events.IEventDispatcher;
-
- /**
- * The CurrencyFormatter class formats a value in separated groups. The formatter listens
- * to a property on a model and when the property changes, formats it and dispatches a
- * formatChanged event.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class CurrencyFormatter extends EventDispatcher implements IFormatBead
- {
- /**
- * constructor
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function CurrencyFormatter()
- {
- super();
- }
-
- private var _strand:IStrand;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function set strand(value:IStrand):void
- {
- _strand = value;
-
- // Listen for the beadsAdded event which signals when all of a strand's
- // beads have been added.
- IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
- }
-
- /**
- * @private
- */
- private function handleBeadsAdded(event:Event):void
- {
- // Listen for the change in the model
- var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
- model.addEventListener(eventName,propertyChangeHandler);
- model.addEventListener(propertyName+"Change",propertyChangeHandler);
-
- // format the current value of that property
- propertyChangeHandler(null);
- }
-
- private var _propertyName:String;
- private var _eventName:String;
- private var _formattedResult:String;
- private var _fractionalDigits:Number = 2;
- private var _currencySymbol:String = "$";
-
- /**
- * The name of the property on the model to format.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get propertyName():String
- {
- if (_propertyName == null) {
- return "text";
- }
- return _propertyName;
- }
- public function set propertyName(value:String):void
- {
- _propertyName = value;
- }
-
- /**
- * The event dispatched by the model when the property changes. The
- * default is propertyName+"Changed".
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get eventName():String
- {
- if (_eventName == null) {
- return _propertyName+"Changed";
- }
- return _eventName;
- }
- public function set eventName(value:String):void
- {
- _eventName = value;
- }
-
- /**
- * Number of digits after the decimal separator
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get fractionalDigits():int
- {
- return _fractionalDigits;
- }
- public function set fractionalDigits(value:int):void
- {
- _fractionalDigits = value;
- }
-
- /**
- * The currency symbol, such as "$"
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get currencySymbol():String
- {
- return _currencySymbol;
- }
- public function set currencySymbol(value:String):void
- {
- _currencySymbol = value;
- }
-
- /**
- * The formatted string.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get formattedString():String
- {
- return _formattedResult;
- }
-
- /**
- * @private
- */
- private function propertyChangeHandler(event:Event):void
- {
- // When the property changes, fetch it from the model and
- // format it, storing the result in _formattedResult.
- var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
- var value:Object = model[propertyName];
- _formattedResult = format(value);
-
- // Dispatch the formatChanged event so any bead that's interested in
- // the formatted string knows to use it.
- var newEvent:Event = new Event("formatChanged");
- this.dispatchEvent(newEvent);
- }
-
- /**
- * Computes the formatted string.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function format(value:Object):String
- {
- if (value == null) return "";
-
- var num:Number = Number(value);
- var source:String = num.toFixed(fractionalDigits);
-
- return currencySymbol + source;
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as b/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
deleted file mode 100644
index 94d7f20..0000000
--- a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
+++ /dev/null
@@ -1,158 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.accessories
-{
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IDateChooserModel;
- import org.apache.flex.core.IFormatBead;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.IStrandWithModel;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.EventDispatcher;
- import org.apache.flex.html.TextInput;
- import org.apache.flex.html.beads.DateFieldView;
-
- /**
- * The DateFormatBead class formats the display of a DateField using MM/DD/YYYY format.
- *
- * @flexjsignoreimport org.apache.flex.core.IStrandWithModel
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class DateFormatMMDDYYYYBead extends EventDispatcher implements IBead, IFormatBead
- {
- /**
- * constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function DateFormatMMDDYYYYBead()
- {
- }
-
- private var _propertyName:String;
- private var _eventName:String;
- private var _formattedResult:String;
-
- /**
- * The name of the property on the model holding the value to be formatted.
- * The default is selectedDate.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get propertyName():String
- {
- if (_propertyName == null) {
- return "selectedDate";
- }
- return _propertyName;
- }
- public function set propertyName(value:String):void
- {
- _propertyName = value;
- }
-
- /**
- * The name of the event dispatched when the property changes. The
- * default is selectedDateChanged.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get eventName():String
- {
- if (_eventName == null) {
- return _propertyName+"Changed";
- }
- return _eventName;
- }
- public function set eventName(value:String):void
- {
- _eventName = value;
- }
-
- /**
- * The formatted result.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get formattedString():String
- {
- return _formattedResult;
- }
-
- private var _strand:IStrand;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @flexjsignorecoercion org.apache.flex.core.IStrandWithModel
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function set strand(value:IStrand):void
- {
- _strand = value;
-
- var model:IDateChooserModel = IStrandWithModel(_strand).model as IDateChooserModel;
- model.addEventListener("selectedDateChanged",handleTextChange);
- }
-
- /**
- * @private
- *
- * @flexjsignorecoercion org.apache.flex.core.IStrandWithModel
- */
- private function handleTextChange(event:Event):void
- {
- var model:IDateChooserModel = IStrandWithModel(_strand).model as IDateChooserModel;
- /*var view:DateFieldView = _strand.getBeadByType(DateFieldView) as DateFieldView;
- var input:TextInput = view.textInput;*/
-
- var d:Date = model.selectedDate;
- var month:String = String(d.getMonth()+1);
- if (Number(month)<10) month = "0"+month;
- var date:String = String(d.getDate());
- if (Number(date)<10) date = "0"+date;
- var fmt:String = month+"/"+date+"/"+String(d.getFullYear());
- /*input.text = fmt;*/
- _formattedResult = month+"/"+date+"/"+String(d.getFullYear());
-
- dispatchEvent( new Event("formatChanged") );
- }
-
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/NumberFormatter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/NumberFormatter.as b/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/NumberFormatter.as
deleted file mode 100644
index 0d1b613..0000000
--- a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/accessories/NumberFormatter.as
+++ /dev/null
@@ -1,210 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.accessories
-{
- import org.apache.flex.core.IBeadModel;
- import org.apache.flex.core.IFormatBead;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.EventDispatcher;
- import org.apache.flex.events.IEventDispatcher;
-
- /**
- * The NumberFormatter class formats a value in separated groups. The formatter listens
- * to a property on a model and when the property changes, formats it and dispatches a
- * formatChanged event.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class NumberFormatter extends EventDispatcher implements IFormatBead
- {
- /**
- * constructor
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function NumberFormatter()
- {
- super();
- }
-
- private var _strand:IStrand;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function set strand(value:IStrand):void
- {
- _strand = value;
-
- // Listen for the beadsAdded event which signals when all of a strand's
- // beads have been added.
- IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
- }
-
- /**
- * @private
- */
- private function handleBeadsAdded(event:Event):void
- {
- // Listen for the change in the model
- var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
- model.addEventListener(eventName,propertyChangeHandler);
- model.addEventListener(propertyName+"Change",propertyChangeHandler);
-
- // format the current value of that property
- propertyChangeHandler(null);
- }
-
- private var _propertyName:String;
- private var _eventName:String;
- private var _formattedResult:String;
- private var _groupSize:Number = 3;
- private var _thousandsSeparator:String = ",";
-
- /**
- * The name of the property on the model to format.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get propertyName():String
- {
- if (_propertyName == null) {
- return "text";
- }
- return _propertyName;
- }
- public function set propertyName(value:String):void
- {
- _propertyName = value;
- }
-
- /**
- * The event dispatched by the model when the property changes. The
- * default is propertyName+"Changed".
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get eventName():String
- {
- if (_eventName == null) {
- return _propertyName+"Changed";
- }
- return _eventName;
- }
- public function set eventName(value:String):void
- {
- _eventName = value;
- }
-
- /**
- * Character to use to separate thousands groups. The default is
- * the comma (,).
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get thousandsSeparator():String
- {
- return _thousandsSeparator;
- }
- public function set thousandsSeparator(value:String):void
- {
- _thousandsSeparator = value;
- }
-
- /**
- * The formatted string.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get formattedString():String
- {
- return _formattedResult;
- }
-
- /**
- * @private
- */
- private function propertyChangeHandler(event:Event):void
- {
- // When the property changes, fetch it from the model and
- // format it, storing the result in _formattedResult.
- var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
- var value:Object = model[propertyName];
- _formattedResult = format(value);
-
- // Dispatch the formatChanged event so any bead that's interested in
- // the formatted string knows to use it.
- var newEvent:Event = new Event("formatChanged");
- this.dispatchEvent(newEvent);
- }
-
- /**
- * @private
- */
- private function format(value:Object):String
- {
- if (value == null) return "";
-
- var num:Number = Number(value);
- var source:String = String(value);
- var parts:Array = source.split(thousandsSeparator);
- source = parts.join("");
-
- var l:int = source.length;
- var result:String = "";
- var group:int = 0;
-
- for(var i:int=l-1; i >= 0; i--)
- {
- if (group == _groupSize && result.length > 0) {
- result = thousandsSeparator + result;
- group = 0;
- }
- result = source.charAt(i) + result;
- group++;
- }
-
- return result;
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/beads/FormatableLabelView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/beads/FormatableLabelView.as b/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/beads/FormatableLabelView.as
deleted file mode 100644
index 03b6ccd..0000000
--- a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/beads/FormatableLabelView.as
+++ /dev/null
@@ -1,90 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.beads
-{
- import org.apache.flex.core.IFormatBead;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.IEventDispatcher;
-
- /**
- * The FormatableLabelView class is a View bead that is capable of working
- * with a format bead to display a formatted value. When the format bead has
- * created a formatted string, it dispatches a formatChanged event that the
- * FormatableLabelView class intercepts and displays in the label.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class FormatableLabelView extends TextFieldView
- {
- /**
- * constructor
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function FormatableLabelView()
- {
- super();
- }
-
- private var _formatter:IFormatBead;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- override public function set strand(value:IStrand):void
- {
- super.strand = value;
- IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
- }
-
- /**
- * @private
- */
- private function handleBeadsAdded(event:Event):void
- {
- _formatter = _strand.getBeadByType(IFormatBead) as IFormatBead;
- _formatter.addEventListener("formatChanged",formatReadyHandler);
-
- // process any text set in the label at this moment
- text = _formatter.formattedString;
- }
-
- /**
- * @private
- */
- private function formatReadyHandler(event:Event):void
- {
- if (_formatter) {
- text = _formatter.formattedString;
- }
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/beads/FormatableTextInputView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/beads/FormatableTextInputView.as b/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/beads/FormatableTextInputView.as
deleted file mode 100644
index 926253c..0000000
--- a/frameworks/projects/Formatters/asjs/src/org/apache/flex/html/beads/FormatableTextInputView.as
+++ /dev/null
@@ -1,91 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.beads
-{
- import org.apache.flex.core.IFormatBead;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.IEventDispatcher;
-
- /**
- * The FormatableTextInputView class is a View bead that extends TextInputWithBorderView
- * and is capable of working with a format bead. When a format bead dispatches a
- * formatChanged event, the FormatableTextInputView bead copies the formatted string to
- * to the text field.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class FormatableTextInputView extends TextInputWithBorderView
- {
- /**
- * constructor
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function FormatableTextInputView()
- {
- super();
- }
-
- private var _formatter:IFormatBead;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- override public function set strand(value:IStrand):void
- {
- super.strand = value;
- IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
- }
-
- /**
- * @private
- */
- private function handleBeadsAdded(event:Event):void
- {
- _formatter = _strand.getBeadByType(IFormatBead) as IFormatBead;
- if (_formatter) {
- _formatter.addEventListener("formatChanged",formatChangedHandler);
- }
- }
-
- /**
- * @private
- */
- private function formatChangedHandler(event:Event):void
- {
- this.textField.text = _formatter.formattedString;
-
- // move the cursor to the end
- var l:int = this.textField.text.length;
- this.textField.setSelection(l,l);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/build.xml b/frameworks/projects/Formatters/build.xml
index 1e3dab5..04a7bd2 100644
--- a/frameworks/projects/Formatters/build.xml
+++ b/frameworks/projects/Formatters/build.xml
@@ -28,31 +28,18 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
-
+
<target name="main" depends="clean,compile,test" description="Clean build of Formatters.swc">
</target>
-
- <target name="all" depends="main,compile-asjs,lint-js,test-js" description="Full build of Formatters.swc">
+
+ <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Formatters.swc">
</target>
-
+
<target name="test" unless="is.jenkins">
<!-- no tests yet
<ant dir="as/tests" />
- <ant dir="asjs/tests" />
- -->
- </target>
-
- <target name="test-js" unless="is.jenkins">
- <!-- no tests yet
- <ant dir="js/tests" />
-->
</target>
-
<target name="clean">
<delete failonerror="false">
@@ -85,7 +72,7 @@
Link in the classes (and their dependencies) for the MXML tags
listed in this project's manifest.xml.
Also link the additional classes (and their dependencies)
- listed in FormatterClasses.as,
+ listed in FormattersClasses.as,
because these aren't referenced by the manifest classes.
Keep the standard metadata when compiling.
Include the appropriate CSS files and assets in the SWC.
@@ -99,11 +86,13 @@
<load-config filename="compile-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-define=COMPILE::AS3,true" />
+ <arg value="-define=COMPILE::JS,false" />
</compc>
</target>
- <target name="compile-asjs" >
- <echo message="Cross-compiling Formatters/asjs"/>
+ <target name="compile-asjs">
+ <echo message="Cross-compiling Formatters"/>
<echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
<java jar="${FALCONJX_HOME}/lib/compc.jar" fork="true" >
<jvmarg value="-Xmx384m" />
@@ -118,45 +107,56 @@
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
<arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
</java>
</target>
- <target name="lint-js" depends="gjslint, jshint, copy-js" />
- <target name="copy-js" >
+ <target name="compile-extern-swc" description="Compiles .as files into .swc used for cross-compiling other projects">
+ <echo message="Compiling externs/Formatters.swc"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <!-- make JS output folder now so include-file doesn't error -->
+ <mkdir dir="${FLEXJS_HOME}/frameworks/externs"/>
+
+ <!-- Load the <compc> task. We can't do this at the <project> level -->
+ <!-- because targets that run before flexTasks.jar gets built would fail. -->
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+ <!--
+ Link in the classes (and their dependencies) for the MXML tags
+ listed in this project's manifest.xml.
+ Also link the additional classes (and their dependencies)
+ listed in CoreClasses.as,
+ because these aren't referenced by the manifest classes.
+ Keep the standard metadata when compiling.
+ Include the appropriate CSS files and assets in the SWC.
+ Don't include any resources in the SWC.
+ Write a bundle list of referenced resource bundles
+ into the file bundles.properties in this directory.
+ -->
+ <compc fork="true"
+ output="${FLEXJS_HOME}/frameworks/externs/Formatters.swc">
+ <jvmarg line="${compc.jvm.args}"/>
+ <load-config filename="compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </compc>
+ </target>
+
+ <target name="copy-js">
<copy todir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
- <fileset dir="${basedir}/js/src">
- <include name="**/**" />
- </fileset>
<fileset dir="${basedir}/js/out">
- <include name="**/**" />
+ <include name="**/**"/>
</fileset>
</copy>
</target>
- <target name="gjslint" unless="no.lint">
- <echo>running gjslint</echo>
- <exec executable="${gjslint}" dir="${basedir}" failonerror="true">
- <arg value="--strict" />
- <arg value="--disable" />
- <arg value="006,100,214,300" />
- <!-- 006: wrong indentation -->
- <!-- 100: cannot have non-primitive value -->
- <!-- 214: @fileoverview tag missing description -->
- <!-- 300: missing newline at end of file -->
- <arg value="--max_line_length" />
- <arg value="120" />
- <arg value="-r" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
- <target name="jshint" unless="no.lint">
- <echo>running jshint</echo>
- <exec executable="${jshint}" dir="${basedir}" failonerror="true">
- <arg value="--config" />
- <arg value="${FLEX_HOME}/frameworks/js/jshint.properties" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/compile-asjs-config.xml b/frameworks/projects/Formatters/compile-asjs-config.xml
index d688c63..4632bc2 100644
--- a/frameworks/projects/Formatters/compile-asjs-config.xml
+++ b/frameworks/projects/Formatters/compile-asjs-config.xml
@@ -48,11 +48,10 @@
will not be listed -->
<path-element>../../libs/Core.swc</path-element>
<path-element>../../libs/HTML.swc</path-element>
- <path-element>../../libs/Formatters.swc</path-element>
</library-path>
<source-path>
- <path-element>asjs/src</path-element>
+ <path-element>as/src</path-element>
</source-path>
<warn-no-constructor>false</warn-no-constructor>
@@ -62,7 +61,7 @@
</include-file>
<include-sources>
- <path-element>asjs/src</path-element>
+ <path-element>as/src</path-element>
</include-sources>
<include-namespaces>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2a806e3/frameworks/projects/Formatters/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/compile-config.xml b/frameworks/projects/Formatters/compile-config.xml
index 6e59964..3fcc71c 100644
--- a/frameworks/projects/Formatters/compile-config.xml
+++ b/frameworks/projects/Formatters/compile-config.xml
@@ -55,7 +55,6 @@
<source-path>
<path-element>as/src</path-element>
- <path-element>asjs/src</path-element>
</source-path>
<warn-no-constructor>false</warn-no-constructor>
@@ -72,7 +71,6 @@
<include-classes>
<class>FormattersClasses</class>
- <class>FormattersASJSClasses</class>
</include-classes>
<include-namespaces>
[54/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - clean
up the build scripts
Posted by ah...@apache.org.
clean up the build scripts
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/93a57d0d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/93a57d0d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/93a57d0d
Branch: refs/heads/develop
Commit: 93a57d0d726d6e80695f0dfd4c1ba8d20ba9caa6
Parents: 3d2d2c3
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 22:33:12 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 22:33:12 2015 -0800
----------------------------------------------------------------------
build.xml | 38 +++-----------------
frameworks/build.xml | 44 +++++++++---------------
frameworks/projects/Binding/build.xml | 10 +-----
frameworks/projects/Charts/build.xml | 5 +--
frameworks/projects/Collections/build.xml | 5 +--
frameworks/projects/Core/as/tests/build.xml | 2 +-
frameworks/projects/Core/build.xml | 5 +--
frameworks/projects/CreateJS/build.xml | 5 +--
frameworks/projects/DragDrop/build.xml | 10 +-----
frameworks/projects/Effects/build.xml | 10 +-----
frameworks/projects/Flat/build.xml | 10 +-----
frameworks/projects/Formatters/build.xml | 5 +--
frameworks/projects/GoogleMaps/build.xml | 5 +--
frameworks/projects/Graphics/build.xml | 10 +-----
frameworks/projects/HTML/as/tests/build.xml | 2 +-
frameworks/projects/HTML/build.xml | 37 +-------------------
frameworks/projects/HTML5/build.xml | 5 +--
frameworks/projects/JQuery/build.xml | 5 +--
frameworks/projects/Mobile/build.xml | 5 +--
frameworks/projects/Network/build.xml | 10 +-----
20 files changed, 39 insertions(+), 189 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index f5a58b7..a027f93 100644
--- a/build.xml
+++ b/build.xml
@@ -87,14 +87,14 @@
Each of the main targets for the modules will call clean themselves before proceeding.
-->
- <target name="main" depends="check-if-ide,prebuild,frameworks-as,frameworks-js,frameworks-recompile,post-build,last-message-if-airsdk" description="Full build" unless="airsdk.found">
+ <target name="main" depends="check-if-ide,prebuild,frameworks,post-build,last-message-if-airsdk" description="Full build" unless="airsdk.found">
<tstamp>
<format property="build.datetime" pattern="MM/dd/yyyy hh:mm:ss aa" />
</tstamp>
<echo>ant main target completed on ${build.datetime}</echo>
</target>
- <target name="main-jenkins" depends="dump-config,prebuild,frameworks-as,frameworks-js-jenkins,post-build" description="Full build">
+ <target name="main-jenkins" depends="dump-config,prebuild,frameworks,post-build" description="Full build">
<tstamp>
<format property="build.datetime" pattern="MM/dd/yyyy hh:mm:ss aa" />
</tstamp>
@@ -372,7 +372,7 @@
<delete dir="${basedir}/lib"/>
</target>
- <target name="clean" depends="examples-clean,frameworks-as-clean,package-clean,checkintests-clean"
+ <target name="clean" depends="examples-clean,frameworks-clean,package-clean,checkintests-clean"
description="Full clean excluding thirdparty downloads">
<delete file="${basedir}/flex-sdk-description.xml" failonerror="false"/>
@@ -398,7 +398,7 @@
<ant dir="${basedir}/manualtests" target="clean"/>
</target>
- <target name="frameworks-as-clean">
+ <target name="frameworks-clean">
<ant dir="${basedir}/frameworks" target="clean"/>
</target>
@@ -427,31 +427,12 @@
Build framework SWCs
-->
- <target name="frameworks-as" description="Full build of all Actionscript framework SWCs, including resource bundles and themes" unless="airsdk.found">
+ <target name="frameworks" description="Full build of all Actionscript framework SWCs, including resource bundles and themes" unless="airsdk.found">
<ant dir="${basedir}/frameworks">
<property name="locale" value="${locale}"/>
</ant>
</target>
- <target name="frameworks-js-jenkins" description="Full check of all JavaScript framework files, using gsjlint and jshint">
- <property name="no.lint" value="true" />
- <ant dir="${basedir}/frameworks" target="js">
- <property name="locale" value="${locale}"/>
- </ant>
- </target>
-
- <target name="frameworks-js" description="Full check of all JavaScript framework files, using gsjlint and jshint" unless="airsdk.found">
- <ant dir="${basedir}/frameworks" target="js">
- <property name="locale" value="${locale}"/>
- </ant>
- </target>
-
- <target name="frameworks-recompile" description="Full build of all Actionscript framework SWCs, which picks up JS files" unless="airsdk.found">
- <ant dir="${basedir}/frameworks" target="re-compile">
- <property name="locale" value="${locale}"/>
- </ant>
- </target>
-
<target name="other.locales" description="Build resource SWCs for additional locales">
<!--<ant dir="${basedir}/frameworks" target="other.locales"/>-->
</target>
@@ -547,13 +528,6 @@
<!-- frameworks -->
<antcall target="stage-framework-as"/>
- <copy todir="${basedir}/temp/frameworks/js">
- <fileset dir="${basedir}/frameworks/js" >
- <include name="jshint.properties"/>
- <include name=".jshintrc"/>
- </fileset>
- </copy>
-
<!-- asdoc -->
<copy todir="${basedir}/temp/asdoc" includeEmptyDirs="false">
<fileset dir="${basedir}/asdoc">
@@ -1148,8 +1122,6 @@
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/jquery_externals.js" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/createjs_externals.js" />
<arg value="${basedir}/mustella/tests/basicTests/BasicTestsApp.mxml" />
</java>
<fail>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/build.xml b/frameworks/build.xml
index 0317c2d..733ccab 100644
--- a/frameworks/build.xml
+++ b/frameworks/build.xml
@@ -94,18 +94,6 @@
<antcall target="Network"/>
</target>
- <target name="compile-asjs" description="Cross-compiles all SWCs">
- </target>
-
- <target name="lint-js" description="Cross-compiles all SWCs">
- </target>
-
- <target name="re-compile" description="Builds all SWCs which should pick up the JS files from asjs">
- <!-- order may matter due to dependencies -->
- </target>
-
- <target name="js" depends="compile-asjs, lint-js" />
-
<target name="fonts">
<ant dir="${basedir}/fontsrc" target="main"/>
</target>
@@ -167,67 +155,67 @@
</target>
<target name="Binding" description="Clean build of Binding.swc">
- <ant dir="${basedir}/projects/Binding" target="all"/>
+ <ant dir="${basedir}/projects/Binding"/>
</target>
<target name="Charts" description="Clean build of Charts.swc">
- <ant dir="${basedir}/projects/Charts" target="all"/>
+ <ant dir="${basedir}/projects/Charts"/>
</target>
<target name="Core" description="Clean build of Core.swc">
- <ant dir="${basedir}/projects/Core" target="all"/>
+ <ant dir="${basedir}/projects/Core"/>
</target>
<target name="Collections" description="Clean build of Collections.swc">
- <ant dir="${basedir}/projects/Collections" target="all"/>
+ <ant dir="${basedir}/projects/Collections"/>
</target>
<target name="CreateJS" description="Clean build of CreateJS.swc">
- <ant dir="${basedir}/projects/CreateJS" target="all"/>
+ <ant dir="${basedir}/projects/CreateJS"/>
</target>
<target name="DragDrop" description="Clean build of DragDrop.swc">
- <ant dir="${basedir}/projects/DragDrop" target="all"/>
+ <ant dir="${basedir}/projects/DragDrop"/>
</target>
<target name="Effects" description="Clean build of Effects.swc">
- <ant dir="${basedir}/projects/Effects" target="all"/>
+ <ant dir="${basedir}/projects/Effects"/>
</target>
<target name="Flat" description="Clean build of Flat.swc">
- <ant dir="${basedir}/projects/Flat" target="all"/>
+ <ant dir="${basedir}/projects/Flat"/>
</target>
<target name="Formatters" description="Clean build of Formatters.swc">
- <ant dir="${basedir}/projects/Formatters" target="all"/>
+ <ant dir="${basedir}/projects/Formatters"/>
</target>
<target name="GoogleMaps" description="Clean build of GoogleMaps.swc">
- <ant dir="${basedir}/projects/GoogleMaps" target="all"/>
+ <ant dir="${basedir}/projects/GoogleMaps"/>
</target>
<target name="Graphics" description="Clean build of Graphics.swc">
- <ant dir="${basedir}/projects/Graphics" target="all"/>
+ <ant dir="${basedir}/projects/Graphics"/>
</target>
<target name="HTML" description="Clean build of HTML.swc">
- <ant dir="${basedir}/projects/HTML" target="all"/>
+ <ant dir="${basedir}/projects/HTML"/>
</target>
<target name="HTML5" description="Clean build of HTML5.swc">
- <ant dir="${basedir}/projects/HTML5" target="all"/>
+ <ant dir="${basedir}/projects/HTML5"/>
</target>
<target name="JQuery" description="Clean build of JQuery.swc">
- <ant dir="${basedir}/projects/JQuery" target="all"/>
+ <ant dir="${basedir}/projects/JQuery"/>
</target>
<target name="Mobile" description="Clean build of Mobile.swc">
- <ant dir="${basedir}/projects/Mobile" target="all"/>
+ <ant dir="${basedir}/projects/Mobile"/>
</target>
<target name="Network" description="Clean build of Network.swc">
- <ant dir="${basedir}/projects/Network" target="all"/>
+ <ant dir="${basedir}/projects/Network"/>
</target>
<target name="flex-config" depends="playerglobal-setswfversion" description="Copy the flex config template to flex-config.xml and inject version numbers">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Binding/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/build.xml b/frameworks/projects/Binding/build.xml
index af39e74..0fbac3f 100644
--- a/frameworks/projects/Binding/build.xml
+++ b/frameworks/projects/Binding/build.xml
@@ -28,16 +28,8 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
- <target name="main" depends="clean,compile,test" description="Clean build of Binding.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test-js" description="Full build of Binding.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test-js" description="Full build of Binding.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Charts/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/build.xml b/frameworks/projects/Charts/build.xml
index 630fe51..3a43954 100644
--- a/frameworks/projects/Charts/build.xml
+++ b/frameworks/projects/Charts/build.xml
@@ -29,10 +29,7 @@
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <target name="main" depends="clean,compile,test" description="Clean build of Charts.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Charts.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Charts.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Collections/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/build.xml b/frameworks/projects/Collections/build.xml
index 9afc851..8206623 100644
--- a/frameworks/projects/Collections/build.xml
+++ b/frameworks/projects/Collections/build.xml
@@ -29,10 +29,7 @@
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <target name="main" depends="clean,compile,test" description="Clean build of Collections.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Collections.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Collections.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Core/as/tests/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/tests/build.xml b/frameworks/projects/Core/as/tests/build.xml
index 9595ac1..312026d 100644
--- a/frameworks/projects/Core/as/tests/build.xml
+++ b/frameworks/projects/Core/as/tests/build.xml
@@ -19,7 +19,7 @@
-->
-<project name="flexjsui.test" default="main" basedir=".">
+<project name="Core.test" default="main" basedir=".">
<property name="FLEXJS_HOME" location="../../../../.."/>
<property file="${FLEXJS_HOME}/env.properties"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Core/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/build.xml b/frameworks/projects/Core/build.xml
index 799665c..1831bf2 100644
--- a/frameworks/projects/Core/build.xml
+++ b/frameworks/projects/Core/build.xml
@@ -29,10 +29,7 @@
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <target name="main" depends="clean,compile,test" description="Clean build of Core.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Core.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Core.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/CreateJS/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/build.xml b/frameworks/projects/CreateJS/build.xml
index 742c197..b121239 100644
--- a/frameworks/projects/CreateJS/build.xml
+++ b/frameworks/projects/CreateJS/build.xml
@@ -32,10 +32,7 @@
<os family="windows"/>
</condition>
- <target name="main" depends="clean,compile,test" description="Clean build of CreateJS.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of CreateJS.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of CreateJS.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/DragDrop/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/build.xml b/frameworks/projects/DragDrop/build.xml
index 1896794..6736a35 100644
--- a/frameworks/projects/DragDrop/build.xml
+++ b/frameworks/projects/DragDrop/build.xml
@@ -28,16 +28,8 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
- <target name="main" depends="clean,compile,test" description="Clean build of DragDrop.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,compile" description="Full build of DragDrop.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,compile" description="Full build of DragDrop.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Effects/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Effects/build.xml b/frameworks/projects/Effects/build.xml
index 3bbc94c..048f6d9 100644
--- a/frameworks/projects/Effects/build.xml
+++ b/frameworks/projects/Effects/build.xml
@@ -28,16 +28,8 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
- <target name="main" depends="clean,compile,test" description="Clean build of Effects.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile" description="Full build of Effects.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile" description="Full build of Effects.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Flat/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/build.xml b/frameworks/projects/Flat/build.xml
index 04ad536..86bd50c 100644
--- a/frameworks/projects/Flat/build.xml
+++ b/frameworks/projects/Flat/build.xml
@@ -28,16 +28,8 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
- <target name="main" depends="clean,compile,test" description="Clean build of Flat.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,compile,copy-js,test" description="Full build of Flat.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,compile,copy-js,test" description="Full build of Flat.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Formatters/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/build.xml b/frameworks/projects/Formatters/build.xml
index 04a7bd2..5ea5c71 100644
--- a/frameworks/projects/Formatters/build.xml
+++ b/frameworks/projects/Formatters/build.xml
@@ -29,10 +29,7 @@
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <target name="main" depends="clean,compile,test" description="Clean build of Formatters.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Formatters.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Formatters.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/GoogleMaps/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/build.xml b/frameworks/projects/GoogleMaps/build.xml
index 606e30c..ef21452 100644
--- a/frameworks/projects/GoogleMaps/build.xml
+++ b/frameworks/projects/GoogleMaps/build.xml
@@ -29,10 +29,7 @@
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <target name="main" depends="clean,compile,test" description="Clean build of GoogleMaps.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of GoogleMaps.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of GoogleMaps.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Graphics/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/build.xml b/frameworks/projects/Graphics/build.xml
index 8296ed6..04e35ae 100644
--- a/frameworks/projects/Graphics/build.xml
+++ b/frameworks/projects/Graphics/build.xml
@@ -28,16 +28,8 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
- <target name="main" depends="clean,compile,test" description="Clean build of Graphics.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Graphics.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Graphics.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/HTML/as/tests/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/tests/build.xml b/frameworks/projects/HTML/as/tests/build.xml
index 4951b51..224d62b 100644
--- a/frameworks/projects/HTML/as/tests/build.xml
+++ b/frameworks/projects/HTML/as/tests/build.xml
@@ -19,7 +19,7 @@
-->
-<project name="flexjsjx.test" default="main" basedir=".">
+<project name="HTML.test" default="main" basedir=".">
<property name="FLEXJS_HOME" location="../../../../.."/>
<property file="${FLEXJS_HOME}/env.properties"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/HTML/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/build.xml b/frameworks/projects/HTML/build.xml
index 39812ce..517681c 100644
--- a/frameworks/projects/HTML/build.xml
+++ b/frameworks/projects/HTML/build.xml
@@ -28,16 +28,8 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
- <target name="main" depends="clean,compile,test" description="Clean build of HTML.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of HTML.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of HTML.swc">
</target>
<target name="test" unless="is.jenkins">
@@ -163,7 +155,6 @@
</compc>
</target>
- <target name="lint-js" depends="gjslint, jshint, copy-js" />
<target name="copy-js" >
<copy todir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
<fileset dir="${basedir}/js/out">
@@ -172,30 +163,4 @@
</copy>
</target>
- <target name="gjslint" unless="no.lint">
- <echo>running gjslint</echo>
- <exec executable="${gjslint}" dir="${basedir}" failonerror="true">
- <arg value="--strict" />
- <arg value="--disable" />
- <arg value="006,100,214,300" />
- <!-- 006: wrong indentation -->
- <!-- 100: cannot have non-primitive value -->
- <!-- 214: @fileoverview tag missing description -->
- <!-- 300: missing newline at end of file -->
- <arg value="--max_line_length" />
- <arg value="120" />
- <arg value="-r" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
- <target name="jshint" unless="no.lint">
- <echo>running jshint</echo>
- <exec executable="${jshint}" dir="${basedir}" failonerror="true">
- <arg value="--config" />
- <arg value="${FLEX_HOME}/frameworks/js/jshint.properties" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/HTML5/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/build.xml b/frameworks/projects/HTML5/build.xml
index a1862da..1b1d27d 100644
--- a/frameworks/projects/HTML5/build.xml
+++ b/frameworks/projects/HTML5/build.xml
@@ -29,10 +29,7 @@
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <target name="main" depends="clean,compile,test" description="Clean build of HTML5.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of HTML5.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of HTML5.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/JQuery/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/build.xml b/frameworks/projects/JQuery/build.xml
index ce63aeb..409bf47 100644
--- a/frameworks/projects/JQuery/build.xml
+++ b/frameworks/projects/JQuery/build.xml
@@ -29,10 +29,7 @@
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <target name="main" depends="clean,compile,test" description="Clean build of jQuery.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of jQuery.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of jQuery.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Mobile/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/build.xml b/frameworks/projects/Mobile/build.xml
index fa1a1b4..2760554 100644
--- a/frameworks/projects/Mobile/build.xml
+++ b/frameworks/projects/Mobile/build.xml
@@ -29,10 +29,7 @@
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <target name="main" depends="clean,compile,test" description="Clean build of Mobile.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Mobile.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of Mobile.swc">
</target>
<target name="test" unless="is.jenkins">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93a57d0d/frameworks/projects/Network/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/build.xml b/frameworks/projects/Network/build.xml
index 8b596b2..c3a38ea 100644
--- a/frameworks/projects/Network/build.xml
+++ b/frameworks/projects/Network/build.xml
@@ -28,16 +28,8 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
- <target name="main" depends="clean,compile,test" description="Clean build of Network.swc">
- </target>
-
- <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile" description="Full build of Network.swc">
+ <target name="main" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile" description="Full build of Network.swc">
</target>
<target name="test" unless="is.jenkins">
[40/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] -
superclass does get renamed in minifier
Posted by ah...@apache.org.
superclass does get renamed in minifier
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3f77eec6
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3f77eec6
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3f77eec6
Branch: refs/heads/develop
Commit: 3f77eec6128cc2a4691cc7afaf165e34a7771d49
Parents: c9bec30
Author: Alex Harui <ah...@apache.org>
Authored: Tue Dec 15 08:48:40 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Dec 15 08:48:40 2015 -0800
----------------------------------------------------------------------
.../Core/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3f77eec6/frameworks/projects/Core/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as b/frameworks/projects/Core/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
index afc4919..e64a517 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
@@ -431,7 +431,8 @@ package org.apache.flex.core
}
COMPILE::JS
{
- thisInstance = thisInstance.constructor["superClass_"];
+ var constructorAsObject:Object = thisInstance["constructor"];
+ thisInstance = constructorAsObject.superClass_;
if (!thisInstance || !thisInstance.FLEXJS_CLASS_INFO)
break;
[15/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - Added
HTML5 project to as-js back port.
Posted by ah...@apache.org.
Added HTML5 project to as-js back port.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/0e9b17dc
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/0e9b17dc
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/0e9b17dc
Branch: refs/heads/develop
Commit: 0e9b17dc162c83f2c19a104975d7ddc643c7be4d
Parents: 94d9cf2
Author: Peter Ent <pe...@apache.org>
Authored: Fri Dec 4 10:25:39 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Fri Dec 4 10:25:39 2015 -0500
----------------------------------------------------------------------
frameworks/build.xml | 5 +-
frameworks/projects/HTML5/build.xml | 120 ++++++++++++++++++-------------
2 files changed, 71 insertions(+), 54 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0e9b17dc/frameworks/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/build.xml b/frameworks/build.xml
index 0611280..5aeb5d1 100644
--- a/frameworks/build.xml
+++ b/frameworks/build.xml
@@ -98,7 +98,6 @@
<ant dir="${basedir}/projects/CreateJS" target="compile-asjs"/>
<ant dir="${basedir}/projects/Formatters" target="compile-asjs"/>
<ant dir="${basedir}/projects/GoogleMaps" target="compile-asjs"/>
- <ant dir="${basedir}/projects/HTML5" target="compile-asjs"/>
</target>
<target name="lint-js" description="Cross-compiles all SWCs">
@@ -106,7 +105,6 @@
<ant dir="${basedir}/projects/Flat" target="lint-js"/>
<ant dir="${basedir}/projects/Formatters" target="lint-js"/>
<ant dir="${basedir}/projects/GoogleMaps" target="lint-js"/>
- <ant dir="${basedir}/projects/HTML5" target="lint-js"/>
</target>
<target name="re-compile" description="Builds all SWCs which should pick up the JS files from asjs">
@@ -115,7 +113,6 @@
<ant dir="${basedir}/projects/CreateJS" target="compile"/>
<ant dir="${basedir}/projects/Formatters" target="compile"/>
<ant dir="${basedir}/projects/GoogleMaps" target="compile"/>
- <ant dir="${basedir}/projects/HTML5" target="compile"/>
</target>
<target name="js" depends="compile-asjs, lint-js" />
@@ -229,7 +226,7 @@
</target>
<target name="HTML5" description="Clean build of HTML5.swc">
- <ant dir="${basedir}/projects/HTML5"/>
+ <ant dir="${basedir}/projects/HTML5" target="all"/>
</target>
<target name="JQuery" description="Clean build of JQuery.swc">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0e9b17dc/frameworks/projects/HTML5/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/build.xml b/frameworks/projects/HTML5/build.xml
index f9cd570..a1862da 100644
--- a/frameworks/projects/HTML5/build.xml
+++ b/frameworks/projects/HTML5/build.xml
@@ -28,28 +28,16 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
-
+
<target name="main" depends="clean,compile,test" description="Clean build of HTML5.swc">
</target>
-
- <target name="all" depends="main,compile-asjs,lint-js,test-js" description="Full build of HTML5.swc">
+
+ <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of HTML5.swc">
</target>
-
+
<target name="test" unless="is.jenkins">
<!-- no tests yet
<ant dir="as/tests" />
- <ant dir="asjs/tests" />
- -->
- </target>
-
- <target name="test-js" unless="is.jenkins">
- <!-- no tests yet
- <ant dir="js/tests" />
-->
</target>
@@ -74,6 +62,8 @@
<echo message="Compiling libs/HTML5.swc"/>
<echo message="FLEX_HOME: ${FLEX_HOME}"/>
<echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <!-- make JS output folder now so include-file doesn't error -->
+ <mkdir dir="${basedir}/js/out" />
<!-- Load the <compc> task. We can't do this at the <project> level -->
<!-- because targets that run before flexTasks.jar gets built would fail. -->
@@ -82,7 +72,7 @@
Link in the classes (and their dependencies) for the MXML tags
listed in this project's manifest.xml.
Also link the additional classes (and their dependencies)
- listed in HTML5Classes.as,
+ listed in ChartsClasses.as,
because these aren't referenced by the manifest classes.
Keep the standard metadata when compiling.
Include the appropriate CSS files and assets in the SWC.
@@ -96,47 +86,77 @@
<load-config filename="compile-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-define=COMPILE::AS3,true" />
+ <arg value="-define=COMPILE::JS,false" />
</compc>
</target>
- <target name="compile-asjs" >
- <!-- nothing to cross-compile yet -->
+ <target name="compile-asjs">
+ <echo message="Cross-compiling HTML5"/>
+ <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
+ <java jar="${FALCONJX_HOME}/lib/compc.jar" fork="true" >
+ <jvmarg value="-Xmx384m" />
+ <jvmarg value="-Dsun.io.useCanonCaches=false" />
+ <jvmarg value="-Dflexcompiler=${FALCONJX_HOME}/../compiler" />
+ <jvmarg value="-Dflexlib=${FLEXJS_HOME}/frameworks" />
+ <arg value="+flexlib=${FLEX_HOME}/frameworks" />
+ <arg value="-js-output-type=FLEXJS" />
+ <arg value="-keep-asdoc" /><!-- allows compiler to see @flexjsignorecoercion annotations -->
+ <arg value="-output=${basedir}/js/out" />
+ <arg value="-load-config=${basedir}/compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </java>
</target>
- <target name="lint-js" depends="gjslint, jshint, copy-js" />
- <target name="copy-js" >
+ <target name="compile-extern-swc" description="Compiles .as files into .swc used for cross-compiling other projects">
+ <echo message="Compiling externs/HTML5.swc"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <!-- make JS output folder now so include-file doesn't error -->
+ <mkdir dir="${FLEXJS_HOME}/frameworks/externs"/>
+
+ <!-- Load the <compc> task. We can't do this at the <project> level -->
+ <!-- because targets that run before flexTasks.jar gets built would fail. -->
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+ <!--
+ Link in the classes (and their dependencies) for the MXML tags
+ listed in this project's manifest.xml.
+ Also link the additional classes (and their dependencies)
+ listed in CoreClasses.as,
+ because these aren't referenced by the manifest classes.
+ Keep the standard metadata when compiling.
+ Include the appropriate CSS files and assets in the SWC.
+ Don't include any resources in the SWC.
+ Write a bundle list of referenced resource bundles
+ into the file bundles.properties in this directory.
+ -->
+ <compc fork="true"
+ output="${FLEXJS_HOME}/frameworks/externs/HTML5.swc">
+ <jvmarg line="${compc.jvm.args}"/>
+ <load-config filename="compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </compc>
+ </target>
+
+ <target name="copy-js">
<copy todir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
- <fileset dir="${basedir}/js/src">
- <include name="**/**" />
+ <fileset dir="${basedir}/js/out">
+ <include name="**/**"/>
</fileset>
</copy>
</target>
- <target name="gjslint" unless="no.lint">
- <echo>running gjslint</echo>
- <exec executable="${gjslint}" dir="${basedir}" failonerror="true">
- <arg value="--strict" />
- <arg value="--disable" />
- <arg value="006,100,214,300" />
- <!-- 006: wrong indentation -->
- <!-- 100: cannot have non-primitive value -->
- <!-- 214: @fileoverview tag missing description -->
- <!-- 300: missing newline at end of file -->
- <arg value="--max_line_length" />
- <arg value="120" />
- <arg value="-r" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
- <target name="jshint" unless="no.lint">
- <echo>running jshint</echo>
- <exec executable="${jshint}" dir="${basedir}" failonerror="true">
- <arg value="--config" />
- <arg value="${FLEX_HOME}/frameworks/js/jshint.properties" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
-
</project>
[36/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - clean
build after deleting more cruft
Posted by ah...@apache.org.
clean build after deleting more cruft
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f77e1c48
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f77e1c48
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f77e1c48
Branch: refs/heads/develop
Commit: f77e1c4883a0237f28965574ab22758f6c213c8d
Parents: f5ec157
Author: Alex Harui <ah...@apache.org>
Authored: Mon Dec 14 13:30:16 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 14 14:10:55 2015 -0800
----------------------------------------------------------------------
.../asjs/src/CollectionsASJSClasses.as | 33 ---
frameworks/projects/Core/asjs/defaults.css | 138 -----------
.../projects/Core/asjs/src/CoreASJSClasses.as | 36 ---
.../DragDrop/asjs/src/DragDropASJSClasses.as | 34 ---
.../Effects/asjs/src/EffectsASJSClasses.as | 38 ---
.../asjs/src/FormattersASJSClasses.as | 36 ---
frameworks/projects/Graphics/build.xml | 2 +-
.../projects/HTML/asjs/src/HTMLASJSClasses.as | 55 -----
.../apache/flex/html/beads/DataGridLinesBead.as | 199 ---------------
.../DataItemRendererFactoryForArrayList.as | 174 -------------
.../html/beads/DataProviderChangeNotifier.as | 154 ------------
.../beads/models/ArrayListSelectionModel.as | 242 -------------------
.../Mobile/asjs/src/MobileASJSClasses.as | 41 ----
13 files changed, 1 insertion(+), 1181 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/Collections/asjs/src/CollectionsASJSClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/asjs/src/CollectionsASJSClasses.as b/frameworks/projects/Collections/asjs/src/CollectionsASJSClasses.as
deleted file mode 100644
index e631e8a..0000000
--- a/frameworks/projects/Collections/asjs/src/CollectionsASJSClasses.as
+++ /dev/null
@@ -1,33 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package
-{
-
-/**
- * @private
- * This class is used to link additional classes into rpc.swc
- * beyond those that are found by dependecy analysis starting
- * from the classes specified in manifest.xml.
- */
-internal class CollectionsASJSClasses
-{
- import org.apache.flex.collections.ArrayList; ArrayList;
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/Core/asjs/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/asjs/defaults.css b/frameworks/projects/Core/asjs/defaults.css
deleted file mode 100644
index cb9a50f..0000000
--- a/frameworks/projects/Core/asjs/defaults.css
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-@namespace "library://ns.apache.org/flexjs/basic";
-
-StackedViewManager {
- IBeadModel: ClassReference("org.apache.flex.mobile.models.ViewManagerModel");
- IBeadView: ClassReference("org.apache.flex.mobile.beads.StackedViewManagerView");
-}
-
-TabbedViewManager {
- IBeadModel: ClassReference("org.apache.flex.mobile.models.ViewManagerModel");
- IBeadView: ClassReference("org.apache.flex.mobile.beads.TabbedViewManagerView");
-}
-
-BarChart
-{
- IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel");
- IBeadView: ClassReference("org.apache.flex.charts.beads.ChartView");
- IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController");
- IBeadLayout: ClassReference("org.apache.flex.charts.beads.layouts.BarChartLayout");
- IDataGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartDataGroup");
- IDataProviderItemRendererMapper: ClassReference("org.apache.flex.charts.beads.DataItemRendererFactoryForSeriesData");
- IItemRenderer: ClassReference("org.apache.flex.charts.supportClasses.BoxItemRenderer");
- IHorizontalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
- IVerticalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
-}
-
-BoxItemRenderer
-{
- IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ItemRendererMouseController");
-}
-
-ColumnChart
-{
- IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel");
- IBeadView: ClassReference("org.apache.flex.charts.beads.ChartView");
- IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController");
- IBeadLayout: ClassReference("org.apache.flex.charts.beads.layouts.ColumnChartLayout");
- IDataGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartDataGroup");
- IDataProviderItemRendererMapper: ClassReference("org.apache.flex.charts.beads.DataItemRendererFactoryForSeriesData");
- IItemRenderer: ClassReference("org.apache.flex.charts.supportClasses.BoxItemRenderer");
- IHorizontalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
- IVerticalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
-}
-
-DataGrid
-{
- IDataGridPresentationModel: ClassReference("org.apache.flex.html.beads.models.DataGridPresentationModel");
- IBeadView: ClassReference("org.apache.flex.html.beads.DataGridView");
- IBeadModel: ClassReference("org.apache.flex.html.beads.models.DataGridModel");
- IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory");
- IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.StringItemRenderer");
-
- background-color: #FFFFFF;
-}
-
-DateChooser {
- IBeadView: ClassReference("org.apache.flex.html.beads.DateChooserView");
- IBeadModel: ClassReference("org.apache.flex.html.beads.models.DateChooserModel");
- IBeadController: ClassReference("org.apache.flex.html.beads.controllers.DateChooserMouseController");
- width: 280px;
- height: 240px;
-}
-
-DateField {
- IBeadView: ClassReference("org.apache.flex.html.beads.DateFieldView");
- IBeadModel: ClassReference("org.apache.flex.html.beads.models.DateChooserModel");
- IBeadController: ClassReference("org.apache.flex.html.beads.controllers.DateFieldMouseController");
- IFormatBead: ClassReference("org.apache.flex.html.accessories.DateFormatMMDDYYYYBead");
-}
-
-LineChart
-{
- IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel");
- IBeadView: ClassReference("org.apache.flex.charts.beads.ChartView");
- IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController");
- IBeadLayout: ClassReference("org.apache.flex.charts.beads.layouts.LineChartCategoryVsLinearLayout");
- IDataGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartDataGroup");
- IDataProviderItemRendererMapper: ClassReference("org.apache.flex.charts.beads.DataItemRendererFactoryForSeriesData");
- IItemRenderer: ClassReference("org.apache.flex.charts.supportClasses.BoxItemRenderer");
- IConnectedItemRenderer: ClassReference("org.apache.flex.charts.supportClasses.LineSegmentItemRenderer");
- IHorizontalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
- IVerticalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
-}
-
-PieChart
-{
- IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel");
- IBeadView: ClassReference("org.apache.flex.charts.beads.ChartView");
- IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController");
- IBeadLayout: ClassReference("org.apache.flex.charts.beads.layouts.PieChartLayout");
- IDataGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartDataGroup");
- IDataProviderItemRendererMapper: ClassReference("org.apache.flex.charts.beads.DataItemRendererFactoryForSeriesData");
- IItemRenderer: ClassReference("org.apache.flex.charts.supportClasses.WedgeItemRenderer");
-}
-
-StackedColumnChart
-{
- IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel");
- IBeadView: ClassReference("org.apache.flex.charts.beads.ChartView");
- IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController");
- IBeadLayout: ClassReference("org.apache.flex.charts.beads.layouts.StackedColumnChartLayout");
- IDataGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartDataGroup");
- IDataProviderItemRendererMapper: ClassReference("org.apache.flex.charts.beads.DataItemRendererFactoryForSeriesData");
- IItemRenderer: ClassReference("org.apache.flex.charts.supportClasses.BoxItemRenderer");
- IHorizontalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
- IVerticalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
-}
-
-StackedBarChart
-{
- IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel");
- IBeadView: ClassReference("org.apache.flex.charts.beads.ChartView");
- IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController");
- IBeadLayout: ClassReference("org.apache.flex.charts.beads.layouts.StackedBarChartLayout");
- IDataGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartDataGroup");
- IDataProviderItemRendererMapper: ClassReference("org.apache.flex.charts.beads.DataItemRendererFactoryForSeriesData");
- IItemRenderer: ClassReference("org.apache.flex.charts.supportClasses.BoxItemRenderer");
- IHorizontalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
- IVerticalAxisGroup: ClassReference("org.apache.flex.charts.supportClasses.ChartAxisGroup");
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/Core/asjs/src/CoreASJSClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/asjs/src/CoreASJSClasses.as b/frameworks/projects/Core/asjs/src/CoreASJSClasses.as
deleted file mode 100644
index 1eeb7bd..0000000
--- a/frameworks/projects/Core/asjs/src/CoreASJSClasses.as
+++ /dev/null
@@ -1,36 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package
-{
-/**
- * @private
- * This class is used to link additional classes into rpc.swc
- * beyond those that are found by dependency analysis starting
- * from the classes specified in manifest.xml.
- */
-internal class CoreASJSClasses
-{
- /*import org.apache.flex.core.IDataGridModel; IDataGridModel;
- import org.apache.flex.core.IDataGridPresentationModel; IDataGridPresentationModel;
- import org.apache.flex.core.IDateChooserModel; IDateChooserModel;
- import org.apache.flex.core.ParentDocumentBead; ParentDocumentBead;
- import org.apache.flex.utils.CSSUtils; CSSUtils;*/
-}
-}
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/DragDrop/asjs/src/DragDropASJSClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/asjs/src/DragDropASJSClasses.as b/frameworks/projects/DragDrop/asjs/src/DragDropASJSClasses.as
deleted file mode 100644
index a3df9ef..0000000
--- a/frameworks/projects/DragDrop/asjs/src/DragDropASJSClasses.as
+++ /dev/null
@@ -1,34 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package
-{
-
-/**
- * @private
- * This class is used to link additional classes into rpc.swc
- * beyond those that are found by dependecy analysis starting
- * from the classes specified in manifest.xml.
- */
-internal class DragDropASJSClasses
-{
- import org.apache.flex.core.DropType; DropType;
-}
-
-}
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/Effects/asjs/src/EffectsASJSClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Effects/asjs/src/EffectsASJSClasses.as b/frameworks/projects/Effects/asjs/src/EffectsASJSClasses.as
deleted file mode 100644
index 8791afc..0000000
--- a/frameworks/projects/Effects/asjs/src/EffectsASJSClasses.as
+++ /dev/null
@@ -1,38 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package
-{
-
-/**
- * @private
- * This class is used to link additional classes into rpc.swc
- * beyond those that are found by dependecy analysis starting
- * from the classes specified in manifest.xml.
- */
-internal class EffectsASJSClasses
-{
- import org.apache.flex.core.StatesWithTransitionsImpl; StatesWithTransitionsImpl;
- import org.apache.flex.effects.Tween; Tween;
- import org.apache.flex.effects.Move; Move;
- import org.apache.flex.effects.Fade; Fade;
-
-}
-
-}
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/Formatters/asjs/src/FormattersASJSClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/asjs/src/FormattersASJSClasses.as b/frameworks/projects/Formatters/asjs/src/FormattersASJSClasses.as
deleted file mode 100644
index 0946fdb..0000000
--- a/frameworks/projects/Formatters/asjs/src/FormattersASJSClasses.as
+++ /dev/null
@@ -1,36 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package
-{
-
-/**
- * @private
- * This class is used to link additional classes into rpc.swc
- * beyond those that are found by dependecy analysis starting
- * from the classes specified in manifest.xml.
- */
-internal class FormattersASJSClasses
-{
- import org.apache.flex.html.accessories.DateFormatMMDDYYYYBead; DateFormatMMDDYYYYBead;
- import org.apache.flex.html.beads.FormatableLabelView; FormatableLabelView;
- import org.apache.flex.html.beads.FormatableTextInputView; FormatableTextInputView;
-}
-
-}
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/Graphics/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/build.xml b/frameworks/projects/Graphics/build.xml
index 6ebd7bd..8296ed6 100644
--- a/frameworks/projects/Graphics/build.xml
+++ b/frameworks/projects/Graphics/build.xml
@@ -165,7 +165,7 @@
<target name="copy-js" >
<copy todir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
- <fileset dir="${basedir}/js/src">
+ <fileset dir="${basedir}/js/out">
<include name="**/**" />
</fileset>
</copy>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/HTML/asjs/src/HTMLASJSClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/asjs/src/HTMLASJSClasses.as b/frameworks/projects/HTML/asjs/src/HTMLASJSClasses.as
deleted file mode 100644
index 75886c2..0000000
--- a/frameworks/projects/HTML/asjs/src/HTMLASJSClasses.as
+++ /dev/null
@@ -1,55 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package
-{
-
-/**
- * @private
- * This class is used to link additional classes into rpc.swc
- * beyond those that are found by dependecy analysis starting
- * from the classes specified in manifest.xml.
- */
-internal class HTMLASJSClasses
-{
- /*import org.apache.flex.html.beads.DataGridColumnView; DataGridColumnView;
- import org.apache.flex.html.beads.DataGridLinesBead; DataGridLinesBead;
- import org.apache.flex.html.beads.DataGridView; DataGridView;
- import org.apache.flex.html.beads.DataProviderChangeNotifier; DataProviderChangeNotifier;
- import org.apache.flex.html.beads.DataItemRendererFactoryForArrayList; DataItemRendererFactoryForArrayList;
- import org.apache.flex.html.beads.DateChooserView; DateChooserView;
- import org.apache.flex.html.beads.DateFieldView; DateFieldView;
- import org.apache.flex.html.beads.layouts.FlexibleFirstChildHorizontalLayout; FlexibleFirstChildHorizontalLayout;
- import org.apache.flex.html.beads.models.ArrayListSelectionModel; ArrayListSelectionModel;
- import org.apache.flex.html.beads.models.DataGridModel; DataGridModel;
- import org.apache.flex.html.beads.models.DateChooserModel; DateChooserModel;
- import org.apache.flex.html.beads.models.DataGridPresentationModel; DataGridPresentationModel;
- import org.apache.flex.html.beads.controllers.DateChooserMouseController; DateChooserMouseController;
- import org.apache.flex.html.beads.controllers.DateFieldMouseController; DateFieldMouseController;
- import org.apache.flex.html.supportClasses.DataGridColumn; DataGridColumn;
- import org.apache.flex.html.supportClasses.DateChooserButton; DateChooserButton;
- import org.apache.flex.html.supportClasses.GraphicsItemRenderer; GraphicsItemRenderer;
-
- import org.apache.flex.html.MXMLBeadViewBase; MXMLBeadViewBase;
- import org.apache.flex.html.beads.TitleBarView; TitleBarView;
- import org.apache.flex.html.beads.TitleBarMeasurementBead; TitleBarMeasurementBead;*/
-
-}
-
-}
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataGridLinesBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataGridLinesBead.as b/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataGridLinesBead.as
deleted file mode 100644
index b4e5b1d..0000000
--- a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataGridLinesBead.as
+++ /dev/null
@@ -1,199 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.beads
-{
- import org.apache.flex.collections.ArrayList;
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IBeadModel;
- import org.apache.flex.core.IDataGridModel;
- import org.apache.flex.core.ILayoutHost;
- import org.apache.flex.core.IParentIUIBase;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.core.graphics.GraphicsContainer;
- import org.apache.flex.core.graphics.IStroke;
- import org.apache.flex.core.graphics.SolidColor;
- import org.apache.flex.core.graphics.SolidColorStroke;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.IEventDispatcher;
- import org.apache.flex.html.beads.models.DataGridPresentationModel;
- import org.apache.flex.html.supportClasses.DataGridColumn;
-
- /**
- * The DataGridLinesBead is an add on bead for the DataGrid. This bead
- * adds horizontal and vertical grid lines to a DataGrid. The size and
- * color of the lines is specified by the stroke property (defaults to
- * a thin dark line).
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class DataGridLinesBead implements IBead
- {
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function DataGridLinesBead()
- {
- // Set default separator line stroke.
- var lineStroke:SolidColorStroke = new SolidColorStroke();
- lineStroke.color = 0x333333;
- lineStroke.alpha = 1.0;
- lineStroke.weight = 1;
- stroke = lineStroke;
- }
-
- private var _strand:IStrand;
-
- /**
- * @copy org.apache.flex.core.UIBase#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function set strand(value:IStrand):void
- {
- _strand = value;
-
- _overlay = new GraphicsContainer();
-
- IEventDispatcher(_strand).addEventListener("beadsAdded", handleBeadsAdded);
- }
-
- private var _stroke:IStroke;
-
- /**
- * Describes the line style used to separate the rows and columns.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get stroke():IStroke
- {
- return _stroke;
- }
- public function set stroke(value:IStroke):void
- {
- _stroke = value;
- }
-
- private var _overlay:GraphicsContainer;
- private var _area:UIBase;
-
- /**
- * Invoked when all of the beads have been added to the DataGrid. This
- * function seeks the Container that parents the lists that are the DataGrid's
- * columns. An overlay GraphicContainer is added to this Container so that the
- * grid lines will scroll with the rows.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- private function handleBeadsAdded(event:Event):void
- {
- var host:UIBase = _strand as UIBase;
- var n:int = host.numElements;
- for (var i:int=0; i < n; i++) {
- var child:UIBase = host.getElementAt(i) as UIBase;
- if (child.id == "dataGridListArea") {
- _area = child;
- _area.addElement(_overlay);
- break;
- }
- }
-
- // Now set up listeners to handle changes in the size of the DataGrid.
- IEventDispatcher(_strand).addEventListener("sizeChanged", drawLines);
- IEventDispatcher(_strand).addEventListener("widthChanged", drawLines);
- IEventDispatcher(_strand).addEventListener("heightChanged", drawLines);
-
- // Also set up a listener on the model to know when the dataProvider has
- // changed which might affect the number of rows/columns and thus the
- // grid lines.
- var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
- IEventDispatcher(model).addEventListener("dataProviderChanged", drawLines);
- }
-
- /**
- * This event handler is invoked whenever something happens to the DataGrid. This
- * function draws the lines either using a default stroke or the one specified by
- * the stroke property.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- private function drawLines(event:Event):void
- {
- var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as IDataGridModel;
- var presentationModel:DataGridPresentationModel = _strand.getBeadByType(DataGridPresentationModel) as DataGridPresentationModel;
- var layoutParent:ILayoutHost = _area.getBeadByType(ILayoutHost) as ILayoutHost;
- var contentView:IParentIUIBase = layoutParent.contentView as IParentIUIBase;
-
- var columns:Array = sharedModel.columns;
- var arrayList:ArrayList = sharedModel.dataProvider as ArrayList;
- var rowHeight:Number = presentationModel.rowHeight;
-
- var totalHeight:Number = arrayList.length * rowHeight;
- var columnWidth:Number = _area.width / columns.length;
-
- // translate the stroke to a fill since rectangles are used for the grid
- // lines and not lines.
- var lineFill:SolidColor = new SolidColor();
- var weight:Number = 1;
- lineFill.color = (stroke as SolidColorStroke).color;
- lineFill.alpha = (stroke as SolidColorStroke).alpha;
- weight = (stroke as SolidColorStroke).weight;
- _overlay.fill = lineFill;
-
- columnWidth = (columns[0] as DataGridColumn).columnWidth;
- var xpos:Number = isNaN(columnWidth) ? _area.width / columns.length : columnWidth;
-
- _overlay.removeAllElements();
-
- // draw the verticals
- for (var i:int=1; i < columns.length; i++) {
- _overlay.drawRect(xpos, 0, weight, totalHeight);
- columnWidth = (columns[i] as DataGridColumn).columnWidth;
- xpos += isNaN(columnWidth) ? _area.width / columns.length : columnWidth;
- }
-
- var n:int = arrayList.length;
-
- // draw the horizontals
- for (i=1; i < n+1; i++) {
- _overlay.drawRect(0, i*rowHeight, _area.width, weight);
- }
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayList.as b/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayList.as
deleted file mode 100644
index 9895394..0000000
--- a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayList.as
+++ /dev/null
@@ -1,174 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.beads
-{
- import org.apache.flex.collections.ArrayList;
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IDataProviderItemRendererMapper;
- import org.apache.flex.core.IItemRendererClassFactory;
- import org.apache.flex.core.IItemRendererParent;
- import org.apache.flex.core.IListPresentationModel;
- import org.apache.flex.core.ISelectableItemRenderer;
- import org.apache.flex.core.ISelectionModel;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.IUIBase;
- import org.apache.flex.core.SimpleCSSStyles;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.core.ValuesManager;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.IEventDispatcher;
- import org.apache.flex.html.List;
-
- /**
- * The DataItemRendererFactoryForArrayList class uses an ArrayList
- * and creates an item renderer for every
- * item in the collection. Other implementations of
- * IDataProviderItemRendererMapper map different data
- * structures or manage a virtual set of renderers.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class DataItemRendererFactoryForArrayList implements IBead, IDataProviderItemRendererMapper
- {
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function DataItemRendererFactoryForArrayList()
- {
- }
-
- private var selectionModel:ISelectionModel;
-
- private var labelField:String;
-
- private var _strand:IStrand;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function set strand(value:IStrand):void
- {
- _strand = value;
- IEventDispatcher(_strand).addEventListener("beadsAdded", finishSetup);
- IEventDispatcher(_strand).addEventListener("initComplete", finishSetup);
- }
-
- private function finishSetup(event:Event):void
- {
- selectionModel = _strand.getBeadByType(ISelectionModel) as ISelectionModel;
- var listView:IListView = _strand.getBeadByType(IListView) as IListView;
- dataGroup = listView.dataGroup;
- selectionModel.addEventListener("dataProviderChanged", dataProviderChangeHandler);
-
- labelField = (listView.host as List).labelField;
-
- if (!itemRendererFactory)
- {
- _itemRendererFactory = _strand.getBeadByType(IItemRendererClassFactory) as IItemRendererClassFactory;
- if (_itemRendererFactory == null) {
- _itemRendererFactory = new (ValuesManager.valuesImpl.getValue(_strand, "iItemRendererClassFactory")) as IItemRendererClassFactory;
- _strand.addBead(_itemRendererFactory);
- }
- }
-
- dataProviderChangeHandler(null);
- }
-
- private var _itemRendererFactory:IItemRendererClassFactory;
-
- /**
- * The org.apache.flex.core.IItemRendererClassFactory used
- * to generate instances of item renderers.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get itemRendererFactory():IItemRendererClassFactory
- {
- return _itemRendererFactory;
- }
-
- /**
- * @private
- */
- public function set itemRendererFactory(value:IItemRendererClassFactory):void
- {
- _itemRendererFactory = value;
- }
-
- /**
- * The org.apache.flex.core.IItemRendererParent that will
- * parent the item renderers.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- protected var dataGroup:IItemRendererParent;
-
- private function dataProviderChangeHandler(event:Event):void
- {
- var dp:ArrayList = selectionModel.dataProvider as ArrayList;
- if (!dp)
- return;
-
- dataGroup.removeAllElements();
-
- var listView:IListView = _strand.getBeadByType(IListView) as IListView;
- var presentationModel:IListPresentationModel = _strand.getBeadByType(IListPresentationModel) as IListPresentationModel;
-
- var n:int = dp.length;
- for (var i:int = 0; i < n; i++)
- {
- var ir:ISelectableItemRenderer = itemRendererFactory.createItemRenderer(dataGroup) as ISelectableItemRenderer;
- ir.index = i;
- ir.labelField = labelField;
- if (presentationModel) {
- UIBase(ir).height = presentationModel.rowHeight;
-
- // ensure that the IR spans the width of its column
- var style:SimpleCSSStyles = new SimpleCSSStyles();
- style.right = 0;
- style.left = 0;
- UIBase(ir).style = style;
- }
- dataGroup.addElement(ir);
- ir.data = dp.getItemAt(i);
- }
-
- IEventDispatcher(_strand).dispatchEvent(new Event("itemsCreated"));
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataProviderChangeNotifier.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataProviderChangeNotifier.as b/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataProviderChangeNotifier.as
deleted file mode 100644
index 8905fb9..0000000
--- a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/DataProviderChangeNotifier.as
+++ /dev/null
@@ -1,154 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.beads
-{
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IDocument;
- import org.apache.flex.core.ISelectionModel;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.events.Event;
- import org.apache.flex.collections.ArrayList;
-
- /**
- * The DataProviderChangeNotifier notifies listeners when a selection model's
- * ArrayList dataProvider has changed.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class DataProviderChangeNotifier implements IBead, IDocument
- {
- /**
- * constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function DataProviderChangeNotifier()
- {
- }
-
- protected var _dataProvider:ArrayList;
-
- private var _strand:IStrand;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function set strand(value:IStrand):void
- {
- _strand = value;
-
- if (_dataProvider == null) {
- var object:Object = document[sourceID];
- _dataProvider = object[propertyName] as ArrayList;
- }
-
- _dataProvider.addEventListener("itemAdded", handleItemAdded);
- _dataProvider.addEventListener("itemRemoved", handleItemRemoved);
- _dataProvider.addEventListener("itemUpdated", handleItemUpdated);
-
- }
-
- protected var document:Object;
-
- /**
- * @private
- */
- public function setDocument(document:Object, id:String = null):void
- {
- this.document = document;
- }
-
- private var _sourceID:String;
-
- /**
- * The ID of the object holding the ArrayList, usually a model.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get sourceID():String
- {
- return _sourceID;
- }
- public function set sourceID(value:String):void
- {
- _sourceID = value;
- }
-
- private var _propertyName:String;
-
- /**
- * The property in the sourceID that is the ArrayList.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get propertyName():String
- {
- return _propertyName;
- }
-
- public function set propertyName(value:String):void
- {
- _propertyName = value;
- }
-
- /**
- * @private
- */
- private function handleItemAdded(event:Event):void
- {
- var selectionModel:ISelectionModel = _strand.getBeadByType(ISelectionModel) as ISelectionModel;
- selectionModel.dispatchEvent(new Event("dataProviderChanged"));
- }
-
- /**
- * @private
- */
- private function handleItemRemoved(event:Event):void
- {
- var selectionModel:ISelectionModel = _strand.getBeadByType(ISelectionModel) as ISelectionModel;
- selectionModel.dispatchEvent(new Event("dataProviderChanged"));
- }
-
- /**
- * @private
- */
- private function handleItemUpdated(event:Event):void
- {
- var selectionModel:ISelectionModel = _strand.getBeadByType(ISelectionModel) as ISelectionModel;
- selectionModel.dispatchEvent(new Event("dataProviderChanged"));
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/models/ArrayListSelectionModel.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/models/ArrayListSelectionModel.as b/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/models/ArrayListSelectionModel.as
deleted file mode 100644
index 920e967..0000000
--- a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/models/ArrayListSelectionModel.as
+++ /dev/null
@@ -1,242 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.beads.models
-{
- import org.apache.flex.collections.ArrayList;
- import org.apache.flex.core.IRollOverModel;
- import org.apache.flex.core.ISelectionModel;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.EventDispatcher;
-
- /**
- * The ArrayListSelectionModel class is a selection model for
- * a dataProvider that is an ArrayList. It assumes that items
- * can be fetched from the dataProvider using dataProvider.getItemAt(index).
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class ArrayListSelectionModel extends EventDispatcher implements ISelectionModel, IRollOverModel
- {
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function ArrayListSelectionModel()
- {
- }
-
- private var _strand:IStrand;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function set strand(value:IStrand):void
- {
- _strand = value;
- }
-
- private var _dataProvider:ArrayList;
-
- /**
- * @copy org.apache.flex.core.ISelectionModel#dataProvider
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get dataProvider():Object
- {
- return _dataProvider;
- }
-
- /**
- * @private
- */
- public function set dataProvider(value:Object):void
- {
- if (value === _dataProvider) return;
-
- _dataProvider = value as ArrayList;
- if (_selectedIndex != -1)
- _selectedItem = (_dataProvider == null || _selectedIndex >= _dataProvider.length) ? null :
- _dataProvider.getItemAt(_selectedIndex);
- dispatchEvent(new Event("dataProviderChanged"));
- }
-
- private var _selectedIndex:int = -1;
- private var _rollOverIndex:int = -1;
- private var _labelField:String = null;
-
- /**
- * @copy org.apache.flex.core.ISelectionModel#labelField
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get labelField():String
- {
- return _labelField;
- }
-
- /**
- * @private
- */
- public function set labelField(value:String):void
- {
- if (value != _labelField) {
- _labelField = value;
- dispatchEvent(new Event("labelFieldChanged"));
- }
- }
-
- /**
- * @copy org.apache.flex.core.ISelectionModel#selectedIndex
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get selectedIndex():int
- {
- return _selectedIndex;
- }
-
- /**
- * @private
- */
- public function set selectedIndex(value:int):void
- {
- if (value === _selectedIndex) return;
-
- _selectedIndex = value;
- _selectedItem = (value == -1 || _dataProvider == null) ? null : (value < _dataProvider.length) ? _dataProvider.getItemAt(value) : null;
- dispatchEvent(new Event("selectedIndexChanged"));
- }
-
- /**
- * @copy org.apache.flex.core.IRollOverModel#rollOverIndex
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get rollOverIndex():int
- {
- return _rollOverIndex;
- }
-
- /**
- * @private
- */
- public function set rollOverIndex(value:int):void
- {
- _rollOverIndex = value;
- dispatchEvent(new Event("rollOverIndexChanged"));
- }
-
- private var _selectedItem:Object;
-
- /**
- * @copy org.apache.flex.core.ISelectionModel#selectedItem
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get selectedItem():Object
- {
- return _selectedItem;
- }
-
- /**
- * @private
- */
- public function set selectedItem(value:Object):void
- {
- if (value === _selectedItem) return;
-
- _selectedItem = value;
- var n:int = _dataProvider.length;
- for (var i:int = 0; i < n; i++)
- {
- if (_dataProvider.getItemAt(i) == value)
- {
- _selectedIndex = i;
- break;
- }
- }
- dispatchEvent(new Event("selectedItemChanged"));
- dispatchEvent(new Event("selectedIndexChanged"));
- }
-
- private var _selectedString:String;
-
- /**
- * An alternative to selectedItem for strongly typing the
- * the selectedItem if the Array is an Array of Strings.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get selectedString():String
- {
- return String(_selectedItem);
- }
-
- /**
- * @private
- */
- public function set selectedString(value:String):void
- {
- _selectedString = value;
- var n:int = _dataProvider.length;
- for (var i:int = 0; i < n; i++)
- {
- if (String(_dataProvider.getItemAt(i)) == value)
- {
- _selectedIndex = i;
- break;
- }
- }
- dispatchEvent(new Event("selectedItemChanged"));
- dispatchEvent(new Event("selectedIndexChanged"));
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f77e1c48/frameworks/projects/Mobile/asjs/src/MobileASJSClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/asjs/src/MobileASJSClasses.as b/frameworks/projects/Mobile/asjs/src/MobileASJSClasses.as
deleted file mode 100644
index 90d41f5..0000000
--- a/frameworks/projects/Mobile/asjs/src/MobileASJSClasses.as
+++ /dev/null
@@ -1,41 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package
-{
-
-/**
- * @private
- * This class is used to link additional classes into rpc.swc
- * beyond those that are found by dependecy analysis starting
- * from the classes specified in manifest.xml.
- */
-internal class MobileASJSClasses
-{
- import org.apache.flex.mobile.ViewManagerBase; ViewManagerBase;
- import org.apache.flex.mobile.beads.StackedViewManagerView; StackedViewManagerView;
- import org.apache.flex.mobile.beads.TabbedViewManagerView; TabbedViewManagerView;
- import org.apache.flex.mobile.beads.ViewManagerView; ViewManagerView;
- import org.apache.flex.mobile.chrome.NavigationBar; NavigationBar;
- import org.apache.flex.mobile.chrome.TabBar; TabBar;
- import org.apache.flex.mobile.chrome.ToolBar; ToolBar;
- import org.apache.flex.mobile.models.ViewManagerModel; ViewManagerModel;
-}
-
-}
-
[23/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - add
option for using a native swc
Posted by ah...@apache.org.
add option for using a native swc
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a601ad51
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a601ad51
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a601ad51
Branch: refs/heads/develop
Commit: a601ad51df0dc495a5c76941d8b35742645b2422
Parents: 313654f
Author: Alex Harui <ah...@apache.org>
Authored: Thu Dec 10 16:57:29 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Dec 10 16:57:29 2015 -0800
----------------------------------------------------------------------
manualtests/FlexJSTest_createjs/build.xml | 2 ++
manualtests/build_example.xml | 12 +++++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a601ad51/manualtests/FlexJSTest_createjs/build.xml
----------------------------------------------------------------------
diff --git a/manualtests/FlexJSTest_createjs/build.xml b/manualtests/FlexJSTest_createjs/build.xml
index 678ef0a..dd250a9 100644
--- a/manualtests/FlexJSTest_createjs/build.xml
+++ b/manualtests/FlexJSTest_createjs/build.xml
@@ -56,6 +56,8 @@
property="GOOG_HOME"
value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/createjs/out/bin/createjs.swc"/>
+
<include file="${basedir}/../build_example.xml" />
<target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a601ad51/manualtests/build_example.xml
----------------------------------------------------------------------
diff --git a/manualtests/build_example.xml b/manualtests/build_example.xml
index 81a263e..f2d8791 100644
--- a/manualtests/build_example.xml
+++ b/manualtests/build_example.xml
@@ -153,6 +153,7 @@
<echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
<echo message="GOOG_HOME: ${GOOG_HOME}"/>
<property name="theme_arg" value="-define=CONFIG::theme,false" />
+ <property name="extlib_arg" value="-define=CONFIG::extlib,false" />
<java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
fork="true">
@@ -167,12 +168,11 @@
<arg value="-compiler.binding-value-change-event-type=valueChange" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="${extlib_arg}" />
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/jquery_externals.js" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/createjs_externals.js" />
- <arg value="${basedir}/src/${example}.mxml" />
+ <arg value="${basedir}/src/${example}.mxml" />
</java>
<fail>
<condition>
@@ -192,6 +192,7 @@
<echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
<echo message="GOOG_HOME: ${GOOG_HOME}"/>
<property name="theme_arg" value="-define=CONFIG::theme,false" />
+ <property name="extlib_arg" value="-define=CONFIG::extlib,false" />
<java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
fork="true">
@@ -207,11 +208,10 @@
<arg value="-compiler.binding-value-change-event-type=valueChange" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="${extlib_arg}" />
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/jquery_externals.js" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/createjs_externals.js" />
<arg value="${basedir}/src/${example}.mxml" />
</java>
<fail>
@@ -232,6 +232,7 @@
<echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
<echo message="GOOG_HOME: ${GOOG_HOME}"/>
<property name="theme_arg" value="-define=CONFIG::theme,false" />
+ <property name="extlib_arg" value="-define=CONFIG::extlib,false" />
<java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
fork="true">
@@ -248,6 +249,7 @@
<arg value="-compiler.binding-value-change-event-type=valueChange" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="${extlib_arg}" />
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
[42/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix
trace
Posted by ah...@apache.org.
fix trace
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c3c2403f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c3c2403f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c3c2403f
Branch: refs/heads/develop
Commit: c3c2403fe30a100540cfe3449cbdfd9e8ec6e85e
Parents: 4053551
Author: Alex Harui <ah...@apache.org>
Authored: Tue Dec 15 15:16:13 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Dec 15 15:16:13 2015 -0800
----------------------------------------------------------------------
.../projects/Core/as/src/org/apache/flex/utils/Language.as | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c3c2403f/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as b/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
index 7ea4713..ea51ab5 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
@@ -26,10 +26,12 @@ package org.apache.flex.utils
COMPILE::JS
{
import goog.bind;
+ import goog.global;
}
/**
* @flexjsignoreimport goog.bind
+ * @flexjsignoreimport goog.global
*/
COMPILE::JS
public class Language
@@ -294,7 +296,7 @@ package org.apache.flex.utils
msg += rest[i];
}
- theConsole = window["goog"]["global"]["console"];
+ theConsole = goog.global.console;
if (theConsole === undefined && windowConsole !== undefined)
theConsole = windowConsole;
[27/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - clean
up Graphics JS code
Posted by ah...@apache.org.
clean up Graphics JS code
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/0c9e438d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/0c9e438d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/0c9e438d
Branch: refs/heads/develop
Commit: 0c9e438deea2df9d940fe7e35df11ca2ade94f8b
Parents: 9a4afd6
Author: Alex Harui <ah...@apache.org>
Authored: Fri Dec 11 15:37:20 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Dec 11 15:37:20 2015 -0800
----------------------------------------------------------------------
.../Graphics/as/src/org/apache/flex/core/graphics/SolidColor.as | 2 +-
.../projects/Graphics/as/src/org/apache/flex/core/graphics/Text.as | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0c9e438d/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/SolidColor.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/SolidColor.as b/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/SolidColor.as
index 700c3bc..73e99b0 100644
--- a/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/SolidColor.as
+++ b/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/SolidColor.as
@@ -102,7 +102,7 @@ package org.apache.flex.core.graphics
COMPILE::JS
public function addFillAttrib(value:GraphicShape):String
{
- var color:String = Number(color).toString(16);
+ var color:String = Number(this.color).toString(16);
if (color.length == 1) color = '00' + color;
if (color.length == 2) color = '00' + color;
if (color.length == 4) color = '00' + color;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0c9e438d/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/Text.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/Text.as b/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/Text.as
index 1773c1e..24dd840 100644
--- a/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/Text.as
+++ b/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/Text.as
@@ -36,6 +36,8 @@ package org.apache.flex.core.graphics
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
+ * // TODO (aharui) ignore imports of external linkage interfaces?
+ * @flexjsignoreimport SVGLocatable
*/
public class Text extends GraphicShape
{
[26/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fixes
to get CordovaCameraExample to compile
Posted by ah...@apache.org.
fixes to get CordovaCameraExample to compile
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9a4afd6d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9a4afd6d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9a4afd6d
Branch: refs/heads/develop
Commit: 9a4afd6d8ba748e65b23dc896e641c47b33c8ddb
Parents: 3cfd365
Author: Alex Harui <ah...@apache.org>
Authored: Fri Dec 11 14:33:37 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Dec 11 14:33:37 2015 -0800
----------------------------------------------------------------------
.../Mobile/as/src/org/apache/cordova/Weinre.as | 24 ++++-
.../as/src/org/apache/cordova/camera/Camera.as | 92 ++++++++++++--------
.../projects/Mobile/compile-asjs-config.xml | 6 +-
frameworks/projects/Mobile/compile-config.xml | 5 ++
4 files changed, 86 insertions(+), 41 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9a4afd6d/frameworks/projects/Mobile/as/src/org/apache/cordova/Weinre.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/as/src/org/apache/cordova/Weinre.as b/frameworks/projects/Mobile/as/src/org/apache/cordova/Weinre.as
index b405a2e..2e4b579 100644
--- a/frameworks/projects/Mobile/as/src/org/apache/cordova/Weinre.as
+++ b/frameworks/projects/Mobile/as/src/org/apache/cordova/Weinre.as
@@ -18,8 +18,11 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.cordova
{
- import flash.net.URLRequest;
- import flash.net.navigateToURL;
+ COMPILE::AS3
+ {
+ import flash.net.URLRequest;
+ import flash.net.navigateToURL;
+ }
import org.apache.flex.core.IBead;
import org.apache.flex.core.IStrand;
@@ -61,10 +64,25 @@ package org.apache.cordova
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
+ * @flexjsignorecoercion HTMLScriptElement
+ * @flexjsignorecoercion HTMLHeadElement
*/
public function set guid(value:String):void
{
- navigateToURL(new URLRequest("http://debug.phonegap.com/client/#" + value), "_blank");
+ COMPILE::AS3
+ {
+ navigateToURL(new URLRequest("http://debug.phonegap.com/client/#" + value), "_blank");
+ }
+ COMPILE::JS
+ {
+ var scriptNode:HTMLScriptElement = document.createElement('SCRIPT') as HTMLScriptElement;
+ scriptNode.type = 'text/javascript';
+ scriptNode.src = 'http://debug.phonegap.com/target/target-script-min.js#' + value;
+
+ var headNode:HTMLHeadElement = document.getElementsByTagName('HEAD') as HTMLHeadElement;
+ if (headNode[0] != null)
+ headNode[0].appendChild(scriptNode);
+ }
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9a4afd6d/frameworks/projects/Mobile/as/src/org/apache/cordova/camera/Camera.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/as/src/org/apache/cordova/camera/Camera.as b/frameworks/projects/Mobile/as/src/org/apache/cordova/camera/Camera.as
index 3984b44..faea7c0 100644
--- a/frameworks/projects/Mobile/as/src/org/apache/cordova/camera/Camera.as
+++ b/frameworks/projects/Mobile/as/src/org/apache/cordova/camera/Camera.as
@@ -18,24 +18,27 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.cordova.camera
{
- import flash.display.BitmapData;
- import flash.display.DisplayObject;
- import flash.display.DisplayObjectContainer;
- import flash.display.Sprite;
- import flash.events.ActivityEvent;
- import flash.events.KeyboardEvent;
- import flash.events.MouseEvent;
- import flash.filesystem.File;
- import flash.filesystem.FileMode;
- import flash.filesystem.FileStream;
- import flash.geom.Rectangle;
- import flash.media.Camera;
- import flash.media.Video;
- import flash.ui.Keyboard;
- import flash.utils.ByteArray;
-
- import org.apache.flex.utils.PNGEncoder;
-
+ COMPILE::AS3
+ {
+ import flash.display.BitmapData;
+ import flash.display.DisplayObject;
+ import flash.display.DisplayObjectContainer;
+ import flash.display.Sprite;
+ import flash.events.ActivityEvent;
+ import flash.events.KeyboardEvent;
+ import flash.events.MouseEvent;
+ import flash.filesystem.File;
+ import flash.filesystem.FileMode;
+ import flash.filesystem.FileStream;
+ import flash.geom.Rectangle;
+ import flash.media.Camera;
+ import flash.media.Video;
+ import flash.ui.Keyboard;
+ import flash.utils.ByteArray;
+
+ import org.apache.flex.utils.PNGEncoder;
+ }
+
[Mixin]
public class Camera
{
@@ -67,8 +70,10 @@ package org.apache.cordova.camera
FRONT : 1 // Use the front-facing camera
};
+ COMPILE::AS3
private static var root:DisplayObjectContainer;
+ COMPILE::AS3
public static function init(r:DisplayObjectContainer):void
{
root = r;
@@ -91,35 +96,47 @@ package org.apache.cordova.camera
private var cameraSuccess:Function;
private var cameraError:Function;
+ COMPILE::AS3
private var ui:Sprite;
+ COMPILE::AS3
private var camera:flash.media.Camera;
public function getPicture( cameraSuccess:Function, cameraError:Function, cameraOptions:Object ) : void
{
- this.cameraSuccess = cameraSuccess;
- this.cameraError = cameraError;
-
- camera = flash.media.Camera.getCamera();
-
- if (camera != null) {
- ui = new Sprite();
- var video:Video = new Video(camera.width * 2, camera.height * 2);
- video.attachCamera(camera);
- ui.addChild(video);
- root.addChild(ui);
- ui.addEventListener(MouseEvent.CLICK, mouseClickHandler);
- ui.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
- } else {
- trace("You need a camera.");
- }
+ COMPILE::AS3
+ {
+ this.cameraSuccess = cameraSuccess;
+ this.cameraError = cameraError;
+
+ camera = flash.media.Camera.getCamera();
+
+ if (camera != null) {
+ ui = new Sprite();
+ var video:Video = new Video(camera.width * 2, camera.height * 2);
+ video.attachCamera(camera);
+ ui.addChild(video);
+ root.addChild(ui);
+ ui.addEventListener(MouseEvent.CLICK, mouseClickHandler);
+ ui.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
+ } else {
+ trace("You need a camera.");
+ }
+ }
+ COMPILE::JS
+ {
+ // TODO: (aharui) Cordova externs
+ navigator["camera"].getPicture(cameraSuccess, cameraError, cameraOptions);
+ }
}
+ COMPILE::AS3
private function mouseClickHandler(event:MouseEvent):void
{
savePicture();
root.removeChild(ui);
}
+ COMPILE::AS3
private function keyDownHandler(event:KeyboardEvent):void
{
if (event.keyCode == Keyboard.ESCAPE)
@@ -131,6 +148,7 @@ package org.apache.cordova.camera
}
}
+ COMPILE::AS3
private function savePicture():void
{
var f:File = File.createTempFile();
@@ -151,7 +169,11 @@ package org.apache.cordova.camera
public function cleanup( cameraSuccess:Function, cameraError:Function ) : void
{
- // no cleanup required in Flash
+ // no cleanup required in Flash
+ COMPILE::JS
+ {
+ navigator["camera"].cleanup();
+ }
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9a4afd6d/frameworks/projects/Mobile/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/compile-asjs-config.xml b/frameworks/projects/Mobile/compile-asjs-config.xml
index face373..ba49185 100644
--- a/frameworks/projects/Mobile/compile-asjs-config.xml
+++ b/frameworks/projects/Mobile/compile-asjs-config.xml
@@ -55,10 +55,10 @@
<uri>library://ns.apache.org/flexjs/basic</uri>
<manifest>basic-manifest.xml</manifest>
</namespace>
- <!--<namespace>
+ <namespace>
<uri>library://ns.apache.org/flexjs/cordova</uri>
<manifest>cordova-manifest.xml</manifest>
- </namespace>-->
+ </namespace>
</namespaces>
<source-path>
@@ -76,11 +76,11 @@
<include-classes>
<class>MobileClasses</class>
- <!-- <class>CordovaClasses</class> -->
</include-classes>
<include-namespaces>
<uri>library://ns.apache.org/flexjs/basic</uri>
+ <uri>library://ns.apache.org/flexjs/cordova</uri>
</include-namespaces>
<target-player>${playerglobal.version}</target-player>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9a4afd6d/frameworks/projects/Mobile/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/compile-config.xml b/frameworks/projects/Mobile/compile-config.xml
index 1738229..8a4b4ed 100644
--- a/frameworks/projects/Mobile/compile-config.xml
+++ b/frameworks/projects/Mobile/compile-config.xml
@@ -52,6 +52,10 @@
<uri>library://ns.apache.org/flexjs/basic</uri>
<manifest>basic-manifest.xml</manifest>
</namespace>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/cordova</uri>
+ <manifest>cordova-manifest.xml</manifest>
+ </namespace>
</namespaces>
<source-path>
@@ -76,6 +80,7 @@
<include-namespaces>
<uri>library://ns.apache.org/flexjs/basic</uri>
+ <uri>library://ns.apache.org/flexjs/cordova</uri>
</include-namespaces>
<target-player>${playerglobal.version}</target-player>
[07/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js
deleted file mode 100644
index a0345a8..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js
+++ /dev/null
@@ -1,872 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.UIBase');
-
-goog.require('org.apache.flex.core.HTMLElementWrapper');
-goog.require('org.apache.flex.core.IBeadController');
-goog.require('org.apache.flex.core.IBeadLayout');
-goog.require('org.apache.flex.core.IBeadModel');
-goog.require('org.apache.flex.core.IBeadView');
-goog.require('org.apache.flex.core.ILayoutChild');
-goog.require('org.apache.flex.core.IParentIUIBase');
-goog.require('org.apache.flex.core.IStyleableObject');
-goog.require('org.apache.flex.core.IUIBase');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.events.ValueChangeEvent');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IUIBase}
- * @implements {org.apache.flex.core.ILayoutChild}
- * @implements {org.apache.flex.core.IParentIUIBase}
- * @extends {org.apache.flex.core.HTMLElementWrapper}
- */
-org.apache.flex.core.UIBase = function() {
- org.apache.flex.core.UIBase.base(this, 'constructor');
-
- /**
- * @private
- * @type {string}
- */
- this.lastDisplay_ = '';
-
- /**
- * @private
- * @type {number}
- */
- this.explicitWidth_ = NaN;
-
- /**
- * @private
- * @type {number}
- */
- this.explicitHeight_ = NaN;
-
-
- /**
- * @private
- * @type {number}
- */
- this.percentWidth_ = NaN;
-
-
- /**
- * @private
- * @type {number}
- */
- this.percentHeight_ = NaN;
-
- /**
- * @private
- * @type {Array.<Object>}
- */
- this.mxmlBeads_ = null;
-
- /**
- * @private
- * @type {Object}
- */
- this.style_ = null;
-
- /**
- * @private
- * @type {?string}
- */
- this.id_ = null;
-
- /**
- * @private
- * @type {?string}
- */
- this.className_ = '';
-
- /**
- * @private
- * @type {Object}
- */
- this.model_ = null;
-
- this.createElement();
-};
-goog.inherits(org.apache.flex.core.UIBase,
- org.apache.flex.core.HTMLElementWrapper);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.UIBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'UIBase',
- qName: 'org.apache.flex.core.UIBase' }],
- interfaces: [org.apache.flex.core.IUIBase,
- org.apache.flex.core.IParentIUIBase,
- org.apache.flex.core.ILayoutChild,
- org.apache.flex.core.IStyleableObject] };
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.core.UIBase.prototype.positioner = null;
-
-
-/**
- * @return {Object} The array of children.
- */
-org.apache.flex.core.UIBase.prototype.internalChildren =
- function() {
- return this.element.childNodes;
-};
-
-
-/**
- * @protected
- * @return {Object} The actual element to be parented.
- */
-org.apache.flex.core.UIBase.prototype.createElement = function() {
- if (this.element == null)
- this.element = document.createElement('div');
- if (this.positioner == null)
- this.positioner = this.element;
- this.positioner.style.display = 'block';
- this.positioner.style.position = 'relative';
-
- this.element.flexjs_wrapper = this;
-
- return this.positioner;
-};
-
-
-/**
- * @protected
- * @type {?function()}
- */
-org.apache.flex.core.UIBase.prototype.finalizeElement = null;
-
-
-/**
- * @param {Object} c The child element.
- * @param {boolean=} opt_dispatchEvent Use 'false' to skip sending a childrenAdded event.
- */
-org.apache.flex.core.UIBase.prototype.addElement = function(c, opt_dispatchEvent) {
- this.element.appendChild(c.positioner);
- c.addedToParent();
-};
-
-
-/**
- * @param {Object} c The child element.
- * @param {number} index The index.
- * @param {boolean=} opt_dispatchEvent Use 'false' to skip sending a childrenAdded event.
- */
-org.apache.flex.core.UIBase.prototype.addElementAt = function(c, index, opt_dispatchEvent) {
- var children = this.internalChildren();
- if (index >= children.length)
- this.addElement(c);
- else
- {
- this.element.insertBefore(c.positioner,
- children[index]);
- c.addedToParent();
- }
-};
-
-
-/**
- * @param {number} index The index in parent.
- * @return {Object} The child element.
- */
-org.apache.flex.core.UIBase.prototype.getElementAt = function(index) {
- var children = this.internalChildren();
- return children[index].flexjs_wrapper;
-};
-
-
-/**
- * @param {Object} c The child element.
- * @return {number} The index in parent.
- */
-org.apache.flex.core.UIBase.prototype.getElementIndex = function(c) {
- var children = this.internalChildren();
- var n = children.length;
- for (var i = 0; i < n; i++)
- {
- if (children[i] == c.element)
- return i;
- }
- return -1;
-};
-
-
-/**
- * @param {Object} c The child element.
- */
-org.apache.flex.core.UIBase.prototype.removeElement = function(c) {
- this.element.removeChild(c.element);
-};
-
-
-/**
- */
-org.apache.flex.core.UIBase.prototype.addedToParent = function() {
- var s, value;
- var styles = this.style;
- if (styles)
- org.apache.flex.core.ValuesManager.valuesImpl.applyStyles(this, styles);
-
- if (isNaN(this.explicitWidth_) && isNaN(this.percentWidth_)) {
- value = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'width');
- if (value !== undefined) {
- if (typeof(value) === 'string') {
- s = value;
- if (s.indexOf('%') != -1)
- this.percentWidth_ = Number(s.substring(0, s.length - 1));
- else {
- if (s.indexOf('px') != -1)
- s = s.substring(0, s.length - 2);
- this.width_ = this.explicitWidth_ = Number(s);
- }
- }
- else
- this.width_ = this.explicitWidth_ = value;
- }
- }
-
- if (isNaN(this.explicitHeight_) && isNaN(this.percentHeight_)) {
- value = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'height');
- if (value !== undefined) {
- if (typeof(value) === 'string') {
- s = value;
- if (s.indexOf('%') != -1)
- this.percentHeight_ = Number(s.substring(0, s.length - 1));
- else {
- if (s.indexOf('px') != -1)
- s = s.substring(0, s.length - 2);
- this.height_ = this.explicitHeight_ = Number(s);
- }
- }
- else
- this.height_ = this.explicitHeight_ = value;
- }
- }
-
- if (this.mxmlBeads_) {
- var n = this.mxmlBeads_.length;
- for (var i = 0; i < n; i++) {
- this.addBead(this.mxmlBeads_[i]);
- }
- }
-
- /**
- * @type {Function}
- */
- var c;
- if (this.getBeadByType(org.apache.flex.core.IBeadModel) == null)
- {
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) {
- c = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iBeadModel'));
- if (c)
- {
- var model = new c();
- if (model)
- this.addBead(model);
- }
- }
- }
- if (this.view_ == null && this.getBeadByType(org.apache.flex.core.IBeadView) == null)
- {
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) {
- c = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iBeadView'));
- if (c)
- {
- var view = new c();
- if (view) {
- this.view_ = view;
- this.addBead(view);
- }
- }
- }
- }
- if (this.getBeadByType(org.apache.flex.core.IBeadLayout) == null)
- {
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) {
- c = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iBeadLayout'));
- if (c)
- {
- var layout = new c();
- if (layout)
- this.addBead(layout);
- }
- }
- }
- if (this.getBeadByType(org.apache.flex.core.IBeadController) == null)
- {
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) {
- c = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iBeadController'));
- if (c)
- {
- var controller = new c();
- if (controller)
- this.addBead(controller);
- }
- }
- }
-
- this.dispatchEvent(new org.apache.flex.events.Event('beadsAdded'));
-};
-
-
-/**
- * @param {Object} bead The bead to be added.
- */
-org.apache.flex.core.UIBase.prototype.addBead = function(bead) {
- if (!this._beads) {
- this._beads = [];
- }
- this._beads.push(bead);
-
- if (org.apache.flex.utils.Language.is(bead, org.apache.flex.core.IBeadModel))
- this.model_ = bead;
-
- if (org.apache.flex.utils.Language.is(bead, org.apache.flex.core.IBeadView)) {
- this.view_ = bead;
- this.dispatchEvent(new org.apache.flex.events.Event('viewChanged'));
- }
-
- bead.strand = this;
-};
-
-
-/**
- * @param {Object} classOrInterface A type or interface.
- * @return {Object} The bead of the given type or null.
- */
-org.apache.flex.core.UIBase.prototype.getBeadByType =
- function(classOrInterface) {
- if (!this._beads) {
- this._beads = [];
- }
- for (var i = 0; i < this._beads.length; i++) {
- var bead = this._beads[i];
- if (org.apache.flex.utils.Language.is(bead, classOrInterface)) {
- return bead;
- }
- }
- return null;
-};
-
-
-/**
- * @param {Object} value The bead to be removed.
- * @return {Object} The bead that was removed.
- */
-org.apache.flex.core.UIBase.prototype.removeBead =
- function(value) {
- if (!this._beads) return null;
- var n = this._beads.length;
- for (var i = 0; i < n; i++) {
- var bead = this._beads[i];
- if (bead == value) {
- this._beads.splice(i, 1);
- return bead;
- }
- }
-
- return null;
-};
-
-
-Object.defineProperties(org.apache.flex.core.UIBase.prototype, {
- /** @export */
- beads: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(value) {
- this.mxmlBeads_ = value;
- }
- },
- /** @export */
- numElements: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- var children = this.internalChildren();
- return children.length;
- }
- },
- /** @export */
- parent: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- var p = this.positioner.parentNode;
- var wrapper = p ? p.flexjs_wrapper : null;
- return wrapper;
- }
- },
- /** @export */
- alpha: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(alpha) {
- this.positioner.style.opacity = alpha;
- },
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- var stralpha = this.positioner.style.opacity;
- var alpha = parseFloat(stralpha);
- return alpha;
- }
- },
- /** @export */
- x: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(pixels) {
- this.positioner.style.position = 'absolute';
- this.positioner.style.left = pixels.toString() + 'px';
- },
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- var strpixels = this.positioner.style.left;
- var pixels = parseFloat(strpixels);
- if (isNaN(pixels))
- pixels = this.positioner.offsetLeft;
- return pixels;
- }
- },
- /** @export */
- y: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(pixels) {
- this.positioner.style.position = 'absolute';
- this.positioner.style.top = pixels.toString() + 'px';
- },
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- var strpixels = this.positioner.style.top;
- var pixels = parseFloat(strpixels);
- if (isNaN(pixels))
- pixels = this.positioner.offsetTop;
- return pixels;
- }
- },
- /** @export */
- clientWidth: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.positioner.clientWidth;
- }
- },
- /** @export */
- CSSWidth: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- var pixels;
- var strpixels = this.positioner.style.width;
- if (strpixels !== null && strpixels.indexOf('%') != -1)
- pixels = NaN;
- else
- pixels = parseFloat(strpixels);
- return pixels;
- }
- },
- /** @export */
- width: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(pixels) {
- this.explicitWidth = pixels;
- this.setWidth(pixels);
- },
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- var pixels;
- var strpixels = this.positioner.style.width;
- if (strpixels !== null && strpixels.indexOf('%') != -1)
- pixels = NaN;
- else
- pixels = parseFloat(strpixels);
- if (isNaN(pixels)) {
- pixels = this.positioner.offsetWidth;
- if (pixels === 0 && this.positioner.scrollWidth !== 0) {
- // invisible child elements cause offsetWidth to be 0.
- pixels = this.positioner.scrollWidth;
- }
- }
- return pixels;
- }
- },
- /** @export */
- explicitWidth: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(pixels) {
- this.explicitWidth_ = pixels;
- if (!isNaN(pixels))
- this.percentWidth_ = NaN;
- },
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.explicitWidth_;
- }
- },
- /** @export */
- percentWidth: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(pixels) {
- this.percentWidth_ = pixels;
- this.positioner.style.width = pixels.toString() + '%';
- if (!isNaN(pixels))
- this.explicitWidth_ = NaN;
- },
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.percentWidth_;
- }
- },
- /** @export */
- clientHeight: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.positioner.clientHeight;
- }
- },
- /** @export */
- CSSHeight: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- var pixels;
- var strpixels = this.positioner.style.height;
- if (strpixels !== null && strpixels.indexOf('%') != -1)
- pixels = NaN;
- else
- pixels = parseFloat(strpixels);
- return pixels;
- }
- },
- /** @export */
- height: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(pixels) {
- this.explicitHeight = pixels;
- this.setHeight(pixels);
- },
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- var pixels;
- var strpixels = this.positioner.style.height;
- if (strpixels !== null && strpixels.indexOf('%') != -1)
- pixels = NaN;
- else
- pixels = parseFloat(strpixels);
- if (isNaN(pixels)) {
- pixels = this.positioner.offsetHeight;
- if (pixels === 0 && this.positioner.scrollHeight !== 0) {
- // invisible child elements cause offsetHeight to be 0.
- pixels = this.positioner.scrollHeight;
- }
- }
- return pixels;
- }
- },
- /** @export */
- explicitHeight: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(pixels) {
- this.explicitHeight_ = pixels;
- if (!isNaN(pixels))
- this.percentHeight_ = NaN;
- },
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.explicitHeight_;
- }
- },
- /** @export */
- percentHeight: {
- /** @this {org.apache.flex.core.UIBase} */
- set: function(pixels) {
- this.percentHeight_ = pixels;
- this.positioner.style.height = pixels.toString() + '%';
- if (!isNaN(pixels))
- this.explicitHeight_ = NaN;
- },
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.percentHeight_;
- }
- },
- /** @export */
- id: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.id_;
- },
- /** @this {org.apache.flex.core.UIBase} */
- set: function(value) {
- if (this.id_ !== value) {
- this.element.id = value;
- this.id_ = value;
- this.dispatchEvent('idChanged');
- }
- }
- },
- /** @export */
- className: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.className_;
- },
- /** @this {org.apache.flex.core.UIBase} */
- set: function(value) {
- if (this.className_ !== value) {
- this.element.className = this.typeNames ? value + ' ' + this.typeNames : value;
- this.className_ = value;
- this.dispatchEvent('classNameChanged');
- }
- }
- },
- /** @export */
- model: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- if (this.model_ == null) {
- // addbead will set _model
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) {
- /**
- * @type {Function}
- */
- var m = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iBeadModel'));
- var b = new m();
- this.addBead(b);
- }
- }
- return this.model_;
- },
- /** @this {org.apache.flex.core.UIBase} */
- set: function(value) {
- if (this.model_ !== value) {
- this.addBead(value);
- this.dispatchEvent('modelChanged');
- }
- }
- },
- /** @export */
- style: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.style_;
- },
- /** @this {org.apache.flex.core.UIBase} */
- set: function(value) {
- if (this.style_ !== value) {
- if (typeof(value) == 'string')
- value = org.apache.flex.core.ValuesManager.valuesImpl.parseStyles(value);
- this.style_ = value;
- if (value.addEventListener)
- value.addEventListener(org.apache.flex.events.ValueChangeEvent.VALUE_CHANGE,
- goog.bind(this.styleChangeHandler, this));
- this.dispatchEvent('stylesChanged');
- }
- }
- },
- /** @export */
- view: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- if (this.view_ == null) {
- /**
- * @type {Function}
- */
- var v = /** @type {Function} */(org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iBeadView'));
- this.view_ = new v();
- this.addBead(this.view_);
- }
- return this.view_;
- },
- /** @this {org.apache.flex.core.UIBase} */
- set: function(value) {
- if (this.view_ != value) {
- this.view_ = value;
- this.addBead(value);
- }
- }
- },
- /** @export */
- visible: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return this.positioner.style.display !== 'none';
- },
- /** @this {org.apache.flex.core.UIBase} */
- set: function(value) {
- var oldValue = this.positioner.style.display !== 'none';
- if (value !== oldValue) {
- if (!value) {
- this.lastDisplay_ = this.positioner.style.display;
- this.positioner.style.display = 'none';
- this.dispatchEvent(new org.apache.flex.events.Event('hide'));
- } else {
- if (this.lastDisplay_) {
- this.positioner.style.display = this.lastDisplay_;
- } else {
- this.positioner.style.display = this.internalDisplay;
- }
- this.dispatchEvent(new org.apache.flex.events.Event('show'));
- }
- this.dispatchEvent(new org.apache.flex.events.Event('visibleChanged'));
- }
- }
- },
- /** @export */
- topMostEventDispatcher: {
- /** @this {org.apache.flex.core.UIBase} */
- get: function() {
- return document.body.flexjs_wrapper;
- }
- }
-});
-
-
-/**
- * @export
- * @param {number} value The height of the object in pixels.
- * @param {boolean=} opt_noEvent Whether to skip sending a change event.
- */
-org.apache.flex.core.UIBase.prototype.setHeight =
- function(value, opt_noEvent)
-{
- if (opt_noEvent === undefined)
- opt_noEvent = false;
-
- if (value === undefined)
- value = 0;
-
- var _height = this.CSSHeight;
- if (isNaN(_height) || _height != value) {
- this.positioner.style.height = value.toString() + 'px';
- if (!opt_noEvent)
- this.dispatchEvent('heightChanged');
- }
-};
-
-
-/**
- * @export
- * @param {number} value The width of the object in pixels.
- * @param {boolean=} opt_noEvent Whether to skip sending a change event.
- */
-org.apache.flex.core.UIBase.prototype.setWidth =
- function(value, opt_noEvent)
-{
- if (opt_noEvent === undefined)
- opt_noEvent = false;
-
- if (value === undefined)
- value = 0;
-
- var _width = this.CSSWidth;
- if (isNaN(_width) || _width != value) {
- this.positioner.style.width = value.toString() + 'px';
- if (!opt_noEvent)
- this.dispatchEvent('widthChanged');
- }
-};
-
-
-/**
- * @export
- * @param {number} newWidth The width of the object in pixels.
- * @param {number} newHeight The height of the object in pixels.
- * @param {boolean=} opt_noEvent Whether to skip sending a change event.
- */
-org.apache.flex.core.UIBase.prototype.setWidthAndHeight =
- function(newWidth, newHeight, opt_noEvent)
-{
- if (opt_noEvent === undefined)
- opt_noEvent = false;
-
- if (newWidth === undefined)
- newWidth = 0;
- if (newHeight === undefined)
- newHeight = 0;
-
- var _width = this.CSSWidth;
- if (isNaN(_width) || _width != newWidth) {
- this.positioner.style.width = newWidth.toString() + 'px';
- if (!opt_noEvent)
- this.dispatchEvent('widthChanged');
- }
- var _height = this.CSSHeight;
- if (isNaN(_height) || _height != newHeight) {
- this.positioner.style.height = newHeight.toString() + 'px';
- if (!opt_noEvent)
- this.dispatchEvent('heightChanged');
- }
- this.dispatchEvent('sizeChanged');
-};
-
-
-/**
- * @export
- * @return {boolean} True if width sized to content.
- */
-org.apache.flex.core.UIBase.prototype.isWidthSizedToContent = function()
-{
- if (!isNaN(this.explicitWidth_) || !isNaN(this.percentWidth_))
- return false;
- var left = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'left');
- var right = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'right');
- // not sized to content if both left and right are specified
- return (left === undefined || right === undefined);
-};
-
-
-/**
- * @export
- * @return {boolean} True if height sized to content.
- */
-org.apache.flex.core.UIBase.prototype.isHeightSizedToContent = function()
-{
- if (!isNaN(this.explicitHeight_) || !isNaN(this.percentHeight_))
- return false;
- var top = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'top');
- var bottom = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'bottom');
- // not sized to content if both top and bottom are specified
- return (top === undefined || bottom === undefined);
-};
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.core.UIBase.prototype.typeNames = '';
-
-
-/**
- * @export
- * @param {org.apache.flex.events.ValueChangeEvent} value The new style properties.
- */
-org.apache.flex.core.UIBase.prototype.styleChangeHandler = function(value) {
- var newStyle = {};
- newStyle[value.propertyName] = value.newValue;
- org.apache.flex.core.ValuesManager.valuesImpl.applyStyles(this, newStyle);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ValuesManager.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ValuesManager.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ValuesManager.js
deleted file mode 100644
index 00515de..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ValuesManager.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.core.ValuesManager');
-
-goog.require('org.apache.flex.core.IValuesImpl');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.core.ValuesManager = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ValuesManager.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ValuesManager',
- qName: 'org.apache.flex.core.ValuesManager' }] };
-
-
-/**
- * @export
- * @type {org.apache.flex.core.IValuesImpl}
- */
-org.apache.flex.core.ValuesManager.prototype.valuesImpl = null;
-
-
-Object.defineProperties(org.apache.flex.core.ValuesManager.prototype, {
- /** @export */
- valuesImpl: {
- /** @this {org.apache.flex.core.ValuesManager} */
- get: function() {
- return org.apache.flex.core.ValuesManager.valuesImpl;
- },
- /** @this {org.apache.flex.core.ValuesManager} */
- set: function(value) {
- org.apache.flex.core.ValuesManager.valuesImpl = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ViewBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ViewBase.js
deleted file mode 100644
index 4bded41..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ViewBase.js
+++ /dev/null
@@ -1,143 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.ViewBase');
-
-goog.require('org.apache.flex.core.ContainerBase');
-goog.require('org.apache.flex.core.IPopUpHost');
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.events.ValueChangeEvent');
-goog.require('org.apache.flex.utils.MXMLDataInterpreter');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IPopUpHost}
- * @extends {org.apache.flex.core.ContainerBase}
- */
-org.apache.flex.core.ViewBase = function() {
- org.apache.flex.core.ViewBase.base(this, 'constructor');
-
- this.document = this;
-};
-goog.inherits(org.apache.flex.core.ViewBase, org.apache.flex.core.ContainerBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ViewBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ViewBase',
- qName: 'org.apache.flex.core.ViewBase' }],
- interfaces: [org.apache.flex.core.IPopUpHost] };
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.core.ViewBase.prototype.applicationModel_ = null;
-
-
-/**
- * @export
- * @param {Array} data The data for the attributes.
- */
-org.apache.flex.core.ViewBase.prototype.generateMXMLAttributes = function(data) {
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this, data);
-};
-
-
-/**
- * @export
- * @type {Object} The document.
- */
-org.apache.flex.core.ViewBase.prototype.document = null;
-
-
-/**
- * @export
- * @param {Object} doc The document.
- * @param {Array} desc The descriptor data;
- */
-org.apache.flex.core.ViewBase.prototype.setMXMLDescriptor =
- function(doc, desc) {
- this.MXMLDescriptor = desc;
- this.document = doc;
-};
-
-
-/**
- * @export
- */
-org.apache.flex.core.ViewBase.prototype.addedToParent = function() {
-
- //org.apache.flex.core.ViewBase.base(this,'addedToParent');
- this.element.flexjs_wrapper = this;
- if (org.apache.flex.core.ValuesManager.valuesImpl.init) {
- org.apache.flex.core.ValuesManager.valuesImpl.init(this);
- }
-
- org.apache.flex.core.ViewBase.base(this, 'addedToParent');
-
- this.dispatchEvent(new org.apache.flex.events.Event('childrenAdded'));
-};
-
-
-/**
- * @export
- * @param {string} state The name of the state.
- * @return {boolean} True if state in states array.
- */
-org.apache.flex.core.ViewBase.prototype.hasState = function(state) {
- var states = this.states;
- for (var p in states)
- {
- var s = states[p];
- if (s.name == state)
- return true;
- }
- return false;
-};
-
-
-Object.defineProperties(org.apache.flex.core.ViewBase.prototype, {
- /** @export */
- MXMLDescriptor: {
- /** @this {org.apache.flex.core.ViewBase} */
- get: function() {
- return this.mxmldd;
- },
- /** @this {org.apache.flex.core.ViewBase} */
- set: function(value) {
- this.mxmldd = value;
- }
- },
- /** @export */
- applicationModel: {
- /** @this {org.apache.flex.core.ViewBase} */
- get: function() {
- return this.applicationModel_;
- },
- /** @this {org.apache.flex.core.ViewBase} */
- set: function(value) {
- this.applicationModel_ = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/BrowserEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/BrowserEvent.js b/frameworks/projects/Core/js/src/org/apache/flex/events/BrowserEvent.js
deleted file mode 100644
index 2891d93..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/BrowserEvent.js
+++ /dev/null
@@ -1,162 +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.events.BrowserEvent');
-
-goog.require('goog.events.BrowserEvent');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.events.BrowserEvent = function() {
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.BrowserEvent.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'BrowserEvent',
- qName: 'org.apache.flex.events.BrowserEvent' }] };
-
-
-/**
- * @type {?goog.events.BrowserEvent}
- */
-org.apache.flex.events.BrowserEvent.prototype.wrappedEvent = null;
-
-
-/**
- */
-org.apache.flex.events.BrowserEvent.prototype.preventDefault = function() {
- this.wrappedEvent.preventDefault();
-};
-
-
-/**
- */
-org.apache.flex.events.BrowserEvent.prototype.stopPropagation = function() {
- this.wrappedEvent.stopPropagation();
-};
-
-
-/**
- */
-org.apache.flex.events.BrowserEvent.prototype.stopImmediatePropagation = function() {
- //this.wrappedEvent.stopImmediatePropagation(); // not in goog.events.BrowserEvent
- this.wrappedEvent.stopPropagation();
-};
-
-
-Object.defineProperties(org.apache.flex.events.BrowserEvent.prototype, {
- /** @export */
- currentTarget: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- var o = this.wrappedEvent.currentTarget;
- if (o && o.flexjs_wrapper)
- return o.flexjs_wrapper;
- return o;
- }
- },
- /** @export */
- button: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- return this.wrappedEvent.button;
- }
- },
- /** @export */
- charCode: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- return this.wrappedEvent.charCode;
- }
- },
- /** @export */
- clientX: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- return this.wrappedEvent.clientX;
- }
- },
- /** @export */
- clientY: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- return this.wrappedEvent.clientY;
- }
- },
- /** @export */
- keyCode: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- return this.wrappedEvent.keyCode;
- }
- },
- /** @export */
- offsetX: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- return this.wrappedEvent.offsetX;
- }
- },
- /** @export */
- offsetY: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- return this.wrappedEvent.offsetY;
- }
- },
- /** @export */
- screenX: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- return this.wrappedEvent.screenX;
- }
- },
- /** @export */
- screenY: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- return this.wrappedEvent.screenY;
- }
- },
- /** @export */
- relatedTarget: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- var o = this.wrappedEvent.relatedTarget;
- if (o && o.flexjs_wrapper)
- return o.flexjs_wrapper;
- return o;
- }
- },
- /** @export */
- target: {
- /** @this {org.apache.flex.events.BrowserEvent} */
- get: function() {
- var o = this.wrappedEvent.target;
- if (o && o.flexjs_wrapper)
- return o.flexjs_wrapper;
- return o;
- }
- }
-});
-
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/CustomEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/CustomEvent.js b/frameworks/projects/Core/js/src/org/apache/flex/events/CustomEvent.js
deleted file mode 100644
index a89143c..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/CustomEvent.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.events.CustomEvent');
-
-goog.require('goog.events.Event');
-
-
-
-/**
- * @constructor
- * @extends {goog.events.Event}
- * @param {string} type The event type.
- */
-org.apache.flex.events.CustomEvent = function(type) {
- org.apache.flex.events.CustomEvent.base(this, 'constructor', type);
-
- this.type = type;
-};
-goog.inherits(org.apache.flex.events.CustomEvent,
- goog.events.Event);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.CustomEvent.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'CustomEvent',
- qName: 'org.apache.flex.events.CustomEvent'}] };
-
-
-/**
- * @export
- * @param {string} type The event type.
- */
-org.apache.flex.events.CustomEvent.prototype.init = function(type) {
- this.type = type;
-};
-
-
-/**
- * @export
- * @type {string} type The event type.
- */
-org.apache.flex.events.CustomEvent.prototype.type = '';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/ElementEvents.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/ElementEvents.js b/frameworks/projects/Core/js/src/org/apache/flex/events/ElementEvents.js
deleted file mode 100644
index ce46b37..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/ElementEvents.js
+++ /dev/null
@@ -1,52 +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.events.ElementEvents');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.events.ElementEvents = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.ElementEvents.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ElementEvents',
- qName: 'org.apache.flex.events.ElementEvents' }] };
-
-
-/**
- * @type {Object}
- */
-org.apache.flex.events.ElementEvents.elementEvents = {
- 'click': 1,
- 'change': 1,
- 'keyup': 1,
- 'keydown': 1,
- 'load': 1,
- 'mouseover': 1,
- 'mouseout': 1,
- 'mouseup': 1,
- 'mousedown': 1,
- 'mousemove': 1,
- 'rollover': 1,
- 'rollout': 1
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/Event.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/Event.js b/frameworks/projects/Core/js/src/org/apache/flex/events/Event.js
deleted file mode 100644
index ca54f3e..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/Event.js
+++ /dev/null
@@ -1,71 +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.
- */
-// EventHandler and ErrorHandler are not listed as deps for
-// some of the event classes because they would cause
-// circularities so we force them in here.
-goog.provide('org.apache.flex.events.Event');
-
-goog.require('goog.debug.ErrorHandler');
-goog.require('goog.events.Event');
-goog.require('goog.events.EventHandler');
-
-
-
-/**
- * @constructor
- * @extends {goog.events.Event}
- * @param {string} type The event type.
- */
-org.apache.flex.events.Event = function(type) {
- org.apache.flex.events.Event.base(this, 'constructor', type);
-
- this.type = type;
-};
-goog.inherits(org.apache.flex.events.Event,
- goog.events.Event);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.Event.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Event',
- qName: 'org.apache.flex.events.Event' }] };
-
-
-/**
- * Enum type for the events fired by the FlexJS Event
- * @enum {string}
- */
-org.apache.flex.events.Event.EventType = {
- CHANGE: 'change'
- };
-
-
-/**
- * @export
- * @type {string} type The event type.
- */
-org.apache.flex.events.Event.prototype.type = '';
-
-
-/**
- * @export
- * @param {string} type The event type.
- */
-org.apache.flex.events.Event.prototype.init = function(type) {
- this.type = type;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/EventDispatcher.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/EventDispatcher.js b/frameworks/projects/Core/js/src/org/apache/flex/events/EventDispatcher.js
deleted file mode 100644
index 0429dbd..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/EventDispatcher.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.events.EventDispatcher');
-
-goog.require('goog.events.EventTarget');
-goog.require('org.apache.flex.events.ElementEvents');
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @constructor
- * @extends {goog.events.EventTarget}
- * @implements {org.apache.flex.events.IEventDispatcher}
- */
-org.apache.flex.events.EventDispatcher = function() {
- org.apache.flex.events.EventDispatcher.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.events.EventDispatcher,
- goog.events.EventTarget);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.EventDispatcher.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'EventDispatcher',
- qName: 'org.apache.flex.events.EventDispatcher'}],
- interfaces: [org.apache.flex.events.IEventDispatcher] };
-
-
-/**
- * @private
- * @param {string} type The event name.
- * @return {goog.events.EventTarget} The target.
- */
-org.apache.flex.events.EventDispatcher.prototype.getActualDispatcher_ = function(type) {
- /**
- * A bit of a hack, but for 'native' HTML element based controls, we
- * want to listen to the 'native' events from the element; for other
- * types of controls, we listen to 'custom' events.
- */
- var source = this;
- /*
- if (this.element && this.element.nodeName &&
- this.element.nodeName.toLowerCase() !== 'div' &&
- // we don't use any native img events right now, we wrapthem
- this.element.nodeName.toLowerCase() !== 'img' &&
- this.element.nodeName.toLowerCase() !== 'body') {
- source = this.element;
- } else */ if (org.apache.flex.events.ElementEvents.elementEvents[type]) {
- // mouse and keyboard events also dispatch off the element.
- source = this.element;
- }
- return source;
-};
-
-
-/**
- * @override
- * @export
- */
-org.apache.flex.events.EventDispatcher.prototype.dispatchEvent = function(e) {
- var t;
- if (typeof(e) === 'string') {
- t = e;
- if (e === 'change')
- e = new Event(e);
- }
- else {
- t = e.type;
- if (org.apache.flex.events.ElementEvents.elementEvents[t]) {
- e = new Event(t);
- }
- }
- var source = this.getActualDispatcher_(t);
- if (source == this)
- return org.apache.flex.events.EventDispatcher.base(this, 'dispatchEvent', e);
-
- return source.dispatchEvent(e);
-};
-
-
-/**
- * @override
- * @export
- */
-org.apache.flex.events.EventDispatcher.prototype.addEventListener =
- function(type, handler, opt_capture, opt_handlerScope) {
- var source;
-
- source = this.getActualDispatcher_(type);
-
- goog.events.listen(source, type, handler);
-};
-
-
-/**
- * @override
- * @export
- */
-org.apache.flex.events.EventDispatcher.prototype.removeEventListener =
- function(type, handler, opt_capture, opt_handlerScope) {
- var source;
-
- source = this.getActualDispatcher_(type);
-
- goog.events.unlisten(source, type, handler);
-};
-
-
-/**
- * @export
- * @param {string} type The event name.
- * @return {boolean} True if there is a listener.
- */
-org.apache.flex.events.EventDispatcher.prototype.hasEventListener =
- function(type) {
- var source;
-
- source = this.getActualDispatcher_(type);
-
- return goog.events.hasListener(source, type);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/IEventDispatcher.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/IEventDispatcher.js b/frameworks/projects/Core/js/src/org/apache/flex/events/IEventDispatcher.js
deleted file mode 100644
index a87d8a1..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/IEventDispatcher.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * IEventDispatcher
- *
- * @interface
- */
-org.apache.flex.events.IEventDispatcher = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.IEventDispatcher.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IEventDispatcher',
- qName: 'org.apache.flex.events.IEventDispatcher'}] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/MouseEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/MouseEvent.js b/frameworks/projects/Core/js/src/org/apache/flex/events/MouseEvent.js
deleted file mode 100644
index d553858..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/MouseEvent.js
+++ /dev/null
@@ -1,186 +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.events.MouseEvent');
-
-goog.require('goog.events.BrowserEvent');
-
-
-
-/**
- * @constructor
- * @extends {goog.events.BrowserEvent}
- *
- * This is a shim class. As long as you don't test
- * with "is" or "as", your code should work even
- * if the runtime is actually sending a native
- * browser MouseEvent
- */
-org.apache.flex.events.MouseEvent = function() {
- org.apache.flex.events.MouseEvent.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.events.MouseEvent,
- goog.events.BrowserEvent);
-
-
-/**
- * @type {string}
- */
-org.apache.flex.events.MouseEvent.ROLL_OVER = 'rollover';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.events.MouseEvent.ROLL_OUT = 'rollout';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.events.MouseEvent.MOUSE_OVER = 'mouseover';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.events.MouseEvent.MOUSE_OUT = 'mouseout';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.events.MouseEvent.MOUSE_UP = 'mouseup';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.events.MouseEvent.MOUSE_DOWN = 'mousedown';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.events.MouseEvent.MOUSE_MOVE = 'mousemove';
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.MouseEvent.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'MouseEvent',
- qName: 'org.apache.flex.events.MouseEvent' }] };
-
-
-/**
- * @return {boolean}
- */
-org.apache.flex.events.MouseEvent.installRollOverMixin = function() {
- window.addEventListener(org.apache.flex.events.MouseEvent.MOUSE_OVER,
- org.apache.flex.events.MouseEvent.mouseOverHandler);
- return true;
-};
-
-
-/**
- * @param {Event} e The event.
- * RollOver/RollOut is entirely implemented in mouseOver because
- * when a parent and child share an edge, you only get a mouseout
- * for the child and not the parent and you need to send rollout
- * to both. A similar issue exists for rollover.
- */
-org.apache.flex.events.MouseEvent.mouseOverHandler = function(e) {
- var j, m, outs, me, parent;
- var target = e.target.flexjs_wrapper;
- if (target === undefined)
- return; // probably over the html tag
- var targets = org.apache.flex.events.MouseEvent.targets;
- var index = targets.indexOf(target);
- if (index != -1) {
- // get all children
- outs = targets.slice(index + 1);
- m = outs.length;
- for (j = 0; j < m; j++) {
- me = org.apache.flex.events.MouseEvent.makeMouseEvent(
- org.apache.flex.events.MouseEvent.ROLL_OUT, e);
- outs[j].element.dispatchEvent(me);
- }
- org.apache.flex.events.MouseEvent.targets = targets.slice(0, index + 1);
- }
- else {
- var newTargets = [target];
- if (target.hasOwnProperty('parent') === undefined)
- parent = null;
- else
- parent = target.parent;
- while (parent) {
- index = targets.indexOf(parent);
- if (index == -1) {
- newTargets.unshift(parent);
- if (parent.hasOwnProperty('parent') === undefined)
- break;
- parent = parent.parent;
- }
- else {
- outs = targets.slice(index + 1);
- m = outs.length;
- for (j = 0; j < m; j++) {
- me = org.apache.flex.events.MouseEvent.makeMouseEvent(
- org.apache.flex.events.MouseEvent.ROLL_OUT, e);
- outs[j].element.dispatchEvent(me);
- }
- targets = targets.slice(0, index + 1);
- break;
- }
- }
- var n = newTargets.length;
- for (var i = 0; i < n; i++) {
- me = org.apache.flex.events.MouseEvent.makeMouseEvent(
- org.apache.flex.events.MouseEvent.ROLL_OVER, e);
- newTargets[i].element.dispatchEvent(me);
- }
- org.apache.flex.events.MouseEvent.targets = targets.concat(newTargets);
- }
-};
-
-
-/**
- * @type {boolean}
- */
-org.apache.flex.events.MouseEvent.rollOverMixin =
- org.apache.flex.events.MouseEvent.installRollOverMixin();
-
-
-/**
- * @type {Object}
- */
-org.apache.flex.events.MouseEvent.targets = [];
-
-
-/**
- * @param {string} type The event type.
- * @param {Event} e The mouse event.
- * @return {MouseEvent} The new event.
- */
-org.apache.flex.events.MouseEvent.makeMouseEvent = function(type, e) {
- var out = new MouseEvent(type);
- out.initMouseEvent(type, false, false,
- e.view, e.detail, e.screenX, e.screenY,
- e.clientX, e.clientY, e.ctrlKey, e.altKey,
- e.shiftKey, e.metaKey, e.button, e.relatedTarget);
- return out;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/ValueChangeEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/ValueChangeEvent.js b/frameworks/projects/Core/js/src/org/apache/flex/events/ValueChangeEvent.js
deleted file mode 100644
index 2d04c58..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/ValueChangeEvent.js
+++ /dev/null
@@ -1,119 +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.events.ValueChangeEvent');
-
-goog.require('goog.events.Event');
-
-
-
-/**
- * @constructor
- * @extends {goog.events.Event}
- * @param {string} type The event type.
- * @param {boolean} b The bubbles parameter.
- * @param {boolean} c The cancelable parameter.
- * @param {*} ov The old value.
- * @param {*} nv The new value.
- */
-org.apache.flex.events.ValueChangeEvent = function(type, b, c, ov, nv) {
- org.apache.flex.events.ValueChangeEvent.base(this, 'constructor', type);
-
- this.type = type;
- this.oldValue = ov;
- this.newValue = nv;
-};
-goog.inherits(org.apache.flex.events.ValueChangeEvent,
- goog.events.Event);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.ValueChangeEvent.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ValueChangeEvent',
- qName: 'org.apache.flex.events.ValueChangeEvent' }] };
-
-
-/**
- * @export
- * @param {string} type The event type.
- */
-org.apache.flex.events.ValueChangeEvent.prototype.init = function(type) {
- this.type = type;
-};
-
-
-/**
- * @export
- * @type {string} type The event type.
- */
-org.apache.flex.events.ValueChangeEvent.prototype.type = '';
-
-
-/**
- * @export
- * @type {*} oldValue The old value.
- */
-org.apache.flex.events.ValueChangeEvent.prototype.oldValue = null;
-
-
-/**
- * @export
- * @type {*} newValue The new value.
- */
-org.apache.flex.events.ValueChangeEvent.prototype.newValue = null;
-
-
-/**
- * @export
- * @type {string} propertyName The property that changed.
- */
-org.apache.flex.events.ValueChangeEvent.prototype.propertyName = '';
-
-
-/**
- * @export
- * @type {Object} source The object that changed.
- */
-org.apache.flex.events.ValueChangeEvent.prototype.source = null;
-
-
-/**
- * @export
- * @param {Object} source The object that changed.
- * @param {string} name The property that changed.
- * @param {*} oldValue The old value.
- * @param {*} newValue The new value.
- * @return {Object} An event object.
- */
-org.apache.flex.events.ValueChangeEvent.createUpdateEvent =
- function(source, name, oldValue, newValue)
- {
- var event = new org.apache.flex.events.ValueChangeEvent(
- org.apache.flex.events.ValueChangeEvent.VALUE_CHANGE,
- false, false, oldValue, newValue);
- event.propertyName = name;
- event.source = source;
- return event;
-};
-
-
-/**
- * @export
- * @type {string} VALUE_CHANGE The type of the event.
- */
-org.apache.flex.events.ValueChangeEvent.VALUE_CHANGE = 'valueChange';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/ValueEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/ValueEvent.js b/frameworks/projects/Core/js/src/org/apache/flex/events/ValueEvent.js
deleted file mode 100644
index 53f101c..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/ValueEvent.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.events.ValueEvent');
-
-goog.require('goog.events.Event');
-
-
-
-/**
- * @constructor
- * @extends {goog.events.Event}
- * @param {string} type The event type.
- * @param {*} v The value.
- */
-org.apache.flex.events.ValueEvent = function(type, v) {
- org.apache.flex.events.ValueEvent.base(this, 'constructor', type);
-
- this.type = type;
- this.value = v;
-};
-goog.inherits(org.apache.flex.events.ValueEvent,
- goog.events.Event);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.events.ValueEvent.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ValueEvent',
- qName: 'org.apache.flex.events.ValueEvent' }] };
-
-
-/**
- * @export
- * @param {string} type The event type.
- */
-org.apache.flex.events.ValueEvent.prototype.init = function(type) {
- this.type = type;
-};
-
-
-/**
- * @export
- * @type {string} type The event type.
- */
-org.apache.flex.events.ValueEvent.prototype.type = '';
-
-
-/**
- * @export
- * @type {*} value The old value.
- */
-org.apache.flex.events.ValueEvent.prototype.value = null;
-
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/events/utils/MouseUtils.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/utils/MouseUtils.js b/frameworks/projects/Core/js/src/org/apache/flex/events/utils/MouseUtils.js
deleted file mode 100644
index 4d8048d..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/utils/MouseUtils.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-goog.provide('org.apache.flex.events.utils.MouseUtils');
-
-
-/**
- * @param {Object} event The event.
- * @return {Object} class instance associated with the event.target.
- */
-org.apache.flex.events.utils.MouseUtils.eventTarget = function(event) {
- var target = event.target;
- return target.flexjs_wrapper;
-};
-
-
-/**
- * @param {Object} event The event.
- * @return {number} The x position of the mouse with respect to its parent.
- */
-org.apache.flex.events.utils.MouseUtils.localX = function(event) {
- return event.offsetX;
-};
-
-
-/**
- * @param {Object} event The event.
- * @return {number} The y position of the mouse with respect to its parent.
- */
-org.apache.flex.events.utils.MouseUtils.localY = function(event) {
- return event.offsetY;
-};
-
-
-/**
- * @param {Object} event The event.
- * @return {number} The x position of the mouse with respect to the screen.
- */
-org.apache.flex.events.utils.MouseUtils.globalX = function(event) {
- return event.clientX;
-};
-
-
-/**
- * @param {Object} event The event.
- * @return {number} The y position of the mouse with respect to the screen.
- */
-org.apache.flex.events.utils.MouseUtils.globalY = function(event) {
- return event.clientY;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/geom/Point.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/geom/Point.js b/frameworks/projects/Core/js/src/org/apache/flex/geom/Point.js
deleted file mode 100644
index 12cbb7a..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/geom/Point.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.geom.Point');
-
-
-
-/**
- * @constructor
- * @param {number} x
- * @param {number} y
- */
-org.apache.flex.geom.Point = function(x, y) {
-
- this.x = x;
-
- this.y = y;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.geom.Point.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Point',
- qName: 'org.apache.flex.geom.Point'}] };
-
-
-/**
- * @export
- * The x coordinate.
- * @type {number} value The x coordinate.
- */
-org.apache.flex.geom.Point.prototype.x = 0;
-
-
-/**
- * @export
- * The y coordinate.
- * @type {number} value The y coordinate.
- */
-org.apache.flex.geom.Point.prototype.y = 0;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/geom/Rectangle.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/geom/Rectangle.js b/frameworks/projects/Core/js/src/org/apache/flex/geom/Rectangle.js
deleted file mode 100644
index 887391b..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/geom/Rectangle.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.geom.Rectangle');
-
-
-
-/**
- * @constructor
- * @param {number} left
- * @param {number} top
- * @param {number} width
- * @param {number} height
- */
-org.apache.flex.geom.Rectangle = function(left, top, width, height) {
-
- this.left = left;
-
- this.top = top;
-
- this.width = width;
-
- this.height = height;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.geom.Rectangle.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Rectangle',
- qName: 'org.apache.flex.geom.Rectangle'}] };
-
-
-/**
- * @export
- * The left coordinate.
- * @type {number} value The left coordinate.
- */
-org.apache.flex.geom.Rectangle.prototype.left = 0;
-
-
-/**
- * @export
- * The top coordinate.
- * @type {number} value The top coordinate.
- */
-org.apache.flex.geom.Rectangle.prototype.top = 0;
-
-
-/**
- * @export
- * The width coordinate.
- * @type {number} value The width coordinate.
- */
-org.apache.flex.geom.Rectangle.prototype.width = 0;
-
-
-/**
- * @export
- * The height coordinate.
- * @type {number} value The height coordinate.
- */
-org.apache.flex.geom.Rectangle.prototype.height = 9;
-
-
-Object.defineProperties(org.apache.flex.geom.Rectangle.prototype, {
- /** @export */
- right: {
- /** @this {org.apache.flex.geom.Rectangle} */
- get: function() {
- return this.left + this.width;
- },
- /** @this {org.apache.flex.geom.Rectangle} */
- set: function(value) {
- this.width = value - this.left;
- }
- },
- /** @export */
- bottom: {
- /** @this {org.apache.flex.geom.Rectangle} */
- get: function() {
- return this.top + this.height;
- },
- /** @this {org.apache.flex.geom.Rectangle} */
- set: function(value) {
- this.height = value - this.top;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/geom/Size.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/geom/Size.js b/frameworks/projects/Core/js/src/org/apache/flex/geom/Size.js
deleted file mode 100644
index 1f209d6..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/geom/Size.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.geom.Size');
-
-
-
-/**
- * @constructor
- * @param {number} width
- * @param {number} height
- */
-org.apache.flex.geom.Size = function(width, height) {
-
- this.width = width;
-
- this.height = height;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.geom.Size.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Size',
- qName: 'org.apache.flex.geom.Size'}] };
-
-
-/**
- * @export
- * The width value.
- * @type {number} value The width value.
- */
-org.apache.flex.geom.Size.prototype.width = 0;
-
-
-/**
- * @export
- * The height value.
- * @type {number} value The height value.
- */
-org.apache.flex.geom.Size.prototype.height = 0;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/states/AddItems.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/states/AddItems.js b/frameworks/projects/Core/js/src/org/apache/flex/states/AddItems.js
deleted file mode 100644
index 737074d..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/states/AddItems.js
+++ /dev/null
@@ -1,249 +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.states.AddItems');
-
-goog.require('org.apache.flex.core.IDocument');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IDocument}
- */
-org.apache.flex.states.AddItems = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.states.AddItems.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'AddItems',
- qName: 'org.apache.flex.states.AddItems' }],
- interfaces: [org.apache.flex.core.IDocument] };
-
-
-/**
- * @param {Object} document The MXML object.
- * @param {?string=} opt_id The id.
- */
-org.apache.flex.states.AddItems.prototype.setDocument = function(document, opt_id) {
- opt_id = typeof opt_id !== 'undefined' ? opt_id : null;
- this.document = document;
- var data = document['mxmlsd'][this.itemsDescriptorIndex];
- if (typeof(data.slice) == 'function') {
- this.itemsDescriptor = {};
- this.itemsDescriptor.descriptor = data;
- // replace the entry in the document so subsequent
- // addItems know it is shared
- this.document['mxmlsd'][this.itemsDescriptorIndex] = this.itemsDescriptor;
- } else
- this.itemsDescriptor = data;
-};
-
-
-/**
- * @private
- * @type {Object} document The MXML object.
- */
-org.apache.flex.states.AddItems.prototype.document_ = null;
-
-
-/**
- * @private
- * @type {Array} items The array of items to add.
- */
-org.apache.flex.states.AddItems.prototype.items_ = null;
-
-
-/**
- * @private
- * @type {number} itemsDescriptor The index into the array
- * of itemDescriptors on the document
- */
-org.apache.flex.states.AddItems.prototype.itemsDescriptorIndex_ = -1;
-
-
-/**
- * @private
- * @type {Object} itemsDescriptor The descriptors for items.
- */
-org.apache.flex.states.AddItems.prototype.itemsDescriptor_ = null;
-
-
-/**
- * @private
- * @type {string} destination The id of the parent.
- */
-org.apache.flex.states.AddItems.prototype.destination_ = '';
-
-
-/**
- * @private
- * @type {string} propertyName The child property name (e.g. mxmlContent).
- */
-org.apache.flex.states.AddItems.prototype.propertyName_ = '';
-
-
-/**
- * @private
- * @type {string} position Where the item goes relative to relativeTo.
- */
-org.apache.flex.states.AddItems.prototype.position_ = '';
-
-
-/**
- * @private
- * @type {?string} relativeTo The id of the child where the item goes.
- */
-org.apache.flex.states.AddItems.prototype.relativeTo_ = null;
-
-
-/**
- * @export
- * @param {Object} properties The properties for the new object.
- * @return {Object} The new object.
- */
-org.apache.flex.states.AddItems.prototype.initializeFromObject = function(properties) {
- var p;
-
- for (p in properties) {
- this[p] = properties[p];
- }
-
- return this;
-};
-
-
-Object.defineProperties(org.apache.flex.states.AddItems.prototype,
- /** @lends {org.apache.flex.states.AddItems.prototype} */ {
- /** @export */
- document: {
- /** @this {org.apache.flex.states.AddItems} */
- get: function() {
- return this.document_;
- },
-
- /** @this {org.apache.flex.states.AddItems} */
- set: function(value) {
- if (value != this.document_) {
- this.document_ = value;
- }
- }
- },
- /** @export */
- items: {
- /** @this {org.apache.flex.states.AddItems} */
- get: function() {
- return this.items_;
- },
-
- /** @this {org.apache.flex.states.AddItems} */
- set: function(value) {
- if (value != this.items_) {
- this.items_ = value;
- }
- }
- },
- /** @export */
- itemsDescriptorIndex: {
- /** @this {org.apache.flex.states.AddItems}
- @return {number} */
- get: function() {
- return this.itemsDescriptorIndex_;
- },
-
- /** @this {org.apache.flex.states.AddItems}
- @param {number} value The value. */
- set: function(value) {
- if (value != this.itemsDescriptorIndex_) {
- this.itemsDescriptorIndex_ = value;
- }
- }
- },
- /** @export */
- itemsDescriptor: {
- /** @this {org.apache.flex.states.AddItems} */
- get: function() {
- return this.itemsDescriptor_;
- },
-
- /** @this {org.apache.flex.states.AddItems} */
- set: function(value) {
- if (value != this.itemsDescriptor_) {
- this.itemsDescriptor_ = value;
- }
- }
- },
- /** @export */
- destination: {
- /** @this {org.apache.flex.states.AddItems} */
- get: function() {
- return this.destination_;
- },
-
- /** @this {org.apache.flex.states.AddItems} */
- set: function(value) {
- if (value != this.destination_) {
- this.destination_ = value;
- }
- }
- },
- /** @export */
- propertyName: {
- /** @this {org.apache.flex.states.AddItems} */
- get: function() {
- return this.propertyName_;
- },
-
- /** @this {org.apache.flex.states.AddItems} */
- set: function(value) {
- if (value != this.propertyName_) {
- this.propertyName_ = value;
- }
- }
- },
- /** @export */
- position: {
- /** @this {org.apache.flex.states.AddItems} */
- get: function() {
- return this.position_;
- },
-
- /** @this {org.apache.flex.states.AddItems} */
- set: function(value) {
- if (value != this.position_) {
- this.position_ = value;
- }
- }
- },
- /** @export */
- relativeTo: {
- /** @this {org.apache.flex.states.AddItems} */
- get: function() {
- return this.relativeTo_;
- },
-
- /** @this {org.apache.flex.states.AddItems} */
- set: function(value) {
- if (value != this.relativeTo_) {
- this.relativeTo_ = value;
- }
- }
- }
-});
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/states/SetEventHandler.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/states/SetEventHandler.js b/frameworks/projects/Core/js/src/org/apache/flex/states/SetEventHandler.js
deleted file mode 100644
index 6d23259..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/states/SetEventHandler.js
+++ /dev/null
@@ -1,152 +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.states.SetEventHandler');
-
-goog.require('org.apache.flex.core.IDocument');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IDocument}
- */
-org.apache.flex.states.SetEventHandler = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.states.SetEventHandler.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SetEventHandler',
- qName: 'org.apache.flex.states.SetEventHandler' }],
- interfaces: [org.apache.flex.core.IDocument] };
-
-
-/**
- * @param {Object} document The MXML object.
- * @param {?string=} opt_id The id.
- */
-org.apache.flex.states.SetEventHandler.prototype.setDocument = function(document, opt_id) {
- opt_id = typeof opt_id !== 'undefined' ? opt_id : null;
- this.document = document;
-};
-
-
-/**
- * @private
- * @type {Object} document The MXML object.
- */
-org.apache.flex.states.SetEventHandler.prototype.document_ = null;
-
-
-/**
- * @private
- * @type {string} name The event to listen for.
- */
-org.apache.flex.states.SetEventHandler.prototype.name_ = '';
-
-
-/**
- * @private
- * @type {string} target The id of the object.
- */
-org.apache.flex.states.SetEventHandler.prototype.target_ = '';
-
-
-/**
- * @private
- * @type {Object} handlerFunction The listener to be added.
- */
-org.apache.flex.states.SetEventHandler.prototype.handlerFunction_ = null;
-
-
-/**
- * @export
- * @param {Object} properties The properties for the new object.
- * @return {Object} The new object.
- */
-org.apache.flex.states.SetEventHandler.prototype.initializeFromObject = function(properties) {
- var p;
-
- for (p in properties) {
- this[p] = properties[p];
- }
-
- return this;
-};
-
-
-Object.defineProperties(org.apache.flex.states.SetEventHandler.prototype,
- /** @lends {org.apache.flex.states.SetEventHandler.prototype} */ {
- /** @export */
- document: {
- /** @this {org.apache.flex.states.SetEventHandler} */
- get: function() {
- return this.document_;
- },
-
- /** @this {org.apache.flex.states.SetEventHandler} */
- set: function(value) {
- if (value != this.document_) {
- this.document_ = value;
- }
- }
- },
- /** @export */
- name: {
- /** @this {org.apache.flex.states.SetEventHandler} */
- get: function() {
- return this.name_;
- },
-
- /** @this {org.apache.flex.states.SetEventHandler} */
- set: function(value) {
- if (value != this.name_) {
- this.name_ = value;
- }
- }
- },
- /** @export */
- target: {
- /** @this {org.apache.flex.states.SetEventHandler} */
- get: function() {
- return this.target_;
- },
-
- /** @this {org.apache.flex.states.SetEventHandler} */
- set: function(value) {
- if (value != this.target_) {
- this.target_ = value;
- }
- }
- },
- /** @export */
- handlerFunction: {
- /** @this {org.apache.flex.states.SetEventHandler} */
- get: function() {
- return this.handlerFunction_;
- },
-
- /** @this {org.apache.flex.states.SetEventHandler} */
- set: function(value) {
- if (value != this.handlerFunction_) {
- this.handlerFunction_ = value;
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/states/SetProperty.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/states/SetProperty.js b/frameworks/projects/Core/js/src/org/apache/flex/states/SetProperty.js
deleted file mode 100644
index 15ebbd4..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/states/SetProperty.js
+++ /dev/null
@@ -1,173 +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.states.SetProperty');
-
-goog.require('org.apache.flex.core.IDocument');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IDocument}
- */
-org.apache.flex.states.SetProperty = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.states.SetProperty.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SetProperty',
- qName: 'org.apache.flex.states.SetProperty' }],
- interfaces: [org.apache.flex.core.IDocument] };
-
-
-/**
- * @param {Object} document The MXML object.
- * @param {?string=} opt_id The id.
- */
-org.apache.flex.states.SetProperty.prototype.setDocument = function(document, opt_id) {
- opt_id = typeof opt_id !== 'undefined' ? opt_id : null;
- this.document = document;
-};
-
-
-/**
- * @private
- * @type {Object} document The MXML object.
- */
-org.apache.flex.states.SetProperty.prototype.document_ = null;
-
-
-/**
- * @private
- * @type {string} name The target property name.
- */
-org.apache.flex.states.SetProperty.prototype.name_ = '';
-
-
-/**
- * @private
- * @type {?string} target The id of the object.
- */
-org.apache.flex.states.SetProperty.prototype.target_ = null;
-
-
-/**
- * @private
- * @type {Object} previousValue The value to revert to.
- */
-org.apache.flex.states.SetProperty.prototype.previousValue_ = null;
-
-
-/**
- * @private
- * @type {Object} value The value to set.
- */
-org.apache.flex.states.SetProperty.prototype.value_ = null;
-
-
-/**
- * @export
- * @param {Object} properties The properties for the new object.
- * @return {Object} The new object.
- */
-org.apache.flex.states.SetProperty.prototype.initializeFromObject = function(properties) {
- var p;
-
- for (p in properties) {
- this[p] = properties[p];
- }
-
- return this;
-};
-
-
-Object.defineProperties(org.apache.flex.states.SetProperty.prototype,
- /** @lends {org.apache.flex.states.SetProperty.prototype} */ {
- /** @export */
- document: {
- /** @this {org.apache.flex.states.SetProperty} */
- get: function() {
- return this.document_;
- },
-
- /** @this {org.apache.flex.states.SetProperty} */
- set: function(value) {
- if (value != this.document_) {
- this.document_ = value;
- }
- }
- },
- /** @export */
- name: {
- /** @this {org.apache.flex.states.SetProperty} */
- get: function() {
- return this.name_;
- },
-
- /** @this {org.apache.flex.states.SetProperty} */
- set: function(value) {
- if (value != this.name_) {
- this.name_ = value;
- }
- }
- },
- /** @export */
- target: {
- /** @this {org.apache.flex.states.SetProperty} */
- get: function() {
- return this.target_;
- },
-
- /** @this {org.apache.flex.states.SetProperty} */
- set: function(value) {
- if (value != this.target_) {
- this.target_ = value;
- }
- }
- },
- /** @export */
- previousValue: {
- /** @this {org.apache.flex.states.SetProperty} */
- get: function() {
- return this.previousValue_;
- },
-
- /** @this {org.apache.flex.states.SetProperty} */
- set: function(value) {
- if (value != this.previousValue_) {
- this.previousValue_ = value;
- }
- }
- },
- /** @export */
- value: {
- /** @this {org.apache.flex.states.SetProperty} */
- get: function() {
- return this.value_;
- },
-
- /** @this {org.apache.flex.states.SetProperty} */
- set: function(value) {
- if (value != this.value_) {
- this.value_ = value;
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/states/State.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/states/State.js b/frameworks/projects/Core/js/src/org/apache/flex/states/State.js
deleted file mode 100644
index 3af3655..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/states/State.js
+++ /dev/null
@@ -1,82 +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.states.State');
-
-
-
-/**
- * @constructor
- * @param {Object=} opt_props The initial properties.
- */
-org.apache.flex.states.State = function(opt_props) {
- opt_props = typeof opt_props !== 'undefined' ? opt_props : null;
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.states.State.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'State',
- qName: 'org.apache.flex.states.State' }] };
-
-
-/**
- * @private
- * @type {string} name The state name.
- */
-org.apache.flex.states.State.prototype.name_ = '';
-
-
-/**
- * @private
- * @type {Array} overrides The state data.
- */
-org.apache.flex.states.State.prototype.overrides_ = null;
-
-
-Object.defineProperties(org.apache.flex.states.State.prototype,
- /** @lends {org.apache.flex.states.State.prototype} */ {
- /** @export */
- name: {
- /** @this {org.apache.flex.states.State} */
- get: function() {
- return this.name_;
- },
-
- /** @this {org.apache.flex.states.State} */
- set: function(value) {
- if (value != this.name_) {
- this.name_ = value;
- }
- }
- },
- /** @export */
- overrides: {
- /** @this {org.apache.flex.states.State} */
- get: function() {
- return this.overrides_;
- },
-
- /** @this {org.apache.flex.states.State} */
- set: function(value) {
- if (value != this.overrides_) {
- this.overrides_ = value;
- }
- }
- }
-});
[47/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - move
inject_html
Posted by ah...@apache.org.
move inject_html
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/aad82444
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/aad82444
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/aad82444
Branch: refs/heads/develop
Commit: aad824440e4e9267e5d1c64761334f93104c6212
Parents: 9e7d5b7
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 13:34:14 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 13:34:49 2015 -0800
----------------------------------------------------------------------
.../src/org/apache/flex/jquery/Application.as | 22 ++++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/aad82444/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as
index 6cb9229..0770269 100644
--- a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as
+++ b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as
@@ -21,20 +21,20 @@ package org.apache.flex.jquery
import org.apache.flex.core.Application;
import org.apache.flex.core.IFlexInfo;
- /*
- 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>
- */
public class Application extends org.apache.flex.core.Application implements IFlexInfo
{
+ /**
+ * 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>
+ */
public function Application()
{
super();
[29/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - have
ViewBase also implement IStatesObject
Posted by ah...@apache.org.
have ViewBase also implement IStatesObject
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/018ff46d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/018ff46d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/018ff46d
Branch: refs/heads/develop
Commit: 018ff46d42722be0cd0a952a1bb204b4e997db05
Parents: 8a3755f
Author: Alex Harui <ah...@apache.org>
Authored: Fri Dec 11 23:26:16 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Dec 11 23:26:16 2015 -0800
----------------------------------------------------------------------
.../org/apache/flex/core/IApplicationView.as | 2 +-
.../src/org/apache/flex/core/IStatesObject.as | 5 +
.../org/apache/flex/createjs/core/ViewBase.as | 121 +++++++++++++++++++
3 files changed, 127 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/018ff46d/frameworks/projects/Core/as/src/org/apache/flex/core/IApplicationView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/IApplicationView.as b/frameworks/projects/Core/as/src/org/apache/flex/core/IApplicationView.as
index b011cd1..c4eab58 100755
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/IApplicationView.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/IApplicationView.as
@@ -27,7 +27,7 @@ package org.apache.flex.core
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
- public interface IApplicationView extends IUIBase
+ public interface IApplicationView extends IUIBase, IStatesObject
{
/**
* The application model.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/018ff46d/frameworks/projects/Core/as/src/org/apache/flex/core/IStatesObject.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/IStatesObject.as b/frameworks/projects/Core/as/src/org/apache/flex/core/IStatesObject.as
index 2088e7b..52bcdb6 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/IStatesObject.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/IStatesObject.as
@@ -51,6 +51,11 @@ package org.apache.flex.core
* @productversion FlexJS 0.0
*/
function get currentState():String;
+
+ /**
+ * @private
+ */
+ function set currentState(value:String):void;
/**
* The array of view state transitions.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/018ff46d/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
index b210559..9fb19e8 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
@@ -29,6 +29,15 @@ package org.apache.flex.createjs.core
import org.apache.flex.core.IUIBase;
import org.apache.flex.events.Event;
import org.apache.flex.utils.MXMLDataInterpreter;
+
+ COMPILE::JS
+ {
+ import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IStatesImpl;
+ import org.apache.flex.core.ValuesManager;
+ import org.apache.flex.events.ValueChangeEvent;
+ import org.apache.flex.states.State;
+ }
COMPILE::AS3
public class ViewBase extends org.apache.flex.core.ViewBase
@@ -81,5 +90,117 @@ package org.apache.flex.createjs.core
dispatchEvent(new Event("modelChanged"));
}
+ private var _states:Array;
+
+ /**
+ * The array of view states. These should
+ * be instances of org.apache.flex.states.State.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get states():Array
+ {
+ return _states;
+ }
+
+ /**
+ * @private
+ * @flexjsignorecoercion Class
+ * @flexjsignorecoercion org.apache.flex.core.IBead
+ */
+ public function set states(value:Array):void
+ {
+ _states = value;
+ _currentState = _states[0].name;
+
+ try{
+ if (getBeadByType(IStatesImpl) == null)
+ {
+ var c:Class = ValuesManager.valuesImpl.getValue(this, "iStatesImpl") as Class;
+ var b:Object = new c();
+ addBead(b as IBead);
+ }
+ }
+ //TODO: Need to handle this case more gracefully
+ catch(e:Error)
+ {
+ }
+
+ }
+
+ /**
+ * <code>true</code> if the array of states
+ * contains a state with this name.
+ *
+ * @param state The state namem.
+ * @return True if state in state array
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function hasState(state:String):Boolean
+ {
+ for each (var s:State in _states)
+ {
+ if (s.name == state)
+ return true;
+ }
+ return false;
+ }
+
+ private var _currentState:String;
+
+ [Bindable("currentStateChange")]
+ /**
+ * The name of the current state.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get currentState():String
+ {
+ return _currentState;
+ }
+
+ /**
+ * @private
+ */
+ public function set currentState(value:String):void
+ {
+ var event:ValueChangeEvent = new ValueChangeEvent("currentStateChange", false, false, _currentState, value)
+ _currentState = value;
+ dispatchEvent(event);
+ }
+
+ private var _transitions:Array;
+
+ /**
+ * The array of transitions.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get transitions():Array
+ {
+ return _transitions;
+ }
+
+ /**
+ * @private
+ */
+ public function set transitions(value:Array):void
+ {
+ _transitions = value;
+ }
+
}
}
[24/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - get
CreateJS manual test to work with back ported SWC
Posted by ah...@apache.org.
get CreateJS manual test to work with back ported SWC
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/61ee45f0
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/61ee45f0
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/61ee45f0
Branch: refs/heads/develop
Commit: 61ee45f0331b0ed890f4050984c35573faa9912f
Parents: a601ad5
Author: Alex Harui <ah...@apache.org>
Authored: Thu Dec 10 16:58:42 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Dec 10 16:58:42 2015 -0800
----------------------------------------------------------------------
.../as/src/org/apache/flex/core/Application.as | 17 +-
.../apache/flex/core/BrowserResizeListener.as | 4 +-
.../org/apache/flex/core/IApplicationView.as | 45 +++++
.../as/src/org/apache/flex/core/ViewBase.as | 2 +-
.../src/org/apache/flex/createjs/Application.as | 20 ++-
.../as/src/org/apache/flex/createjs/CheckBox.as | 6 +-
.../as/src/org/apache/flex/createjs/Label.as | 58 ++++++-
.../src/org/apache/flex/createjs/TextButton.as | 74 ++++++++-
.../src/org/apache/flex/createjs/core/UIBase.as | 164 ++++++++++++++++---
.../org/apache/flex/createjs/core/ViewBase.as | 59 ++-----
10 files changed, 361 insertions(+), 88 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as b/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as
index 202806a..bb2dff6 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as
@@ -183,15 +183,16 @@ package org.apache.flex.core
// if someone has installed a resize listener, fake an event to run it now
if (stage.hasEventListener("resize"))
stage.dispatchEvent(new flash.events.Event("resize"));
- else
+ else if (initialView is ILayoutChild)
{
+ var ilc:ILayoutChild = initialView as ILayoutChild;
// otherwise, size once like this
- if (!isNaN(initialView.percentWidth) && !isNaN(initialView.percentHeight))
- initialView.setWidthAndHeight(stage.stageWidth, stage.stageHeight, true);
- else if (!isNaN(initialView.percentWidth))
- initialView.setWidth(stage.stageWidth);
- else if (!isNaN(initialView.percentHeight))
- initialView.setHeight(stage.stageHeight);
+ if (!isNaN(ilc.percentWidth) && !isNaN(ilc.percentHeight))
+ ilc.setWidthAndHeight(stage.stageWidth, stage.stageHeight, true);
+ else if (!isNaN(ilc.percentWidth))
+ ilc.setWidth(stage.stageWidth);
+ else if (!isNaN(ilc.percentHeight))
+ ilc.setHeight(stage.stageHeight);
}
var bgColor:Object = ValuesManager.valuesImpl.getValue(this, "background-color");
if (bgColor != null)
@@ -236,7 +237,7 @@ package org.apache.flex.core
* @productversion FlexJS 0.0
*/
[Bindable("__NoChangeEvent__")]
- public var initialView:ViewBase;
+ public var initialView:IApplicationView;
/**
* The data model (for the initial view).
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/Core/as/src/org/apache/flex/core/BrowserResizeListener.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/BrowserResizeListener.as b/frameworks/projects/Core/as/src/org/apache/flex/core/BrowserResizeListener.as
index 644528e..f88201f 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/BrowserResizeListener.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/BrowserResizeListener.as
@@ -113,7 +113,7 @@ COMPILE::AS3
{
COMPILE::AS3
{
- var initialView:UIBase = app.initialView;
+ var initialView:UIBase = app.initialView as UIBase;
if (!isNaN(initialView.percentWidth) && !isNaN(initialView.percentHeight))
initialView.setWidthAndHeight(Math.max(minWidth, app.stage.stageWidth),
Math.max(minHeight, app.stage.stageHeight), true);
@@ -124,7 +124,7 @@ COMPILE::AS3
}
COMPILE::JS
{
- var initialView:UIBase = app.initialView;
+ var initialView:UIBase = app.initialView as UIBase;
var element:HTMLElement = app.element;
if (!isNaN(initialView.percentWidth) || !isNaN(initialView.percentHeight)) {
element.style.height = window.innerHeight.toString() + 'px';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/Core/as/src/org/apache/flex/core/IApplicationView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/IApplicationView.as b/frameworks/projects/Core/as/src/org/apache/flex/core/IApplicationView.as
new file mode 100755
index 0000000..b011cd1
--- /dev/null
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/IApplicationView.as
@@ -0,0 +1,45 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.core
+{
+ /**
+ * The IApplicationView interface is the interface for main
+ * view of the application.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public interface IApplicationView extends IUIBase
+ {
+ /**
+ * The application model.
+ *
+ * @param value The subcomponent to add.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ function set applicationModel(value:Object):void;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/Core/as/src/org/apache/flex/core/ViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/ViewBase.as b/frameworks/projects/Core/as/src/org/apache/flex/core/ViewBase.as
index 376fff7..0230e57 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/ViewBase.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/ViewBase.as
@@ -49,7 +49,7 @@ package org.apache.flex.core
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
- public class ViewBase extends ContainerBase implements IPopUpHost
+ public class ViewBase extends ContainerBase implements IPopUpHost, IApplicationView
{
/**
* Constructor.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as
index c6048ff..06ae1fb 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Application.as
@@ -46,15 +46,18 @@ package org.apache.flex.createjs
[Event(name="initialize", type="org.apache.flex.events.Event")]
/**
- * FalconJX will inject html into the index.html file. Surround with
- * "inject_html" tag as follows:
- *
- * <inject_html>
- * <script src="https://code.createjs.com/easeljs-0.8.1.min.js"></script>
- * </inject_html>
+ * CreateJS Application
*/
public class Application extends org.apache.flex.core.Application implements IStrand, IFlexInfo
{
+ /**
+ * FalconJX will inject html into the index.html file. Surround with
+ * "inject_html" tag as follows:
+ *
+ * <inject_html>
+ * <script src="https://code.createjs.com/easeljs-0.8.1.min.js"></script>
+ * </inject_html>
+ */
public function Application()
{
super();
@@ -78,6 +81,7 @@ package org.apache.flex.createjs
// and it provides convenient access to the stage.
element = document.createElement('canvas') as WrappedHTMLElement;
+ element.flexjs_wrapper = this;
canvas = element as HTMLCanvasElement;
canvas.id = 'flexjsCanvas';
canvas.width = 700;
@@ -99,6 +103,8 @@ package org.apache.flex.createjs
addElement(initialView);
dispatchEvent('viewChanged');
+
+ stage.update();
}
/**
@@ -107,7 +113,7 @@ package org.apache.flex.createjs
COMPILE::JS
override public function addElement(c:Object, dispatchEvent:Boolean = true):void
{
- stage.addChild(c as DisplayObject);
+ stage.addChild(c.element as DisplayObject);
c.addedToParent();
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as
index d072e82..3ce2d50 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/CheckBox.as
@@ -26,6 +26,7 @@ package org.apache.flex.createjs
{
import createjs.Container;
import createjs.Shape;
+ import createjs.Stage;
import createjs.Text;
import org.apache.flex.createjs.core.UIBase;
@@ -78,7 +79,6 @@ package org.apache.flex.createjs
container.onClick = clickHandler;
this.positioner = this.element;
- this.positioner.style.position = 'relative';
return this.element;
}
@@ -104,7 +104,9 @@ package org.apache.flex.createjs
public function set selected(value:Boolean):void
{
checkMark.visible = value;
- (element as Container).getStage().update();
+ var stage:Stage = (element as Container).getStage();
+ if (stage)
+ stage.update();
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Label.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Label.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Label.as
index 3da881a..3540599 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Label.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/Label.as
@@ -18,10 +18,64 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.createjs
{
- import org.apache.flex.html.Label;
-
+ COMPILE::AS3
+ {
+ import org.apache.flex.html.Label;
+ }
+
+ COMPILE::JS
+ {
+ import createjs.Text;
+ import createjs.Stage;
+
+ import org.apache.flex.createjs.core.UIBase;
+ import org.apache.flex.core.WrappedHTMLElement;
+ }
+
+ COMPILE::AS3
public class Label extends org.apache.flex.html.Label
{
}
+
+ COMPILE::JS
+ public class Label extends UIBase
+ {
+
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ */
+ override public function createElement():WrappedHTMLElement
+ {
+ var text:Text = new Text('default text', '20px Arial', '#ff7700');
+ text.x = 0;
+ text.y = 20;
+ text.textBaseline = 'alphabetic';
+
+ positioner = element = text as WrappedHTMLElement;
+ return element;
+ }
+
+
+ /**
+ * @flexjsignorecoercion createjs.Text
+ */
+ public function get text():String
+ {
+ return (element as Text).text;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Text
+ */
+ public function set text(value:String):void
+ {
+ var text:Text = element as Text;
+ text.text = value;
+ var stage:Stage = text.getStage();
+ if (stage)
+ stage.update();
+ }
+
+ }
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/TextButton.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/TextButton.as
index 44c9e88..f7a31f9 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/TextButton.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/TextButton.as
@@ -18,9 +18,23 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.createjs
{
- import org.apache.flex.core.ITextModel;
- import org.apache.flex.html.Button;
-
+ COMPILE::AS3
+ {
+ import org.apache.flex.core.ITextModel;
+ import org.apache.flex.html.Button;
+ }
+ COMPILE::JS
+ {
+ import createjs.Container;
+ import createjs.Text;
+ import createjs.Shape;
+ import createjs.Stage;
+
+ import org.apache.flex.createjs.core.UIBase;
+ import org.apache.flex.core.WrappedHTMLElement;
+ }
+
+ COMPILE::AS3
public class TextButton extends Button
{
public function TextButton()
@@ -47,4 +61,58 @@ package org.apache.flex.createjs
}
}
+
+ COMPILE::JS
+ public class TextButton extends UIBase
+ {
+ private var buttonBackground:Shape;
+ private var buttonLabel:Text;
+ private var button:Container;
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ */
+ override public function createElement():WrappedHTMLElement
+ {
+ buttonBackground = new createjs.Shape(null);
+ buttonBackground.name = 'background';
+ buttonBackground.graphics.beginFill('red').
+ drawRoundRect(0, 0, 200, 60, 10);
+
+ buttonLabel = new createjs.Text('button', 'bold 24px Arial',
+ '#FFFFFF');
+ buttonLabel.name = 'label';
+ buttonLabel.textAlign = 'center';
+ buttonLabel.textBaseline = 'middle';
+ buttonLabel.x = 200 / 2;
+ buttonLabel.y = 60 / 2;
+
+ button = new createjs.Container();
+ button.name = 'button';
+ button.x = 50;
+ button.y = 25;
+ button.addChild(buttonBackground);
+ button.addChild(buttonLabel);
+
+ positioner = element = button as WrappedHTMLElement;
+ element.flexjs_wrapper = this;
+ return element;
+ }
+
+
+ /**
+ * @flexjsignorecoercion createjs.Text
+ */
+ public function get text():String
+ {
+ return buttonLabel.text;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.Text
+ */
+ public function set text(value:String):void
+ {
+ buttonLabel.text = value;
+ }
+ }
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as
index b3051d7..10f18ab 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/UIBase.as
@@ -22,6 +22,8 @@ package org.apache.flex.createjs.core
import org.apache.flex.core.IStrand;
import org.apache.flex.core.IBeadModel;
import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IFlexJSElement;
+ import org.apache.flex.core.IUIBase;
import org.apache.flex.events.Event;
import org.apache.flex.events.IEventDispatcher;
@@ -29,10 +31,11 @@ package org.apache.flex.createjs.core
{
import createjs.Container;
import createjs.DisplayObject;
+ import createjs.Stage;
import org.apache.flex.core.WrappedHTMLElement;
}
- public class UIBase extends HTMLElementWrapper implements IStrand, IEventDispatcher
+ public class UIBase extends HTMLElementWrapper implements IStrand, IEventDispatcher, IUIBase, IFlexJSElement
{
public function UIBase()
{
@@ -43,9 +46,6 @@ package org.apache.flex.createjs.core
}
}
- COMPILE::JS
- public var positioner:WrappedHTMLElement;
-
/**
* @flexjsignorecoercion createjs.Container
* @flexjsignorecoercion createjs.DisplayObject
@@ -53,7 +53,7 @@ package org.apache.flex.createjs.core
COMPILE::JS
public function addElement(c:Object, dispatchEvent:Boolean = true):void
{
- (element as Container).addChild(c as DisplayObject);
+ (element as Container).addChild(c.element as DisplayObject);
}
/**
@@ -63,7 +63,7 @@ package org.apache.flex.createjs.core
COMPILE::JS
public function addElementAt(c:Object, index:int, dispatchEvent:Boolean = true):void
{
- (element as Container).addChildAt(c as DisplayObject, index);
+ (element as Container).addChildAt(c.element as DisplayObject, index);
}
@@ -74,7 +74,7 @@ package org.apache.flex.createjs.core
COMPILE::JS
public function getElementIndex(c:Object):int
{
- return (element as Container).getChildIndex(c as DisplayObject);
+ return (element as Container).getChildIndex(c.element as DisplayObject);
}
@@ -85,7 +85,7 @@ package org.apache.flex.createjs.core
COMPILE::JS
public function removeElement(c:Object, dispatchEvent:Boolean = true):void
{
- (element as Container).removeChild(c as DisplayObject);
+ (element as Container).removeChild(c.element as DisplayObject);
}
@@ -111,7 +111,7 @@ package org.apache.flex.createjs.core
}
/**
- * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement;
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
*/
COMPILE::JS
public function createElement():WrappedHTMLElement
@@ -119,12 +119,11 @@ package org.apache.flex.createjs.core
element = new Container() as WrappedHTMLElement;
positioner = this.element;
- positioner.style.position = 'relative';
return element;
}
/**
- * @flexjsignorecoercion createjs.Container;
+ * @flexjsignorecoercion createjs.Container
*/
COMPILE::JS
public function get x():Number
@@ -133,19 +132,21 @@ package org.apache.flex.createjs.core
}
/**
- * @flexjsignorecoercion createjs.Container;
+ * @flexjsignorecoercion createjs.Container
*/
COMPILE::JS
public function set x(value:Number):void
{
var container:Container = positioner as Container;
container.x = value;
- container.getStage().update();
+ var stage:Stage = container.getStage();
+ if (stage)
+ stage.update();
}
/**
- * @flexjsignorecoercion createjs.Container;
+ * @flexjsignorecoercion createjs.Container
*/
COMPILE::JS
public function get y():Number
@@ -154,18 +155,20 @@ package org.apache.flex.createjs.core
}
/**
- * @flexjsignorecoercion createjs.Container;
+ * @flexjsignorecoercion createjs.Container
*/
COMPILE::JS
public function set y(value:Number):void
{
var container:Container = positioner as Container;
container.y = value;
- container.getStage().update();
+ var stage:Stage = container.getStage();
+ if (stage)
+ stage.update();
}
/**
- * @flexjsignorecoercion createjs.Container;
+ * @flexjsignorecoercion createjs.Container
*/
COMPILE::JS
public function get width():Number
@@ -174,18 +177,20 @@ package org.apache.flex.createjs.core
}
/**
- * @flexjsignorecoercion createjs.Container;
+ * @flexjsignorecoercion createjs.Container
*/
COMPILE::JS
public function set width(value:Number):void
{
var container:Container = positioner as Container;
container.width = value;
- container.getStage().update();
+ var stage:Stage = container.getStage();
+ if (stage)
+ stage.update();
}
/**
- * @flexjsignorecoercion createjs.Container;
+ * @flexjsignorecoercion createjs.Container
*/
COMPILE::JS
public function get height():Number
@@ -194,14 +199,16 @@ package org.apache.flex.createjs.core
}
/**
- * @flexjsignorecoercion createjs.Container;
+ * @flexjsignorecoercion createjs.Container
*/
COMPILE::JS
public function set height(value:Number):void
{
var container:Container = positioner as Container;
container.height = value;
- container.getStage().update();
+ var stage:Stage = container.getStage();
+ if (stage)
+ stage.update();
}
COMPILE::AS3
@@ -325,5 +332,118 @@ package org.apache.flex.createjs.core
return null;
}
+ /**
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function get visible():Boolean
+ {
+ return (positioner as DisplayObject).visible;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function set visible(value:Boolean):void
+ {
+ var oldValue:Boolean = (positioner as DisplayObject).visible;
+ if (value !== oldValue)
+ {
+ if (!value)
+ {
+ (positioner as DisplayObject).visible = value;
+ dispatchEvent(new Event('hide'));
+ }
+ else
+ {
+ (positioner as DisplayObject).visible = value;
+ dispatchEvent(new Event('show'));
+ }
+ dispatchEvent(new Event('visibleChanged'));
+ }
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function get alpha():Number
+ {
+ return (positioner as DisplayObject).alpha;
+ }
+
+ /**
+ * @flexjsignorecoercion createjs.DisplayObject
+ */
+ COMPILE::JS
+ public function set alpha(value:Number):void
+ {
+ (positioner as DisplayObject).alpha = value;
+ }
+
+ COMPILE::JS
+ private var _positioner:WrappedHTMLElement;
+
+ /**
+ * The HTMLElement used to position the component.
+ */
+ COMPILE::JS
+ public function get positioner():WrappedHTMLElement
+ {
+ return _positioner;
+ }
+
+ /**
+ * @private
+ */
+ COMPILE::JS
+ public function set positioner(value:WrappedHTMLElement):void
+ {
+ _positioner = value;
+ }
+
+ /**
+ * @copy org.apache.flex.core.IUIBase#topMostEventDispatcher
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion org.apache.flex.events.IEventDispatcher
+ */
+ public function get topMostEventDispatcher():IEventDispatcher
+ {
+ COMPILE::AS3
+ {
+ return null;
+ }
+ COMPILE::JS
+ {
+ var e:WrappedHTMLElement = document.body as WrappedHTMLElement;
+ return e.flexjs_wrapper as IEventDispatcher;
+ }
+ }
+
+ public function addedToParent():void
+ {
+
+ }
+
+ /**
+ * @copy org.apache.flex.core.IUIBase#element
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ COMPILE::AS3
+ public function get element():IFlexJSElement
+ {
+ return this;
+ }
+
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61ee45f0/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
index 3331b8a..b210559 100644
--- a/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
+++ b/frameworks/projects/CreateJS/as/src/org/apache/flex/createjs/core/ViewBase.as
@@ -21,25 +21,32 @@ package org.apache.flex.createjs.core
COMPILE::AS3
{
import flash.display.DisplayObject;
+ import org.apache.flex.core.ViewBase;
}
- import org.apache.flex.core.IParent;
- import org.apache.flex.core.IUIBase;
- import org.apache.flex.events.Event;
- import org.apache.flex.utils.MXMLDataInterpreter;
+ import org.apache.flex.core.IApplicationView;
+ import org.apache.flex.core.IParent;
+ import org.apache.flex.core.IUIBase;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.utils.MXMLDataInterpreter;
+ COMPILE::AS3
+ public class ViewBase extends org.apache.flex.core.ViewBase
+ {
+
+ }
+
[DefaultProperty("mxmlContent")]
- public class ViewBase extends UIBase implements IParent
+ COMPILE::JS
+ public class ViewBase extends UIBase implements IParent, IApplicationView
{
public function ViewBase()
{
super();
}
- public function initUI(model:Object):void
+ override public function addedToParent():void
{
- _applicationModel = model;
- dispatchEvent(new Event("modelChanged"));
/* AJH needed?
MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
*/
@@ -68,40 +75,10 @@ package org.apache.flex.createjs.core
return _applicationModel;
}
- COMPILE::AS3
- public function addElement(c:Object, dispatchEvent:Boolean = true):void
- {
- addChild(c as DisplayObject);
- }
-
- COMPILE::AS3
- public function addElementAt(c:Object, index:int, dispatchEvent:Boolean = true):void
- {
- addChildAt(c as DisplayObject, index);
- }
-
- COMPILE::AS3
- public function getElementAt(index:int):Object
- {
- return getChildAt(index);
- }
-
- COMPILE::AS3
- public function getElementIndex(c:Object):int
- {
- return getChildIndex(c as DisplayObject);
- }
-
- COMPILE::AS3
- public function removeElement(c:Object, dispatchEvent:Boolean = true):void
- {
- removeChild(c as DisplayObject);
- }
-
- COMPILE::AS3
- public function get numElements():int
+ public function set applicationModel(value:Object):void
{
- return numChildren;
+ _applicationModel = value;
+ dispatchEvent(new Event("modelChanged"));
}
}
[03/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
deleted file mode 100644
index 4971449..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
+++ /dev/null
@@ -1,140 +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.DataItemRendererFactoryForArrayData');
-
-goog.require('org.apache.flex.core.IDataProviderItemRendererMapper');
-goog.require('org.apache.flex.core.IListPresentationModel');
-goog.require('org.apache.flex.events.EventDispatcher');
-goog.require('org.apache.flex.html.beads.ListView');
-goog.require('org.apache.flex.html.beads.models.ArraySelectionModel');
-goog.require('org.apache.flex.html.supportClasses.ButtonBarButtonItemRenderer');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IDataProviderItemRendererMapper}
- */
-org.apache.flex.html.beads.DataItemRendererFactoryForArrayData =
- function() {
-};
-
-
-/**
- * @export
- */
-org.apache.flex.html.beads.DataItemRendererFactoryForArrayData.prototype.itemRendererFactory = null;
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.DataItemRendererFactoryForArrayData.
- prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'DataItemRendererFactoryForArrayData',
- qName: 'org.apache.flex.html.beads.DataItemRendererFactoryForArrayData' }],
- interfaces: [org.apache.flex.core.IDataProviderItemRendererMapper] };
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.html.beads.DataItemRendererFactoryForArrayData.
- prototype.itemRendererClass_ = null;
-
-
-Object.defineProperties(org.apache.flex.html.beads.DataItemRendererFactoryForArrayData.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.DataItemRendererFactoryForArrayData} */
- set: function(value) {
- this.strand_ = value;
-
- this.model = value.getBeadByType(
- org.apache.flex.html.beads.models.ArraySelectionModel);
-
- this.listView = value.getBeadByType(
- org.apache.flex.html.beads.ListView);
- this.dataGroup = this.listView.dataGroup;
-
- this.model.addEventListener('dataProviderChanged',
- goog.bind(this.dataProviderChangedHandler, this));
-
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue && !this.itemRendererFactory_) {
- /**
- * @type {Function}
- */
- var c = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl.getValue(this.strand_,
- 'iItemRendererClassFactory'));
- this.itemRendererFactory_ = new c();
- this.strand_.addBead(this.itemRendererFactory_);
- }
-
- this.dataProviderChangedHandler(null);
- }
- },
- /** @export */
- itemRendererClass: {
- /** @this {org.apache.flex.html.beads.DataItemRendererFactoryForArrayData} */
- get: function() {
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue && !this.itemRendererClass_) {
- var c = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this.strand_, 'iItemRenderer');
- if (c) {
- this.itemRendererClass_ = c;
- }
- }
- return this.itemRendererClass_;
- },
- /** @this {org.apache.flex.html.beads.DataItemRendererFactoryForArrayData} */
- set: function(value) {
- this.itemRendererClass_ = value;
- }
- }
-});
-
-
-/**
- * @export
- * @param {Object} event The event that triggered the dataProvider change.
- */
-org.apache.flex.html.beads.DataItemRendererFactoryForArrayData.
- prototype.dataProviderChangedHandler = function(event) {
- var dp, i, n, opt;
-
- this.dataGroup.removeAllElements();
-
- var presModel = this.strand_.getBeadByType(org.apache.flex.core.IListPresentationModel);
-
- dp = this.model.dataProvider;
- if (dp === undefined) return;
-
- n = dp.length;
- for (i = 0; i < n; i++) {
- var ir = this.itemRendererFactory_.createItemRenderer(this.dataGroup);
- ir.index = i;
- ir.labelField = this.model.labelField;
- ir.data = dp[i];
- if (presModel) {
- ir.element.style['margin-bottom'] = presModel.separatorThickness;
- ir.height = presModel.rowHeight;
- }
- }
-
- var newEvent = new org.apache.flex.events.Event('itemsCreated');
- this.strand_.dispatchEvent(newEvent);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/IListView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/IListView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/IListView.js
deleted file mode 100644
index b1c8458..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/IListView.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.html.beads.IListView');
-
-goog.require('org.apache.flex.core.IBeadView');
-
-
-
-/**
- * IListView
- *
- * @interface
- */
-org.apache.flex.html.beads.IListView = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.IListView.prototype.FLEXJS_CLASS_INFO =
-{ names: [{ name: 'IListView',
- qName: 'org.apache.flex.html.beads.IListView'}],
- interfaces: [org.apache.flex.core.IBeadView] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ImageButtonView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ImageButtonView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ImageButtonView.js
deleted file mode 100644
index 2e262bc..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ImageButtonView.js
+++ /dev/null
@@ -1,45 +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.ImageButtonView');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.beads.ImageButtonView = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.ImageButtonView
- .prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ImageButtonView',
- qName: 'org.apache.flex.html.beads.ImageButtonView'}] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.ImageButtonView.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.ImageButtonView} */
- set: function(value) {
- this.strand_ = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ImageView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ImageView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ImageView.js
deleted file mode 100644
index 5ada7bc..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ImageView.js
+++ /dev/null
@@ -1,117 +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.ImageView');
-
-
-goog.require('org.apache.flex.html.beads.models.ImageModel');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.beads.ImageView = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.ImageView
- .prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ImageView',
- qName: 'org.apache.flex.html.beads.ImageView'}] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.ImageView.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.ImageView} */
- set: function(value) {
- this.strand_ = value;
-
- this.model = value.getBeadByType(
- org.apache.flex.html.beads.models.ImageModel);
- this.model.addEventListener('sourceChanged',
- goog.bind(this.sourceChangeHandler, this));
- }
- }
-});
-
-
-/**
- * @export
- * @param {Object} event The event triggered by the source change.
- */
-org.apache.flex.html.beads.ImageView.prototype.
- sourceChangeHandler = function(event) {
- this.strand_.element.addEventListener('load',
- goog.bind(this.loadHandler, this));
- this.strand_.addEventListener('sizeChanged',
- goog.bind(this.sizeChangedHandler, this));
- this.strand_.element.src = this.model.source;
-};
-
-
-/**
- * @export
- * @param {Object} event The event triggered by the load.
- */
-org.apache.flex.html.beads.ImageView.prototype.
- loadHandler = function(event) {
- this.strand_.parent.dispatchEvent('layoutNeeded');
-};
-
-
-/**
- * @export
- * @param {Object} event The event triggered by the size change.
- */
-org.apache.flex.html.beads.ImageView.prototype.
- sizeChangedHandler = function(event) {
- var s = this.strand_.positioner.style;
- var l = NaN;
- var ls = s.left;
- if (typeof(ls) === 'string' && ls.length > 0)
- l = parseFloat(ls.substring(0, ls.length - 2));
- var r = NaN;
- var rs = s.right;
- if (typeof(rs) === 'string' && rs.length > 0)
- r = parseFloat(rs.substring(0, rs.length - 2));
- if (!isNaN(l) &&
- !isNaN(r)) {
- // if just using size constraints and image will not shrink or grow
- var computedWidth = this.strand_.positioner.offsetParent.offsetWidth -
- l - r;
- s.width = computedWidth.toString() + 'px';
- }
- var t = NaN;
- var ts = s.top;
- if (typeof(ts) === 'string' && ts.length > 0)
- t = parseFloat(ts.substring(0, ts.length - 2));
- var b = NaN;
- var bs = s.right;
- if (typeof(bs) === 'string' && bs.length > 0)
- b = parseFloat(bs.substring(0, bs.length - 2));
- if (!isNaN(t) &&
- !isNaN(b)) {
- // if just using size constraints and image will not shrink or grow
- var computedHeight = this.strand_.positioner.offsetParent.offsetHeight -
- t - b;
- s.height = computedHeight.toString() + 'px';
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ListView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ListView.js
deleted file mode 100644
index 89401f2..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ListView.js
+++ /dev/null
@@ -1,169 +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.ListView');
-
-goog.require('org.apache.flex.core.IBeadLayout');
-goog.require('org.apache.flex.core.IBeadView');
-goog.require('org.apache.flex.core.IItemRendererParent');
-goog.require('org.apache.flex.core.ILayoutHost');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.html.beads.ContainerView');
-goog.require('org.apache.flex.html.beads.IListView');
-goog.require('org.apache.flex.html.beads.TextItemRendererFactoryForArrayData');
-goog.require('org.apache.flex.html.beads.models.ArraySelectionModel');
-goog.require('org.apache.flex.html.supportClasses.DataGroup');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.beads.ContainerView}
- * @implements {org.apache.flex.core.ILayoutHost}
- * @implements {org.apache.flex.html.beads.IListView}
- */
-org.apache.flex.html.beads.ListView = function() {
- this.lastSelectedIndex = -1;
-
- this.className = 'ListView';
- org.apache.flex.html.beads.ListView.base(this, 'constructor');
-};
-goog.inherits(
- org.apache.flex.html.beads.ListView,
- org.apache.flex.html.beads.ContainerView);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.ListView.prototype.
- FLEXJS_CLASS_INFO =
- { names: [{ name: 'ListView',
- qName: 'org.apache.flex.html.beads.ListView' }],
- interfaces: [org.apache.flex.html.beads.IListView, org.apache.flex.core.ILayoutHost] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.beads.ListView.
- prototype.completeSetup = function() {
- org.apache.flex.html.beads.ListView.base(this, 'completeSetup');
- this._strand.addEventListener('itemsCreated',
- goog.bind(this.changeHandler, this));
-};
-
-
-Object.defineProperties(org.apache.flex.html.beads.ListView.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.ListView} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(
- org.apache.flex.html.beads.ListView, this, 'strand', value);
-
- this.model = this._strand.model;
- this.model.addEventListener('selectedIndexChanged',
- goog.bind(this.selectionChangeHandler, this));
- this.model.addEventListener('dataProviderChanged',
- goog.bind(this.dataProviderChangeHandler, this));
-
- this.dataGroup.strand = this;
-
- /*if (this._strand.getBeadByType(org.apache.flex.core.IBeadLayout) == null) {
- var m3 = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this._strand, 'iBeadLayout');
- this.layout_ = new m3();
- this._strand.addBead(this.layout_);
- }*/
- },
- /** @this {org.apache.flex.html.beads.ListView} */
- get: function() {
- return this._strand;
- }
- },
- /** @export */
- dataGroup: {
- /** @this {org.apache.flex.html.beads.ListView} */
- get: function() {
- return this.contentView;
- }
- },
- /** @export */
- border: {
- /** @this {org.apache.flex.html.beads.ListView} */
- get: function() {
- return null;
- }
- },
- /** @export */
- vScrollBar: {
- /** @this {org.apache.flex.html.beads.ListView} */
- get: function() {
- return null;
- },
- /** @this {org.apache.flex.html.beads.ListView} */
- set: function(value) {
- }
- },
- /** @export */
- resizeableView: {
- /** @this {org.apache.flex.html.beads.ListView} */
- get: function() {
- return this;
- }
- }
-});
-
-
-/**
- * @export
- * @param {org.apache.flex.events.Event} value The event that triggered the selection.
- */
-org.apache.flex.html.beads.ListView.prototype.
- selectionChangeHandler = function(value) {
- var ir;
- if (this.lastSelectedIndex != -1) {
- ir = this.dataGroup.getItemRendererForIndex(this.lastSelectedIndex);
- if (ir) ir.selected = false;
- }
- if (this.model.selectedIndex != -1) {
- ir = this.dataGroup.getItemRendererForIndex(
- this.model.selectedIndex);
- if (ir) ir.selected = true;
- }
- this.lastSelectedIndex = this.model.selectedIndex;
-};
-
-
-/**
- * @export
- * @param {org.apache.flex.events.Event} value The event that triggered the selection.
- */
-org.apache.flex.html.beads.ListView.prototype.
- dataProviderChangeHandler = function(value) {
- // override in subclass
- this.changeHandler(value);
-};
-
-
-/**
- * @export
- * @param {org.apache.flex.events.Event} event The event that triggered the resize.
- */
-org.apache.flex.html.beads.ListView.prototype.handleSizeChange = function(event) {
- this.dataGroup.width = this._strand.width;
- this.dataGroup.height = this._strand.height;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
deleted file mode 100644
index f0e02b7..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
+++ /dev/null
@@ -1,204 +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.PanelView');
-
-goog.require('org.apache.flex.html.TitleBar');
-goog.require('org.apache.flex.html.beads.ContainerView');
-goog.require('org.apache.flex.utils.CSSContainerUtils');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.beads.ContainerView}
- */
-org.apache.flex.html.beads.PanelView = function() {
- org.apache.flex.html.beads.PanelView.base(this, 'constructor');
- /**
- * @private
- * @type {boolean}
- */
- this.titleBarAdded_ = false;
-
- /**
- * @private
- * @type {?Object}
- */
- this.titleBar_ = null;
-
- this.className = 'PanelView';
-};
-goog.inherits(
- org.apache.flex.html.beads.PanelView,
- org.apache.flex.html.beads.ContainerView);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.PanelView
- .prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'PanelView',
- qName: 'org.apache.flex.html.beads.PanelView'}]};
-
-
-/**
- * @override
- */
-org.apache.flex.html.beads.PanelView.
- prototype.completeSetup = function() {
- org.apache.flex.html.beads.PanelView.base(this, 'completeSetup');
- // listen for changes to the strand's model so items can be changed
- // in the view
- this._strand.model.addEventListener('titleChange',
- goog.bind(this.changeHandler, this));
-};
-
-
-Object.defineProperties(org.apache.flex.html.beads.PanelView.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.PanelView} */
- set: function(value) {
- if (!this.titleBar_)
- this.titleBar_ = new org.apache.flex.html.TitleBar();
-
- value.titleBar = this.titleBar_;
- this.titleBar_.id = 'panelTitleBar';
- this.titleBar_.model = value.model;
- this.titleBarAdded_ = true;
- value.strandChildren.addElement(this.titleBar_);
-
-// this._strand.controlBar =
-// new org.apache.flex.html.ControlBar();
-
- org.apache.flex.utils.Language.superSetter(org.apache.flex.html.beads.PanelView, this, 'strand', value);
- }
- },
- /** @export */
- titleBar: {
- /** @this {org.apache.flex.html.beads.PanelView} */
- get: function() {
- return this.titleBar_;
- },
- /** @this {org.apache.flex.html.beads.PanelView} */
- set: function(value) {
- this.titleBar_ = value;
- }
- }
-});
-
-
-/**
- * @override
- */
-org.apache.flex.html.beads.PanelView.
- prototype.layoutViewBeforeContentLayout = function() {
- var vm = this.viewportModel;
- var host = this._strand;
- var w = host.width;
- var s = window.getComputedStyle(host.element);
- var sw = Number(s.width.substring(0, s.width.length - 2));
- if (sw > w) w = sw;
- vm.borderMetrics = org.apache.flex.utils.CSSContainerUtils.getBorderMetrics(host);
- this.titleBar.x = 0;
- this.titleBar.y = 0;
- if (!host.isWidthSizedToContent())
- this.titleBar.width = w - vm.borderMetrics.left - vm.borderMetrics.right;
- vm.chromeMetrics = this.getChromeMetrics();
- this.viewport.setPosition(vm.chromeMetrics.left,
- vm.chromeMetrics.top);
- this.viewport.layoutViewportBeforeContentLayout(
- !host.isWidthSizedToContent() ?
- w - vm.borderMetrics.left - vm.borderMetrics.right -
- vm.chromeMetrics.left - vm.chromeMetrics.right : NaN,
- !host.isHeightSizedToContent() ?
- host.height - vm.borderMetrics.top - vm.borderMetrics.bottom -
- vm.chromeMetrics.top - vm.chromeMetrics.bottom : NaN);
-};
-
-
-/**
- * @override
- */
-org.apache.flex.html.beads.PanelView.
- prototype.layoutViewAfterContentLayout = function() {
- var vm = this.viewportModel;
- var host = this._strand;
- var viewportSize = this.viewport.layoutViewportAfterContentLayout();
- var hasWidth = !host.isWidthSizedToContent();
- var hasHeight = !host.isHeightSizedToContent();
- if (!hasWidth) {
- this.titleBar.width = viewportSize.width; // should get titlebar to layout and get new height
- vm.chromeMetrics = this.getChromeMetrics();
- }
- org.apache.flex.html.beads.PanelView.base(this, 'layoutViewAfterContentLayout');
-};
-
-
-/**
- * @override
- * Returns the chrome metrics
- */
-org.apache.flex.html.beads.PanelView.
- prototype.getChromeMetrics = function() {
- return new org.apache.flex.geom.Rectangle(0, this.titleBar.height, 0, 0 - this.titleBar.height);
-};
-
-
-
-
-/**
- * @override
- * @param {org.apache.flex.events.Event} event The event that triggered this handler.
- */
-/**org.apache.flex.html.beads.PanelView.prototype.changeHandler =
- function(event) {
- var strand = this._strand;
- if (!this.titleBarAdded_)
- {
- this.titleBarAdded_ = true;
- strand.addElement(this.titleBar_);
- if (strand.controlBar != null)
- strand.addElement(strand.controlBar);
- }
-
- if (event.type == 'titleChange') {
- this.titleBar_.title = strand.model.title;
- }
-
- var p = this._strand.positioner;
- if (!strand.isWidthSizedToContent()) {
- var w = strand.width;
- w -= p.offsetWidth - p.clientWidth;
- this.titleBar_.setWidth(w);
- strand.contentArea.style.width = w.toString() + 'px';
- if (strand.controlBar)
- strand.controlBar.setWidth(w);
- }
- if (!strand.isHeightSizedToContent()) {
- var t = this.titleBar_.height;
- var b = 0;
- if (strand.controlBar)
- b = strand.controlBar.height;
- strand.contentArea.style.top = t.toString() + 'px';
- var h = strand.height - t - b;
- h -= p.offsetHeight - p.clientHeight;
- strand.contentArea.style.height = h.toString() + 'px';
- }
- org.apache.flex.html.beads.PanelView.base(this, 'changeHandler', event);
-};**/
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ScrollingContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ScrollingContainerView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ScrollingContainerView.js
deleted file mode 100644
index c4a7eac..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ScrollingContainerView.js
+++ /dev/null
@@ -1,81 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html.beads.ScrollingContainerView');
-
-goog.require('org.apache.flex.html.beads.ContainerView');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.beads.ContainerView}
- */
-org.apache.flex.html.beads.ScrollingContainerView = function() {
- this.lastSelectedIndex = -1;
- org.apache.flex.html.beads.ScrollingContainerView.base(this, 'constructor');
-
- this.className = 'ScrollingContainerView';
-};
-goog.inherits(
- org.apache.flex.html.beads.ScrollingContainerView,
- org.apache.flex.html.beads.ContainerView);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.ScrollingContainerView.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ScrollingContainerView',
- qName: 'org.apache.flex.html.beads.ScrollingContainerView' }],
- interfaces: [org.apache.flex.core.ILayoutHost]
- };
-
-
-Object.defineProperties(org.apache.flex.html.beads.ScrollingContainerView.prototype, {
- /** @export */
- contentView: {
- /** @this {org.apache.flex.html.beads.ScrollingContainerView} */
- get: function() {
- return this._strand;
- }
- },
- /** @export */
- resizableView: {
- /** @this {org.apache.flex.html.beads.ScrollingContainerView} */
- get: function() {
- return this._strand;
- }
- },
- /** @export */
- verticalScrollPosition: {
- /** @this {org.apache.flex.html.beads.ScrollingContainerView} */
- get: function() {
- return this._strand.scrollTop;
- },
- /** @this {org.apache.flex.html.beads.ScrollingContainerView} */
- set: function(value) {
- this._strand.scrollTop = value;
- }
- },
- /** @export */
- maxVerticalScrollPosition: {
- /** @this {org.apache.flex.html.beads.ScrollingContainerView} */
- get: function() {
- return this._strand.scrollHeight - this._strand.clientHeight;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/SliderThumbView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/SliderThumbView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/SliderThumbView.js
deleted file mode 100644
index 4ec086a..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/SliderThumbView.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html.beads.SliderThumbView');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.beads.SliderThumbView = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.SliderThumbView
- .prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SliderThumbView',
- qName: 'org.apache.flex.html.beads.SliderThumbView'}] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.SliderThumbView.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.SliderThumbView} */
- set: function(value) {
- this.strand_ = value;
-
- this.element = document.createElement('div');
- this.element.className = 'SliderThumb';
- this.element.id = 'thumb';
- this.element.style.backgroundColor = '#949494';
- this.element.style.border = 'thin solid #747474';
- this.element.style.position = 'relative';
- this.element.style.height = '30px';
- this.element.style.width = '10px';
- this.element.style.zIndex = '2';
- this.element.style.top = '-10px';
- this.element.style.left = '20px';
-
- this.strand_.element.appendChild(this.element);
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/SliderTrackView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/SliderTrackView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/SliderTrackView.js
deleted file mode 100644
index 9bdcd5f..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/SliderTrackView.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html.beads.SliderTrackView');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.beads.SliderTrackView = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.SliderTrackView
- .prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SliderTrackView',
- qName: 'org.apache.flex.html.beads.SliderTrackView'}] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.SliderTrackView.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.SliderTrackView} */
- set: function(value) {
- this.strand_ = value;
-
- this.element = document.createElement('div');
- this.element.className = 'SliderTrack';
- this.element.id = 'track';
- this.element.style.backgroundColor = '#E4E4E4';
- this.element.style.height = '10px';
- this.element.style.width = '200px';
- this.element.style.border = 'thin solid #C4C4C4';
- this.element.style.position = 'relative';
- this.element.style.left = '0px';
- this.element.style.top = '10px';
- this.element.style.zIndex = '1';
-
- this.strand_.element.appendChild(this.element);
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/TextInputWithBorderView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/TextInputWithBorderView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/TextInputWithBorderView.js
deleted file mode 100644
index 830fec5..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/TextInputWithBorderView.js
+++ /dev/null
@@ -1,45 +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.TextInputWithBorderView');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.beads.TextInputWithBorderView = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.TextInputWithBorderView
- .prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'TextInputWithBorderView',
- qName: 'org.apache.flex.html.beads.TextInputWithBorderView'}] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.TextInputWithBorderView.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.TextInputWithBorderView} */
- set: function(value) {
- this.strand_ = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
deleted file mode 100644
index de7dde4..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
+++ /dev/null
@@ -1,117 +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.TextItemRendererFactoryForArrayData');
-
-goog.require('org.apache.flex.core.IDataProviderItemRendererMapper');
-goog.require('org.apache.flex.core.IItemRenderer');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.events.EventDispatcher');
-goog.require('org.apache.flex.html.beads.models.ArraySelectionModel');
-goog.require('org.apache.flex.html.supportClasses.StringItemRenderer');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- * @implements {org.apache.flex.core.IItemRenderer}
- */
-org.apache.flex.html.beads.TextItemRendererFactoryForArrayData =
- function() {
- org.apache.flex.html.beads.TextItemRendererFactoryForArrayData.base(this, 'constructor');
-};
-goog.inherits(
- org.apache.flex.html.beads.TextItemRendererFactoryForArrayData,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.TextItemRendererFactoryForArrayData.
- prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'TextItemRendererFactoryForArrayData',
- qName: 'org.apache.flex.html.beads.TextItemRendererFactoryForArrayData' }],
- interfaces: [org.apache.flex.core.IItemRenderer] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.TextItemRendererFactoryForArrayData.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.TextItemRendererFactoryForArrayData} */
- set: function(value) {
- this.strand_ = value;
-
- this.model = value.getBeadByType(
- org.apache.flex.html.beads.models.ArraySelectionModel);
-
- this.listView = value.getBeadByType(
- org.apache.flex.html.beads.ListView);
- this.dataGroup = this.listView.dataGroup;
-
- this.model.addEventListener('dataProviderChanged',
- goog.bind(this.dataProviderChangedHandler, this));
-
- if (!this.itemRendererFactory)
- {
- var m2 = org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this.strand_, 'iItemRendererClassFactory');
- this.itemRendererFactory = new m2();
- this.strand_.addBead(this.itemRendererFactory);
- }
-
- this.dataProviderChangedHandler(null);
- },
- /** @this {org.apache.flex.html.beads.TextItemRendererFactoryForArrayData} */
- get: function() {
- return this.strand_;
- }
- },
- itemRendererFactory: {
- /** @this {org.apache.flex.html.beads.TextItemRendererFactoryForArrayData} */
- set: function(value) {
- this.itemRendererFactory_ = value;
- },
- /** @this {org.apache.flex.html.beads.TextItemRendererFactoryForArrayData} */
- get: function() {
- return this.itemRendererFactory_;
- }
- }
-});
-
-
-/**
- * @export
- * @param {Object} event The event that triggered the dataProvider change.
- */
-org.apache.flex.html.beads.TextItemRendererFactoryForArrayData.
- prototype.dataProviderChangedHandler = function(event) {
- var dp, i, n, opt;
-
- dp = this.model.dataProvider;
- n = dp.length;
- for (i = 0; i < n; i++) {
- var tf = this.itemRendererFactory.createItemRenderer(this.dataGroup);
- this.dataGroup.addElement(tf);
- tf.data = dp[i];
- tf.index = i;
- }
-
- var newEvent = new org.apache.flex.events.Event('itemsCreated');
- this.strand_.dispatchEvent(newEvent);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
deleted file mode 100644
index ea2362c..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
+++ /dev/null
@@ -1,127 +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.controllers.ItemRendererMouseController');
-
-goog.require('goog.events.Event');
-goog.require('goog.events.EventType');
-goog.require('org.apache.flex.core.IBeadController');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBeadController}
- */
-org.apache.flex.html.beads.controllers.ItemRendererMouseController = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.controllers.ItemRendererMouseController.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ItemRendererMouseController',
- qName: 'org.apache.flex.html.beads.controllers.ItemRendererMouseController' }],
- interfaces: [org.apache.flex.core.IBeadController] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.controllers.ItemRendererMouseController.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.controllers.ItemRendererMouseController} */
- set: function(value) {
- this.strand_ = value;
-
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEOVER,
- goog.bind(this.handleMouseOver, this));
-
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEOUT,
- goog.bind(this.handleMouseOut, this));
-
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEDOWN,
- goog.bind(this.handleMouseDown, this));
-
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEUP,
- goog.bind(this.handleMouseUp, this));
- }
- }
-});
-
-
-/**
- * @export
- * @param {Object} e The mouse event that triggered the hover.
- */
-org.apache.flex.html.beads.controllers.ItemRendererMouseController.prototype.handleMouseOver = function(e) {
-
- this.strand_.hovered = true;
-
- var newEvent = new MouseEvent('rollover');
- newEvent.initMouseEvent('rollover', false, false,
- e.view, e.detail, e.screenX, e.screenY,
- e.clientX, e.clientY, e.ctrlKey, e.altKey,
- e.shiftKey, e.metaKey, e.button, e.relatedTarget);
- this.strand_.itemRendererParent.dispatchEvent(newEvent);
-};
-
-
-/**
- * @export
- * @param {Object} e The mouse-out event.
- */
-org.apache.flex.html.beads.controllers.ItemRendererMouseController.prototype.handleMouseOut = function(e) {
-
- this.strand_.hovered = false;
-
- var newEvent = new MouseEvent('rollout');
- newEvent.initMouseEvent('rollout', false, false,
- e.view, e.detail, e.screenX, e.screenY,
- e.clientX, e.clientY, e.ctrlKey, e.altKey,
- e.shiftKey, e.metaKey, e.button, e.relatedTarget);
- this.strand_.itemRendererParent.dispatchEvent(newEvent);
-};
-
-
-/**
- * @export
- * @param {Object} event The mouse-down event.
- */
-org.apache.flex.html.beads.controllers.ItemRendererMouseController.prototype.handleMouseDown = function(event) {
-
- // ??
-};
-
-
-/**
- * @export
- * @param {Object} event The mouse-up event that triggers the selection.
- */
-org.apache.flex.html.beads.controllers.ItemRendererMouseController.prototype.handleMouseUp = function(event) {
-
- var newEvent = new goog.events.Event('selected');
-
- // normally you do not - and should not - change the target of an event,
- // but these events do not propagate nor bubble up the object tree, so
- // we have to force the event's target to be this item renderer instance.
-
- newEvent.target = this.strand_;
-
- // since the event is not going to up the chain, we also have to dispatch
- // it against its final destination.
-
- this.strand_.itemRendererParent.dispatchEvent(newEvent);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
deleted file mode 100644
index 282e8fd..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
+++ /dev/null
@@ -1,77 +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.controllers.ListSingleSelectionMouseController');
-
-goog.require('org.apache.flex.core.IBeadController');
-goog.require('org.apache.flex.core.ISelectableItemRenderer');
-goog.require('org.apache.flex.core.ISelectionModel');
-goog.require('org.apache.flex.html.beads.ListView');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBeadController}
- */
-org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ListSingleSelectionMouseController',
- qName: 'org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController' }],
- interfaces: [org.apache.flex.core.IBeadController] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController} */
- set: function(value) {
- this.strand_ = value;
-
- this.model = value.getBeadByType(
- org.apache.flex.core.ISelectionModel);
- this.listView = value.getBeadByType(
- org.apache.flex.html.beads.ListView);
-
- this.dataGroup = this.listView.dataGroup;
- this.dataGroup.addEventListener('selected',
- goog.bind(this.selectedHandler, this));
- }
- }
-});
-
-
-/**
- * @export
- * ListSingleSelectionMouseController}
- * @param {Object} event The event that triggered the selection.
- */
-org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController.prototype.selectedHandler =
- function(event) {
-
- var renderer = org.apache.flex.utils.Language.as(event.target, org.apache.flex.core.ISelectableItemRenderer);
- var index = renderer.index;
- this.model.selectedIndex = index;
-
- this.strand_.dispatchEvent('change');
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/SliderMouseController.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
deleted file mode 100644
index 3801d70..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
+++ /dev/null
@@ -1,172 +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.controllers.SliderMouseController');
-
-goog.require('org.apache.flex.html.beads.SliderThumbView');
-goog.require('org.apache.flex.html.beads.SliderTrackView');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.beads.controllers.SliderMouseController =
- function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.controllers.SliderMouseController.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SliderMouseController',
- qName: 'org.apache.flex.html.beads.controllers.SliderMouseController' }] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.controllers.SliderMouseController.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.controllers.SliderMouseController} */
- set: function(value) {
- this.strand_ = value;
-
- this.track = this.strand_.getBeadByType(
- org.apache.flex.html.beads.SliderTrackView);
- this.thumb = this.strand_.getBeadByType(
- org.apache.flex.html.beads.SliderThumbView);
-
- goog.events.listen(this.track.element, goog.events.EventType.CLICK,
- this.handleTrackClick, false, this);
-
- goog.events.listen(this.thumb.element, goog.events.EventType.MOUSEDOWN,
- this.handleThumbDown, false, this);
- }
- }
-});
-
-
-/**
- * SliderMouseController}
- * @param {Event} event The event triggering the function.
- * @return {void} Handles click on track.
- */
-org.apache.flex.html.beads.controllers.SliderMouseController.
- prototype.handleTrackClick =
- function(event)
- {
- var xloc = event.clientX;
- var p = Math.min(1, xloc / parseInt(this.track.element.style.width, 10));
- var n = p * (this.strand_.maximum - this.strand_.minimum) +
- this.strand_.minimum;
-
- this.strand_.value = n;
-
- this.origin = parseInt(this.thumb.element.style.left, 10);
- this.position = parseInt(this.thumb.element.style.left, 10);
-
- this.calcValFromMousePosition(event, true);
-
- this.strand_.dispatchEvent(new org.apache.flex.events.Event('valueChange'));
-};
-
-
-/**
- * SliderMouseController}
- * @param {Event} event The event triggering the function.
- * @return {void} Handles mouse-down on the thumb.
- */
-org.apache.flex.html.beads.controllers.SliderMouseController.
- prototype.handleThumbDown =
- function(event)
- {
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEUP,
- this.handleThumbUp, false, this);
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEMOVE,
- this.handleThumbMove, false, this);
-
- this.origin = event.clientX;
- this.position = parseInt(this.thumb.element.style.left, 10);
-};
-
-
-/**
- * SliderMouseController}
- * @param {Event} event The event triggering the function.
- * @return {void} Handles mouse-up on the thumb.
- */
-org.apache.flex.html.beads.controllers.SliderMouseController.
- prototype.handleThumbUp =
- function(event)
- {
- goog.events.unlisten(this.strand_.element, goog.events.EventType.MOUSEUP,
- this.handleThumbUp, false, this);
- goog.events.unlisten(this.strand_.element, goog.events.EventType.MOUSEMOVE,
- this.handleThumbMove, false, this);
-
- this.calcValFromMousePosition(event, false);
-
- this.strand_.dispatchEvent(new org.apache.flex.events.Event('valueChange'));
-};
-
-
-/**
- * SliderMouseController}
- * @param {Event} event The event triggering the function.
- * @return {void} Handles mouse-move on the thumb.
- */
-org.apache.flex.html.beads.controllers.SliderMouseController.
- prototype.handleThumbMove =
- function(event)
- {
- this.calcValFromMousePosition(event, false);
-
- this.strand_.dispatchEvent(new org.apache.flex.events.Event('valueChange'));
-};
-
-
-/**
- * SliderMouseController}
- * @param {Event} event The event triggering the function.
- * @param {boolean} useOffset If true, event.offsetX is used in the calculation.
- * @return {void} Determines the new value based on the movement of the mouse
- * along the slider.
- */
-org.apache.flex.html.beads.controllers.SliderMouseController.
- prototype.calcValFromMousePosition =
- function(event, useOffset)
- {
- var deltaX = (useOffset ? event.offsetX : event.clientX) - this.origin;
- var thumbW = parseInt(this.thumb.element.style.width, 10) / 2;
- var newX = this.position + deltaX;
-
- var p = newX / parseInt(this.track.element.style.width, 10);
- var n = p * (this.strand_.maximum - this.strand_.minimum) +
- this.strand_.minimum;
- n = this.strand_.snap(n);
- if (n < this.strand_.minimum) n = this.strand_.minimum;
- else if (n > this.strand_.maximum) n = this.strand_.maximum;
-
- p = (n - this.strand_.minimum) / (this.strand_.maximum -
- this.strand_.minimum);
- newX = p * parseInt(this.track.element.style.width, 10);
-
- this.thumb.element.style.left = String(newX -
- parseInt(this.thumb.element.style.width, 10) / 2) + 'px';
-
- this.strand_.value = n;
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
deleted file mode 100644
index 48a0ed8..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
+++ /dev/null
@@ -1,85 +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.controllers.SpinnerMouseController');
-
-goog.require('org.apache.flex.html.TextButton');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.beads.controllers.SpinnerMouseController =
- function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.controllers.SpinnerMouseController.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SpinnerMouseController',
- qName: 'org.apache.flex.html.beads.controllers.SpinnerMouseController' }] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.controllers.SpinnerMouseController.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.controllers.SpinnerMouseController} */
- set: function(value) {
- this.strand_ = value;
-
- this.incrementButton = this.strand_.incrementButton;
- this.decrementButton = this.strand_.decrementButton;
-
- goog.events.listen(this.incrementButton.element, goog.events.EventType.CLICK,
- goog.bind(this.handleIncrementClick, this));
-
- goog.events.listen(this.decrementButton.element, goog.events.EventType.CLICK,
- goog.bind(this.handleDecrementClick, this));
- }
- }
-});
-
-
-/**
- * SpinnerMouseController}
- * @param {Object} event The event object.
- */
-org.apache.flex.html.beads.controllers.SpinnerMouseController.
- prototype.handleIncrementClick = function(event)
- {
- var newValue = this.strand_.snap(Math.min(this.strand_.maximum,
- this.strand_.value +
- this.strand_.stepSize));
- this.strand_.value = newValue;
-};
-
-
-/**
- * SpinnerMouseController}
- * @param {Event} event The event object.
- */
-org.apache.flex.html.beads.controllers.SpinnerMouseController.
- prototype.handleDecrementClick =
- function(event)
- {
- var newValue = this.strand_.snap(Math.max(this.strand_.minimum,
- this.strand_.value -
- this.strand_.stepSize));
- this.strand_.value = newValue;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/BasicLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/BasicLayout.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/BasicLayout.js
deleted file mode 100644
index 4a7401b..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/BasicLayout.js
+++ /dev/null
@@ -1,125 +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.layouts.BasicLayout');
-
-goog.require('org.apache.flex.core.IBeadLayout');
-goog.require('org.apache.flex.core.ILayoutChild');
-goog.require('org.apache.flex.core.ILayoutHost');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBeadLayout}
- */
-org.apache.flex.html.beads.layouts.BasicLayout =
- function() {
- this.strand_ = null;
- this.className = 'BasicLayout';
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.layouts.BasicLayout.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'BasicLayout',
- qName: 'org.apache.flex.html.beads.layouts.BasicLayout'}],
- interfaces: [org.apache.flex.core.IBeadLayout] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.layouts.BasicLayout.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.layouts.BasicLayout} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- }
- }
- }
-});
-
-
-/**
- */
-org.apache.flex.html.beads.layouts.BasicLayout.
- prototype.layout = function() {
- var i, n, h, w;
-
- var viewBead = this.strand_.getBeadByType(org.apache.flex.core.ILayoutHost);
- var contentView = viewBead.contentView;
- w = contentView.width;
- var hasWidth = !this.strand_.isWidthSizedToContent();
- h = contentView.height;
- var hasHeight = !this.strand_.isHeightSizedToContent();
- var maxHeight = 0;
- var maxWidth = 0;
- n = contentView.numElements;
- for (i = 0; i < n; i++) {
- var child = contentView.getElementAt(i);
- child.internalDisplay = 'block';
- var left = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'left');
- var right = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'right');
- var top = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'top');
- var bottom = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'bottom');
- var margin = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'margin');
- var marginLeft = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'margin-left');
- var marginRight = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'margin-right');
- var horizontalCenter =
- (marginLeft == 'auto' && marginRight == 'auto') ||
- (typeof(margin) === 'string' && margin == 'auto') ||
- (margin && margin.hasOwnProperty('length') &&
- ((margin.length < 4 && margin[1] == 'auto') ||
- (margin.length == 4 && margin[1] == 'auto' && margin[3] == 'auto')));
-
- if (!isNaN(left)) {
- child.positioner.style.position = 'absolute';
- child.positioner.style.left = left.toString() + 'px';
- }
- if (!isNaN(top)) {
- child.positioner.style.position = 'absolute';
- child.positioner.style.top = top.toString() + 'px';
- }
- if (!isNaN(right)) {
- child.positioner.style.position = 'absolute';
- child.positioner.style.right = right.toString() + 'px';
- }
- if (!isNaN(bottom)) {
- child.positioner.style.position = 'absolute';
- child.positioner.style.bottom = bottom.toString() + 'px';
- }
- if (horizontalCenter)
- {
- child.positioner.style.position = 'absolute';
- child.positioner.style.left = ((w - child.width) / 2).toString() + 'px';
- }
- child.dispatchEvent('sizeChanged');
- maxWidth = Math.max(maxWidth, child.positioner.offsetLeft + child.positioner.offsetWidth);
- maxHeight = Math.max(maxHeight, child.positioner.offsetTop + child.positioner.offsetHeight);
- }
- // if there are children and maxHeight is ok, use it.
- // maxHeight can be NaN if the child hasn't been rendered yet.
- if (!hasWidth && n > 0 && !isNaN(maxWidth)) {
- contentView.width = maxWidth;
- }
- if (!hasHeight && n > 0 && !isNaN(maxHeight)) {
- contentView.height = maxHeight;
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
deleted file mode 100644
index 04a3292..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.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.layouts.ButtonBarLayout');
-
-goog.require('org.apache.flex.core.IBeadLayout');
-goog.require('org.apache.flex.core.ILayoutHost');
-goog.require('org.apache.flex.html.beads.ListView');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBeadLayout}
- */
-org.apache.flex.html.beads.layouts.ButtonBarLayout =
- function() {
- this.strand_ = null;
-
- this.className = 'ButtonBarLayout';
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.layouts.ButtonBarLayout
- .prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ButtonBarLayout',
- qName: 'org.apache.flex.html.beads.layouts.ButtonBarLayout' }],
- interfaces: [org.apache.flex.core.IBeadLayout] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.layouts.ButtonBarLayout.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.layouts.ButtonBarLayout} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.element.style.display = 'block';
- }
- }
- },
- /** @export */
- buttonWidths: {
- /** @this {org.apache.flex.html.beads.layouts.ButtonBarLayout} */
- set: function(value) {
- this.buttonWidths_ = value;
- },
- /** @this {org.apache.flex.html.beads.layouts.ButtonBarLayout} */
- get: function() {
- return this.buttonWidths_;
- }
- }
-});
-
-
-/**
- * Performs the layout.
- */
-org.apache.flex.html.beads.layouts.ButtonBarLayout.
- prototype.layout = function() {
-
- var layoutParent = this.strand_.getBeadByType(org.apache.flex.core.ILayoutHost);
- var contentView = layoutParent.contentView;
- var itemRendererParent = contentView;
- var viewportModel = layoutParent.viewportModel;
-
- var n = itemRendererParent.numElements;
- var xpos = 0;
- var useWidth = contentView.width / n;
- var useHeight = contentView.height;
-
- for (var i = 0; i < n; i++)
- {
- var ir = itemRendererParent.getElementAt(i);
- ir.height = useHeight;
- ir.internalDisplay = 'inline-block';
- ir.positioner.style['vertical-align'] = 'middle';
- ir.positioner.style['text-align'] = 'center';
- ir.positioner.style['left-margin'] = 'auto';
- ir.positioner.style['right-margin'] = 'auto';
- ir.positioner.style['top-margin'] = 'auto';
- ir.positioner.style['bottom-margin'] = 'auto';
-
- if (this.buttonWidths_ && !isNaN(this.buttonWidths_[i])) ir.width = this.buttonWidths_[i];
- else ir.width = useWidth;
-
- if (ir.positioner.style.display == 'none')
- ir.positioner.lastDisplay_ = 'inline-block';
- else
- ir.positioner.style.display = 'inline-block';
-
- xpos += ir.width;
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/HorizontalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/HorizontalLayout.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/HorizontalLayout.js
deleted file mode 100644
index b5ede3d..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/HorizontalLayout.js
+++ /dev/null
@@ -1,100 +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.layouts.HorizontalLayout');
-
-goog.require('org.apache.flex.core.IBeadLayout');
-goog.require('org.apache.flex.core.ILayoutHost');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBeadLayout}
- */
-org.apache.flex.html.beads.layouts.HorizontalLayout =
- function() {
- this.strand_ = null;
- this.className = 'HorizontalLayout';
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.layouts.HorizontalLayout.
- prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'HorizontalLayout',
- qName: 'org.apache.flex.html.beads.layouts.HorizontalLayout' }],
- interfaces: [org.apache.flex.core.IBeadLayout] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.layouts.HorizontalLayout.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.layouts.HorizontalLayout} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.element.style.display = 'block';
- }
- }
- }
-});
-
-
-/**
- */
-org.apache.flex.html.beads.layouts.HorizontalLayout.
- prototype.layout = function() {
- var children, i, n;
-
- var viewBead = this.strand_.getBeadByType(org.apache.flex.core.ILayoutHost);
- var contentView = viewBead.contentView;
- children = contentView.internalChildren();
- var hasHeight = !this.strand_.isHeightSizedToContent();
- var hasWidth = !this.strand_.isWidthSizedToContent();
- var maxHeight = 0;
- var computedWidth = 0;
- n = children.length;
- for (i = 0; i < n; i++)
- {
- var child = children[i];
- child.flexjs_wrapper.internalDisplay = 'inline-block';
- if (child.style.display == 'none')
- child.lastDisplay_ = 'inline-block';
- else
- child.style.display = 'inline-block';
- maxHeight = Math.max(maxHeight, child.offsetHeight);
- if (!hasWidth) {
- var cv = window.getComputedStyle(child);
- var mls = cv.getPropertyValue('margin-left');
- var ml = Number(mls.substring(0, mls.length - 2));
- var mrs = cv.getPropertyValue('margin-right');
- var mr = Number(mrs.substring(0, mrs.length - 2));
- computedWidth += ml + child.offsetWidth + mr;
- }
- child.flexjs_wrapper.dispatchEvent('sizeChanged');
- }
- // if there are children and maxHeight is ok, use it.
- // maxHeight can be NaN if the child hasn't been rendered yet.
- if (!hasHeight && n > 0 && !isNaN(maxHeight)) {
- contentView.height = maxHeight;
- }
- if (!hasWidth && n > 0 && !isNaN(computedWidth)) {
- contentView.width = computedWidth + 1; // some browser need one more pixel
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/TileLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/TileLayout.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/TileLayout.js
deleted file mode 100644
index a27b630..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/TileLayout.js
+++ /dev/null
@@ -1,168 +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.layouts.TileLayout');
-
-goog.require('org.apache.flex.core.IBeadLayout');
-goog.require('org.apache.flex.core.ILayoutHost');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBeadLayout}
- */
-org.apache.flex.html.beads.layouts.TileLayout =
- function() {
- this.strand_ = null;
- this.className = 'TileLayout';
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.layouts.TileLayout.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'TileLayout',
- qName: 'org.apache.flex.html.beads.layouts.TileLayout'}],
- interfaces: [org.apache.flex.core.IBeadLayout] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.layouts.TileLayout.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.layouts.TileLayout} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- }
- }
- },
- /** @export */
- numColumns: {
- /** @this {org.apache.flex.html.beads.layouts.TileLayout} */
- get: function() {
- return this._numColumns;
- },
- /** @this {org.apache.flex.html.beads.layouts.TileLayout} */
- set: function(value) {
- this._numColumns = value;
- }
- },
- /** @export */
- columnWidth: {
- /** @this {org.apache.flex.html.beads.layouts.TileLayout} */
- get: function() {
- return this._columnWidth;
- },
- /** @this {org.apache.flex.html.beads.layouts.TileLayout} */
- set: function(value) {
- this._columnWidth = value;
- }
- },
- /** @export */
- rowHeight: {
- /** @this {org.apache.flex.html.beads.layouts.TileLayout} */
- get: function() {
- return this._rowHeight;
- },
- /** @this {org.apache.flex.html.beads.layouts.TileLayout} */
- set: function(value) {
- this._rowHeight = value;
- }
- }
-});
-
-
-/**
- */
-org.apache.flex.html.beads.layouts.TileLayout.
- prototype.layout = function() {
- var children, i, n, child;
- var xpos, ypos, useWidth, useHeight;
-
- var viewBead = this.strand_.getBeadByType(org.apache.flex.core.ILayoutHost);
- var contentView = viewBead.contentView;
- children = contentView.internalChildren();
- n = children.length;
- if (n === 0) return;
-
- var realN = n;
- for (i = 0; i < n; i++)
- {
- child = children[i].flexjs_wrapper;
- if (!child.visible) realN--;
- }
-
- xpos = 0;
- ypos = 0;
- useWidth = this.columnWidth;
- useHeight = this.rowHeight;
-
- if (isNaN(useWidth)) useWidth = Math.floor(this.strand_.width / this.numColumns); // + gap
- if (isNaN(useHeight)) {
- // given the width and total number of items, how many rows?
- var numRows = Math.floor(realN / this.numColumns);
- useHeight = Math.floor(this.strand_.height / numRows);
- }
-
- for (i = 0; i < n; i++)
- {
- child = children[i].flexjs_wrapper;
- if (!child.visible) continue;
- child.internalDisplay = 'inline-block';
- child.width = useWidth;
- child.height = useHeight;
- }
-/*
- var realN = n;
- for (i = 0; i < n; i++)
- {
- child = children[i].flexjs_wrapper;
- if (!child.get_visible()) realN--;
- }
-
- xpos = 0;
- ypos = 0;
- useWidth = this.columnWidth;
- useHeight = this.rowHeight;
-
- if (isNaN(useWidth)) useWidth = Math.floor(this.strand_.width / this.numColumns); // + gap
- if (isNaN(useHeight)) {
- // given the width and total number of items, how many rows?
- var numRows = Math.floor(realN / this.numColumns);
- useHeight = Math.floor(this.strand_.height / numRows);
- }
-
- for (i = 0; i < n; i++)
- {
- child = children[i].flexjs_wrapper;
- if (!child.visible) continue;
- child.internalDisplay = 'inline-block';
- child.width = useWidth;
- child.height = useHeight;
- child.x = xpos;
- child.y = ypos;
-
- xpos += useWidth;
-
- if (((i + 1) % this.numColumns) === 0) {
- xpos = 0;
- ypos += useHeight;
- }
- }
-*/
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/VerticalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/VerticalLayout.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/VerticalLayout.js
deleted file mode 100644
index b179288..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/VerticalLayout.js
+++ /dev/null
@@ -1,97 +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.layouts.VerticalLayout');
-
-goog.require('org.apache.flex.core.IBeadLayout');
-goog.require('org.apache.flex.core.ILayoutHost');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IBeadLayout}
- */
-org.apache.flex.html.beads.layouts.VerticalLayout =
- function() {
- this.strand_ = null;
- this.className = 'VerticalLayout';
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.layouts.VerticalLayout.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'VerticalLayout',
- qName: 'org.apache.flex.html.beads.layouts.VerticalLayout'}],
- interfaces: [org.apache.flex.core.IBeadLayout] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.layouts.VerticalLayout.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.layouts.VerticalLayout} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- }
- },
- /** @this {org.apache.flex.html.beads.layouts.VerticalLayout} */
- get: function() {
- return this.strand_;
- }
- }
-});
-
-
-/**
- */
-org.apache.flex.html.beads.layouts.VerticalLayout.
- prototype.layout = function() {
- var children, i, n;
-
- var viewBead = this.strand_.getBeadByType(org.apache.flex.core.ILayoutHost);
- var contentView = viewBead.contentView;
- children = contentView.internalChildren();
- var scv = getComputedStyle(this.strand_.positioner);
- var hasWidth = !this.strand_.isWidthSizedToContent();
- var maxWidth = 0;
- n = children.length;
- for (i = 0; i < n; i++)
- {
- var child = children[i];
- child.flexjs_wrapper.internalDisplay = 'block';
- if (child.style.display === 'none') {
- child.lastDisplay_ = 'block';
- } else {
- // block elements don't measure width correctly so set to inline for a second
- child.style.display = 'inline-block';
- maxWidth = Math.max(maxWidth, child.offsetLeft + child.offsetWidth);
- child.style.display = 'block';
- }
- child.flexjs_wrapper.dispatchEvent('sizeChanged');
- }
- if (!hasWidth && n > 0 && !isNaN(maxWidth)) {
- var pl = scv.getPropertyValue('padding-left');
- var pr = scv.getPropertyValue('padding-right');
- pl = parseInt(pl.substring(0, pl.length - 2), 10);
- pr = parseInt(pr.substring(0, pr.length - 2), 10);
- maxWidth += pl + pr;
- contentView.width = maxWidth;
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ArraySelectionModel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
deleted file mode 100644
index b22cf27..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
+++ /dev/null
@@ -1,127 +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.ArraySelectionModel');
-
-goog.require('org.apache.flex.core.ISelectionModel');
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- * @implements {org.apache.flex.core.ISelectionModel}
- */
-org.apache.flex.html.beads.models.ArraySelectionModel =
- function() {
- org.apache.flex.html.beads.models.ArraySelectionModel.base(this, 'constructor');
- this.className = 'ArraySelectionModel';
-};
-goog.inherits(
- org.apache.flex.html.beads.models.ArraySelectionModel,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.models.ArraySelectionModel.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ArraySelectionModel',
- qName: 'org.apache.flex.html.beads.models.ArraySelectionModel' }],
- interfaces: [org.apache.flex.core.ISelectionModel] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.models.ArraySelectionModel.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.models.ArraySelectionModel} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- dataProvider: {
- /** @this {org.apache.flex.html.beads.models.ArraySelectionModel} */
- get: function() {
- return this.dataProvider_;
- },
- /** @this {org.apache.flex.html.beads.models.ArraySelectionModel} */
- set: function(value) {
- if (value === this.dataProvider_) return;
- this.dataProvider_ = value;
- this.dispatchEvent('dataProviderChanged');
- }
- },
- /** @export */
- selectedIndex: {
- /** @this {org.apache.flex.html.beads.models.ArraySelectionModel} */
- get: function() {
- return this.selectedIndex_;
- },
- /** @this {org.apache.flex.html.beads.models.ArraySelectionModel} */
- set: function(value) {
- if (value === this.selectedIndex_) return;
- this.selectedIndex_ = value;
- this.dispatchEvent('selectedIndexChanged');
- }
- },
- /** @export */
- selectedItem: {
- /** @this {org.apache.flex.html.beads.models.ArraySelectionModel} */
- get: function() {
- var si;
-
- si = this.selectedIndex_;
-
- if (!this.dataProvider_ || si < 0 ||
- si >= this.dataProvider_.length) {
- return null;
- }
-
- return this.dataProvider_[si];
- },
- /** @this {org.apache.flex.html.beads.models.ArraySelectionModel} */
- set: function(value) {
- // find item in dataProvider and set selectedIndex or -1 if not exists
-
- this.selectedIndex_ = -1;
- var n = this.dataProvider_.length;
- for (var i = 0; i < n; i++) {
- var item = this.dataProvider_[i];
- if (item == value) {
- this.selectedIndex_ = i;
- break;
- }
- }
-
- this.dispatchEvent('selectedItemChanged');
- this.dispatchEvent('selectedIndexChanged');
- }
- },
- /** @export */
- labelField: {
- /** @this {org.apache.flex.html.beads.models.ArraySelectionModel} */
- get: function() {
- return this.labelField_;
- },
- /** @this {org.apache.flex.html.beads.models.ArraySelectionModel} */
- set: function(value) {
- this.labelField_ = value;
- this.dispatchEvent('labelFieldChanged');
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ImageModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ImageModel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ImageModel.js
deleted file mode 100644
index d5db7c9..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/models/ImageModel.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html.beads.models.ImageModel');
-
-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.ImageModel =
- function() {
- org.apache.flex.html.beads.models.ImageModel.base(this, 'constructor');
-};
-goog.inherits(
- org.apache.flex.html.beads.models.ImageModel,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.models.ImageModel.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ImageModel',
- qName: 'org.apache.flex.html.beads.models.ImageModel'}],
- interfaces: [org.apache.flex.core.IBeadModel]};
-
-
-Object.defineProperties(org.apache.flex.html.beads.models.ImageModel.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.models.ImageModel} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- source: {
- /** @this {org.apache.flex.html.beads.models.ImageModel} */
- get: function() {
- return this.source_;
- },
- /** @this {org.apache.flex.html.beads.models.ImageModel} */
- set: function(value) {
- this.source_ = value;
- this.dispatchEvent('sourceChanged');
- }
- }
-});
[45/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - Fix
DesktopMap example build script to work with GoogleMaps again.
Posted by ah...@apache.org.
Fix DesktopMap example build script to work with GoogleMaps again.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/87fbdb9e
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/87fbdb9e
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/87fbdb9e
Branch: refs/heads/develop
Commit: 87fbdb9e982632cf0f204a166601b13c62020555
Parents: dd81a26
Author: Peter Ent <pe...@apache.org>
Authored: Wed Dec 16 16:08:21 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Dec 16 16:08:21 2015 -0500
----------------------------------------------------------------------
examples/flexjs/DesktopMap/build.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/87fbdb9e/examples/flexjs/DesktopMap/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DesktopMap/build.xml b/examples/flexjs/DesktopMap/build.xml
index d50fee5..d77d87d 100644
--- a/examples/flexjs/DesktopMap/build.xml
+++ b/examples/flexjs/DesktopMap/build.xml
@@ -63,6 +63,8 @@
<property name="AIR_HOME" value="${env.AIR_HOME}"/>
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc"/>
+
<condition property="adl" value="adl.exe">
<os family="windows"/>
@@ -82,7 +84,7 @@
<include file="${basedir}/../../build_example.xml" />
- <target name="main" depends="clean,build_example.compileair,build_example.compilejsair" description="Clean build of ${example}">
+ <target name="main" depends="clean,build_example.compilejsair" description="Clean build of ${example}">
</target>
<target name="clean">
[43/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] -
Competed back-port of GoogleMaps.
Posted by ah...@apache.org.
Competed back-port of GoogleMaps.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/325df7b0
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/325df7b0
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/325df7b0
Branch: refs/heads/develop
Commit: 325df7b0f40c015374e4bd29824d9db751d9d2e7
Parents: c3c2403
Author: Peter Ent <pe...@apache.org>
Authored: Wed Dec 16 10:30:29 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Dec 16 10:30:29 2015 -0500
----------------------------------------------------------------------
.../flexjs/MapSearch/src/MyInitialView.mxml | 4 +-
frameworks/projects/GoogleMaps/as/defaults.css | 2 +-
.../org/apache/flex/maps/google/GoogleMap.as | 10 +-
.../flex/maps/google/beads/GoogleMapView.as | 235 +++++----
.../apache/flex/maps/google/beads/MapView.as | 515 -------------------
.../flex/maps/google/beads/MapView_original.as | 515 +++++++++++++++++++
.../apache/flex/maps/google/models/MapModel.as | 60 +--
.../projects/GoogleMaps/google-manifest.xml | 2 +-
8 files changed, 672 insertions(+), 671 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/325df7b0/examples/flexjs/MapSearch/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MapSearch/src/MyInitialView.mxml b/examples/flexjs/MapSearch/src/MyInitialView.mxml
index bf302fa..0269c58 100644
--- a/examples/flexjs/MapSearch/src/MyInitialView.mxml
+++ b/examples/flexjs/MapSearch/src/MyInitialView.mxml
@@ -112,7 +112,7 @@ limitations under the License.
*/
private function onMarkerClicked(event:org.apache.flex.events.Event):void
{
- var marker:Marker = map.selectedMarker;
+ var marker:Marker = map.selectedMarker as Marker;
map.setZoom(12);
map.setCenter(marker.getPosition());
}
@@ -182,7 +182,7 @@ limitations under the License.
dataProvider="{MyModel(applicationModel).cities}" />
</js:Container>
- <google:GoogleMap id="map" width="450" height="300" className="MainMap"
+ <google:Map id="map" width="450" height="300" className="MainMap"
token="AIzaSyDkQgg2iojLCYeuW6hK7DkuAHD-SwJJhdE"
ready="onMapReady()"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/325df7b0/frameworks/projects/GoogleMaps/as/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/defaults.css b/frameworks/projects/GoogleMaps/as/defaults.css
index 260517a..214e84f 100644
--- a/frameworks/projects/GoogleMaps/as/defaults.css
+++ b/frameworks/projects/GoogleMaps/as/defaults.css
@@ -19,7 +19,7 @@
@namespace g "library://ns.apache.org/flexjs/google";
-g|GoogleMap
+g|Map
{
IBeadView: ClassReference("org.apache.flex.maps.google.beads.GoogleMapView");
IBeadModel: ClassReference("org.apache.flex.maps.google.models.MapModel");
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/325df7b0/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/GoogleMap.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/GoogleMap.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/GoogleMap.as
index 64ae26b..e662e41 100644
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/GoogleMap.as
+++ b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/GoogleMap.as
@@ -26,11 +26,8 @@ package org.apache.flex.maps.google
import org.apache.flex.maps.google.beads.GoogleMapView;
import org.apache.flex.maps.google.models.MapModel;
- COMPILE::JS {
- import google.maps.LatLng;
- import google.maps.Marker;
- import org.apache.flex.core.WrappedHTMLElement;
- }
+ import google.maps.LatLng;
+ import google.maps.Marker;
[Event(name="ready", type="org.apache.flex.events.Event")]
[Event(name="centered", type="org.apache.flex.events.Event")]
@@ -77,7 +74,6 @@ package org.apache.flex.maps.google
MapModel(model).token = value;
}
- COMPILE::JS
public function get selectedMarker():Marker
{
return MapModel(model).selectedMarker;
@@ -103,7 +99,6 @@ package org.apache.flex.maps.google
GoogleMapView(view).centerOnAddress(address);
}
- COMPILE::JS
public function setCenter(location:LatLng):void
{
GoogleMapView(view).setCenter(location);
@@ -119,7 +114,6 @@ package org.apache.flex.maps.google
GoogleMapView(view).markAddress(address);
}
- COMPILE::JS
public function createMarker(location:LatLng):Marker
{
return GoogleMapView(view).createMarker(location);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/325df7b0/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
index 61c31e3..f8fb790 100644
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
+++ b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
@@ -23,7 +23,7 @@ package org.apache.flex.maps.google.beads
import flash.html.HTMLLoader;
import flash.net.URLRequest;
}
-
+
import org.apache.flex.core.BeadViewBase;
import org.apache.flex.core.IBeadModel;
import org.apache.flex.core.IBeadView;
@@ -33,24 +33,25 @@ package org.apache.flex.maps.google.beads
import org.apache.flex.events.IEventDispatcher;
import org.apache.flex.maps.google.GoogleMap;
import org.apache.flex.maps.google.models.MapModel;
-
+
COMPILE::JS {
import goog.bind;
- import google.maps.event;
- import google.maps.Geocoder;
- import google.maps.GeocoderResult;
- import google.maps.GeocoderStatus;
- import google.maps.LatLng;
- import google.maps.Map;
- import google.maps.Marker;
- import google.maps.places.PlaceResult;
- import google.maps.places.PlacesService;
- import google.maps.places.PlacesServiceStatus;
}
-
+
+ import google.maps.event;
+ import google.maps.Geocoder;
+ import google.maps.GeocoderResult;
+ import google.maps.GeocoderStatus;
+ import google.maps.LatLng;
+ import google.maps.Map;
+ import google.maps.Marker;
+ import google.maps.places.PlaceResult;
+ import google.maps.places.PlacesService;
+ import google.maps.places.PlacesServiceStatus;
+
/**
* The MapView bead class displays a Google Map using HTMLLoader.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -63,42 +64,39 @@ package org.apache.flex.maps.google.beads
{
super();
}
-
- private var map:Map;
+
+ private var realMap:Map;
private var geocoder:Geocoder;
private var initialized:Boolean = false;
private var markers:Array;
private var searchResults:Array;
private var service:PlacesService;
-
+
private var _strand:IStrand;
-
+
override public function set strand(value:IStrand):void
{
super.strand = value;
_strand = value;
-
+
var token:String = (_strand as GoogleMap).token;
var src:String = 'https://maps.googleapis.com/maps/api/js?v=3.exp';
if (token)
src += '&key=' + token;
- src += '&libraries=places&sensor=false&callback=mapInit';
-
+ src += '&libraries=geometry,places&sensor=false&callback=mapInit';
+
var script:HTMLScriptElement = document.createElement('script') as HTMLScriptElement;
script.type = 'text/javascript';
script.src = src;
-
+
window['mapView'] = this;
window['mapInit'] = function():void {
(this['mapView'] as GoogleMapView).finishInitialization();
}
-
+
document.head.appendChild(script);
-
- var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- model.addEventListener("zoomChanged", handleModelChange);
}
-
+
public function mapit( centerLat:Number, centerLng:Number, zoom:Number ):void
{
if (!initialized) {
@@ -108,42 +106,44 @@ package org.apache.flex.maps.google.beads
var mapOptions:Object = new Object();
mapOptions['center'] = model.currentCenter;
mapOptions['zoom'] = zoom;
-
- map = new Map((_strand as UIBase).element, mapOptions);
+
+ realMap = new Map((_strand as UIBase).element, mapOptions);
geocoder = null;
-
- google.maps.event.addListener(map, 'center_changed', goog.bind(centerChangeHandler, this));
- google.maps.event.addListener(map, 'bounds_changed', goog.bind(boundsChangeHandler, this));
- google.maps.event.addListener(map, 'zoom_changed', goog.bind(zoomChangeHandler, this));
+
+ model.addEventListener("zoomChanged", handleModelChange);
+
+ google.maps.event.addListener(realMap, 'center_changed', goog.bind(centerChangeHandler, this));
+ google.maps.event.addListener(realMap, 'bounds_changed', goog.bind(boundsChangeHandler, this));
+ google.maps.event.addListener(realMap, 'zoom_changed', goog.bind(zoomChangeHandler, this));
}
}
-
+
private function finishInitialization():void
{
mapit(37.333, -121.900, 12);
initialized = true;
dispatchEvent(new Event('ready'));
}
-
+
public function centerOnAddress(value:String):void
{
if (geocoder == null) geocoder = new Geocoder();
geocoder.geocode({address:value}, positionHandler);
}
-
+
public function setCenter(location:LatLng):void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
model.currentCenter = new LatLng(location.lat(), location.lng());
- map.setCenter(model.currentCenter as LatLng);
+ realMap.setCenter(model.currentCenter as LatLng);
}
-
+
public function markCurrentLocation():void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
createMarker(model.currentCenter as LatLng);
}
-
+
public function markAddress(address:String):void
{
if (initialized) {
@@ -151,23 +151,23 @@ package org.apache.flex.maps.google.beads
geocoder.geocode({address:address}, geocodeHandler);
}
}
-
+
public function createMarker(location:LatLng):Marker
{
- var marker:Marker = new Marker({map:map, position:location});
+ var marker:Marker = new Marker({map:realMap, position:location});
google.maps.event.addListener(marker, 'click', goog.bind(markerClicked, this));
return marker;
}
-
+
public function nearbySearch(placeName:String):void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
-
+
if (markers == null) markers = [];
- service = new PlacesService(map);
+ service = new PlacesService(realMap);
service.nearbySearch({location:model.currentCenter, radius:5000, name:placeName}, searchResultsHandler);
}
-
+
public function clearSearchResults():void
{
if (markers) {
@@ -178,84 +178,85 @@ package org.apache.flex.maps.google.beads
markers = null;
}
}
-
+
// Callbacks
-
+
public function centerChangeHandler() : void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- model.currentCenter = map.getCenter();
-
+ model.currentCenter = realMap.getCenter();
+
var newEvent:Event = new Event('centered');
(_strand as IEventDispatcher).dispatchEvent(newEvent);
}
-
+
public function boundsChangeHandler():void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- model.currentCenter = map.getCenter();
-
+ model.currentCenter = realMap.getCenter();
+
var newEvent:Event = new Event('boundsChanged');
(_strand as IEventDispatcher).dispatchEvent(newEvent);
}
-
+
public function zoomChangeHandler():void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- model.currentCenter = map.getCenter();
-
+ model.currentCenter = realMap.getCenter();
+
var newEvent:Event = new Event('zoomChanged');
(_strand as IEventDispatcher).dispatchEvent(newEvent);
}
-
- public function positionHandler(results, status):void
+
+ public function positionHandler(results:Array, status:String):void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
if (status == GeocoderStatus.OK) {
model.currentCenter = results[0].geometry.location;
- map.setCenter(model.currentCenter as LatLng);
-
+ realMap.setCenter(model.currentCenter as LatLng);
+
// dispatch an event to indicate the map has been centered
}
}
-
- public function geocodeHandler(results, status):void
+
+ public function geocodeHandler(results:Array, status:String):void
{
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
if (status == GeocoderStatus.OK) {
model.currentCenter = results[0].geometry.location;
- map.setCenter(model.currentCenter as LatLng);
-
- var marker:Marker = new Marker({map:map, position:model.currentCenter});
+ realMap.setCenter(model.currentCenter as LatLng);
+
+ var marker:Marker = new Marker({map:realMap, position:model.currentCenter});
}
}
-
- public function searchResultsHandler(results, status):void
+
+ public function searchResultsHandler(results:Array, status:String):void
{
searchResults = [];
if (status == PlacesServiceStatus.OK) {
for(var i:int=0; i < results.length; i++) {
- var place:PlaceResult = new PlaceResult();
+ /*var place:PlaceResult = new PlaceResult();
place.geometry.location = new LatLng(results[i].geometry.location.lat(), 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;
+ place.vicinity = results[i].vicinity;*/
+ var place:Object = results[i];
searchResults.push(place);
-
+
var marker:Marker = createMarker(place.geometry.location);
marker.setTitle(place.name);
-
+
markers.push(marker);
}
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
model.searchResults = searchResults;
}
}
-
+
// Event handlers
-
+
/**
* Handles changes to properties of the MapModel. When this value is
* changed, the map itself has its zoom changed. This will trigger an
@@ -265,26 +266,27 @@ package org.apache.flex.maps.google.beads
{
if (event.type == "zoomChanged") {
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- map.setZoom(model.zoom);
+ realMap.setZoom(model.zoom);
}
}
-
+
public function markerClicked(marker:Marker, event:Object):void
{
var newMarker:Marker = new Marker();
- newMarker.setPosition(new LatLng(marker.getPosition().lat(), marker.getPosition().lng()));
+ var pos:LatLng = marker.getPosition();
+ newMarker.setPosition(pos);
newMarker.setTitle(marker.getTitle());
- newMarker.setMap(map);
-
+ newMarker.setMap(realMap);
+
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
model.selectedMarker = newMarker;
-
+
var newEvent:Event = new Event('markerClicked');
dispatchEvent(newEvent);
}
-
+
} // end ::JS
-
+
/**
* The AS3 version of GoogleMapView is geared toward its use with HTMLLoader
* for AIR.
@@ -304,12 +306,12 @@ package org.apache.flex.maps.google.beads
{
super();
}
-
+
private var _loader:HTMLLoader;
-
+
/**
* @copy org.apache.flex.core.IBead#strand
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -319,10 +321,10 @@ package org.apache.flex.maps.google.beads
{
super.strand = value;
}
-
+
/**
* Adjusts the map to the given coordinate and zoom level.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -332,11 +334,11 @@ package org.apache.flex.maps.google.beads
{
}
-
+
/**
* Finds the given address and places a marker on it. This function may be dropped
* since centerOnAddress + markCurrentLocation does the same thing.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -344,12 +346,12 @@ package org.apache.flex.maps.google.beads
*/
public function markAddress(address:String):void
{
-
+
}
-
+
/**
* Centers the map on the address given.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -357,12 +359,12 @@ package org.apache.flex.maps.google.beads
*/
public function centerOnAddress(address:String):void
{
-
+
}
-
+
/**
* Marks the current center of the map.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -370,13 +372,13 @@ package org.apache.flex.maps.google.beads
*/
public function markCurrentLocation():void
{
-
+
}
-
+
/**
* Performs a search near the center of map. The result is a set of
* markers displayed on the map.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -384,12 +386,25 @@ package org.apache.flex.maps.google.beads
*/
public function nearbySearch(placeName:String):void
{
-
+
+ }
+
+ /**
+ * Creates a marker for placement on the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function createMarker(location:LatLng):Marker
+ {
+ return null;
}
-
+
/**
* Removes all of the markers from the map
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -397,12 +412,12 @@ package org.apache.flex.maps.google.beads
*/
public function removeAllMarkers():void
{
-
+
}
-
+
/**
* Sets the zoom factor of the map.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -410,26 +425,26 @@ package org.apache.flex.maps.google.beads
*/
public function setZoom(zoom:Number):void
{
-
+
}
-
+
/**
* Sets the center of the map.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
- public function setCenter( location:Object ):void
+ public function setCenter( location:LatLng ):void
{
-
+
}
-
+
public function clearSearchResults():void
{
// not implemented
}
}
-
-}
\ No newline at end of file
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/325df7b0/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView.as
deleted file mode 100644
index 5cf153f..0000000
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView.as
+++ /dev/null
@@ -1,515 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-/**
- * NOTE
- *
- * THIS IS THE OLD MapView. The new one is GoogleMapView. This code exists to preserve
- * the AS/HTMLLoader version for use with AIR. Someday we will come back to this and make
- * it work again.
- */
-package org.apache.flex.maps.google.beads
-{
- COMPILE::AS3 {
- import flash.events.Event;
- import flash.html.HTMLLoader;
- import flash.net.URLRequest;
- }
-
- import org.apache.flex.core.BeadViewBase;
- import org.apache.flex.core.IBeadModel;
- import org.apache.flex.core.IBeadView;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.IEventDispatcher;
- import org.apache.flex.maps.google.GoogleMap;
- import org.apache.flex.maps.google.models.MapModel;
-
- /**
- * The MapView bead class displays a Google Map using HTMLLoader.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- COMPILE::JS
- public class MapView extends BeadViewBase implements IBeadView
- {
- public function MapView()
- {
- super();
- }
-
- private var _strand:IStrand;
-
- override public function set strand(value:IStrand):void
- {
- super.strand = value;
- _strand = value;
-
- var token:String = (_strand as GoogleMap).token;
- var src:String = 'https://maps.googleapis.com/maps/api/js?v=3.exp';
- if (token)
- src += '&key=' + token;
- src += '&libraries=places&sensor=false&callback=mapInit';
-
- var script:HTMLScriptElement = document.createElement('script') as HTMLScriptElement;
- script.type = 'text/javascript';
- script.src = src;
-
-/** window.mapView = this;
- window['mapInit'] = function() {
- (this.mapView._strand as GoogleMap).finishInitialization();
- }
-**/
- document.head.appendChild(script);
- }
- }
-
- COMPILE::AS3
- public class MapView extends BeadViewBase implements IBeadView
- {
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function MapView()
- {
- }
-
- private var _loader:HTMLLoader;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- override public function set strand(value:IStrand):void
- {
- super.strand = value;
-
- _loader = new HTMLLoader();
- _loader.x = 0;
- _loader.y = 0;
- _loader.width = UIBase(value).width;
- _loader.height = UIBase(value).height;
-
- IEventDispatcher(_strand).addEventListener("widthChanged",handleSizeChange);
- IEventDispatcher(_strand).addEventListener("heightChanged",handleSizeChange);
-
- var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
- model.addEventListener("zoomChanged", handleZoomChange);
- model.addEventListener("currentLocationChanged", handleCurrentLocationChange);
-
- (_strand as UIBase).addChild(_loader);
-
- var token:String = Map(_strand).token;
- if (token)
- page = pageTemplateStart + "&key=" + token + pageTemplateEnd;
- else
- page = pageTemplateStart + pageTemplateEnd;
-
- if (page) {
- _loader.loadString(page);
- _loader.addEventListener(flash.events.Event.COMPLETE, completeHandler);
- }
- }
-
- private function completeHandler(event:flash.events.Event):void
- {
- trace("htmlLoader complete");
-
- if (_loader && page) {
- _loader.window.map.center_changed = onMapCentered;
- _loader.window.map.bounds_changed = onMapBoundsChanged;
- _loader.window.map.zoom_changed = onMapZoomChanged;
- _loader.window.map.dragend = onMapDragEnd;
-
- // custom event handlers
- _loader.window.addEventListener("searchResults",onSearchResults);
- _loader.window.addEventListener("markerClicked",onMarkerClicked);
- }
-
- IEventDispatcher(_strand).dispatchEvent(new org.apache.flex.events.Event("ready"));
- }
-
- private function handleZoomChange(event:org.apache.flex.events.Event):void
- {
- if (_loader && page) {
- var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- setZoom(model.zoom);
- }
- }
-
- private function handleCurrentLocationChange(event:org.apache.flex.events.Event):void
- {
- if (_loader && page) {
- var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- setCenter(model.currentLocation.location);
- }
- }
-
- private var page:String;
-
- /**
- * Adjusts the map to the given coordinate and zoom level.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function mapit(lat:Number, lng:Number, zoomLevel:Number):void
- {
- if (_loader && page) {
- _loader.window.mapit(lat,lng,zoomLevel);
- }
- }
-
- /**
- * Finds the given address and places a marker on it. This function may be dropped
- * since centerOnAddress + markCurrentLocation does the same thing.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function geoCodeAndMarkAddress(address:String):void
- {
- if (_loader && page) {
- _loader.window.codeaddress(address);
- }
- }
-
- /**
- * Centers the map on the address given.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function centerOnAddress(address:String):void
- {
- if (_loader && page) {
- _loader.window.centeronaddress(address);
- }
- }
-
- /**
- * Marks the current center of the map.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function markCurrentLocation():void
- {
- if (_loader && page) {
- _loader.window.markcurrentlocation();
- }
- }
-
- /**
- * Performs a search near the center of map. The result is a set of
- * markers displayed on the map.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function nearbySearch(placeName:String):void
- {
- if (_loader && page) {
- _loader.window.nearbysearch(placeName);
- }
- }
-
- /**
- * Removes all of the markers from the map
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function removeAllMarkers():void
- {
- if (_loader && page) {
- _loader.window.clearmarkers();
- }
- }
-
- /**
- * Sets the zoom factor of the map.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function setZoom(zoom:Number):void
- {
- if (_loader && page) {
- _loader.window.map.setZoom(zoom);
- }
- }
-
- /**
- * Sets the center of the map.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function setCenter( location:LatLng ):void
- {
- if (_loader && page) {
- _loader.window.setCenter(location.lat, location.lng);
- }
- }
-
- /**
- * @private
- */
- private function handleSizeChange(event:org.apache.flex.events.Event):void
- {
- _loader.width = UIBase(_strand).width;
- _loader.height = UIBase(_strand).height;
- }
-
- /**
- * @private
- */
- private function onMapCentered():void
- {
- IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("centered") );
- }
-
- /**
- * @private
- */
- private function onMapBoundsChanged():void
- {
- IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("boundsChanged") );
- }
-
- /**
- * @private
- */
- private function onMapZoomChanged():void
- {
- IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("zoomChanged") );
- }
-
- /**
- * @private
- */
- private function onMapDragEnd():void
- {
- IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("dragEnd") );
- }
-
- /**
- * @private
- */
- private function onSearchResults(event:*):void
- {
- var results:Array = [];
- for(var i:int=0; i < event.results.length; i++) {
- var result:Place = new Place();
- result.geometry.location.lat = event.results[i].geometry.location.lat();
- result.geometry.location.lng = event.results[i].geometry.location.lng();
- result.icon = event.results[i].icon;
- result.id = event.results[i].id;
- result.name = event.results[i].name;
- result.reference = event.results[i].reference;
- result.vicinity = event.results[i].vicinity;
- results.push(result);
- }
-
- var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- model.searchResults = results;
- }
-
- /**
- * @private
- */
- private function onMarkerClicked(event:*):void
- {
- var marker:Marker = new Marker();
- marker.position.lat = event.marker.position.lat();
- marker.position.lng = event.marker.position.lng();
- marker.title = event.marker.title;
- marker.map = Map(_strand);
-
- var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
- model.selectedMarker = marker;
-
- IEventDispatcher(_strand).dispatchEvent(new org.apache.flex.events.Event("markerClicked"));
- }
-
- /**
- * @private
- * This page definition is used with HTMLLoader to bring in the Google Maps
- * API (a Google APP token is required).
- */
- private static var pageTemplateStart:String = '<!DOCTYPE html>'+
- '<html>'+
- ' <head>'+
- ' <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />'+
- ' <style type="text/css">'+
- ' html { height: 100% }'+
- ' body { height: 100%; margin: 0; padding: 0 }'+
- ' #map-canvas { height: 100% }'+
- ' </style>'+
- ' <script type="text/javascript"'+
- ' src="https://maps.googleapis.com/maps/api/js?v=3.exp';
-
- private static var pageTemplateEnd:String = '&libraries=places&sensor=false">'+
- ' </script>'+
- ' <script type="text/javascript">'+
- ' var map;'+
- ' var geocoder;'+
- ' var currentCenter;' +
- ' var service;' +
- ' var places;' +
- ' var markers;'+
- ' function mapit(lat, lng, zoomLevel) {' +
- ' currentCenter = new google.maps.LatLng(lat, lng);'+
- ' if (map == null) {' +
- ' var mapOptions = {'+
- ' center: currentCenter,'+
- ' zoom: zoomLevel'+
- ' };'+
- ' map = new google.maps.Map(document.getElementById("map-canvas"),'+
- ' mapOptions);' +
- ' }' +
- ' google.maps.event.addListener(map, "center_changed", function() {' +
- ' currentCenter = map.getCenter();' +
- ' });' +
- ' google.maps.event.addListener(map, "bounds_changed", function() {' +
- ' currentCenter = map.getCenter();' +
- ' });' +
- ' map.setCenter(currentCenter);'+
- ' };' +
- ' function setCenter(lat, lng) {' +
- ' currentCenter = new google.maps.LatLng(lat,lng);' +
- ' map.setCenter(currentCenter);' +
- ' };'+
- ' function codeaddress(address) {'+
- ' if (!geocoder) geocoder = new google.maps.Geocoder();'+
- ' geocoder.geocode( { "address": address}, function(results, status) {'+
- ' if (status == google.maps.GeocoderStatus.OK) {'+
- ' currentCenter = results[0].geometry.location;'+
- ' map.setCenter(currentCenter);'+
- ' var marker = new google.maps.Marker({'+
- ' map: map,'+
- ' position: currentCenter,'+
- ' });'+
- ' } else {'+
- ' alert("Geocode was not successful for the following reason: " + status);'+
- ' }'+
- ' });'+
- ' };'+
- ' function centeronaddress(address) {'+
- ' if (!geocoder) geocoder = new google.maps.Geocoder();'+
- ' geocoder.geocode( { "address": address}, function(results, status) {'+
- ' if (status == google.maps.GeocoderStatus.OK) {'+
- ' currentCenter = results[0].geometry.location;'+
- ' map.setCenter(currentCenter);' +
- ' } else {'+
- ' alert("Geocode was not successful for the following reason: " + status);'+
- ' }'+
- ' });'+
- ' };'+
- ' function markcurrentlocation() {'+
- ' createMarker(currentCenter);'+
- ' };' +
- ' function createMarker(location) {' +
- ' var marker = new google.maps.Marker({'+
- ' map: map,'+
- ' position: location,'+
- ' });' +
- ' google.maps.event.addListener(marker, "click", function() {' +
- ' markerClicked(marker);' +
- ' });'+
- ' return marker;'+
- ' };' +
- ' function clearmarkers() {' +
- ' if (markers) {' +
- ' for(var i=0; i < markers.length; i++) {' +
- ' markers[i].setMap(null);' +
- ' }' +
- ' markers = null;' +
- ' }' +
- ' };'+
- ' function nearbysearch(placename) {' +
- ' if (markers == null) markers = [];' +
- ' service = new google.maps.places.PlacesService(map);'+
- ' service.nearbySearch({"location": currentCenter,' +
- ' "radius": 5000,' +
- ' "name": placename}, function(results, status) {' +
- ' places = results;' +
- ' if (status == google.maps.places.PlacesServiceStatus.OK) {' +
- ' for(var i=0; i < results.length; i++) {' +
- ' var place = results[i];' +
- ' var marker = createMarker(place.geometry.location);' +
- ' marker.title = place.name;' +
- ' markers.push(marker);' +
- ' }' +
- ' var event = document.createEvent("Event");' +
- ' event.results = places;'+
- ' event.initEvent("searchResults", true, true);' +
- ' window.dispatchEvent(event);' +
- ' }' +
- ' });'+
- ' };' +
- ' function markerClicked(marker) {' +
- ' var newEvent = document.createEvent("Event");' +
- ' newEvent.marker = marker;' +
- ' newEvent.initEvent("markerClicked", true, true);' +
- ' window.dispatchEvent(newEvent);' +
- ' };'+
- ' function initialize() {'+
- ' mapit(37.333, -121.900, 12);'+
- ' };'+
- ' google.maps.event.addDomListener(window, "load", initialize);'+
- ' </script>'+
- ' </head>'+
- ' <body>'+
- ' <div id="map-canvas"></div>'+
- ' </body>'+
- '</html>';
- }
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/325df7b0/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView_original.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView_original.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView_original.as
new file mode 100644
index 0000000..d21314e
--- /dev/null
+++ b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView_original.as
@@ -0,0 +1,515 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ * NOTE
+ *
+ * THIS IS THE OLD MapView. The new one is GoogleMapView. This code exists to preserve
+ * the AS/HTMLLoader version for use with AIR. Someday we will come back to this and make
+ * it work again.
+ */
+package org.apache.flex.maps.google.beads
+{
+ COMPILE::AS3 {
+ import flash.events.Event;
+ import flash.html.HTMLLoader;
+ import flash.net.URLRequest;
+ }
+
+ import org.apache.flex.core.BeadViewBase;
+ import org.apache.flex.core.IBeadModel;
+ import org.apache.flex.core.IBeadView;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.core.UIBase;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.IEventDispatcher;
+ import org.apache.flex.maps.google.GoogleMap;
+ import org.apache.flex.maps.google.models.MapModel;
+
+ /**
+ * The MapView bead class displays a Google Map using HTMLLoader.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ COMPILE::JS
+ public class MapView_original extends BeadViewBase implements IBeadView
+ {
+ public function MapView_original()
+ {
+ super();
+ }
+
+ private var _strand:IStrand;
+
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+ _strand = value;
+
+ var token:String = (_strand as GoogleMap).token;
+ var src:String = 'https://maps.googleapis.com/maps/api/js?v=3.exp';
+ if (token)
+ src += '&key=' + token;
+ src += '&libraries=places&sensor=false&callback=mapInit';
+
+ var script:HTMLScriptElement = document.createElement('script') as HTMLScriptElement;
+ script.type = 'text/javascript';
+ script.src = src;
+
+/** window.mapView = this;
+ window['mapInit'] = function() {
+ (this.mapView._strand as GoogleMap).finishInitialization();
+ }
+**/
+ document.head.appendChild(script);
+ }
+ }
+
+ COMPILE::AS3
+ public class MapView_original extends BeadViewBase implements IBeadView
+ {
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function MapView_original()
+ {
+ }
+
+ private var _loader:HTMLLoader;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+
+ _loader = new HTMLLoader();
+ _loader.x = 0;
+ _loader.y = 0;
+ _loader.width = UIBase(value).width;
+ _loader.height = UIBase(value).height;
+
+ IEventDispatcher(_strand).addEventListener("widthChanged",handleSizeChange);
+ IEventDispatcher(_strand).addEventListener("heightChanged",handleSizeChange);
+
+ var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
+ model.addEventListener("zoomChanged", handleZoomChange);
+ model.addEventListener("currentLocationChanged", handleCurrentLocationChange);
+
+ (_strand as UIBase).addChild(_loader);
+
+ var token:String = Map(_strand).token;
+ if (token)
+ page = pageTemplateStart + "&key=" + token + pageTemplateEnd;
+ else
+ page = pageTemplateStart + pageTemplateEnd;
+
+ if (page) {
+ _loader.loadString(page);
+ _loader.addEventListener(flash.events.Event.COMPLETE, completeHandler);
+ }
+ }
+
+ private function completeHandler(event:flash.events.Event):void
+ {
+ trace("htmlLoader complete");
+
+ if (_loader && page) {
+ _loader.window.map.center_changed = onMapCentered;
+ _loader.window.map.bounds_changed = onMapBoundsChanged;
+ _loader.window.map.zoom_changed = onMapZoomChanged;
+ _loader.window.map.dragend = onMapDragEnd;
+
+ // custom event handlers
+ _loader.window.addEventListener("searchResults",onSearchResults);
+ _loader.window.addEventListener("markerClicked",onMarkerClicked);
+ }
+
+ IEventDispatcher(_strand).dispatchEvent(new org.apache.flex.events.Event("ready"));
+ }
+
+ private function handleZoomChange(event:org.apache.flex.events.Event):void
+ {
+ if (_loader && page) {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ setZoom(model.zoom);
+ }
+ }
+
+ private function handleCurrentLocationChange(event:org.apache.flex.events.Event):void
+ {
+ if (_loader && page) {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ setCenter(model.currentLocation.location);
+ }
+ }
+
+ private var page:String;
+
+ /**
+ * Adjusts the map to the given coordinate and zoom level.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function mapit(lat:Number, lng:Number, zoomLevel:Number):void
+ {
+ if (_loader && page) {
+ _loader.window.mapit(lat,lng,zoomLevel);
+ }
+ }
+
+ /**
+ * Finds the given address and places a marker on it. This function may be dropped
+ * since centerOnAddress + markCurrentLocation does the same thing.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function geoCodeAndMarkAddress(address:String):void
+ {
+ if (_loader && page) {
+ _loader.window.codeaddress(address);
+ }
+ }
+
+ /**
+ * Centers the map on the address given.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function centerOnAddress(address:String):void
+ {
+ if (_loader && page) {
+ _loader.window.centeronaddress(address);
+ }
+ }
+
+ /**
+ * Marks the current center of the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function markCurrentLocation():void
+ {
+ if (_loader && page) {
+ _loader.window.markcurrentlocation();
+ }
+ }
+
+ /**
+ * Performs a search near the center of map. The result is a set of
+ * markers displayed on the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function nearbySearch(placeName:String):void
+ {
+ if (_loader && page) {
+ _loader.window.nearbysearch(placeName);
+ }
+ }
+
+ /**
+ * Removes all of the markers from the map
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function removeAllMarkers():void
+ {
+ if (_loader && page) {
+ _loader.window.clearmarkers();
+ }
+ }
+
+ /**
+ * Sets the zoom factor of the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function setZoom(zoom:Number):void
+ {
+ if (_loader && page) {
+ _loader.window.map.setZoom(zoom);
+ }
+ }
+
+ /**
+ * Sets the center of the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function setCenter( location:LatLng ):void
+ {
+ if (_loader && page) {
+ _loader.window.setCenter(location.lat, location.lng);
+ }
+ }
+
+ /**
+ * @private
+ */
+ private function handleSizeChange(event:org.apache.flex.events.Event):void
+ {
+ _loader.width = UIBase(_strand).width;
+ _loader.height = UIBase(_strand).height;
+ }
+
+ /**
+ * @private
+ */
+ private function onMapCentered():void
+ {
+ IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("centered") );
+ }
+
+ /**
+ * @private
+ */
+ private function onMapBoundsChanged():void
+ {
+ IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("boundsChanged") );
+ }
+
+ /**
+ * @private
+ */
+ private function onMapZoomChanged():void
+ {
+ IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("zoomChanged") );
+ }
+
+ /**
+ * @private
+ */
+ private function onMapDragEnd():void
+ {
+ IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("dragEnd") );
+ }
+
+ /**
+ * @private
+ */
+ private function onSearchResults(event:*):void
+ {
+ var results:Array = [];
+ for(var i:int=0; i < event.results.length; i++) {
+ var result:Place = new Place();
+ result.geometry.location.lat = event.results[i].geometry.location.lat();
+ result.geometry.location.lng = event.results[i].geometry.location.lng();
+ result.icon = event.results[i].icon;
+ result.id = event.results[i].id;
+ result.name = event.results[i].name;
+ result.reference = event.results[i].reference;
+ result.vicinity = event.results[i].vicinity;
+ results.push(result);
+ }
+
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.searchResults = results;
+ }
+
+ /**
+ * @private
+ */
+ private function onMarkerClicked(event:*):void
+ {
+ var marker:Marker = new Marker();
+ marker.position.lat = event.marker.position.lat();
+ marker.position.lng = event.marker.position.lng();
+ marker.title = event.marker.title;
+ marker.map = Map(_strand);
+
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.selectedMarker = marker;
+
+ IEventDispatcher(_strand).dispatchEvent(new org.apache.flex.events.Event("markerClicked"));
+ }
+
+ /**
+ * @private
+ * This page definition is used with HTMLLoader to bring in the Google Maps
+ * API (a Google APP token is required).
+ */
+ private static var pageTemplateStart:String = '<!DOCTYPE html>'+
+ '<html>'+
+ ' <head>'+
+ ' <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />'+
+ ' <style type="text/css">'+
+ ' html { height: 100% }'+
+ ' body { height: 100%; margin: 0; padding: 0 }'+
+ ' #map-canvas { height: 100% }'+
+ ' </style>'+
+ ' <script type="text/javascript"'+
+ ' src="https://maps.googleapis.com/maps/api/js?v=3.exp';
+
+ private static var pageTemplateEnd:String = '&libraries=places&sensor=false">'+
+ ' </script>'+
+ ' <script type="text/javascript">'+
+ ' var map;'+
+ ' var geocoder;'+
+ ' var currentCenter;' +
+ ' var service;' +
+ ' var places;' +
+ ' var markers;'+
+ ' function mapit(lat, lng, zoomLevel) {' +
+ ' currentCenter = new google.maps.LatLng(lat, lng);'+
+ ' if (map == null) {' +
+ ' var mapOptions = {'+
+ ' center: currentCenter,'+
+ ' zoom: zoomLevel'+
+ ' };'+
+ ' map = new google.maps.Map(document.getElementById("map-canvas"),'+
+ ' mapOptions);' +
+ ' }' +
+ ' google.maps.event.addListener(map, "center_changed", function() {' +
+ ' currentCenter = map.getCenter();' +
+ ' });' +
+ ' google.maps.event.addListener(map, "bounds_changed", function() {' +
+ ' currentCenter = map.getCenter();' +
+ ' });' +
+ ' map.setCenter(currentCenter);'+
+ ' };' +
+ ' function setCenter(lat, lng) {' +
+ ' currentCenter = new google.maps.LatLng(lat,lng);' +
+ ' map.setCenter(currentCenter);' +
+ ' };'+
+ ' function codeaddress(address) {'+
+ ' if (!geocoder) geocoder = new google.maps.Geocoder();'+
+ ' geocoder.geocode( { "address": address}, function(results, status) {'+
+ ' if (status == google.maps.GeocoderStatus.OK) {'+
+ ' currentCenter = results[0].geometry.location;'+
+ ' map.setCenter(currentCenter);'+
+ ' var marker = new google.maps.Marker({'+
+ ' map: map,'+
+ ' position: currentCenter,'+
+ ' });'+
+ ' } else {'+
+ ' alert("Geocode was not successful for the following reason: " + status);'+
+ ' }'+
+ ' });'+
+ ' };'+
+ ' function centeronaddress(address) {'+
+ ' if (!geocoder) geocoder = new google.maps.Geocoder();'+
+ ' geocoder.geocode( { "address": address}, function(results, status) {'+
+ ' if (status == google.maps.GeocoderStatus.OK) {'+
+ ' currentCenter = results[0].geometry.location;'+
+ ' map.setCenter(currentCenter);' +
+ ' } else {'+
+ ' alert("Geocode was not successful for the following reason: " + status);'+
+ ' }'+
+ ' });'+
+ ' };'+
+ ' function markcurrentlocation() {'+
+ ' createMarker(currentCenter);'+
+ ' };' +
+ ' function createMarker(location) {' +
+ ' var marker = new google.maps.Marker({'+
+ ' map: map,'+
+ ' position: location,'+
+ ' });' +
+ ' google.maps.event.addListener(marker, "click", function() {' +
+ ' markerClicked(marker);' +
+ ' });'+
+ ' return marker;'+
+ ' };' +
+ ' function clearmarkers() {' +
+ ' if (markers) {' +
+ ' for(var i=0; i < markers.length; i++) {' +
+ ' markers[i].setMap(null);' +
+ ' }' +
+ ' markers = null;' +
+ ' }' +
+ ' };'+
+ ' function nearbysearch(placename) {' +
+ ' if (markers == null) markers = [];' +
+ ' service = new google.maps.places.PlacesService(map);'+
+ ' service.nearbySearch({"location": currentCenter,' +
+ ' "radius": 5000,' +
+ ' "name": placename}, function(results, status) {' +
+ ' places = results;' +
+ ' if (status == google.maps.places.PlacesServiceStatus.OK) {' +
+ ' for(var i=0; i < results.length; i++) {' +
+ ' var place = results[i];' +
+ ' var marker = createMarker(place.geometry.location);' +
+ ' marker.title = place.name;' +
+ ' markers.push(marker);' +
+ ' }' +
+ ' var event = document.createEvent("Event");' +
+ ' event.results = places;'+
+ ' event.initEvent("searchResults", true, true);' +
+ ' window.dispatchEvent(event);' +
+ ' }' +
+ ' });'+
+ ' };' +
+ ' function markerClicked(marker) {' +
+ ' var newEvent = document.createEvent("Event");' +
+ ' newEvent.marker = marker;' +
+ ' newEvent.initEvent("markerClicked", true, true);' +
+ ' window.dispatchEvent(newEvent);' +
+ ' };'+
+ ' function initialize() {'+
+ ' mapit(37.333, -121.900, 12);'+
+ ' };'+
+ ' google.maps.event.addDomListener(window, "load", initialize);'+
+ ' </script>'+
+ ' </head>'+
+ ' <body>'+
+ ' <div id="map-canvas"></div>'+
+ ' </body>'+
+ '</html>';
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/325df7b0/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as
index d988e3b..6184143 100644
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as
+++ b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as
@@ -22,17 +22,15 @@ package org.apache.flex.maps.google.models
import org.apache.flex.core.IStrand;
import org.apache.flex.events.Event;
import org.apache.flex.events.EventDispatcher;
-
- COMPILE::JS {
- import google.maps.LatLng;
- import google.maps.Marker;
- }
-
+
+ import google.maps.LatLng;
+ import google.maps.Marker;
+
/**
* The data model for the Map class, this holds the maps current center
* location, its current zoom level, the last marker selected, and any
* search results.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -42,7 +40,7 @@ package org.apache.flex.maps.google.models
{
/**
* Constructor.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -52,12 +50,12 @@ package org.apache.flex.maps.google.models
{
super();
}
-
+
private var _strand:IStrand;
-
+
/**
* @copy org.apache.flex.core.IBead#strand
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -67,9 +65,9 @@ package org.apache.flex.maps.google.models
{
_strand = value;
}
-
+
private var _token:String;
-
+
public function get token():String
{
return _token;
@@ -79,60 +77,54 @@ package org.apache.flex.maps.google.models
_token = value;
dispatchEvent(new Event("tokenChanged"));
}
-
- COMPILE::JS
+
private var _currentCenter:LatLng;
-
+
/**
* The current center of the map.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
- COMPILE::JS
public function get currentCenter():LatLng
{
return _currentCenter;
}
-
- COMPILE::JS
+
public function set currentCenter(value:LatLng):void
{
_currentCenter = value;
dispatchEvent( new Event("currentCenterChanged") );
}
-
- COMPILE::JS
+
private var _selectedMarker:Marker;
-
+
/**
* The last marker selected, if any.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
- COMPILE::JS
public function get selectedMarker():Marker
{
return _selectedMarker;
}
-
- COMPILE::JS
+
public function set selectedMarker(value:Marker):void
{
_selectedMarker = value;
dispatchEvent( new Event("selectedMarkerChanged") );
}
-
+
private var _zoom:Number;
-
+
/**
* The current zoom level.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -149,12 +141,12 @@ package org.apache.flex.maps.google.models
dispatchEvent( new Event("zoomChanged") );
}
}
-
+
private var _searchResults:Array;
-
+
/**
* Results from the last search.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -170,4 +162,4 @@ package org.apache.flex.maps.google.models
dispatchEvent( new Event("searchResultsChanged") );
}
}
-}
\ No newline at end of file
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/325df7b0/frameworks/projects/GoogleMaps/google-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/google-manifest.xml b/frameworks/projects/GoogleMaps/google-manifest.xml
index a9138df..f843c0c 100644
--- a/frameworks/projects/GoogleMaps/google-manifest.xml
+++ b/frameworks/projects/GoogleMaps/google-manifest.xml
@@ -20,5 +20,5 @@
<componentPackage>
- <component id="GoogleMap" class="org.apache.flex.maps.google.GoogleMap" />
+ <component id="Map" class="org.apache.flex.maps.google.GoogleMap" />
</componentPackage>
[31/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - forgot
about svg textbutton
Posted by ah...@apache.org.
forgot about svg textbutton
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/20e764d2
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/20e764d2
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/20e764d2
Branch: refs/heads/develop
Commit: 20e764d251772ded2d6ccf90bb6765f12883df1b
Parents: b1f78dd
Author: Alex Harui <ah...@apache.org>
Authored: Fri Dec 11 23:31:09 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Dec 11 23:31:09 2015 -0800
----------------------------------------------------------------------
frameworks/projects/HTML/compile-asjs-config.xml | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/20e764d2/frameworks/projects/HTML/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/compile-asjs-config.xml b/frameworks/projects/HTML/compile-asjs-config.xml
index 32f4278..2139379 100644
--- a/frameworks/projects/HTML/compile-asjs-config.xml
+++ b/frameworks/projects/HTML/compile-asjs-config.xml
@@ -81,6 +81,7 @@
<include-namespaces>
<uri>library://ns.apache.org/flexjs/basic</uri>
+ <uri>library://ns.apache.org/flexjs/svg</uri>
</include-namespaces>
<target-player>${playerglobal.version}</target-player>
[53/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - hack
in warning suppression
Posted by ah...@apache.org.
hack in warning suppression
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3d2d2c36
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3d2d2c36
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3d2d2c36
Branch: refs/heads/develop
Commit: 3d2d2c36a8ce3939249962909c5429b44f2e08b9
Parents: a94bf84
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 15:40:09 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 15:40:09 2015 -0800
----------------------------------------------------------------------
frameworks/projects/Core/build.xml | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3d2d2c36/frameworks/projects/Core/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/build.xml b/frameworks/projects/Core/build.xml
index 15cb288..799665c 100644
--- a/frameworks/projects/Core/build.xml
+++ b/frameworks/projects/Core/build.xml
@@ -117,6 +117,10 @@
<arg value="-define=COMPILE::AS3,false" />
<arg value="-define=COMPILE::JS,true" />
</java>
+ <!-- hack: inject some jsdoc to get rid of a warning when building examples -->
+ <replace file="${basedir}/js/out/org/apache/flex/events/IEventDispatcher.js"
+ token="org.apache.flex.events.IEventDispatcher.prototype.dispatchEvent"
+ value="/** @param {(Object|null|string)} event The event. 
@return {boolean} The return. */
org.apache.flex.events.IEventDispatcher.prototype.dispatchEvent" />
</target>
<target name="compile-extern-swc" description="Compiles .as files into .swc used for cross-compiling other projects">
[34/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - Back
port of GoogleMaps FlexJS project.
Posted by ah...@apache.org.
Back port of GoogleMaps FlexJS project.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5f427485
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5f427485
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5f427485
Branch: refs/heads/develop
Commit: 5f427485663076183d2c466985640a633ab64174
Parents: 46e3dc6
Author: Peter Ent <pe...@apache.org>
Authored: Mon Dec 14 11:58:37 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Mon Dec 14 11:58:37 2015 -0500
----------------------------------------------------------------------
frameworks/projects/GoogleMaps/as/defaults.css | 5 +-
.../GoogleMaps/as/src/GoogleMapsClasses.as | 3 +
.../src/org/apache/flex/maps/google/Geometry.as | 30 --
.../org/apache/flex/maps/google/GoogleMap.as | 138 ++++++
.../src/org/apache/flex/maps/google/LatLng.as | 30 --
.../as/src/org/apache/flex/maps/google/Map.as | 233 ----------
.../src/org/apache/flex/maps/google/Marker.as | 32 --
.../as/src/org/apache/flex/maps/google/Place.as | 43 --
.../flex/maps/google/beads/GoogleMapView.as | 435 +++++++++++++++++++
.../apache/flex/maps/google/beads/MapView.as | 154 ++++---
.../apache/flex/maps/google/models/MapModel.as | 39 +-
frameworks/projects/GoogleMaps/build.xml | 120 +++--
.../projects/GoogleMaps/compile-asjs-config.xml | 70 +++
.../projects/GoogleMaps/compile-config.xml | 1 +
.../projects/GoogleMaps/google-manifest.xml | 2 +-
15 files changed, 852 insertions(+), 483 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/defaults.css b/frameworks/projects/GoogleMaps/as/defaults.css
index 6c260d5..260517a 100644
--- a/frameworks/projects/GoogleMaps/as/defaults.css
+++ b/frameworks/projects/GoogleMaps/as/defaults.css
@@ -19,9 +19,10 @@
@namespace g "library://ns.apache.org/flexjs/google";
-g|Map
+g|GoogleMap
{
- IBeadView: ClassReference("org.apache.flex.maps.google.beads.MapView");
+ IBeadView: ClassReference("org.apache.flex.maps.google.beads.GoogleMapView");
+ IBeadModel: ClassReference("org.apache.flex.maps.google.models.MapModel");
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/GoogleMapsClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/GoogleMapsClasses.as b/frameworks/projects/GoogleMaps/as/src/GoogleMapsClasses.as
index cd424fe..6445519 100644
--- a/frameworks/projects/GoogleMaps/as/src/GoogleMapsClasses.as
+++ b/frameworks/projects/GoogleMaps/as/src/GoogleMapsClasses.as
@@ -27,6 +27,9 @@ package
*/
internal class GoogleMapsClasses
{
+ import org.apache.flex.maps.google.GoogleMap; GoogleMap;
+ import org.apache.flex.maps.google.models.MapModel; MapModel;
+ import org.apache.flex.maps.google.beads.GoogleMapView; GoogleMapView;
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Geometry.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Geometry.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Geometry.as
deleted file mode 100644
index 4546bf0..0000000
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Geometry.as
+++ /dev/null
@@ -1,30 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.maps.google
-{
- public class Geometry
- {
- public function Geometry()
- {
- location = new LatLng();
- }
-
- public var location:LatLng;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/GoogleMap.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/GoogleMap.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/GoogleMap.as
new file mode 100644
index 0000000..64ae26b
--- /dev/null
+++ b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/GoogleMap.as
@@ -0,0 +1,138 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.maps.google
+{
+ import org.apache.flex.core.IBeadModel;
+ import org.apache.flex.core.IBeadView;
+ import org.apache.flex.core.UIBase;
+ import org.apache.flex.core.ValuesManager;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.maps.google.beads.GoogleMapView;
+ import org.apache.flex.maps.google.models.MapModel;
+
+ COMPILE::JS {
+ import google.maps.LatLng;
+ import google.maps.Marker;
+ import org.apache.flex.core.WrappedHTMLElement;
+ }
+
+ [Event(name="ready", type="org.apache.flex.events.Event")]
+ [Event(name="centered", type="org.apache.flex.events.Event")]
+ [Event(name="boundsChanged", type="org.apache.flex.events.Event")]
+ [Event(name="zoomChanged", type="org.apache.flex.events.Event")]
+ [Event(name="dragEnd", type="org.apache.flex.events.Event")]
+ [Event(name="searchResult", type="org.apache.flex.events.Event")]
+
+ /**
+ * The Map class displays a Google Map centered on lat/lng coordinates. The Map uses
+ * the following bead type:
+ *
+ * org.apache.flex.maps.beads.MapView: Uses HTMLLoader to display the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ * @flexjsignoreimport goog.bind
+ * @flexjsignoreimport google.maps.event
+ */
+ public class GoogleMap extends UIBase
+ {
+
+ public function GoogleMap()
+ {
+ super();
+
+ className = "Map";
+
+ var model:IBeadModel = getBeadByType(IBeadModel) as IBeadModel;
+ if (model == null) {
+ model = new MapModel();
+ addBead(model);
+ }
+ }
+
+ public function get token():String
+ {
+ return MapModel(model).token;
+ }
+ public function set token(value:String):void
+ {
+ MapModel(model).token = value;
+ }
+
+ COMPILE::JS
+ public function get selectedMarker():Marker
+ {
+ return MapModel(model).selectedMarker;
+ }
+
+ public function get searchResults():Array
+ {
+ return MapModel(model).searchResults;
+ }
+
+ public function loadMap( centerLat:Number, centerLong:Number, zoom:Number ) : void
+ {
+ GoogleMapView(view).mapit(centerLat, centerLong, zoom);
+ }
+
+ public function setZoom(zoomLevel:Number):void
+ {
+ MapModel(model).zoom = zoomLevel;
+ }
+
+ public function centerOnAddress(address:String):void
+ {
+ GoogleMapView(view).centerOnAddress(address);
+ }
+
+ COMPILE::JS
+ public function setCenter(location:LatLng):void
+ {
+ GoogleMapView(view).setCenter(location);
+ }
+
+ public function markCurrentLocation():void
+ {
+ GoogleMapView(view).markCurrentLocation();
+ }
+
+ public function markAddress(address:String):void
+ {
+ GoogleMapView(view).markAddress(address);
+ }
+
+ COMPILE::JS
+ public function createMarker(location:LatLng):Marker
+ {
+ return GoogleMapView(view).createMarker(location);
+ }
+
+ public function nearbySearch(placeName:String):void
+ {
+ GoogleMapView(view).nearbySearch(placeName);
+ }
+
+ public function clearSearchResults():void
+ {
+ GoogleMapView(view).clearSearchResults();
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/LatLng.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/LatLng.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/LatLng.as
deleted file mode 100644
index 80e688c..0000000
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/LatLng.as
+++ /dev/null
@@ -1,30 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.maps.google
-{
- public class LatLng
- {
- public function LatLng()
- {
- }
-
- public var lat:Number;
- public var lng:Number;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Map.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Map.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Map.as
deleted file mode 100644
index 1d289a7..0000000
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Map.as
+++ /dev/null
@@ -1,233 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.maps.google
-{
- import org.apache.flex.core.IBeadModel;
- import org.apache.flex.core.IBeadView;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.core.ValuesManager;
- import org.apache.flex.maps.google.beads.MapView;
- import org.apache.flex.maps.google.models.MapModel;
-
- [Event(name="ready", type="org.apache.flex.events.Event")]
- [Event(name="centered", type="org.apache.flex.events.Event")]
- [Event(name="boundsChanged", type="org.apache.flex.events.Event")]
- [Event(name="zoomChanged", type="org.apache.flex.events.Event")]
- [Event(name="dragEnd", type="org.apache.flex.events.Event")]
- [Event(name="searchResult", type="org.apache.flex.events.Event")]
-
- /**
- * The Map class displays a Google Map centered on lat/lng coordinates. The Map uses
- * the following bead type:
- *
- * org.apache.flex.maps.beads.MapView: Uses HTMLLoader to display the map.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class Map extends UIBase
- {
- /**
- * constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function Map()
- {
- super();
-
- var model:IBeadModel = getBeadByType(IBeadModel) as IBeadModel;
- if (model == null) {
- model = new MapModel();
- addBead(model);
- }
- }
-
- private var _token:String;
-
- /**
- * The Google API developer token.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function set token(value:String):void
- {
- _token = value;
- }
- /**
- * @private
- */
- public function get token():String
- {
- return _token;
- }
-
- public var searchResults:Array;
-
- /**
- * The marker last selected.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get selectedMarker():Marker
- {
- return MapModel(model).selectedMarker;
- }
-
- /**
- * Loads a map centered on the given latitude and longitude coodinates at the
- * zoom level provided.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function loadMap( centerLat:Number, centerLong:Number, zoom:Number ) : void
- {
- var viewBead:MapView = getBeadByType(IBeadView) as MapView;
- if (viewBead) {
- viewBead.mapit(centerLat, centerLong, zoom);
- }
- }
-
- /**
- * Sets the magnification level on the map with 1 being the lowest level
- * (essentially the entire world) and 14 being very zoomed.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function setZoom( zoom:Number ) : void
- {
- MapModel(model).zoom = zoom;
- }
-
- /**
- * Centers the map on the address given.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function centerOnAddress( address:String ) : void
- {
- var viewBead:MapView = getBeadByType(IBeadView) as MapView;
- if (viewBead) {
- viewBead.centerOnAddress(address);
- }
- }
-
- /**
- * Centers the map on a specific location.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function setCenter( location:LatLng ) : void
- {
- var geo:Geometry = new Geometry();
- geo.location = location;
- MapModel(model).currentLocation = geo;
- }
-
- /**
- * Marks the current center of the map.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function markCurrentLocation() : void
- {
- var viewBead:MapView = getBeadByType(IBeadView) as MapView;
- if (viewBead) {
- viewBead.markCurrentLocation();
- }
- }
-
- /**
- * Performs a search near the center of map. The result is a set of
- * markers displayed on the map.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function nearbySearch(placeName:String):void
- {
- var viewBead:MapView = getBeadByType(IBeadView) as MapView;
- if (viewBead) {
- viewBead.nearbySearch(placeName);
- }
- }
-
- /**
- * Clears the search result markers from the map.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function clearSearchResults():void
- {
- var viewBead:MapView = getBeadByType(IBeadView) as MapView;
- if (viewBead) {
- viewBead.removeAllMarkers();
- }
- MapModel(model).searchResults = [];
- }
-
- /**
- * Translates the given address into a geo-location, moves the map to
- * that location, and places a marker on that location.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function markAddress( address:String ) : void
- {
- var viewBead:MapView = getBeadByType(IBeadView) as MapView;
- if (viewBead) {
- viewBead.geoCodeAndMarkAddress(address);
- }
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Marker.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Marker.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Marker.as
deleted file mode 100644
index 9c7ff0d..0000000
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Marker.as
+++ /dev/null
@@ -1,32 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.maps.google
-{
- public class Marker
- {
- public function Marker()
- {
- position = new LatLng();
- }
-
- public var position:LatLng;
- public var title:String;
- public var map:Map;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Place.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Place.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Place.as
deleted file mode 100644
index cb08703..0000000
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/Place.as
+++ /dev/null
@@ -1,43 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.maps.google
-{
- public class Place
- {
- public function Place()
- {
- geometry = new Geometry();
- }
-
- public var geometry:Geometry;
- public var icon:String;
- public var id:String;
- public var name:String;
- public var reference:String;
- public var vicinity:String;
-
- public function toString():String
- {
- var results:String = "";
- if (name) results = name;
- if (vicinity) results += " "+vicinity;
- return results;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
new file mode 100644
index 0000000..61c31e3
--- /dev/null
+++ b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/GoogleMapView.as
@@ -0,0 +1,435 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.maps.google.beads
+{
+ COMPILE::AS3 {
+ import flash.events.Event;
+ import flash.html.HTMLLoader;
+ import flash.net.URLRequest;
+ }
+
+ import org.apache.flex.core.BeadViewBase;
+ import org.apache.flex.core.IBeadModel;
+ import org.apache.flex.core.IBeadView;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.core.UIBase;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.IEventDispatcher;
+ import org.apache.flex.maps.google.GoogleMap;
+ import org.apache.flex.maps.google.models.MapModel;
+
+ COMPILE::JS {
+ import goog.bind;
+ import google.maps.event;
+ import google.maps.Geocoder;
+ import google.maps.GeocoderResult;
+ import google.maps.GeocoderStatus;
+ import google.maps.LatLng;
+ import google.maps.Map;
+ import google.maps.Marker;
+ import google.maps.places.PlaceResult;
+ import google.maps.places.PlacesService;
+ import google.maps.places.PlacesServiceStatus;
+ }
+
+ /**
+ * The MapView bead class displays a Google Map using HTMLLoader.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ COMPILE::JS
+ public class GoogleMapView extends BeadViewBase implements IBeadView
+ {
+ public function GoogleMapView()
+ {
+ super();
+ }
+
+ private var map:Map;
+ private var geocoder:Geocoder;
+ private var initialized:Boolean = false;
+ private var markers:Array;
+ private var searchResults:Array;
+ private var service:PlacesService;
+
+ private var _strand:IStrand;
+
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+ _strand = value;
+
+ var token:String = (_strand as GoogleMap).token;
+ var src:String = 'https://maps.googleapis.com/maps/api/js?v=3.exp';
+ if (token)
+ src += '&key=' + token;
+ src += '&libraries=places&sensor=false&callback=mapInit';
+
+ var script:HTMLScriptElement = document.createElement('script') as HTMLScriptElement;
+ script.type = 'text/javascript';
+ script.src = src;
+
+ window['mapView'] = this;
+ window['mapInit'] = function():void {
+ (this['mapView'] as GoogleMapView).finishInitialization();
+ }
+
+ document.head.appendChild(script);
+
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.addEventListener("zoomChanged", handleModelChange);
+ }
+
+ public function mapit( centerLat:Number, centerLng:Number, zoom:Number ):void
+ {
+ if (!initialized) {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.currentCenter = new LatLng(centerLat, centerLng);
+ model.zoom = zoom;
+ var mapOptions:Object = new Object();
+ mapOptions['center'] = model.currentCenter;
+ mapOptions['zoom'] = zoom;
+
+ map = new Map((_strand as UIBase).element, mapOptions);
+ geocoder = null;
+
+ google.maps.event.addListener(map, 'center_changed', goog.bind(centerChangeHandler, this));
+ google.maps.event.addListener(map, 'bounds_changed', goog.bind(boundsChangeHandler, this));
+ google.maps.event.addListener(map, 'zoom_changed', goog.bind(zoomChangeHandler, this));
+ }
+ }
+
+ private function finishInitialization():void
+ {
+ mapit(37.333, -121.900, 12);
+ initialized = true;
+ dispatchEvent(new Event('ready'));
+ }
+
+ public function centerOnAddress(value:String):void
+ {
+ if (geocoder == null) geocoder = new Geocoder();
+ geocoder.geocode({address:value}, positionHandler);
+ }
+
+ public function setCenter(location:LatLng):void
+ {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.currentCenter = new LatLng(location.lat(), location.lng());
+ map.setCenter(model.currentCenter as LatLng);
+ }
+
+ public function markCurrentLocation():void
+ {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ createMarker(model.currentCenter as LatLng);
+ }
+
+ public function markAddress(address:String):void
+ {
+ if (initialized) {
+ if (geocoder == null) geocoder = new Geocoder();
+ geocoder.geocode({address:address}, geocodeHandler);
+ }
+ }
+
+ public function createMarker(location:LatLng):Marker
+ {
+ var marker:Marker = new Marker({map:map, position:location});
+ google.maps.event.addListener(marker, 'click', goog.bind(markerClicked, this));
+ return marker;
+ }
+
+ public function nearbySearch(placeName:String):void
+ {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+
+ if (markers == null) markers = [];
+ service = new PlacesService(map);
+ service.nearbySearch({location:model.currentCenter, radius:5000, name:placeName}, searchResultsHandler);
+ }
+
+ public function clearSearchResults():void
+ {
+ if (markers) {
+ for(var i:int=0; i < markers.length; i++) {
+ var m:Marker = markers[i] as Marker;
+ m.setMap(null);
+ }
+ markers = null;
+ }
+ }
+
+ // Callbacks
+
+ public function centerChangeHandler() : void
+ {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.currentCenter = map.getCenter();
+
+ var newEvent:Event = new Event('centered');
+ (_strand as IEventDispatcher).dispatchEvent(newEvent);
+ }
+
+ public function boundsChangeHandler():void
+ {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.currentCenter = map.getCenter();
+
+ var newEvent:Event = new Event('boundsChanged');
+ (_strand as IEventDispatcher).dispatchEvent(newEvent);
+ }
+
+ public function zoomChangeHandler():void
+ {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.currentCenter = map.getCenter();
+
+ var newEvent:Event = new Event('zoomChanged');
+ (_strand as IEventDispatcher).dispatchEvent(newEvent);
+ }
+
+ public function positionHandler(results, status):void
+ {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ if (status == GeocoderStatus.OK) {
+ model.currentCenter = results[0].geometry.location;
+ map.setCenter(model.currentCenter as LatLng);
+
+ // dispatch an event to indicate the map has been centered
+ }
+ }
+
+ public function geocodeHandler(results, status):void
+ {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ if (status == GeocoderStatus.OK) {
+ model.currentCenter = results[0].geometry.location;
+ map.setCenter(model.currentCenter as LatLng);
+
+ var marker:Marker = new Marker({map:map, position:model.currentCenter});
+ }
+ }
+
+ public function searchResultsHandler(results, status):void
+ {
+ searchResults = [];
+ if (status == PlacesServiceStatus.OK) {
+ for(var i:int=0; i < results.length; i++) {
+ var place:PlaceResult = new PlaceResult();
+ place.geometry.location = new LatLng(results[i].geometry.location.lat(), 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;
+ searchResults.push(place);
+
+ var marker:Marker = createMarker(place.geometry.location);
+ marker.setTitle(place.name);
+
+ markers.push(marker);
+ }
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.searchResults = searchResults;
+ }
+ }
+
+ // Event handlers
+
+ /**
+ * Handles changes to properties of the MapModel. When this value is
+ * changed, the map itself has its zoom changed. This will trigger an
+ * event on the map that will be handled by functions above.
+ */
+ public function handleModelChange(event:Event):void
+ {
+ if (event.type == "zoomChanged") {
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ map.setZoom(model.zoom);
+ }
+ }
+
+ public function markerClicked(marker:Marker, event:Object):void
+ {
+ var newMarker:Marker = new Marker();
+ newMarker.setPosition(new LatLng(marker.getPosition().lat(), marker.getPosition().lng()));
+ newMarker.setTitle(marker.getTitle());
+ newMarker.setMap(map);
+
+ var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
+ model.selectedMarker = newMarker;
+
+ var newEvent:Event = new Event('markerClicked');
+ dispatchEvent(newEvent);
+ }
+
+ } // end ::JS
+
+ /**
+ * The AS3 version of GoogleMapView is geared toward its use with HTMLLoader
+ * for AIR.
+ */
+ COMPILE::AS3
+ public class GoogleMapView extends BeadViewBase implements IBeadView
+ {
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function GoogleMapView()
+ {
+ super();
+ }
+
+ private var _loader:HTMLLoader;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+ }
+
+ /**
+ * Adjusts the map to the given coordinate and zoom level.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function mapit(lat:Number, lng:Number, zoomLevel:Number):void
+ {
+
+ }
+
+ /**
+ * Finds the given address and places a marker on it. This function may be dropped
+ * since centerOnAddress + markCurrentLocation does the same thing.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function markAddress(address:String):void
+ {
+
+ }
+
+ /**
+ * Centers the map on the address given.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function centerOnAddress(address:String):void
+ {
+
+ }
+
+ /**
+ * Marks the current center of the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function markCurrentLocation():void
+ {
+
+ }
+
+ /**
+ * Performs a search near the center of map. The result is a set of
+ * markers displayed on the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function nearbySearch(placeName:String):void
+ {
+
+ }
+
+ /**
+ * Removes all of the markers from the map
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function removeAllMarkers():void
+ {
+
+ }
+
+ /**
+ * Sets the zoom factor of the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function setZoom(zoom:Number):void
+ {
+
+ }
+
+ /**
+ * Sets the center of the map.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function setCenter( location:Object ):void
+ {
+
+ }
+
+ public function clearSearchResults():void
+ {
+ // not implemented
+ }
+ }
+
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView.as
index 5e71187..5cf153f 100644
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView.as
+++ b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/beads/MapView.as
@@ -16,12 +16,22 @@
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
+
+/**
+ * NOTE
+ *
+ * THIS IS THE OLD MapView. The new one is GoogleMapView. This code exists to preserve
+ * the AS/HTMLLoader version for use with AIR. Someday we will come back to this and make
+ * it work again.
+ */
package org.apache.flex.maps.google.beads
{
- import flash.events.Event;
- import flash.html.HTMLLoader;
- import flash.net.URLRequest;
-
+ COMPILE::AS3 {
+ import flash.events.Event;
+ import flash.html.HTMLLoader;
+ import flash.net.URLRequest;
+ }
+
import org.apache.flex.core.BeadViewBase;
import org.apache.flex.core.IBeadModel;
import org.apache.flex.core.IBeadView;
@@ -29,20 +39,52 @@ package org.apache.flex.maps.google.beads
import org.apache.flex.core.UIBase;
import org.apache.flex.events.Event;
import org.apache.flex.events.IEventDispatcher;
- import org.apache.flex.maps.google.LatLng;
- import org.apache.flex.maps.google.Map;
- import org.apache.flex.maps.google.Marker;
- import org.apache.flex.maps.google.Place;
+ import org.apache.flex.maps.google.GoogleMap;
import org.apache.flex.maps.google.models.MapModel;
-
+
/**
* The MapView bead class displays a Google Map using HTMLLoader.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
+ COMPILE::JS
+ public class MapView extends BeadViewBase implements IBeadView
+ {
+ public function MapView()
+ {
+ super();
+ }
+
+ private var _strand:IStrand;
+
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+ _strand = value;
+
+ var token:String = (_strand as GoogleMap).token;
+ var src:String = 'https://maps.googleapis.com/maps/api/js?v=3.exp';
+ if (token)
+ src += '&key=' + token;
+ src += '&libraries=places&sensor=false&callback=mapInit';
+
+ var script:HTMLScriptElement = document.createElement('script') as HTMLScriptElement;
+ script.type = 'text/javascript';
+ script.src = src;
+
+/** window.mapView = this;
+ window['mapInit'] = function() {
+ (this.mapView._strand as GoogleMap).finishInitialization();
+ }
+**/
+ document.head.appendChild(script);
+ }
+ }
+
+ COMPILE::AS3
public class MapView extends BeadViewBase implements IBeadView
{
/**
@@ -56,12 +98,12 @@ package org.apache.flex.maps.google.beads
public function MapView()
{
}
-
+
private var _loader:HTMLLoader;
-
+
/**
* @copy org.apache.flex.core.IBead#strand
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -70,52 +112,52 @@ package org.apache.flex.maps.google.beads
override public function set strand(value:IStrand):void
{
super.strand = value;
-
+
_loader = new HTMLLoader();
_loader.x = 0;
_loader.y = 0;
_loader.width = UIBase(value).width;
_loader.height = UIBase(value).height;
-
+
IEventDispatcher(_strand).addEventListener("widthChanged",handleSizeChange);
IEventDispatcher(_strand).addEventListener("heightChanged",handleSizeChange);
-
+
var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
model.addEventListener("zoomChanged", handleZoomChange);
model.addEventListener("currentLocationChanged", handleCurrentLocationChange);
-
+
(_strand as UIBase).addChild(_loader);
-
+
var token:String = Map(_strand).token;
if (token)
page = pageTemplateStart + "&key=" + token + pageTemplateEnd;
else
page = pageTemplateStart + pageTemplateEnd;
-
+
if (page) {
_loader.loadString(page);
_loader.addEventListener(flash.events.Event.COMPLETE, completeHandler);
}
}
-
+
private function completeHandler(event:flash.events.Event):void
{
trace("htmlLoader complete");
-
+
if (_loader && page) {
_loader.window.map.center_changed = onMapCentered;
_loader.window.map.bounds_changed = onMapBoundsChanged;
_loader.window.map.zoom_changed = onMapZoomChanged;
_loader.window.map.dragend = onMapDragEnd;
-
+
// custom event handlers
_loader.window.addEventListener("searchResults",onSearchResults);
_loader.window.addEventListener("markerClicked",onMarkerClicked);
}
-
+
IEventDispatcher(_strand).dispatchEvent(new org.apache.flex.events.Event("ready"));
}
-
+
private function handleZoomChange(event:org.apache.flex.events.Event):void
{
if (_loader && page) {
@@ -123,7 +165,7 @@ package org.apache.flex.maps.google.beads
setZoom(model.zoom);
}
}
-
+
private function handleCurrentLocationChange(event:org.apache.flex.events.Event):void
{
if (_loader && page) {
@@ -131,12 +173,12 @@ package org.apache.flex.maps.google.beads
setCenter(model.currentLocation.location);
}
}
-
+
private var page:String;
-
+
/**
* Adjusts the map to the given coordinate and zoom level.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -148,11 +190,11 @@ package org.apache.flex.maps.google.beads
_loader.window.mapit(lat,lng,zoomLevel);
}
}
-
+
/**
* Finds the given address and places a marker on it. This function may be dropped
* since centerOnAddress + markCurrentLocation does the same thing.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -164,10 +206,10 @@ package org.apache.flex.maps.google.beads
_loader.window.codeaddress(address);
}
}
-
+
/**
* Centers the map on the address given.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -179,10 +221,10 @@ package org.apache.flex.maps.google.beads
_loader.window.centeronaddress(address);
}
}
-
+
/**
* Marks the current center of the map.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -194,11 +236,11 @@ package org.apache.flex.maps.google.beads
_loader.window.markcurrentlocation();
}
}
-
+
/**
* Performs a search near the center of map. The result is a set of
* markers displayed on the map.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -210,10 +252,10 @@ package org.apache.flex.maps.google.beads
_loader.window.nearbysearch(placeName);
}
}
-
+
/**
* Removes all of the markers from the map
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -225,10 +267,10 @@ package org.apache.flex.maps.google.beads
_loader.window.clearmarkers();
}
}
-
+
/**
* Sets the zoom factor of the map.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -240,10 +282,10 @@ package org.apache.flex.maps.google.beads
_loader.window.map.setZoom(zoom);
}
}
-
+
/**
* Sets the center of the map.
- *
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
@@ -255,7 +297,7 @@ package org.apache.flex.maps.google.beads
_loader.window.setCenter(location.lat, location.lng);
}
}
-
+
/**
* @private
*/
@@ -264,7 +306,7 @@ package org.apache.flex.maps.google.beads
_loader.width = UIBase(_strand).width;
_loader.height = UIBase(_strand).height;
}
-
+
/**
* @private
*/
@@ -272,7 +314,7 @@ package org.apache.flex.maps.google.beads
{
IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("centered") );
}
-
+
/**
* @private
*/
@@ -280,7 +322,7 @@ package org.apache.flex.maps.google.beads
{
IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("boundsChanged") );
}
-
+
/**
* @private
*/
@@ -288,7 +330,7 @@ package org.apache.flex.maps.google.beads
{
IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("zoomChanged") );
}
-
+
/**
* @private
*/
@@ -296,7 +338,7 @@ package org.apache.flex.maps.google.beads
{
IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("dragEnd") );
}
-
+
/**
* @private
*/
@@ -314,11 +356,11 @@ package org.apache.flex.maps.google.beads
result.vicinity = event.results[i].vicinity;
results.push(result);
}
-
+
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
model.searchResults = results;
}
-
+
/**
* @private
*/
@@ -329,13 +371,13 @@ package org.apache.flex.maps.google.beads
marker.position.lng = event.marker.position.lng();
marker.title = event.marker.title;
marker.map = Map(_strand);
-
+
var model:MapModel = _strand.getBeadByType(IBeadModel) as MapModel;
model.selectedMarker = marker;
-
+
IEventDispatcher(_strand).dispatchEvent(new org.apache.flex.events.Event("markerClicked"));
}
-
+
/**
* @private
* This page definition is used with HTMLLoader to bring in the Google Maps
@@ -352,7 +394,7 @@ package org.apache.flex.maps.google.beads
' </style>'+
' <script type="text/javascript"'+
' src="https://maps.googleapis.com/maps/api/js?v=3.exp';
-
+
private static var pageTemplateEnd:String = '&libraries=places&sensor=false">'+
' </script>'+
' <script type="text/javascript">'+
@@ -469,5 +511,5 @@ package org.apache.flex.maps.google.beads
' </body>'+
'</html>';
}
-
-}
\ No newline at end of file
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as
index 08ac171..d988e3b 100644
--- a/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as
+++ b/frameworks/projects/GoogleMaps/as/src/org/apache/flex/maps/google/models/MapModel.as
@@ -22,8 +22,11 @@ package org.apache.flex.maps.google.models
import org.apache.flex.core.IStrand;
import org.apache.flex.events.Event;
import org.apache.flex.events.EventDispatcher;
- import org.apache.flex.maps.google.Geometry;
- import org.apache.flex.maps.google.Marker;
+
+ COMPILE::JS {
+ import google.maps.LatLng;
+ import google.maps.Marker;
+ }
/**
* The data model for the Map class, this holds the maps current center
@@ -65,7 +68,20 @@ package org.apache.flex.maps.google.models
_strand = value;
}
- private var _currentLocation:Geometry;
+ private var _token:String;
+
+ public function get token():String
+ {
+ return _token;
+ }
+ public function set token(value:String):void
+ {
+ _token = value;
+ dispatchEvent(new Event("tokenChanged"));
+ }
+
+ COMPILE::JS
+ private var _currentCenter:LatLng;
/**
* The current center of the map.
@@ -75,16 +91,20 @@ package org.apache.flex.maps.google.models
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
- public function get currentLocation():Geometry
+ COMPILE::JS
+ public function get currentCenter():LatLng
{
- return _currentLocation;
+ return _currentCenter;
}
- public function set currentLocation(value:Geometry):void
+
+ COMPILE::JS
+ public function set currentCenter(value:LatLng):void
{
- _currentLocation = value;
- dispatchEvent( new Event("currentLocationChanged") );
+ _currentCenter = value;
+ dispatchEvent( new Event("currentCenterChanged") );
}
+ COMPILE::JS
private var _selectedMarker:Marker;
/**
@@ -95,10 +115,13 @@ package org.apache.flex.maps.google.models
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
+ COMPILE::JS
public function get selectedMarker():Marker
{
return _selectedMarker;
}
+
+ COMPILE::JS
public function set selectedMarker(value:Marker):void
{
_selectedMarker = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/build.xml b/frameworks/projects/GoogleMaps/build.xml
index 00fbee9..606e30c 100644
--- a/frameworks/projects/GoogleMaps/build.xml
+++ b/frameworks/projects/GoogleMaps/build.xml
@@ -28,28 +28,16 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
-
+
<target name="main" depends="clean,compile,test" description="Clean build of GoogleMaps.swc">
</target>
-
- <target name="all" depends="main,compile-asjs,lint-js,test-js" description="Full build of GoogleMaps.swc">
+
+ <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of GoogleMaps.swc">
</target>
-
+
<target name="test" unless="is.jenkins">
<!-- no tests yet
<ant dir="as/tests" />
- <ant dir="asjs/tests" />
- -->
- </target>
-
- <target name="test-js" unless="is.jenkins">
- <!-- no tests yet
- <ant dir="js/tests" />
-->
</target>
@@ -74,6 +62,8 @@
<echo message="Compiling libs/GoogleMaps.swc"/>
<echo message="FLEX_HOME: ${FLEX_HOME}"/>
<echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <!-- make JS output folder now so include-file doesn't error -->
+ <mkdir dir="${basedir}/js/out" />
<!-- Load the <compc> task. We can't do this at the <project> level -->
<!-- because targets that run before flexTasks.jar gets built would fail. -->
@@ -96,46 +86,80 @@
<load-config filename="compile-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc" />
+ <arg value="-define=COMPILE::AS3,true" />
+ <arg value="-define=COMPILE::JS,false" />
</compc>
</target>
- <target name="compile-asjs" >
- <!-- nothing to cross-compile yet -->
+ <target name="compile-asjs">
+ <echo message="Cross-compiling GoogleMaps"/>
+ <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
+ <java jar="${FALCONJX_HOME}/lib/compc.jar" fork="true" >
+ <jvmarg value="-Xmx384m" />
+ <jvmarg value="-Dsun.io.useCanonCaches=false" />
+ <jvmarg value="-Dflexcompiler=${FALCONJX_HOME}/../compiler" />
+ <jvmarg value="-Dflexlib=${FLEXJS_HOME}/frameworks" />
+ <arg value="+flexlib=${FLEX_HOME}/frameworks" />
+ <arg value="-js-output-type=FLEXJS" />
+ <arg value="-keep-asdoc" /><!-- allows compiler to see @flexjsignorecoercion annotations -->
+ <arg value="-output=${basedir}/js/out" />
+ <arg value="-load-config=${basedir}/compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </java>
+ </target>
+
+ <target name="compile-extern-swc" description="Compiles .as files into .swc used for cross-compiling other projects">
+ <echo message="Compiling externs/GoogleMaps.swc"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <!-- make JS output folder now so include-file doesn't error -->
+ <mkdir dir="${FLEXJS_HOME}/frameworks/externs"/>
+
+ <!-- Load the <compc> task. We can't do this at the <project> level -->
+ <!-- because targets that run before flexTasks.jar gets built would fail. -->
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+ <!--
+ Link in the classes (and their dependencies) for the MXML tags
+ listed in this project's manifest.xml.
+ Also link the additional classes (and their dependencies)
+ listed in CoreClasses.as,
+ because these aren't referenced by the manifest classes.
+ Keep the standard metadata when compiling.
+ Include the appropriate CSS files and assets in the SWC.
+ Don't include any resources in the SWC.
+ Write a bundle list of referenced resource bundles
+ into the file bundles.properties in this directory.
+ -->
+ <compc fork="true"
+ output="${FLEXJS_HOME}/frameworks/externs/GoogleMaps.swc">
+ <jvmarg line="${compc.jvm.args}"/>
+ <load-config filename="compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </compc>
</target>
- <target name="lint-js" depends="gjslint, jshint, copy-js" />
- <target name="copy-js" >
+ <target name="copy-js">
<copy todir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
- <fileset dir="${basedir}/js/src">
- <include name="**/**" />
+ <fileset dir="${basedir}/js/out">
+ <include name="**/**"/>
</fileset>
</copy>
</target>
- <target name="gjslint" unless="no.lint">
- <echo>running gjslint</echo>
- <exec executable="${gjslint}" dir="${basedir}" failonerror="true">
- <arg value="--strict" />
- <arg value="--disable" />
- <arg value="006,100,214,300" />
- <!-- 006: wrong indentation -->
- <!-- 100: cannot have non-primitive value -->
- <!-- 214: @fileoverview tag missing description -->
- <!-- 300: missing newline at end of file -->
- <arg value="--max_line_length" />
- <arg value="120" />
- <arg value="-r" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
- <target name="jshint" unless="no.lint">
- <echo>running jshint</echo>
- <exec executable="${jshint}" dir="${basedir}" failonerror="true">
- <arg value="--config" />
- <arg value="${FLEX_HOME}/frameworks/js/jshint.properties" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/compile-asjs-config.xml b/frameworks/projects/GoogleMaps/compile-asjs-config.xml
new file mode 100644
index 0000000..eba22e4
--- /dev/null
+++ b/frameworks/projects/GoogleMaps/compile-asjs-config.xml
@@ -0,0 +1,70 @@
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<flex-config>
+
+ <compiler>
+ <accessible>false</accessible>
+
+ <external-library-path>
+ <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
+ </external-library-path>
+
+ <mxml>
+ <children-as-data>true</children-as-data>
+ </mxml>
+ <binding-value-change-event>org.apache.flex.events.ValueChangeEvent</binding-value-change-event>
+ <binding-value-change-event-kind>org.apache.flex.events.ValueChangeEvent</binding-value-change-event-kind>
+ <binding-value-change-event-type>valueChange</binding-value-change-event-type>
+
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+
+ <locale/>
+
+ <library-path>
+ <!-- asjscompc won't 'link' these classes in, but will list their requires
+ if these swcs are on the external-library-path then their requires
+ will not be listed -->
+ <path-element>../../externs/Core.swc</path-element>
+ </library-path>
+
+ <source-path>
+ <path-element>as/src</path-element>
+ </source-path>
+
+ <warn-no-constructor>false</warn-no-constructor>
+ </compiler>
+
+ <include-sources>
+ <path-element>as/src</path-element>
+ </include-sources>
+
+ <include-namespaces>
+ <uri>library://ns.apache.org/flexjs/google</uri>
+ </include-namespaces>
+
+ <target-player>${playerglobal.version}</target-player>
+
+
+</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/compile-config.xml b/frameworks/projects/GoogleMaps/compile-config.xml
index 8017798..eb300fe 100644
--- a/frameworks/projects/GoogleMaps/compile-config.xml
+++ b/frameworks/projects/GoogleMaps/compile-config.xml
@@ -24,6 +24,7 @@
<external-library-path>
<path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
<path-element>../../libs/Core.swc</path-element>
+ <path-element>../../externs/GoogleMaps.swc</path-element>
</external-library-path>
<mxml>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f427485/frameworks/projects/GoogleMaps/google-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/google-manifest.xml b/frameworks/projects/GoogleMaps/google-manifest.xml
index d32725f..f843c0c 100644
--- a/frameworks/projects/GoogleMaps/google-manifest.xml
+++ b/frameworks/projects/GoogleMaps/google-manifest.xml
@@ -20,5 +20,5 @@
<componentPackage>
- <component id="Map" class="org.apache.flex.maps.google.Map" />
+ <component id="Map" class="org.apache.flex.maps.google.GoogleMap" />
</componentPackage>
[14/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] -
Modified main build file for jQuery.
Posted by ah...@apache.org.
Modified main build file for jQuery.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/94d9cf2f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/94d9cf2f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/94d9cf2f
Branch: refs/heads/develop
Commit: 94d9cf2f0e44d93867f9a746d3a6a12d87e77a77
Parents: 426fa55
Author: Peter Ent <pe...@apache.org>
Authored: Thu Dec 3 16:15:43 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Dec 3 16:15:43 2015 -0500
----------------------------------------------------------------------
frameworks/build.xml | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/94d9cf2f/frameworks/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/build.xml b/frameworks/build.xml
index 1a01430..0611280 100644
--- a/frameworks/build.xml
+++ b/frameworks/build.xml
@@ -99,7 +99,6 @@
<ant dir="${basedir}/projects/Formatters" target="compile-asjs"/>
<ant dir="${basedir}/projects/GoogleMaps" target="compile-asjs"/>
<ant dir="${basedir}/projects/HTML5" target="compile-asjs"/>
- <ant dir="${basedir}/projects/JQuery" target="compile-asjs"/>
</target>
<target name="lint-js" description="Cross-compiles all SWCs">
@@ -108,7 +107,6 @@
<ant dir="${basedir}/projects/Formatters" target="lint-js"/>
<ant dir="${basedir}/projects/GoogleMaps" target="lint-js"/>
<ant dir="${basedir}/projects/HTML5" target="lint-js"/>
- <ant dir="${basedir}/projects/JQuery" target="lint-js"/>
</target>
<target name="re-compile" description="Builds all SWCs which should pick up the JS files from asjs">
@@ -118,7 +116,6 @@
<ant dir="${basedir}/projects/Formatters" target="compile"/>
<ant dir="${basedir}/projects/GoogleMaps" target="compile"/>
<ant dir="${basedir}/projects/HTML5" target="compile"/>
- <ant dir="${basedir}/projects/JQuery" target="compile"/>
</target>
<target name="js" depends="compile-asjs, lint-js" />
@@ -236,7 +233,7 @@
</target>
<target name="JQuery" description="Clean build of JQuery.swc">
- <ant dir="${basedir}/projects/JQuery"/>
+ <ant dir="${basedir}/projects/JQuery" target="all"/>
</target>
<target name="Mobile" description="Clean build of Mobile.swc">
[51/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - get
rid of a warning
Posted by ah...@apache.org.
get rid of a warning
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9180820f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9180820f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9180820f
Branch: refs/heads/develop
Commit: 9180820f6a9eaae76a14c4841595aa339cb94962
Parents: cb0d947
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 14:49:48 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 14:49:48 2015 -0800
----------------------------------------------------------------------
examples/flexjs/ChartExample/build.xml | 2 ++
examples/flexjs/MobileTrader/build.xml | 2 ++
2 files changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9180820f/examples/flexjs/ChartExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/ChartExample/build.xml b/examples/flexjs/ChartExample/build.xml
index 20b4415..e193711 100644
--- a/examples/flexjs/ChartExample/build.xml
+++ b/examples/flexjs/ChartExample/build.xml
@@ -57,6 +57,8 @@
property="GOOG_HOME"
value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
+
<include file="${basedir}/../../build_example.xml" />
<!-- temp remove build_example.compilejs -->
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9180820f/examples/flexjs/MobileTrader/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileTrader/build.xml b/examples/flexjs/MobileTrader/build.xml
index 92a54b9..cfadc95 100644
--- a/examples/flexjs/MobileTrader/build.xml
+++ b/examples/flexjs/MobileTrader/build.xml
@@ -56,6 +56,8 @@
property="GOOG_HOME"
value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
+
<include file="${basedir}/../../build_example.xml" />
<target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
[22/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - sync
up master build now that all libraries are back ported
Posted by ah...@apache.org.
sync up master build now that all libraries are back ported
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/313654fb
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/313654fb
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/313654fb
Branch: refs/heads/develop
Commit: 313654fb2e69e7df9ce67e131996f32adf54da9c
Parents: 240b883
Author: Alex Harui <ah...@apache.org>
Authored: Thu Dec 10 16:56:49 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Dec 10 16:56:49 2015 -0800
----------------------------------------------------------------------
frameworks/build.xml | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/313654fb/frameworks/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/build.xml b/frameworks/build.xml
index 8695298..0317c2d 100644
--- a/frameworks/build.xml
+++ b/frameworks/build.xml
@@ -95,19 +95,13 @@
</target>
<target name="compile-asjs" description="Cross-compiles all SWCs">
- <ant dir="${basedir}/projects/Formatters" target="compile-asjs"/>
- <ant dir="${basedir}/projects/GoogleMaps" target="compile-asjs"/>
</target>
<target name="lint-js" description="Cross-compiles all SWCs">
- <ant dir="${basedir}/projects/Formatters" target="lint-js"/>
- <ant dir="${basedir}/projects/GoogleMaps" target="lint-js"/>
</target>
<target name="re-compile" description="Builds all SWCs which should pick up the JS files from asjs">
<!-- order may matter due to dependencies -->
- <ant dir="${basedir}/projects/Formatters" target="compile"/>
- <ant dir="${basedir}/projects/GoogleMaps" target="compile"/>
</target>
<target name="js" depends="compile-asjs, lint-js" />
@@ -205,11 +199,11 @@
</target>
<target name="Formatters" description="Clean build of Formatters.swc">
- <ant dir="${basedir}/projects/Formatters"/>
+ <ant dir="${basedir}/projects/Formatters" target="all"/>
</target>
<target name="GoogleMaps" description="Clean build of GoogleMaps.swc">
- <ant dir="${basedir}/projects/GoogleMaps"/>
+ <ant dir="${basedir}/projects/GoogleMaps" target="all"/>
</target>
<target name="Graphics" description="Clean build of Graphics.swc">
[10/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Posted by ah...@apache.org.
delete handwritten JS from these projects since they are theoretically replaced by cross-compiled AS
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d4cace4a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d4cace4a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d4cace4a
Branch: refs/heads/develop
Commit: d4cace4a5ca18323d8b58c741be4cab71182f828
Parents: 9705549
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 2 11:33:14 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 2 11:33:14 2015 -0800
----------------------------------------------------------------------
.../src/org/apache/flex/binding/BindingBase.js | 117 ---
.../src/org/apache/flex/binding/ChainBinding.js | 207 -----
.../org/apache/flex/binding/ConstantBinding.js | 72 --
.../org/apache/flex/binding/GenericBinding.js | 172 ----
.../org/apache/flex/binding/PropertyWatcher.js | 195 -----
.../org/apache/flex/binding/SimpleBinding.js | 94 --
.../apache/flex/binding/ViewBaseDataBinding.js | 349 --------
.../src/org/apache/flex/binding/WatcherBase.js | 246 ------
.../org/apache/flex/charts/core/ChartBase.js | 87 --
.../org/apache/flex/charts/core/IAxisBead.js | 61 --
.../org/apache/flex/charts/core/IAxisGroup.js | 45 -
.../flex/charts/core/ICartesianChartLayout.js | 39 -
.../src/org/apache/flex/charts/core/IChart.js | 48 -
.../org/apache/flex/charts/core/IChartAxis.js | 39 -
.../apache/flex/charts/core/IChartDataGroup.js | 53 --
.../flex/charts/core/IChartItemRenderer.js | 78 --
.../org/apache/flex/charts/core/IChartSeries.js | 65 --
.../flex/charts/core/IHorizontalAxisBead.js | 60 --
.../flex/charts/core/IVerticalAxisBead.js | 59 --
.../charts/supportClasses/ChartAxisGroup.js | 162 ----
.../charts/supportClasses/ChartDataGroup.js | 83 --
.../org/apache/flex/collections/ICollection.js | 50 --
.../apache/flex/collections/LazyCollection.js | 163 ----
.../collections/converters/JSONItemConverter.js | 48 -
.../flex/collections/parsers/JSONInputParser.js | 48 -
.../js/src/org/apache/flex/core/Application.js | 176 ----
.../js/src/org/apache/flex/core/BeadViewBase.js | 71 --
.../apache/flex/core/BrowserResizeListener.js | 78 --
.../src/org/apache/flex/core/BrowserScroller.js | 55 --
.../src/org/apache/flex/core/BrowserWindow.js | 45 -
.../src/org/apache/flex/core/CSSFontFaceBead.js | 54 --
.../src/org/apache/flex/core/CallLaterBead.js | 93 --
.../js/src/org/apache/flex/core/ClassFactory.js | 64 --
.../src/org/apache/flex/core/ContainerBase.js | 378 --------
.../flex/core/ContainerBaseStrandChildren.js | 112 ---
.../src/org/apache/flex/core/DataBindingBase.js | 34 -
.../src/org/apache/flex/core/FilledRectangle.js | 86 --
.../org/apache/flex/core/HTMLElementWrapper.js | 177 ----
.../Core/js/src/org/apache/flex/core/IBead.js | 49 --
.../src/org/apache/flex/core/IBeadController.js | 42 -
.../js/src/org/apache/flex/core/IBeadLayout.js | 42 -
.../js/src/org/apache/flex/core/IBeadModel.js | 45 -
.../js/src/org/apache/flex/core/IBeadView.js | 38 -
.../Core/js/src/org/apache/flex/core/IChild.js | 49 --
.../Core/js/src/org/apache/flex/core/IChrome.js | 31 -
.../js/src/org/apache/flex/core/IContainer.js | 52 --
.../src/org/apache/flex/core/IContainerView.js | 44 -
.../js/src/org/apache/flex/core/IContentView.js | 79 --
.../org/apache/flex/core/IContentViewHost.js | 52 --
.../core/IDataProviderItemRendererMapper.js | 53 --
.../js/src/org/apache/flex/core/IDocument.js | 51 --
.../js/src/org/apache/flex/core/IEffectTimer.js | 45 -
.../js/src/org/apache/flex/core/IFactory.js | 45 -
.../js/src/org/apache/flex/core/IFormatBead.js | 62 --
.../src/org/apache/flex/core/IItemRenderer.js | 38 -
.../flex/core/IItemRendererClassFactory.js | 38 -
.../apache/flex/core/IItemRendererFactory.js | 45 -
.../org/apache/flex/core/IItemRendererParent.js | 48 -
.../js/src/org/apache/flex/core/ILayoutChild.js | 42 -
.../js/src/org/apache/flex/core/ILayoutHost.js | 46 -
.../apache/flex/core/IListPresentationModel.js | 60 --
.../src/org/apache/flex/core/IMXMLDocument.js | 41 -
.../org/apache/flex/core/IMeasurementBead.js | 38 -
.../Core/js/src/org/apache/flex/core/IParent.js | 70 --
.../src/org/apache/flex/core/IParentIUIBase.js | 46 -
.../js/src/org/apache/flex/core/IPopUpHost.js | 45 -
.../src/org/apache/flex/core/IRollOverModel.js | 58 --
.../apache/flex/core/ISelectableItemRenderer.js | 75 --
.../src/org/apache/flex/core/ISelectionModel.js | 65 --
.../js/src/org/apache/flex/core/IStatesImpl.js | 47 -
.../Core/js/src/org/apache/flex/core/IStrand.js | 70 --
.../org/apache/flex/core/IStyleableObject.js | 46 -
.../js/src/org/apache/flex/core/ITextModel.js | 54 --
.../Core/js/src/org/apache/flex/core/IUIBase.js | 40 -
.../js/src/org/apache/flex/core/IValuesImpl.js | 73 --
.../js/src/org/apache/flex/core/IViewport.js | 44 -
.../src/org/apache/flex/core/IViewportModel.js | 44 -
.../flex/core/ItemRendererClassFactory.js | 96 --
.../js/src/org/apache/flex/core/ListBase.js | 179 ----
.../apache/flex/core/ListBaseStrandChildren.js | 112 ---
.../org/apache/flex/core/SimpleApplication.js | 49 --
.../org/apache/flex/core/SimpleCSSValuesImpl.js | 361 --------
.../org/apache/flex/core/SimpleStatesImpl.js | 221 -----
.../org/apache/flex/core/SimpleValuesImpl.js | 33 -
.../Core/js/src/org/apache/flex/core/UIBase.js | 872 -------------------
.../src/org/apache/flex/core/ValuesManager.js | 57 --
.../js/src/org/apache/flex/core/ViewBase.js | 143 ---
.../src/org/apache/flex/events/BrowserEvent.js | 162 ----
.../src/org/apache/flex/events/CustomEvent.js | 58 --
.../src/org/apache/flex/events/ElementEvents.js | 52 --
.../Core/js/src/org/apache/flex/events/Event.js | 71 --
.../org/apache/flex/events/EventDispatcher.js | 138 ---
.../org/apache/flex/events/IEventDispatcher.js | 40 -
.../js/src/org/apache/flex/events/MouseEvent.js | 186 ----
.../org/apache/flex/events/ValueChangeEvent.js | 119 ---
.../js/src/org/apache/flex/events/ValueEvent.js | 69 --
.../org/apache/flex/events/utils/MouseUtils.js | 62 --
.../Core/js/src/org/apache/flex/geom/Point.js | 56 --
.../js/src/org/apache/flex/geom/Rectangle.js | 104 ---
.../Core/js/src/org/apache/flex/geom/Size.js | 56 --
.../js/src/org/apache/flex/states/AddItems.js | 249 ------
.../org/apache/flex/states/SetEventHandler.js | 152 ----
.../src/org/apache/flex/states/SetProperty.js | 173 ----
.../Core/js/src/org/apache/flex/states/State.js | 82 --
.../js/src/org/apache/flex/svg/TextButton.js | 90 --
.../apache/flex/svg/assets/TextButton_Skin.svg | 279 ------
.../js/src/org/apache/flex/utils/BinaryData.js | 223 -----
.../org/apache/flex/utils/CSSContainerUtils.js | 83 --
.../js/src/org/apache/flex/utils/EffectTimer.js | 94 --
.../js/src/org/apache/flex/utils/Language.js | 316 -------
.../apache/flex/utils/MXMLDataInterpreter.js | 412 ---------
.../src/org/apache/flex/utils/MixinManager.js | 62 --
.../js/src/org/apache/flex/utils/PointUtils.js | 82 --
.../Core/js/src/org/apache/flex/utils/Timer.js | 148 ----
.../js/src/org/apache/flex/utils/UIUtils.js | 84 --
.../flex/utils/ViewSourceContextMenuOption.js | 47 -
.../js/src/org/apache/flex/events/DragEvent.js | 146 ----
.../org/apache/flex/effects/PlatformWiper.js | 85 --
.../src/org/apache/flex/core/graphics/Circle.js | 101 ---
.../org/apache/flex/core/graphics/Ellipse.js | 80 --
.../apache/flex/core/graphics/GradientBase.js | 141 ---
.../apache/flex/core/graphics/GradientEntry.js | 126 ---
.../apache/flex/core/graphics/GraphicShape.js | 205 -----
.../flex/core/graphics/GraphicsContainer.js | 250 ------
.../src/org/apache/flex/core/graphics/IFill.js | 52 --
.../org/apache/flex/core/graphics/IStroke.js | 52 --
.../src/org/apache/flex/core/graphics/Line.js | 79 --
.../apache/flex/core/graphics/LinearGradient.js | 125 ---
.../src/org/apache/flex/core/graphics/Path.js | 101 ---
.../src/org/apache/flex/core/graphics/Rect.js | 80 --
.../org/apache/flex/core/graphics/SolidColor.js | 92 --
.../flex/core/graphics/SolidColorStroke.js | 109 ---
.../src/org/apache/flex/core/graphics/Text.js | 70 --
.../HTML/js/src/org/apache/flex/html/Alert.js | 193 ----
.../HTML/js/src/org/apache/flex/html/Button.js | 61 --
.../js/src/org/apache/flex/html/ButtonBar.js | 85 --
.../js/src/org/apache/flex/html/CheckBox.js | 91 --
.../js/src/org/apache/flex/html/CloseButton.js | 55 --
.../js/src/org/apache/flex/html/ComboBox.js | 194 -----
.../js/src/org/apache/flex/html/Container.js | 123 ---
.../js/src/org/apache/flex/html/ControlBar.js | 59 --
.../js/src/org/apache/flex/html/DropDownList.js | 142 ---
.../js/src/org/apache/flex/html/HContainer.js | 42 -
.../HTML/js/src/org/apache/flex/html/HRule.js | 45 -
.../HTML/js/src/org/apache/flex/html/Image.js | 82 --
.../org/apache/flex/html/ImageAndTextButton.js | 103 ---
.../HTML/js/src/org/apache/flex/html/Label.js | 71 --
.../HTML/js/src/org/apache/flex/html/List.js | 196 -----
.../src/org/apache/flex/html/MultilineLabel.js | 69 --
.../src/org/apache/flex/html/NumericStepper.js | 163 ----
.../HTML/js/src/org/apache/flex/html/Panel.js | 163 ----
.../js/src/org/apache/flex/html/RadioButton.js | 180 ----
.../js/src/org/apache/flex/html/SimpleAlert.js | 51 --
.../js/src/org/apache/flex/html/SimpleList.js | 111 ---
.../HTML/js/src/org/apache/flex/html/Slider.js | 173 ----
.../HTML/js/src/org/apache/flex/html/Spacer.js | 44 -
.../HTML/js/src/org/apache/flex/html/Spinner.js | 171 ----
.../js/src/org/apache/flex/html/TextArea.js | 71 --
.../js/src/org/apache/flex/html/TextButton.js | 54 --
.../js/src/org/apache/flex/html/TextInput.js | 98 ---
.../js/src/org/apache/flex/html/TitleBar.js | 87 --
.../org/apache/flex/html/ToggleTextButton.js | 122 ---
.../HTML/js/src/org/apache/flex/html/ToolTip.js | 40 -
.../js/src/org/apache/flex/html/VContainer.js | 42 -
.../HTML/js/src/org/apache/flex/html/VRule.js | 50 --
.../accessories/NumericOnlyTextInputBead.js | 92 --
.../flex/html/accessories/PasswordInputBead.js | 54 --
.../flex/html/accessories/TextPromptBead.js | 64 --
.../org/apache/flex/html/beads/ButtonBarView.js | 70 --
.../org/apache/flex/html/beads/ContainerView.js | 434 ---------
.../DataItemRendererFactoryForArrayData.js | 140 ---
.../src/org/apache/flex/html/beads/IListView.js | 43 -
.../apache/flex/html/beads/ImageButtonView.js | 45 -
.../src/org/apache/flex/html/beads/ImageView.js | 117 ---
.../src/org/apache/flex/html/beads/ListView.js | 169 ----
.../src/org/apache/flex/html/beads/PanelView.js | 204 -----
.../flex/html/beads/ScrollingContainerView.js | 81 --
.../apache/flex/html/beads/SliderThumbView.js | 62 --
.../apache/flex/html/beads/SliderTrackView.js | 62 --
.../flex/html/beads/TextInputWithBorderView.js | 45 -
.../TextItemRendererFactoryForArrayData.js | 117 ---
.../controllers/ItemRendererMouseController.js | 127 ---
.../ListSingleSelectionMouseController.js | 77 --
.../beads/controllers/SliderMouseController.js | 172 ----
.../beads/controllers/SpinnerMouseController.js | 85 --
.../flex/html/beads/layouts/BasicLayout.js | 125 ---
.../flex/html/beads/layouts/ButtonBarLayout.js | 110 ---
.../flex/html/beads/layouts/HorizontalLayout.js | 100 ---
.../flex/html/beads/layouts/TileLayout.js | 168 ----
.../flex/html/beads/layouts/VerticalLayout.js | 97 ---
.../html/beads/models/ArraySelectionModel.js | 127 ---
.../apache/flex/html/beads/models/ImageModel.js | 66 --
.../html/beads/models/ListPresentationModel.js | 94 --
.../apache/flex/html/beads/models/PanelModel.js | 110 ---
.../apache/flex/html/beads/models/RangeModel.js | 158 ----
.../apache/flex/html/beads/models/TextModel.js | 68 --
.../flex/html/beads/models/TitleBarModel.js | 112 ---
.../flex/html/beads/models/ViewportModel.js | 93 --
.../ButtonBarButtonItemRenderer.js | 105 ---
.../html/supportClasses/ContainerContentArea.js | 80 --
.../flex/html/supportClasses/DataGridColumn.js | 75 --
.../flex/html/supportClasses/DataGroup.js | 138 ---
.../html/supportClasses/DataItemRenderer.js | 134 ---
.../html/supportClasses/ScrollingViewport.js | 130 ---
.../html/supportClasses/StringItemRenderer.js | 144 ---
.../html/supportClasses/UIItemRendererBase.js | 181 ----
.../apache/flex/html/supportClasses/Viewport.js | 112 ---
.../js/src/org/apache/cordova/Application.js | 61 --
.../Mobile/js/src/org/apache/cordova/Weinre.js | 67 --
.../js/src/org/apache/cordova/camera/Camera.js | 136 ---
.../src/org/apache/flex/mobile/ManagerBase.js | 136 ---
.../src/org/apache/flex/net/BinaryUploader.js | 360 --------
.../js/src/org/apache/flex/net/HTTPHeader.js | 63 --
.../js/src/org/apache/flex/net/HTTPService.js | 420 ---------
214 files changed, 23042 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Binding/js/src/org/apache/flex/binding/BindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/js/src/org/apache/flex/binding/BindingBase.js b/frameworks/projects/Binding/js/src/org/apache/flex/binding/BindingBase.js
deleted file mode 100644
index 9b83587..0000000
--- a/frameworks/projects/Binding/js/src/org/apache/flex/binding/BindingBase.js
+++ /dev/null
@@ -1,117 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.binding.BindingBase');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.binding.BindingBase = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.binding.BindingBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'BindingBase',
- qName: 'org.apache.flex.binding.BindingBase'}] };
-
-
-/**
- * @protected
- * @type {Object}
- */
-org.apache.flex.binding.BindingBase.prototype.document = null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.binding.BindingBase.prototype.destination = null;
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.binding.BindingBase.prototype.destinationPropertyName = '';
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.binding.BindingBase.prototype.source = null;
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.binding.BindingBase.prototype.sourcePropertyName = '';
-
-
-/**
- * @export
- * @type {?string}
- */
-org.apache.flex.binding.BindingBase.prototype.sourceID = null;
-
-
-/**
- * @export
- * @param {Object} document The MXML object.
- */
-org.apache.flex.binding.BindingBase.prototype.setDocument = function(document) {
- this.document = document;
-};
-
-
-/**
- * @param {Object} event The event.
- */
-org.apache.flex.binding.BindingBase.prototype.sourceChangeHandler = function(event) {
- if (event.propertyName != this.sourceID)
- return;
-
- this.source = this.document[this.sourceID];
-};
-
-
-Object.defineProperties(org.apache.flex.binding.BindingBase.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.binding.BindingBase} */
- set: function(value) {
- if (this.destination == null)
- this.destination = value;
- if (this.sourceID != null) {
- this.source = this.document[this.sourceID];
- if (this.source == null) {
- this.document.addEventListener('valueChange',
- goog.bind(this.sourceChangeHandler, this));
- return;
- }
- }
- else
- this.source = this.document;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Binding/js/src/org/apache/flex/binding/ChainBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/js/src/org/apache/flex/binding/ChainBinding.js b/frameworks/projects/Binding/js/src/org/apache/flex/binding/ChainBinding.js
deleted file mode 100644
index 5beeb2c..0000000
--- a/frameworks/projects/Binding/js/src/org/apache/flex/binding/ChainBinding.js
+++ /dev/null
@@ -1,207 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.binding.ChainBinding');
-goog.provide('org.apache.flex.binding.ChainWatcher');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.binding.ChainBinding = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.binding.ChainBinding.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ChainBinding',
- qName: 'org.apache.flex.binding.ChainBinding'}] };
-
-
-/**
- * @protected
- * @type {Object}
- */
-org.apache.flex.binding.ChainBinding.prototype.document = null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.binding.ChainBinding.prototype.destination = null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.binding.ChainBinding.prototype.value = null;
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.binding.ChainBinding.prototype.source = null;
-
-
-/**
- */
-org.apache.flex.binding.ChainBinding.prototype.applyBinding = function() {
- var chainSet = this.evaluateSourceChain();
- if (chainSet)
- this.applyValue();
-};
-
-
-/**
- * @return {boolean} True if chain complete.
- */
-org.apache.flex.binding.ChainBinding.prototype.evaluateSourceChain = function() {
- var propName;
- var n = this.source.length;
- var obj = this.document;
- for (var i = 0; i < n - 1; i++) {
- propName = this.source[i];
- var propObj;
- propObj = obj[propName];
- var watcher = new org.apache.flex.binding.ChainWatcher(propName, this.applyBinding);
- obj.addEventListener('valueChange', watcher.handler);
- if (propObj == null)
- return false;
- obj = propObj;
- }
- propName = this.source[n - 1];
- var self = this;
- function valueChangeHandler(event) {
- if (event.propertyName != propName)
- return;
- self.value = event.newValue;
- self.applyValue();
- }
- obj.addEventListener('valueChange', valueChangeHandler);
-
- // we have a complete chain, get the value
- this.value = obj[propName];
- return true;
-};
-
-
-/**
- */
-org.apache.flex.binding.ChainBinding.prototype.applyValue = function() {
- var destinationName, n, obj, self;
- function handler(event) {
- if (event.propertyName != propName)
- return;
- if (event.oldValue != null)
- event.oldValue.removeEventListener('valueChange', handler);
- self.applyValue();
- }
- if (typeof(this.destination) === 'string') {
- destinationName = this.destination;
- this.document[destinationName] = this.value;
- return;
- }
-
- n = this.destination.length;
- obj = this.document;
- self = this;
- for (var i = 0; i < n - 1; i++) {
- var propName = this.destination[i];
- var propObj;
- propObj = obj[propName];
- if (propObj == null) {
- obj.addEventListener('valueChange', handler);
- return;
- }
- obj = propObj;
- }
- obj[this.destination[n - 1]] = this.value;
-};
-
-
-/**
- * @export
- * @param {Object} document The MXML object.
- */
-org.apache.flex.binding.ChainBinding.prototype.setDocument = function(document) {
- this.document = document;
-};
-
-
-
-/**
- * @constructor
- * @param {string} propName The name of the property to watch.
- * @param {function()} cb The callback function.
- */
-org.apache.flex.binding.ChainWatcher = function(propName, cb) {
- this.propertyName = propName;
- this.callback = cb;
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.binding.ChainWatcher.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ChainWatcher',
- qName: 'org.apache.flex.binding.ChainWatcher'}] };
-
-
-/**
- * @protected
- * @type {string}
- */
-org.apache.flex.binding.ChainWatcher.prototype.propertyName = '';
-
-
-/**
- * @protected
- * @type {?function()}
- */
-org.apache.flex.binding.ChainWatcher.prototype.callback = null;
-
-
-/**
- * @export
- * @param {Object} event The event object.
- */
-org.apache.flex.binding.ChainWatcher.prototype.handler = function(event) {
- if (event.propertyName != this.propertyName)
- return;
- if (event.oldValue != null)
- event.oldValue.removeEventListener('valueChange', this.handler);
- this.callback();
-};
-
-
-Object.defineProperties(org.apache.flex.binding.ChainBinding.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.binding.ChainBinding} */
- set: function(value) {
- this.applyBinding();
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Binding/js/src/org/apache/flex/binding/ConstantBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/js/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/projects/Binding/js/src/org/apache/flex/binding/ConstantBinding.js
deleted file mode 100644
index 65f5e43..0000000
--- a/frameworks/projects/Binding/js/src/org/apache/flex/binding/ConstantBinding.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.binding.ConstantBinding');
-
-goog.require('org.apache.flex.binding.BindingBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.binding.BindingBase}
- */
-org.apache.flex.binding.ConstantBinding = function() {
- org.apache.flex.binding.ConstantBinding.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.binding.ConstantBinding,
- org.apache.flex.binding.BindingBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.binding.ConstantBinding.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ConstantBinding',
- qName: 'org.apache.flex.binding.ConstantBinding'}] };
-
-
-Object.defineProperties(org.apache.flex.binding.ConstantBinding.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.binding.ConstantBinding} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(org.apache.flex.binding.ConstantBinding, this, 'strand', value);
-
- var val;
- if (this.sourcePropertyName in this.source) {
- val = this.source[this.sourcePropertyName];
- } else if (this.sourcePropertyName in this.source.constructor) {
- val = this.source.constructor[this.sourcePropertyName];
- } else {
- // GCC optimizer only puts exported class constants on
- // Window and not on the class itself (which got renamed)
- var cname = this.source.FLEXJS_CLASS_INFO;
- if (cname) {
- cname = cname.names[0].qName;
- var parts = cname.split('.');
- var n = parts.length;
- var o = window;
- for (var i = 0; i < n; i++) {
- o = o[parts[i]];
- }
- val = o[this.sourcePropertyName];
- }
- }
- this.destination[this.destinationPropertyName] = val;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Binding/js/src/org/apache/flex/binding/GenericBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/js/src/org/apache/flex/binding/GenericBinding.js b/frameworks/projects/Binding/js/src/org/apache/flex/binding/GenericBinding.js
deleted file mode 100644
index 37aff5e..0000000
--- a/frameworks/projects/Binding/js/src/org/apache/flex/binding/GenericBinding.js
+++ /dev/null
@@ -1,172 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.binding.GenericBinding');
-
-goog.require('org.apache.flex.binding.BindingBase');
-goog.require('org.apache.flex.events.ValueChangeEvent');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.binding.BindingBase}
- */
-org.apache.flex.binding.GenericBinding = function() {
- org.apache.flex.binding.GenericBinding.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.binding.GenericBinding,
- org.apache.flex.binding.BindingBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.binding.GenericBinding.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'GenericBinding',
- qName: 'org.apache.flex.binding.GenericBinding'}] };
-
-
-/**
- * @export
- * @type {Object}
- */
-org.apache.flex.binding.GenericBinding.prototype.destinationData = null;
-
-
-/**
- * @export
- * @type {?function(?): ?}
- */
-org.apache.flex.binding.GenericBinding.prototype.destinationFunction = null;
-
-
-Object.defineProperties(org.apache.flex.binding.GenericBinding.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.binding.GenericBinding} */
- set: function(value) {
- this.destination = value;
-
- try {
- var val = this.getValueFromSource();
- this.applyValue(val);
- } catch (e) {
- }
- }
- }
-});
-
-
-/**
- * @export
- * @return {Object} The value from the source as specified.
- */
-org.apache.flex.binding.GenericBinding.prototype.getValueFromSource =
- function() {
- var obj;
- if (typeof(this.source) == 'object' &&
- typeof(this.source.slice) == 'function')
- {
- var arr = this.source;
- var n = arr.length;
- obj = this.document[arr[0]];
- if (obj == null)
- return null;
- for (var i = 1; i < n; i++)
- {
- obj = obj[arr[i]];
- if (obj == null)
- return null;
- }
- return obj;
- }
- else if (typeof(this.source) == 'function')
- {
- var fn = this.source;
- obj = fn.apply(this.document);
- return obj;
- }
- else if (typeof(this.source) == 'string')
- {
- obj = this.document[this.source];
- return obj;
- }
- return null;
-};
-
-
-/**
- * @export
- * @param {Object} value The value from the source as specified.
- */
-org.apache.flex.binding.GenericBinding.prototype.applyValue =
- function(value) {
- if (this.destinationFunction != null)
- {
- this.destinationFunction.apply(this.document, [value]);
- }
- else if (typeof(this.destinationData) == 'object')
- {
- var arr = this.destinationData;
- var n = arr.length;
- var obj;
- var getter = arr[0];
- obj = this.document[arr[0]];
- if (obj == null) {
- this.document.addEventListener(
- org.apache.flex.events.ValueChangeEvent.VALUE_CHANGE,
- goog.bind(this.destinationChangeHandler, this));
- return;
- }
- for (var i = 1; i < n - 1; i++)
- {
- getter = arr[i];
- obj = obj[arr[i]];
- if (obj == null)
- return;
- }
- var setter = arr[n - 1];
- obj[arr[n - 1]] = value;
- }
-};
-
-
-/**
- * @export
- * @param {Object} value The value from the source as specified.
- */
-org.apache.flex.binding.GenericBinding.prototype.valueChanged =
- function(value) {
-
- try {
- var val = this.getValueFromSource();
- this.applyValue(val);
- } catch (e) {
- }
-};
-
-
-/**
- * @export
- * @param {Object} event The change event.
- */
-org.apache.flex.binding.GenericBinding.prototype.destinationChangeHandler =
- function(event) {
- if (event.propertyName == this.destinationData[0])
- this.valueChanged(null);
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Binding/js/src/org/apache/flex/binding/PropertyWatcher.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/js/src/org/apache/flex/binding/PropertyWatcher.js b/frameworks/projects/Binding/js/src/org/apache/flex/binding/PropertyWatcher.js
deleted file mode 100644
index 5549be9..0000000
--- a/frameworks/projects/Binding/js/src/org/apache/flex/binding/PropertyWatcher.js
+++ /dev/null
@@ -1,195 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.binding.PropertyWatcher');
-
-goog.require('org.apache.flex.binding.WatcherBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.binding.WatcherBase}
- * @param {Object} source The source object.
- * @param {string} propertyName The property in the source.
- * @param {Object} eventNames An array of event names or an event name.
- * @param {function(?): ?} getterFunction A function to get the source property.
- */
-org.apache.flex.binding.PropertyWatcher =
- function(source, propertyName, eventNames, getterFunction) {
- org.apache.flex.binding.PropertyWatcher.base(this, 'constructor');
-
- this.source = source;
- this.propertyName = propertyName;
- this.getterFunction = getterFunction;
- this.eventNames = eventNames;
-};
-goog.inherits(org.apache.flex.binding.PropertyWatcher,
- org.apache.flex.binding.WatcherBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.binding.PropertyWatcher.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'PropertyWatcher',
- qName: 'org.apache.flex.binding.PropertyWatcher'}] };
-
-
-/**
- * @type {Object}
- */
-org.apache.flex.binding.PropertyWatcher.prototype.source = null;
-
-
-/**
- * @type {?string}
- */
-org.apache.flex.binding.PropertyWatcher.prototype.propertyName = null;
-
-
-/**
- * @type {Object}
- */
-org.apache.flex.binding.PropertyWatcher.prototype.eventNames = null;
-
-
-/**
- * @type {?function(?): ?}
- */
-org.apache.flex.binding.PropertyWatcher.prototype.getterFunction = null;
-
-
-/**
- * @protected
- * @param {Object} event The event.
- */
-org.apache.flex.binding.PropertyWatcher.prototype.changeHandler =
- function(event) {
- if (typeof(event.propertyName) == 'string')
- {
- var propName = event.propertyName;
-
- if (propName != this.propertyName)
- return;
- }
-
- this.wrapUpdate(this.updateProperty);
-
- this.notifyListeners();
-
-};
-
-
-/**
- * @export
- * @param {Object} parent The new parent watcher.
- */
-org.apache.flex.binding.PropertyWatcher.prototype.parentChanged =
- function(parent) {
-
- if (this.source &&
- typeof(this.source.removeEventListener) == 'function')
- this.removeEventListeners();
-
- this.source = parent;
-
- if (this.source && typeof(this.source.addEventListener) == 'function')
- this.addEventListeners();
-
- // Now get our property.
- this.wrapUpdate(this.updateProperty);
-};
-
-
-/**
- * @protected
- */
-org.apache.flex.binding.PropertyWatcher.prototype.addEventListeners =
- function() {
- if (typeof(this.eventNames) == 'string')
- this.source.addEventListener(this.eventNames,
- goog.bind(this.changeHandler, this));
- else if (typeof(this.eventNames) == 'object')
- {
- var arr = this.eventNames;
- var n = arr.length;
- for (var i = 0; i < n; i++)
- {
- var eventName = this.eventNames[i];
- this.source.addEventListener(eventName,
- goog.bind(this.changeHandler, this));
- }
- }
-};
-
-
-/**
- * @protected
- */
-org.apache.flex.binding.PropertyWatcher.prototype.removeEventListeners =
- function() {
- if (typeof(this.eventNames) == 'string')
- this.source.removeEventListener(this.eventNames,
- goog.bind(this.changeHandler, this));
- else if (typeof(this.eventNames) == 'object')
- {
- var arr = this.eventNames;
- var n = arr.length;
- for (var i = 0; i < n; i++)
- {
- var eventName = this.eventNames[i];
- this.source.removeEventListener(eventName,
- goog.bind(this.changeHandler, this));
- }
- }
-};
-
-
-/**
- * @protected
- * Gets the actual property then updates
- * the Watcher's children appropriately.
- */
-org.apache.flex.binding.PropertyWatcher.prototype.updateProperty =
- function() {
-
- if (this.source)
- {
- if (this.propertyName == 'this')
- {
- this.value = this.source;
- }
- else
- {
- if (this.getterFunction != null)
- {
- this.value = this.getterFunction.apply(
- this.source, [this.propertyName]);
- }
- else
- {
- this.value = this.source[this.propertyName];
- }
- }
- }
- else
- {
- this.value = null;
- }
-
- this.updateChildren();
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Binding/js/src/org/apache/flex/binding/SimpleBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/js/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/projects/Binding/js/src/org/apache/flex/binding/SimpleBinding.js
deleted file mode 100644
index 4846f06..0000000
--- a/frameworks/projects/Binding/js/src/org/apache/flex/binding/SimpleBinding.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.binding.SimpleBinding');
-
-goog.require('org.apache.flex.binding.BindingBase');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.binding.BindingBase}
- */
-org.apache.flex.binding.SimpleBinding = function() {
- org.apache.flex.binding.SimpleBinding.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.binding.SimpleBinding,
- org.apache.flex.binding.BindingBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.binding.SimpleBinding.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SimpleBinding',
- qName: 'org.apache.flex.binding.SimpleBinding'}] };
-
-
-/**
- * @export
- * @type {string}
- */
-org.apache.flex.binding.SimpleBinding.prototype.eventName = '';
-
-
-/**
- * @export
- */
-org.apache.flex.binding.SimpleBinding.prototype.changeHandler = function() {
- try {
- this.destination[this.destinationPropertyName] =
- this.source[this.sourcePropertyName];
- }
- catch (e) {}
-};
-
-
-/**
- * @param {Object} event The event.
- */
-org.apache.flex.binding.SimpleBinding.prototype.sourceChangeHandler = function(event) {
- org.apache.flex.binding.SimpleBinding.base(this, 'sourceChangeHandler', event);
- if (this.source) {
- this.source.addEventListener(this.eventName,
- goog.bind(this.changeHandler, this));
- this.changeHandler();
- }
-};
-
-
-Object.defineProperties(org.apache.flex.binding.SimpleBinding.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.binding.SimpleBinding} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(
- org.apache.flex.binding.SimpleBinding, this, 'strand', value);
-
- if (!this.source)
- return;
-
- this.source.addEventListener(this.eventName,
- goog.bind(this.changeHandler, this));
-
- this.changeHandler();
- }
- }
-});
-
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Binding/js/src/org/apache/flex/binding/ViewBaseDataBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/js/src/org/apache/flex/binding/ViewBaseDataBinding.js b/frameworks/projects/Binding/js/src/org/apache/flex/binding/ViewBaseDataBinding.js
deleted file mode 100644
index d41c23f..0000000
--- a/frameworks/projects/Binding/js/src/org/apache/flex/binding/ViewBaseDataBinding.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.binding.ViewBaseDataBinding');
-
-goog.require('org.apache.flex.binding.ConstantBinding');
-goog.require('org.apache.flex.binding.GenericBinding');
-goog.require('org.apache.flex.binding.PropertyWatcher');
-goog.require('org.apache.flex.binding.SimpleBinding');
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.events.ValueChangeEvent');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.binding.ViewBaseDataBinding = function() {
-
- /**
- * @private
- * @type {Object}
- */
- this.strand_ = null;
-
- /**
- * @protected
- * @type {Object}
- */
- this.deferredBindings = {};
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.binding.ViewBaseDataBinding.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ViewBaseDataBinding',
- qName: 'org.apache.flex.binding.ViewBaseDataBinding'}] };
-
-
-Object.defineProperties(org.apache.flex.binding.ViewBaseDataBinding.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.binding.ViewBaseDataBinding} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.addEventListener('initBindings',
- goog.bind(this.initBindingsHandler, this));
- }
- }
- }
-});
-
-
-/**
- * @protected
- * @param {Object} event The event.
- */
-org.apache.flex.binding.ViewBaseDataBinding.prototype.initBindingsHandler =
- function(event) {
-
- var prop;
- var fieldWatcher;
- var sb;
- var bindingData = this.strand_._bindings;
- var n = bindingData[0];
- var bindings = [];
- var i;
- var binding;
- var destination;
- var index = 1;
- for (i = 0; i < n; i++)
- {
- binding = {};
- binding.source = bindingData[index++];
- binding.destFunc = bindingData[index++];
- binding.destination = bindingData[index++];
- bindings.push(binding);
- }
- var watchers = this.decodeWatcher(bindingData.slice(index));
- for (i = 0; i < n; i++)
- {
- binding = bindings[i];
- // try to determine if it is an array
- if (typeof(binding.source) == 'object' &&
- typeof(binding.source.slice) == 'function')
- {
- if (binding.source[0] == 'applicationModel')
- {
- if (binding.source.length == 2 &&
- binding.destination.length == 2)
- {
- // can be simplebinding or constantbinding
- var modelWatcher =
- watchers.watcherMap.applicationModel;
- var childMap = modelWatcher.children.watcherMap;
- fieldWatcher = childMap[binding.source[1]];
- if (typeof(fieldWatcher.eventNames) == 'string')
- {
- sb = new org.apache.flex.binding.SimpleBinding();
- sb.destinationPropertyName =
- binding.destination[1];
- sb.eventName = fieldWatcher.eventNames;
- sb.sourceID = binding.source[0];
- sb.sourcePropertyName = binding.source[1];
- sb.setDocument(this.strand_);
- prop = binding.destination[0];
-
- destination = this.strand_[prop];
-
- if (destination)
- destination.addBead(sb);
- else
- {
- this.deferredBindings[prop] =
- sb;
- this.strand_.addEventListener('valueChange',
- goog.bind(this.deferredBindingsHandler, this));
- }
- }
- else if (fieldWatcher.eventNames == null)
- {
- var cb;
- cb = org.apache.flex.binding.ConstantBinding;
- cb = new cb();
- cb.destinationPropertyName =
- binding.destination[1];
- cb.sourceID = binding.source[0];
- cb.sourcePropertyName = binding.source[1];
- cb.setDocument(this.strand_);
- prop = binding.destination[0];
- destination = this.strand_[prop];
-
- if (destination)
- destination.addBead(cb);
- else
- {
- this.deferredBindings[prop] =
- cb;
- this.strand_.addEventListener('valueChange',
- this.deferredBindingsHandler);
- }
- }
- }
- }
- }
- else if (typeof(binding.source) == 'string')
- {
- fieldWatcher = watchers.watcherMap[binding.source];
- if (typeof(fieldWatcher.eventNames) == 'string')
- {
- sb = new org.apache.flex.binding.SimpleBinding();
- sb.destinationPropertyName = binding.destination[1];
- sb.eventName = fieldWatcher.eventNames;
- sb.sourcePropertyName = binding.source;
- sb.setDocument(this.strand_);
- prop = binding.destination[0];
- destination = this.strand_[prop];
-
- if (destination)
- destination.addBead(sb);
- else
- {
- this.deferredBindings[prop] = sb;
- this.strand_.addEventListener('valueChange',
- this.deferredBindingsHandler);
- }
- }
- }
- else
- {
- this.makeGenericBinding(binding, i, watchers);
- }
- }
-};
-
-
-/**
- * @protected
- * @param {Object} binding The binding object.
- * @param {number} index The offset in the Binding database.
- * @param {Object} watchers The database of Watchers.
- */
-org.apache.flex.binding.ViewBaseDataBinding.prototype.makeGenericBinding =
- function(binding, index, watchers) {
- var gb = new org.apache.flex.binding.GenericBinding();
- gb.setDocument(this.strand_);
- gb.destinationData = binding.destination;
- gb.destinationFunction = binding.destFunc;
- gb.source = binding.source;
- this.setupWatchers(gb, index, watchers.watchers, null);
-};
-
-
-/**
- * @protected
- * @param {Object} gb The generic binding object.
- * @param {number} index The offset in the Binding database.
- * @param {Object} watchers The array of Watchers.
- * @param {Object} parentWatcher The parent Watcher or null if top.
- */
-org.apache.flex.binding.ViewBaseDataBinding.prototype.setupWatchers =
- function(gb, index, watchers, parentWatcher) {
- var i, n;
- n = watchers.length;
- for (i = 0; i < n; i++)
- {
- var watcher = watchers[i];
- var isValidWatcher = false;
- if (typeof(watcher.bindings) === 'number')
- isValidWatcher = (watcher.bindings == index);
- else
- isValidWatcher = (watcher.bindings.indexOf(index) != -1);
- if (isValidWatcher) {
- var type = watcher.type;
- switch (type)
- {
- case 'property':
- {
- var pw = new org.apache.flex.binding.PropertyWatcher(
- this,
- watcher.propertyName,
- watcher.eventNames,
- watcher.getterFunction);
- watcher.watcher = pw;
- if (parentWatcher)
- pw.parentChanged(parentWatcher.value);
- else
- pw.parentChanged(this.strand_);
- if (parentWatcher)
- parentWatcher.addChild(pw);
- if (watcher.children == null)
- pw.addBinding(gb);
- break;
- }
- }
- if (watcher.children)
- {
- this.setupWatchers(gb, index, watcher.children.watchers,
- watcher.watcher);
- }
- }
- }
-};
-
-
-/**
- * @protected
- * @param {Object} bindingData The watcher data to decode.
- * @return {Object} The watcher tree structure.
- */
-org.apache.flex.binding.ViewBaseDataBinding.prototype.decodeWatcher =
- function(bindingData) {
- var watcherMap = {};
- var watchers = [];
- var n = bindingData.length - 1; // there is an extra null because
- // it is easier for the compiler
- var index = 0;
- var watcherData;
- while (index < n)
- {
- var watcherIndex = bindingData[index++];
- var type = bindingData[index++];
- switch (type)
- {
- case 0:
- {
- watcherData = { type: 'function' };
- watcherData.functionName = bindingData[index++];
- watcherData.paramFunction = bindingData[index++];
- watcherData.eventNames = bindingData[index++];
- watcherData.bindings = bindingData[index++];
- break;
- }
- case 1:
- {
- watcherData = { type: 'static' };
- watcherData.propertyName = bindingData[index++];
- watcherData.eventNames = bindingData[index++];
- watcherData.bindings = bindingData[index++];
- watcherData.getterFunction = bindingData[index++];
- watcherData.parentObj = bindingData[index++];
- watcherMap[watcherData.propertyName] = watcherData;
- break;
- }
- case 2:
- {
- watcherData = { type: 'property' };
- watcherData.propertyName = bindingData[index++];
- watcherData.eventNames = bindingData[index++];
- watcherData.bindings = bindingData[index++];
- watcherData.getterFunction = bindingData[index++];
- watcherMap[watcherData.propertyName] = watcherData;
- break;
- }
- case 3:
- {
- watcherData = { type: 'xml' };
- watcherData.propertyName = bindingData[index++];
- watcherData.bindings = bindingData[index++];
- watcherMap[watcherData.propertyName] = watcherData;
- break;
- }
- }
- watcherData.children = bindingData[index++];
- if (watcherData.children != null)
- {
- watcherData.children = this.decodeWatcher(watcherData.children);
- }
- watcherData.index = watcherIndex;
- watchers.push(watcherData);
- }
- return { watchers: watchers, watcherMap: watcherMap };
-};
-
-
-/**
- * @protected
- * @param {org.apache.flex.events.ValueChangeEvent} event The event.
- */
-org.apache.flex.binding.ViewBaseDataBinding.prototype.deferredBindingsHandler =
- function(event) {
- var p;
- var destination;
- for (p in this.deferredBindings)
- {
- if (p != event.propertyName) continue;
- destination = this.strand_[p];
- destination.addBead(this.deferredBindings[p]);
- delete this.deferredBindings[p];
- }
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Binding/js/src/org/apache/flex/binding/WatcherBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/js/src/org/apache/flex/binding/WatcherBase.js b/frameworks/projects/Binding/js/src/org/apache/flex/binding/WatcherBase.js
deleted file mode 100644
index 29e87b9..0000000
--- a/frameworks/projects/Binding/js/src/org/apache/flex/binding/WatcherBase.js
+++ /dev/null
@@ -1,246 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.binding.WatcherBase');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.binding.WatcherBase = function() {
-
- /**
- * @protected
- * @type {Object}
- */
- this.listeners = null;
-
- /**
- * @protected
- * @type {Object}
- * Children of this watcher are watching sub values.
- */
- this.children = null;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.binding.WatcherBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'WatcherBase',
- qName: 'org.apache.flex.binding.WatcherBase'}] };
-
-
-/**
- * @export
- * @type {Object|number|string|boolean}
- * The value itself.
- */
-org.apache.flex.binding.WatcherBase.prototype.value = null;
-
-
-/**
- * @export
- * This is an abstract method that subclasses implement.
- * @this {org.apache.flex.binding.WatcherBase}
- * @param {Object} parent The new parent.
- */
-org.apache.flex.binding.WatcherBase.prototype.parentChanged =
- function(parent) {
-};
-
-
-/**
- * @export
- * Add a child to this watcher, meaning that the child
- * is watching a sub value of ours.
- * @this {org.apache.flex.binding.WatcherBase}
- * @param {Object} child The new child.
- */
-org.apache.flex.binding.WatcherBase.prototype.addChild =
- function(child) {
- if (!this.children)
- this.children = [child];
- else
- this.children.push(child);
-
- child.parentChanged(this.value);
-};
-
-
-/**
- * @export
- * Add a binding to this watcher, meaning that the binding
- * is notified when our value changes.
- * @this {org.apache.flex.binding.WatcherBase}
- * @param {Object} binding The new binding.
- */
-org.apache.flex.binding.WatcherBase.prototype.addBinding =
- function(binding) {
- if (!this.listeners)
- this.listeners = [binding];
- else
- this.listeners.push(binding);
-
- binding.valueChanged(this.value);
-};
-
-
-/**
- * @export
- * @this {org.apache.flex.binding.WatcherBase}
- * We have probably changed, so go through
- * and make sure our children are updated.
- */
-org.apache.flex.binding.WatcherBase.prototype.updateChildren = function() {
- if (this.children)
- {
- var n = this.children.length;
- for (var i = 0; i < n; ++i)
- {
- this.children[i].parentChanged(this);
- }
- }
-};
-
-
-/**
- * @protected
- * @this {org.apache.flex.binding.WatcherBase}
- * @param {Object} oldValue The prior value.
- * @return {boolean} True if value changed.
- */
-org.apache.flex.binding.WatcherBase.prototype.valueChanged =
- function(oldValue) {
-
- if (oldValue == null && this.value == null)
- return false;
-
- var valType = typeof(this.value);
-
- // The first check is meant to catch the delayed instantiation case
- // where a control comes into existence but its value is still
- // the equivalent of not having been filled in.
- // Otherwise we simply return whether the value has changed.
-
- if (valType == 'string')
- {
- if (oldValue == null && this.value === '')
- return false;
- else
- return oldValue != this.value;
- }
-
- if (valType == 'number')
- {
- if (oldValue == null && this.value === 0)
- return false;
- else
- return oldValue != this.value;
- }
-
- if (valType == 'boolean')
- {
- if (oldValue == null && this.value === false)
- return false;
- else
- return oldValue != this.value;
- }
-
- return true;
-};
-
-
-/**
- * @protected
- * @this {org.apache.flex.binding.WatcherBase}
- * @param {function(?): ?} wrappedFunction The function to call.
- */
-org.apache.flex.binding.WatcherBase.prototype.wrapUpdate =
- function(wrappedFunction) {
- try
- {
- wrappedFunction.apply(this);
- }
- catch (error)
- {
- var staticClass = org.apache.flex.binding.WatcherBase;
- var n = staticClass.allowedErrorTypes.length;
- for (var i = 0; i < n; i++)
- {
- if (org.apache.flex.utils.Language.is(error, staticClass.allowedErrorTypes[i].type))
- {
- var handler = staticClass.allowedErrorTypes[i].handler;
- if (handler != null)
- this.value = handler(this, wrappedFunction);
- else
- this.value = null;
- }
- }
-
- if (error.errorID && staticClass.allowedErrors.indexOf(error.errorID) == -1) {
- throw error;
- }
- }
-};
-
-
-/**
- * Certain errors are normal when executing an update, so we swallow them:
- */
-org.apache.flex.binding.WatcherBase.allowedErrors = [
- 1006, // Error #1006: Call attempted on an object
- // that is not a function.
- 1009, // Error #1009: null has no properties.
- 1010, // Error #1010: undefined has no properties.
- 1055, // Error #1055: - has no properties.
- 1069, // Error #1069: Property - not found on - and
- // there is no default value
- 1507 // Error #1507: - invalid null argument.
-];
-
-
-/**
- * Certain types of errors are normal when executing an update,
- * so we custom handle them or swallow them:
- */
-org.apache.flex.binding.WatcherBase.allowedErrorTypes = [
- { type: RangeError /*,
- handler: function(w:WatcherBase,
- wrappedFunction:Function):Object { return null }*/
- }
-];
-
-
-/**
- * @protected
- * @this {org.apache.flex.binding.WatcherBase}
- */
-org.apache.flex.binding.WatcherBase.prototype.notifyListeners = function()
- {
- if (this.listeners)
- {
- var n = this.listeners.length;
-
- for (var i = 0; i < n; i++)
- {
- this.listeners[i].valueChanged(this.value);
- }
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/ChartBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/ChartBase.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/ChartBase.js
deleted file mode 100644
index acd4a8e..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/ChartBase.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.
- *
- * org.apache.flex.charts.core.IChart
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.ChartBase');
-
-goog.require('org.apache.flex.charts.core.IChart');
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.events.IEventDispatcher');
-goog.require('org.apache.flex.html.List');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.List}
- * @implements {org.apache.flex.charts.core.IChart}
- */
-org.apache.flex.charts.core.ChartBase =
- function() {
- org.apache.flex.charts.core.ChartBase.base(this, 'constructor');
- this.className = 'ChartBase';
-};
-goog.inherits(
- org.apache.flex.charts.core.ChartBase,
- org.apache.flex.html.List);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.ChartBase.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'ChartBase', qName: 'org.apache.flex.charts.core.ChartBase'}],
- interfaces: [org.apache.flex.events.IEventDispatcher]
- };
-
-
-/**
- * @override
- */
-org.apache.flex.charts.core.ChartBase.prototype.createElement = function() {
- org.apache.flex.charts.core.ChartBase.base(this, 'createElement');
- this.element.style.border = 'none';
- this.element.style.overflow = 'visible';
- return this.element;
- };
-
-
-/**
- * @private
- * @type {Array}
- */
-org.apache.flex.charts.core.ChartBase.prototype.series_ = null;
-
-
-Object.defineProperties(org.apache.flex.charts.core.ChartBase.prototype, {
- /** @export */
- series: {
- /** @this {org.apache.flex.charts.core.ChartBase} */
- get: function() {
- return this.series_;
- },
- /** @this {org.apache.flex.charts.core.ChartBase} */
- set: function(value) {
- this.series_ = value;
- this.dispatchEvent(new org.apache.flex.events.Event('seriesChanged'));
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IAxisBead.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IAxisBead.js
deleted file mode 100644
index cf7c7c9..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IAxisBead.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.flex.charts.core.IAxisBead
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.IAxisBead');
-
-goog.require('org.apache.flex.core.IBead');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IBead}
- */
-org.apache.flex.charts.core.IAxisBead = function() {
-};
-
-Object.defineProperties(org.apache.flex.charts.core.IAxisBead.prototype, {
- /** @export */
- placement: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- axisStroke: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- tickStroke: {
- get: function() {},
- set: function(value) {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.IAxisBead.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IAxisBead', qName: 'org.apache.flex.charts.core.IAxisBead'}],
- interfaces: [org.apache.flex.core.IBead]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IAxisGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IAxisGroup.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IAxisGroup.js
deleted file mode 100644
index f0a5348..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IAxisGroup.js
+++ /dev/null
@@ -1,45 +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.flex.charts.core.IAxisGroup
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.IAxisGroup');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.charts.core.IAxisGroup = function() {
-};
-
-
-/**
- * @return {void}
- */
-org.apache.flex.charts.core.IAxisGroup.prototype.removeAllElements = function() {};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.IAxisGroup.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IAxisGroup', qName: 'org.apache.flex.charts.core.IAxisGroup'}]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/ICartesianChartLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/ICartesianChartLayout.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/ICartesianChartLayout.js
deleted file mode 100644
index 09078a8..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/ICartesianChartLayout.js
+++ /dev/null
@@ -1,39 +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.flex.charts.core.IChart
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.ICartesianChartLayout');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.charts.core.ICartesianChartLayout = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.ICartesianChartLayout.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'ICartesianChartLayout', qName: 'org.apache.flex.charts.core.ICartesianChartLayout'}]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChart.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChart.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChart.js
deleted file mode 100644
index fd214cc..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChart.js
+++ /dev/null
@@ -1,48 +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.flex.charts.core.IChart
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.IChart');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.charts.core.IChart = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.charts.core.IChart.prototype, {
- /** @export */
- series: {
- get: function() {},
- set: function(value) {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.IChart.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IChart', qName: 'org.apache.flex.charts.core.IChart'}]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartAxis.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartAxis.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartAxis.js
deleted file mode 100644
index bc572c1..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartAxis.js
+++ /dev/null
@@ -1,39 +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.flex.charts.core.IChartAxis
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.IChartAxis');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.charts.core.IChartAxis = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.IChartAxis.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IChartAxis', qName: 'org.apache.flex.charts.core.IChartAxis'}]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartDataGroup.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartDataGroup.js
deleted file mode 100644
index 923ece8..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartDataGroup.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.
- *
- * org.apache.flex.charts.core.IChartDataGroup
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.IChartDataGroup');
-
-goog.require('org.apache.flex.core.IFactory');
-goog.require('org.apache.flex.core.IItemRendererParent');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IItemRendererParent}
- */
-org.apache.flex.charts.core.IChartDataGroup = function() {
-};
-
-
-/**
- * @param {Object} series The series containing the itemRenderer.
- * @param {number} index The position of the itemRenderer within the series.
- * @return {Object} The itemRenderer matching the series and index.
- */
-org.apache.flex.charts.core.IChartDataGroup.prototype.getItemRendererForSeriesAtIndex =
- function(series, index) {};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.IChartDataGroup.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IChartDataGroup', qName: 'org.apache.flex.charts.core.IChartDataGroup'}],
- interfaces: [org.apache.flex.core.IItemRendererParent]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartItemRenderer.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartItemRenderer.js
deleted file mode 100644
index 3b46060..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartItemRenderer.js
+++ /dev/null
@@ -1,78 +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.flex.charts.core.IChartItemRenderer
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.IChartItemRenderer');
-
-goog.require('org.apache.flex.core.IItemRenderer');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IItemRenderer}
- */
-org.apache.flex.charts.core.IChartItemRenderer = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.charts.core.IChartItemRenderer.prototype, {
- /** @export */
- xField: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- yField: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- fillColor: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- x: {
- set: function(value) {}
- },
- /** @export */
- y: {
- set: function(value) {}
- },
- /** @export */
- width: {
- set: function(value) {}
- },
- /** @export */
- height: {
- set: function(value) {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.IChartItemRenderer.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IChartItemRenderer', qName: 'org.apache.flex.charts.core.IChartItemRenderer'}],
- interfaces: [org.apache.flex.core.IItemRenderer]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartSeries.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartSeries.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartSeries.js
deleted file mode 100644
index 057e255..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IChartSeries.js
+++ /dev/null
@@ -1,65 +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.flex.charts.core.IChartSeries
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.IChartSeries');
-
-goog.require('org.apache.flex.core.IFactory');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.charts.core.IChartSeries = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.charts.core.IChartSeries.prototype, {
- /** @export */
- xField: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- yField: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- fillColor: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- itemRenderer: {
- get: function() {},
- set: function(value) {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.IChartSeries.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IChartSeries', qName: 'org.apache.flex.charts.core.IChartSeries'}]
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IHorizontalAxisBead.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
deleted file mode 100644
index b72c408..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * org.apache.flex.charts.core.IHorizontalAxisBead
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.IHorizontalAxisBead');
-
-goog.require('org.apache.flex.charts.core.IAxisBead');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.charts.core.IAxisBead}
- */
-org.apache.flex.charts.core.IHorizontalAxisBead = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.IHorizontalAxisBead.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IHorizontalAxisBead', qName: 'org.apache.flex.charts.core.IHorizontalAxisBead'}],
- interfaces: [org.apache.flex.charts.core.IAxisBead]
- };
-
-
-Object.defineProperties(org.apache.flex.charts.core.IHorizontalAxisBead.prototype, {
- /** @export */
- axisHeight: {
- set: function(value) {},
- get: function() {}
- },
- /** @export */
- maximum: {
- get: function() {}
- },
- /** @export */
- minimum: {
- get: function() {}
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IVerticalAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IVerticalAxisBead.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IVerticalAxisBead.js
deleted file mode 100644
index 3e084eb..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/core/IVerticalAxisBead.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * org.apache.flex.charts.core.IVerticalAxisBead
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.charts.core.IVerticalAxisBead');
-
-goog.require('org.apache.flex.charts.core.IAxisBead');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.charts.core.IAxisBead}
- */
-org.apache.flex.charts.core.IVerticalAxisBead = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.core.IVerticalAxisBead.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IVerticalAxisBead', qName: 'org.apache.flex.charts.core.IVerticalAxisBead'}],
- interfaces: [org.apache.flex.charts.core.IAxisBead]
- };
-
-Object.defineProperties(org.apache.flex.charts.core.IVerticalAxisBead.prototype, {
- /** @export */
- axisWidth: {
- set: function(value) {},
- get: function() {}
- },
- /** @export */
- maximum: {
- get: function() {}
- },
- /** @export */
- minimum: {
- get: function() {}
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
deleted file mode 100644
index 9f36a65..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
+++ /dev/null
@@ -1,162 +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.charts.supportClasses.ChartAxisGroup');
-
-goog.require('org.apache.flex.charts.core.IAxisGroup');
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.core.graphics.Path');
-goog.require('org.apache.flex.html.Label');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- * @implements {org.apache.flex.charts.core.IAxisGroup}
- */
-org.apache.flex.charts.supportClasses.ChartAxisGroup =
- function() {
- org.apache.flex.charts.supportClasses.ChartAxisGroup.base(this, 'constructor');
-};
-goog.inherits(
- org.apache.flex.charts.supportClasses.ChartAxisGroup,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.supportClasses.ChartAxisGroup.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ChartAxisGroup',
- qName: 'org.apache.flex.charts.supportClasses.ChartAxisGroup' }],
- interfaces: [org.apache.flex.charts.core.IAxisGroup] };
-
-
-/**
- * @override
- */
-org.apache.flex.charts.supportClasses.ChartAxisGroup.
- prototype.createElement = function() {
- this.element = document.createElement('div');
- this.element.style.position = 'relative';
- this.element.flexjs_wrapper = this;
- this.className = 'ChartAxisGroup';
-
- this.positioner = this.element;
-
- return this.element;
-};
-
-
-/**
- * @export
- * @param {string} text The label to display.
- * @param {number} xpos The x position of the label.
- * @param {number} ypos The y position of the label.
- * @param {number} boxWidth The size of the area for the label.
- * @param {number} boxHeight The size of the area for the label.
- * @param {org.apache.flex.core.graphics.IStroke} tickFill The color of the path.
- * @return {Object} The label.
- */
-org.apache.flex.charts.supportClasses.ChartAxisGroup.prototype.drawHorizontalTickLabel =
-function(text, xpos, ypos, boxWidth, boxHeight, tickFill) {
- var label = new org.apache.flex.html.Label();
- this.addElement(label);
- label.text = text;
- label.x = xpos - label.width / 2;
- label.y = ypos;
- return label;
-};
-
-
-/**
- * @export
- * @param {string} text The label to display.
- * @param {number} xpos The x position of the label.
- * @param {number} ypos The y position of the label.
- * @param {number} boxWidth The size of the area for the label.
- * @param {number} boxHeight The size of the area for the label.
- * @param {org.apache.flex.core.graphics.IStroke} tickFill The color of the path.
- * @return {Object} The label.
- */
-org.apache.flex.charts.supportClasses.ChartAxisGroup.prototype.drawVerticalTickLabel =
-function(text, xpos, ypos, boxWidth, boxHeight, tickFill) {
- var label = new org.apache.flex.html.Label();
- this.addElement(label);
- label.text = text;
- label.x = xpos;
- label.y = ypos - label.height / 2;
- return label;
-};
-
-
-/**
- * @export
- * @param {number} originX The x position of the path.
- * @param {number} originY The y position of the path.
- * @param {number} width The size of the area for the path.
- * @param {number} height The size of the area for the path.
- * @param {string} marks The path to draw.
- * @param {org.apache.flex.core.graphics.IStroke} tickStroke The color of the path.
- * @return {Object} The tick path.
- */
-org.apache.flex.charts.supportClasses.ChartAxisGroup.prototype.drawTickMarks =
-function(originX, originY, width, height, marks, tickStroke) {
- var tickPath = new org.apache.flex.core.graphics.Path();
- tickPath.x = 0;
- tickPath.y = 0;
- tickPath.width = this.width;
- tickPath.height = this.height;
- this.addElement(tickPath);
- tickPath.stroke = tickStroke;
- tickPath.drawPath(0, 0, marks);
- return tickPath;
-};
-
-
-/**
- * @export
- * @param {number} originX The x position of the path.
- * @param {number} originY The y position of the path.
- * @param {number} width The size of the area for the path.
- * @param {number} height The size of the area for the path.
- * @param {org.apache.flex.core.graphics.IStroke} lineStroke The color of the path.
- */
-org.apache.flex.charts.supportClasses.ChartAxisGroup.prototype.drawAxisLine =
-function(originX, originY, width, height, lineStroke) {
- var axisPath = new org.apache.flex.core.graphics.Path();
- axisPath.x = 0;
- axisPath.y = 0;
- axisPath.width = this.width;
- axisPath.height = this.height;
- this.addElement(axisPath);
- axisPath.stroke = lineStroke;
- var pathLine = 'M ' + String(originX) + ' ' + String(originY) + ' l ' + String(width) + ' ' + String(height);
- axisPath.drawPath(0, 0, pathLine);
-};
-
-
-/**
- * @return {void}
- */
-org.apache.flex.charts.supportClasses.ChartAxisGroup.prototype.removeAllElements =
-function() {
- var svg = this.element;
- while (svg.lastChild) {
- svg.removeChild(svg.lastChild);
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Charts/js/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/js/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js b/frameworks/projects/Charts/js/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
deleted file mode 100644
index 2dd637c..0000000
--- a/frameworks/projects/Charts/js/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
+++ /dev/null
@@ -1,83 +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.charts.supportClasses.ChartDataGroup');
-
-goog.require('org.apache.flex.charts.core.IChartDataGroup');
-goog.require('org.apache.flex.html.supportClasses.DataGroup');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.supportClasses.DataGroup}
- * @implements {org.apache.flex.charts.core.IChartDataGroup}
- */
-org.apache.flex.charts.supportClasses.ChartDataGroup =
- function() {
- org.apache.flex.charts.supportClasses.ChartDataGroup.base(this, 'constructor');
-};
-goog.inherits(
- org.apache.flex.charts.supportClasses.ChartDataGroup,
- org.apache.flex.html.supportClasses.DataGroup);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.charts.supportClasses.ChartDataGroup.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ChartDataGroup',
- qName: 'org.apache.flex.charts.supportClasses.ChartDataGroup' }],
- interfaces: [org.apache.flex.charts.core.IChartDataGroup] };
-
-
-/**
- * @override
- */
-org.apache.flex.charts.supportClasses.ChartDataGroup.
- prototype.createElement = function() {
- this.element = document.createElement('div');
- this.element.style.position = 'relative';
- this.element.flexjs_wrapper = this;
- this.className = 'ChartDataGroup';
-
- this.positioner = this.element;
-
- return this.element;
-};
-
-
-/**
- * @export
- * @param {Object} series The series containing the itemRenderer.
- * @param {number} index The position of the itemRenderer within the series.
- * @return {Object} The itemRenderer that matches the series and index.
- */
-org.apache.flex.charts.supportClasses.ChartDataGroup.prototype.getItemRendererForSeriesAtIndex =
-function(series, index) {
- var n = this.numElements;
- for (var i = 0; i < n; i++)
- {
- var child = this.getElementAt(i);
- if (child && child.series == series) {
- if (index === 0) return child;
- --index;
- }
- }
-
- return null;
-};
-
[50/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix
error
Posted by ah...@apache.org.
fix error
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/cb0d947f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/cb0d947f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/cb0d947f
Branch: refs/heads/develop
Commit: cb0d947f3476e4f393543c380a7c36cb75f6c3ee
Parents: 653c047
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 14:49:33 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 14:49:33 2015 -0800
----------------------------------------------------------------------
.../as/src/org/apache/flex/core/graphics/LinearGradient.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/cb0d947f/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/LinearGradient.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/LinearGradient.as b/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/LinearGradient.as
index 58fd116..c36a37b 100644
--- a/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/LinearGradient.as
+++ b/frameworks/projects/Graphics/as/src/org/apache/flex/core/graphics/LinearGradient.as
@@ -90,7 +90,7 @@ package org.apache.flex.core.graphics
}
//Process gradient entries and create a stop for each entry
- var entries:Array = entries;
+ var entries:Array = this.entries;
for (var i:int = 0; i < entries.length; i++)
{
var gradientEntry:GradientEntry = entries[i];
[09/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Collections/js/src/org/apache/flex/collections/ICollection.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/js/src/org/apache/flex/collections/ICollection.js b/frameworks/projects/Collections/js/src/org/apache/flex/collections/ICollection.js
deleted file mode 100644
index 749c80b..0000000
--- a/frameworks/projects/Collections/js/src/org/apache/flex/collections/ICollection.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.
- */
-
-/**
- * org.apache.flex.collections.ICollection
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.collections.ICollection');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.collections.ICollection =
-function() {
-};
-
-
-/**
- * @export
- * @param {number} index The item to fetch.
- * @return {Object} The object at the index.
- */
-org.apache.flex.collections.ICollection.prototype.getItemAt = function(index) {};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.collections.ICollection.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'ICollection',
- qName: 'org.apache.flex.collections.ICollection'}]};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Collections/js/src/org/apache/flex/collections/LazyCollection.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/js/src/org/apache/flex/collections/LazyCollection.js b/frameworks/projects/Collections/js/src/org/apache/flex/collections/LazyCollection.js
deleted file mode 100644
index 9529264..0000000
--- a/frameworks/projects/Collections/js/src/org/apache/flex/collections/LazyCollection.js
+++ /dev/null
@@ -1,163 +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.collections.LazyCollection');
-
-goog.require('org.apache.flex.events.EventDispatcher');
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- */
-org.apache.flex.collections.LazyCollection = function() {
- org.apache.flex.collections.LazyCollection.base(this, 'constructor');
- /**
- * @private
- * @type {Object}
- */
- this.data_ = null;
-
- /**
- * @private
- * @type {Object}
- */
-
- this.itemConverter_ = null;
-
- /**
- * @private
- * @type {Object}
- */
- this.inputParser_ = null;
-
- /**
- * @private
- * @type {Object}
- */
- this.rawData_ = null;
-
- /**
- * @private
- * @type {Object}
- */
- this.strand_ = null;
-};
-goog.inherits(org.apache.flex.collections.LazyCollection, org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.collections.LazyCollection.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'LazyCollection',
- qName: 'org.apache.flex.collections.LazyCollection'}],
- interfaces: [org.apache.flex.events.IEventDispatcher]};
-
-
-Object.defineProperties(org.apache.flex.collections.LazyCollection.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.collections.LazyCollection} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.addEventListener('complete',
- goog.bind(this.completeHandler, this));
- }
- }
- },
- /** @export */
- length: {
- /** @this {org.apache.flex.collections.LazyCollection} */
- get: function() {
- return this.rawData_ ? this.rawData_.length : 0;
- }
- },
- /** @export */
- inputParser: {
- /** @this {org.apache.flex.collections.LazyCollection} */
- get: function() {
- return this.inputParser_;
- },
- /** @this {org.apache.flex.collections.LazyCollection} */
- set: function(value) {
- this.inputParser_ = value;
- }
- },
- /** @export */
- itemConverter: {
- /** @this {org.apache.flex.collections.LazyCollection} */
- get: function() {
- return this.itemConverter_;
- },
- /** @this {org.apache.flex.collections.LazyCollection} */
- set: function(value) {
- this.itemConverter_ = value;
- }
- },
- /** @export */
- id: {
- /** @this {org.apache.flex.collections.LazyCollection} */
- get: function() {
- return this.id_;
- },
- /** @this {org.apache.flex.collections.LazyCollection} */
- set: function(value) {
- if (this.id_ !== value) {
- this.id_ = value;
- // this.dispatchEvent(new Event('idChanged'));
- }
- }
- }
-});
-
-
-/**
- * @private
- * @type {string}
- */
-org.apache.flex.collections.LazyCollection.prototype.id_ = '';
-
-
-/**
- * @protected
- */
-org.apache.flex.collections.LazyCollection.prototype.completeHandler =
- function() {
- var results = this.strand_.data;
- this.rawData_ = this.inputParser_.parseItems(results);
- this.data_ = [];
- this.dispatchEvent('complete');
-};
-
-
-/**
- * @export
- * @param {number} index The index in the collection.
- * @return {Object} An item in the collection.
- */
-org.apache.flex.collections.LazyCollection.prototype.getItemAt =
- function(index) {
- if (this.data_[index] === undefined) {
- this.data_[index] =
- this.itemConverter_.convertItem(this.rawData_[index]);
- }
-
- return this.data_[index];
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Collections/js/src/org/apache/flex/collections/converters/JSONItemConverter.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/js/src/org/apache/flex/collections/converters/JSONItemConverter.js b/frameworks/projects/Collections/js/src/org/apache/flex/collections/converters/JSONItemConverter.js
deleted file mode 100644
index c1acf84..0000000
--- a/frameworks/projects/Collections/js/src/org/apache/flex/collections/converters/JSONItemConverter.js
+++ /dev/null
@@ -1,48 +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.collections.converters.JSONItemConverter');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.collections.converters.JSONItemConverter = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.collections.converters.JSONItemConverter.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'JSONItemConverter',
- qName: 'org.apache.flex.collections.converters.JSONItemConverter'}] };
-
-
-/**
- * @export
- * @param {string} s The input string.
- * @return {*} The object.
- */
-org.apache.flex.collections.converters.JSONItemConverter.prototype.convertItem = function(s) {
- var c = s.indexOf('{)');
- if (c > 0)
- s = s.substring(c);
- if (s.indexOf('}') == -1)
- s += '}';
- return JSON.parse(s);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Collections/js/src/org/apache/flex/collections/parsers/JSONInputParser.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/js/src/org/apache/flex/collections/parsers/JSONInputParser.js b/frameworks/projects/Collections/js/src/org/apache/flex/collections/parsers/JSONInputParser.js
deleted file mode 100644
index 2a480e0..0000000
--- a/frameworks/projects/Collections/js/src/org/apache/flex/collections/parsers/JSONInputParser.js
+++ /dev/null
@@ -1,48 +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.collections.parsers.JSONInputParser');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.collections.parsers.JSONInputParser = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.collections.parsers.JSONInputParser.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'JSONInputParser',
- qName: 'org.apache.flex.collections.parsers.JSONInputParser'}] };
-
-
-/**
- * @export
- * @param {string} s The input string.
- * @return {Array.<string>} The Array of unparsed objects.
- */
-org.apache.flex.collections.parsers.JSONInputParser.prototype.parseItems = function(s) {
- var c = s.indexOf('[');
- if (c != -1) {
- var c2 = s.lastIndexOf(']');
- s = s.substring(c + 1, c2);
- }
- return s.split('},');
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/Application.js b/frameworks/projects/Core/js/src/org/apache/flex/core/Application.js
deleted file mode 100644
index 2887da2..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/Application.js
+++ /dev/null
@@ -1,176 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.Application');
-
-goog.require('org.apache.flex.core.HTMLElementWrapper');
-goog.require('org.apache.flex.core.IParent');
-goog.require('org.apache.flex.core.IValuesImpl');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.utils.MXMLDataInterpreter');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.HTMLElementWrapper}
- */
-org.apache.flex.core.Application = function() {
- org.apache.flex.core.Application.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.core.Application,
- org.apache.flex.core.HTMLElementWrapper);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.Application.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Application',
- qName: 'org.apache.flex.core.Application' }],
- interfaces: [org.apache.flex.core.IParent] };
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.core.Application.prototype.controller_ = null;
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.core.Application.prototype.initialView_ = null;
-
-
-/**
- * @private
- * @type {org.apache.flex.events.EventDispatcher}
- */
-org.apache.flex.core.Application.prototype.model_ = null;
-
-
-/**
- * @export
- */
-org.apache.flex.core.Application.prototype.start = function() {
- this.element = document.getElementsByTagName('body')[0];
- this.element.flexjs_wrapper = this;
- this.element.className = 'Application';
- if (!this.element.style.overflow)
- this.element.style.overflow = 'hidden';
-
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this, null, this.MXMLDescriptor);
-
- this.dispatchEvent('initialize');
-
- if (this.model) this.addBead(this.model);
- if (this.controller) this.addBead(this.controller);
-
- this.initialView.applicationModel = this.model;
- this.addElement(this.initialView);
- if (!isNaN(this.initialView.percentWidth) || !isNaN(this.initialView.percentHeight)) {
- this.element.style.height = window.innerHeight.toString() + 'px';
- this.element.style.width = window.innerWidth.toString() + 'px';
- this.initialView.dispatchEvent('sizeChanged'); // kick off layout if % sizes
- }
- this.dispatchEvent('viewChanged');
-};
-
-
-/**
- * @export
- * @param {Array} data The data for the attributes.
- */
-org.apache.flex.core.Application.prototype.generateMXMLAttributes = function(data) {
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this, data);
-};
-
-
-/**
- * @param {Object} c The child element.
- */
-org.apache.flex.core.Application.prototype.addElement =
- function(c) {
- this.element.appendChild(c.element);
- c.addedToParent();
-};
-
-
-Object.defineProperties(org.apache.flex.core.Application.prototype,
- /** @lends {org.apache.flex.core.Application.prototype} */ {
- /** @export */
- valuesImpl: {
- /** @this {org.apache.flex.core.Application} */
- set: function(value) {
- org.apache.flex.core.ValuesManager.valuesImpl = value;
- if (value.init) {
- value.init(this);
- }
- }
- },
- /** @export */
- MXMLDescriptor: {
- /** @this {org.apache.flex.core.Application} */
- get: function() {
- return null;
- }
- },
- /** @export */
- controller: {
- /** @this {org.apache.flex.core.Application} */
- get: function() {
- return this.controller_;
- },
-
- /** @this {org.apache.flex.core.Application} */
- set: function(value) {
- if (value != this.controller_) {
- this.controller_ = value;
- }
- }
- },
- /** @export */
- initialView: {
- /** @this {org.apache.flex.core.Application} */
- get: function() {
- return this.initialView_;
- },
-
- /** @this {org.apache.flex.core.Application} */
- set: function(value) {
- if (value != this.initialView_) {
- this.initialView_ = value;
- }
- }
- },
- /** @export */
- model: {
- /** @this {org.apache.flex.core.Application} */
- get: function() {
- return this.model_;
- },
-
- /** @this {org.apache.flex.core.Application} */
- set: function(value) {
- if (value != this.model_) {
- this.model_ = value;
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/BeadViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/BeadViewBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/BeadViewBase.js
deleted file mode 100644
index f2efed2..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/BeadViewBase.js
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.BeadViewBase');
-
-goog.require('org.apache.flex.core.IBeadView');
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- * @implements {org.apache.flex.core.IBeadView}
- */
-org.apache.flex.core.BeadViewBase = function() {
- org.apache.flex.core.BeadViewBase.base(this, 'constructor');
- };
-goog.inherits(
- org.apache.flex.core.BeadViewBase,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.BeadViewBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'BeadViewBase',
- qName: 'org.apache.flex.core.BeadViewBase'}],
- interfaces: [org.apache.flex.core.IBeadView]};
-
-
-/**
- * @type {Object}
- */
-org.apache.flex.core.BeadViewBase.prototype._strand = null;
-
-
-Object.defineProperties(org.apache.flex.core.BeadViewBase.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.core.BeadViewBase} */
- set: function(value) {
- if (this._strand !== value) {
- this._strand = value;
- }
- }
- },
- /** @export */
- host: {
- /** @this {org.apache.flex.core.BeadViewBase} */
- get: function() {
- return this._strand;
- }
- }
-});
-
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserResizeListener.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserResizeListener.js b/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserResizeListener.js
deleted file mode 100644
index 1e16897..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserResizeListener.js
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.BrowserResizeListener');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.core.BrowserResizeListener = function() {
- this.strand_ = null;
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.BrowserResizeListener.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'BrowserResizeListener',
- qName: 'org.apache.flex.core.BrowserResizeListener'}]};
-
-
-/**
- * @type {number}
- */
-org.apache.flex.core.BrowserResizeListener.prototype.minHeight = NaN;
-
-
-/**
- * @type {number}
- */
-org.apache.flex.core.BrowserResizeListener.prototype.minWidth = NaN;
-
-
-/**
- * @param {Event} e The event.
- */
-org.apache.flex.core.BrowserResizeListener.prototype.resizeHandler = function(e) {
- var initialView = this.strand_.initialView;
- var element = this.strand_.element;
- if (!isNaN(initialView.percentWidth) || !isNaN(initialView.percentHeight)) {
- element.style.height = window.innerHeight.toString() + 'px';
- element.style.width = window.innerWidth.toString() + 'px';
- initialView.dispatchEvent('sizeChanged'); // kick off layout if % sizes
- }
-};
-
-
-Object.defineProperties(org.apache.flex.core.BrowserResizeListener.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.core.BrowserResizeListener} */
- set: function(value) {
- this.strand_ = value;
- window.addEventListener('resize',
- goog.bind(this.resizeHandler, this));
- if (!isNaN(this.minWidth))
- document.body.style.minWidth = this.minWidth.toString() + 'px';
- if (!isNaN(this.minHeight))
- document.body.style.minHeight = this.minHeight.toString() + 'px';
- document.body.style.overflow = 'auto';
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserScroller.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserScroller.js b/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserScroller.js
deleted file mode 100644
index e6a4987..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserScroller.js
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.BrowserScroller');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.core.BrowserScroller = function() {
- this.strand_ = null;
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.BrowserScroller.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'BrowserScroller',
- qName: 'org.apache.flex.core.BrowserScroller'}]};
-
-
-/**
- * @param {Event} e The event.
- */
-org.apache.flex.core.BrowserScroller.prototype.viewChangedHandler = function(e) {
- this.strand_.element.style.overflow = 'auto';
-};
-
-
-Object.defineProperties(org.apache.flex.core.BrowserScroller.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.core.BrowserScroller} */
- set: function(value) {
- this.strand_ = value;
- value.addEventListener('viewChanged',
- goog.bind(this.viewChangedHandler, this));
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserWindow.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserWindow.js b/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserWindow.js
deleted file mode 100644
index 3b54922..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/BrowserWindow.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.BrowserWindow');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.core.BrowserWindow = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.BrowserWindow.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'BrowserWindow',
- qName: 'org.apache.flex.core.BrowserWindow'}]};
-
-
-/**
- * @export
- * @param {string} url The url.
- * @param {string} options The window name.
- */
-org.apache.flex.core.BrowserWindow.open = function(url, options) {
- window.open(url, options);
-};
-
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/CSSFontFaceBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/CSSFontFaceBead.js b/frameworks/projects/Core/js/src/org/apache/flex/core/CSSFontFaceBead.js
deleted file mode 100644
index c81dfbf..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/CSSFontFaceBead.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.CSSFontFaceBead');
-
-
-
-/**
- * @constructor
- * This is just a stub.
- */
-org.apache.flex.core.CSSFontFaceBead = function() {
-
- /**
- * @private
- * @type {Object}
- */
- this.strand_ = null;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.CSSFontFaceBead.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'CSSFontFaceBead',
- qName: 'org.apache.flex.core.CSSFontFaceBead'}] };
-
-
-Object.defineProperties(org.apache.flex.core.CSSFontFaceBead.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.core.CSSFontFaceBead} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/CallLaterBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/CallLaterBead.js b/frameworks/projects/Core/js/src/org/apache/flex/core/CallLaterBead.js
deleted file mode 100644
index 997a750..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/CallLaterBead.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.core.CallLaterBead');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.core.CallLaterBead = function() {
-
- /**
- * @private
- * @type {Object}
- */
- this.strand_ = null;
-
- /**
- * @private
- * @type {Array}
- */
- this.calls_ = null;
-
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.CallLaterBead.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'CallLaterBead.js',
- qName: 'org.apache.flex.core.CallLaterBead'}] };
-
-
-Object.defineProperties(org.apache.flex.core.CallLaterBead.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.binding.GenericBinding} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- }
- }
- }
-});
-
-
-/**
- * @param {Function} fn The fucntion to call later.
- * @param {Array=} opt_args The optional array of arguments.
- * @param {Object=} opt_thisArg The optional 'this' object.
- */
-org.apache.flex.core.CallLaterBead.prototype.callLater =
- function(fn, opt_args, opt_thisArg) {
-
- if (this.calls_ == null)
- this.calls_ = [{thisArg: opt_thisArg, fn: fn, args: opt_args }];
- else
- this.calls_.push({thisArg: opt_thisArg, fn: fn, args: opt_args });
-
- window.setTimeout(goog.bind(this.callback, this), 0);
-};
-
-
-/**
- * @protected
- */
-org.apache.flex.core.CallLaterBead.prototype.callback =
- function() {
- var list = this.calls_;
- var n = list.length;
- for (var i = 0; i < n; i++)
- {
- var call = list.shift();
- var fn = call.fn;
- fn.apply(call.thisArg, call.args);
- }
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ClassFactory.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ClassFactory.js
deleted file mode 100644
index 385c7ef..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ClassFactory.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.ClassFactory');
-
-goog.require('org.apache.flex.core.IFactory');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IFactory}
- * @param {Function} generator The class definition to use for newInstance.
- */
-org.apache.flex.core.ClassFactory = function(generator) {
- /**
- * @private
- * @type {Function}
- */
- this.generator_ = generator;
- this.properties_ = null;
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ClassFactory.prototype.
- FLEXJS_CLASS_INFO =
- { names: [{ name: 'ClassFactory',
- qName: 'org.apache.flex.core.ClassFactory' }],
- interfaces: [org.apache.flex.core.IFactory] };
-
-
-/**
- * @export
- * @return {Object} The new instance of the class described by generator.
- */
-org.apache.flex.core.ClassFactory.
- prototype.newInstance = function() {
- var obj = new this.generator_();
-
- if (this.properties_) {
- var prop;
- for (prop in this.properties_) {
- obj[prop] = this.properties_[prop];
- }
- }
-
- return obj;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
deleted file mode 100644
index 4d409e4..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
+++ /dev/null
@@ -1,378 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.ContainerBase');
-
-goog.require('org.apache.flex.core.ContainerBaseStrandChildren');
-goog.require('org.apache.flex.core.IContentViewHost');
-goog.require('org.apache.flex.core.IMXMLDocument');
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.core.ValuesManager');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- * @implements {org.apache.flex.core.IMXMLDocument}
- * @implements {org.apache.flex.core.IContentViewHost}
- */
-org.apache.flex.core.ContainerBase = function() {
- this.mxmlProperties = null;
- org.apache.flex.core.ContainerBase.base(this, 'constructor');
-
- /**
- * @private
- * @type {boolean}
- */
- this.initialized_ = false;
-
- /**
- * @private
- * @type {Array}
- */
- this.states_ = null;
-
- /**
- * @private
- * @type {Array}
- */
- this.transitions_ = null;
-
- /**
- * @private
- * @type {?String}
- */
- this.currentState_ = null;
-
- /**
- * @private
- * @type {Object}
- */
- this.strandChildren_ = new org.apache.flex.core.ContainerBaseStrandChildren(this);
-
- this.document = this;
-
-};
-goog.inherits(org.apache.flex.core.ContainerBase,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @export
- */
-org.apache.flex.core.ContainerBase.prototype.mxmlContent = null;
-
-
-/**
- * @export
- * @type {Array}
- */
-org.apache.flex.core.ContainerBase.prototype.mxmlDescriptor = null;
-
-
-/**
- * @export
- * @type {Array}
- */
-org.apache.flex.core.ContainerBase.prototype.mxmlsd = null;
-
-
-/**
- * @export
- * @type {boolean}
- */
-org.apache.flex.core.ContainerBase.prototype.supportsChrome = true;
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ContainerBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ContainerBase',
- qName: 'org.apache.flex.core.ContainerBase'}] ,
- interfaces: [org.apache.flex.core.IMXMLDocument,
- org.apache.flex.core.IContentViewHost]};
-
-
-/**
- * @override
- */
-org.apache.flex.core.ContainerBase.prototype.addedToParent = function() {
- org.apache.flex.core.ContainerBase.base(this, 'addedToParent');
-
- if (!this.initialized_) {
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this.document,
- this, this.MXMLDescriptor);
-
- this.dispatchEvent('initBindings');
- this.dispatchEvent('initComplete');
- this.initialized_ = true;
- }
-//?? this.dispatchEvent('childrenAdded');
-};
-
-
-/**
- * @export
- * @param {Array} data The data for the attributes.
- */
-org.apache.flex.core.ContainerBase.prototype.generateMXMLAttributes = function(data) {
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this, data);
-};
-
-
-/**
- * @export
- * @param {Object} doc The document.
- * @param {Array} desc The descriptor data.
- */
-org.apache.flex.core.ContainerBase.prototype.setMXMLDescriptor =
- function(doc, desc) {
- this.mxmlDescriptor = desc;
- this.document = doc;
-};
-
-
-/**
- * @override
- * @param {Object} c
- * @param {boolean=} opt_dispatchEvent
- */
-org.apache.flex.core.ContainerBase.prototype.addElement = function(c, opt_dispatchEvent) {
- if (opt_dispatchEvent === undefined)
- opt_dispatchEvent = true;
-
- var contentView = this.view;
- if (contentView != null) {
- contentView.addElement(c, opt_dispatchEvent);
- if (opt_dispatchEvent)
- this.dispatchEvent('childrenAdded');
- }
- else {
- this.$addElement(c, opt_dispatchEvent);
- }
-};
-
-
-/**
- * @override
- * @param {Object} c
- * @param {number} index
- * @param {boolean=} opt_dispatchEvent
- */
-org.apache.flex.core.ContainerBase.prototype.addElementAt = function(c, index, opt_dispatchEvent) {
- if (opt_dispatchEvent === undefined)
- opt_dispatchEvent = true;
-
- var contentView = this.view;
- if (contentView != null) {
- contentView.addElementAt(c, index, opt_dispatchEvent);
- if (opt_dispatchEvent)
- this.dispatchEvent('childrenAdded');
- }
- else {
- this.$addElementAt(c, index, opt_dispatchEvent);
- }
-};
-
-
-/**
- * @override
- */
-org.apache.flex.core.ContainerBase.prototype.getElementAt = function(index) {
- var contentView = this.view;
- if (contentView != null) {
- return contentView.getElementAt(index);
- } else {
- return this.$getElementAt(index);
- }
-};
-
-
-/**
- * @override
- * @param {Object} c
- * @param {boolean=} opt_dispatchEvent
- */
-org.apache.flex.core.ContainerBase.prototype.removeElement = function(c, opt_dispatchEvent) {
- var contentView = this.view;
- if (contentView != null) {
- contentView.removeElement(c, opt_dispatchEvent);
- if (opt_dispatchEvent)
- this.dispatchEvent('childrenRemoved');
- } else {
- this.$removeElement(c, opt_dispatchEvent);
- }
-};
-
-
-/**
- * @override
- */
-org.apache.flex.core.ContainerBase.prototype.getElementIndex = function(c) {
- var contentView = this.view;
- if (contentView != null) {
- return contentView.getElementIndex(c);
- } else {
- return this.$getElementIndex(c);
- }
-};
-
-
-/**
- * @expose
- * @return {number} The number of raw elements.
- */
-org.apache.flex.core.ContainerBase.prototype.$numElements = function() {
- return this.internalChildren().length;
-};
-
-
-/**
- * @expose
- * @param {Object} c The element to add.
- * @param {boolean=} opt_dispatchEvent If true, an event is dispatched.
- */
-org.apache.flex.core.ContainerBase.prototype.$addElement = function(c, opt_dispatchEvent) {
- if (opt_dispatchEvent === undefined)
- opt_dispatchEvent = true;
- this.element.appendChild(c.positioner);
- c.addedToParent();
-};
-
-
-/**
- * @expose
- * @param {Object} c The element to add.
- * @param {number} index The index of the element.
- * @param {boolean=} opt_dispatchEvent If true, an event is dispatched.
- */
-org.apache.flex.core.ContainerBase.prototype.$addElementAt = function(c, index, opt_dispatchEvent) {
- if (opt_dispatchEvent === undefined)
- opt_dispatchEvent = true;
- var children1 = this.internalChildren();
- if (index >= children1.length) {
- this.$addElement(c, false);
- } else {
- this.element.insertBefore(c.positioner,
- children1[index]);
- c.addedToParent();
- }
-};
-
-
-/**
- * @expose
- * @param {Object} c The element to add.
- * @param {boolean=} opt_dispatchEvent If true, an event is dispatched.
- */
-org.apache.flex.core.ContainerBase.prototype.$removeElement = function(c, opt_dispatchEvent) {
- this.element.removeChild(c.element);
-};
-
-
-/**
- * @expose
- * @param {number} index The index of the number.
- * @return {Object} The element at the given index.
- */
-org.apache.flex.core.ContainerBase.prototype.$getElementAt = function(index) {
- var children = this.internalChildren();
- return children[index].flexjs_wrapper;
-};
-
-
-/**
- * @expose
- * @param {Object} c The element being queried.
- * @return {number} The index of the element.
- */
-org.apache.flex.core.ContainerBase.prototype.$getElementIndex = function(c) {
- var children = this.internalChildren();
- var n = children.length;
- for (var i = 0; i < n; i++)
- {
- if (children[i] == c.element)
- return i;
- }
- return -1;
-};
-
-
-Object.defineProperties(org.apache.flex.core.ContainerBase.prototype, {
- /** @export */
- MXMLDescriptor: {
- /** @this {org.apache.flex.core.ContainerBase} */
- get: function() {
- return this.mxmlDescriptor;
- }
- },
- /** @export */
- states: {
- /** @this {org.apache.flex.core.ContainerBase} */
- get: function() {
- return this.states_;
- },
- /** @this {org.apache.flex.core.ContainerBase} */
- set: function(s) {
- this.states_ = s;
- this.currentState_ = s[0].name;
-
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) {
- /**
- * @type {Function}
- */
- var impl = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iStatesImpl'));
- // TODO: (aharui) check if bead already exists
- this.addBead(new impl());
- }
- }
- },
- /** @export */
- currentState: {
- /** @this {org.apache.flex.core.ContainerBase} */
- get: function() {
- return this.currentState_;
- },
- /** @this {org.apache.flex.core.ContainerBase} */
- set: function(s) {
- var event = new org.apache.flex.events.ValueChangeEvent(
- 'currentStateChange', false, false, this.currentState_, s);
- this.currentState_ = s;
- this.dispatchEvent(event);
- }
- },
- /** @export */
- transitions: {
- /** @this {org.apache.flex.core.ContainerBase} */
- get: function() {
- return this.transitions_;
- },
- /** @this {org.apache.flex.core.ContainerBase} */
- set: function(s) {
- this.transitions_ = s;
- }
- },
- /** @export */
- strandChildren: {
- /** @this {org.apache.flex.core.ContainerBase} */
- get: function() {
- return this.strandChildren_;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBaseStrandChildren.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBaseStrandChildren.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBaseStrandChildren.js
deleted file mode 100644
index 51ac09a..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBaseStrandChildren.js
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.ContainerBaseStrandChildren');
-
-goog.require('org.apache.flex.core.IParent');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IParent}
- * @param {Object} owner The base owner of this object.
- */
-org.apache.flex.core.ContainerBaseStrandChildren = function(owner) {
- this.owner_ = owner;
-};
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.core.ContainerBaseStrandChildren.prototype.owner_ = null;
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ContainerBaseStrandChildren.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ContainerBaseStrandChildren',
- qName: 'org.apache.flex.core.ContainerBaseStrandChildren'}] ,
- interfaces: [org.apache.flex.core.IParent]};
-
-
-/**
- * @export
- * @return {number} The number of non-content children elements
- */
-org.apache.flex.core.ContainerBaseStrandChildren.prototype.numElements =
- function() {
- return this.owner_.$numElements();
-};
-
-
-/**
- * @export
- * @param {Object} c The element to be added.
- * @param {boolean=} opt_dispatchEvent Whether or not to dispatch an event.
- */
-org.apache.flex.core.ContainerBaseStrandChildren.prototype.addElement =
- function(c, opt_dispatchEvent) {
- this.owner_.$addElement(c, opt_dispatchEvent);
-};
-
-
-/**
- * @export
- * @param {Object} c The element to be added.
- * @param {number} index The index of the new element.
- * @param {boolean=} opt_dispatchEvent Whether or not to dispatch an event.
- */
-org.apache.flex.core.ContainerBaseStrandChildren.prototype.addElementAt =
- function(c, index, opt_dispatchEvent) {
- this.owner_.$addElementAt(c, index, opt_dispatchEvent);
-};
-
-
-/**
- * @export
- * @param {Object} c The element to be removed.
- * @param {boolean=} opt_dispatchEvent Whether or not to dispatch an event.
- */
-org.apache.flex.core.ContainerBaseStrandChildren.prototype.removeElement =
- function(c, opt_dispatchEvent) {
- this.owner_.$removeElement(c, opt_dispatchEvent);
-};
-
-
-/**
- * @export
- * @param {number} index The index of the element sought.
- * @return {Object} The element at the given index.
- */
-org.apache.flex.core.ContainerBaseStrandChildren.prototype.getElementAt =
- function(index) {
- return this.owner_.$getElementAt(index);
-};
-
-
-/**
- * @export
- * @param {Object} c The element in question.
- * @return {number} The index of the element.
- */
-org.apache.flex.core.ContainerBaseStrandChildren.prototype.getElementIndex =
- function(c) {
- return this.owner_.$getElementIndex(c);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/DataBindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/DataBindingBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/DataBindingBase.js
deleted file mode 100644
index 4d149e9..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/DataBindingBase.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.DataBindingBase');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.core.DataBindingBase = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.DataBindingBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'DataBindingBase',
- qName: 'org.apache.flex.core.DataBindingBase'}] };
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/FilledRectangle.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/FilledRectangle.js b/frameworks/projects/Core/js/src/org/apache/flex/core/FilledRectangle.js
deleted file mode 100644
index c4121e7..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/FilledRectangle.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.core.FilledRectangle');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.core.FilledRectangle = function() {
- org.apache.flex.core.FilledRectangle.base(this, 'constructor');
-
- /**
- * @private
- * @type {number}
- */
- this.fillColor_ = 0;
-};
-goog.inherits(org.apache.flex.core.FilledRectangle,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.FilledRectangle.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'FilledRectangle',
- qName: 'org.apache.flex.core.FilledRectangle' }] };
-
-
-/**
- * @override
- */
-org.apache.flex.core.FilledRectangle.prototype.addedToParent = function() {
- org.apache.flex.core.FilledRectangle.base(this, 'addedToParent');
- this.drawRect(this.x, this.y, this.width, this.height);
-};
-
-
-Object.defineProperties(org.apache.flex.core.FilledRectangle.prototype, {
- /** @export */
- fillColor: {
- /** @this {org.apache.flex.core.FilledRectangle} */
- get: function() {
- return this.fillColor_;
- },
- /** @this {org.apache.flex.core.FilledRectangle} */
- set: function(value) {
- this.fillColor_ = value;
- }
- }
-});
-
-
-/**
- * @export
- * @param {number} x The left coordinate.
- * @param {number} y The top coordinate.
- * @param {number} width The width.
- * @param {number} height The height.
- */
-org.apache.flex.core.UIBase.prototype.drawRect = function(x, y, width, height) {
- this.element.style.position = 'absolute';
- this.element.style.backgroundColor = '#' + this.fillColor_.toString(16);
- if (!isNaN(x)) this.x = x;
- if (!isNaN(y)) this.y = y;
- if (!isNaN(width)) this.width = width;
- if (!isNaN(height)) this.height = height;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/HTMLElementWrapper.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/HTMLElementWrapper.js b/frameworks/projects/Core/js/src/org/apache/flex/core/HTMLElementWrapper.js
deleted file mode 100644
index c9b82bf..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/HTMLElementWrapper.js
+++ /dev/null
@@ -1,177 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.HTMLElementWrapper');
-
-goog.require('org.apache.flex.core.IBeadModel');
-goog.require('org.apache.flex.core.IStrand');
-goog.require('org.apache.flex.events.BrowserEvent');
-goog.require('org.apache.flex.events.EventDispatcher');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- */
-org.apache.flex.core.HTMLElementWrapper = function() {
- org.apache.flex.core.HTMLElementWrapper.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.core.HTMLElementWrapper,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.HTMLElementWrapper.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'HTMLElementWrapper',
- qName: 'org.apache.flex.core.HTMLElementWrapper' }],
- interfaces: [org.apache.flex.core.IStrand] };
-
-
-/**
- * @export
- * @type {EventTarget}
- */
-org.apache.flex.core.HTMLElementWrapper.prototype.element = null;
-
-
-/**
- * @protected
- * @type {Array.<Object>}
- */
-org.apache.flex.core.HTMLElementWrapper.prototype._beads = null;
-
-
-/**
- * Used internally by layouts.
- * @type {string}
- */
-org.apache.flex.core.HTMLElementWrapper.prototype.internalDisplay = 'block';
-
-
-/**
- * @export
- * @param {Object} bead The new bead.
- */
-org.apache.flex.core.HTMLElementWrapper.prototype.addBead = function(bead) {
- if (!this.beads_) {
- this.beads_ = [];
- }
-
- this.beads_.push(bead);
-
- if (org.apache.flex.utils.Language.is(bead, org.apache.flex.core.IBeadModel)) {
- this.model = bead;
- }
-
- bead.strand = this;
-};
-
-
-/**
- * @export
- * @param {!Object} classOrInterface The requested bead type.
- * @return {Object} The bead.
- */
-org.apache.flex.core.HTMLElementWrapper.prototype.getBeadByType =
- function(classOrInterface) {
- var bead, i, n;
-
- n = this.beads_.length;
- for (i = 0; i < n; i++) {
- bead = this.beads_[i];
-
- if (org.apache.flex.utils.Language.is(bead, classOrInterface)) {
- return bead;
- }
- }
-
- return null;
-};
-
-
-Object.defineProperties(org.apache.flex.core.HTMLElementWrapper.prototype, {
- /** @export */
- MXMLDescriptor: {
- get: function() {
- return null;
- }
- }
-});
-
-
-/**
- * @export
- * @param {Object} bead The bead to remove.
- * @return {Object} The bead.
- */
-org.apache.flex.core.HTMLElementWrapper.prototype.removeBead = function(bead) {
- var i, n, value;
-
- n = this.beads_.length;
- for (i = 0; i < n; i++) {
- value = this.beads_[i];
-
- if (bead === value) {
- this.beads_.splice(i, 1);
-
- return bead;
- }
- }
-
- return null;
-};
-
-
-/**
- * @type {?function((goog.events.Listener), (?Object)):boolean}
- */
-org.apache.flex.core.HTMLElementWrapper.googFireListener = null;
-
-
-/**
- * Fires a listener with a set of arguments
- *
- * @param {goog.events.Listener} listener The listener object to call.
- * @param {Object} eventObject The event object to pass to the listener.
- * @return {boolean} Result of listener.
- */
-org.apache.flex.core.HTMLElementWrapper.fireListenerOverride = function(listener, eventObject) {
- var e = new org.apache.flex.events.BrowserEvent();
- e.wrappedEvent = /** @type {goog.events.BrowserEvent} */ (eventObject);
- return org.apache.flex.core.HTMLElementWrapper.googFireListener(listener, e);
-};
-
-
-/**
- * Static initializer
- */
-org.apache.flex.core.HTMLElementWrapper.installOverride = function() {
- org.apache.flex.core.HTMLElementWrapper.googFireListener =
- goog.events.fireListener;
- goog.events.fireListener = org.apache.flex.core.HTMLElementWrapper.fireListenerOverride;
-};
-
-
-/**
- * The properties that triggers the static initializer
- */
-org.apache.flex.core.HTMLElementWrapper.installedOverride =
- org.apache.flex.core.HTMLElementWrapper.installOverride();
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IBead.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IBead.js
deleted file mode 100644
index 0a25bd5..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IBead.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IBead');
-
-
-
-/**
- * IBead
- *
- * @interface
- */
-org.apache.flex.core.IBead = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IBead.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IBead',
- qName: 'org.apache.flex.core.IBead' }] };
-
-
-Object.defineProperties(org.apache.flex.core.IBead.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.core.IBead} */
- set: function(value) {}
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadController.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadController.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadController.js
deleted file mode 100644
index 8537592..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadController.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.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IBeadController');
-
-goog.require('org.apache.flex.core.IBead');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IBead}
- */
-org.apache.flex.core.IBeadController = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IBeadController.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IBeadController',
- qName: 'org.apache.flex.core.IBeadController' }],
- interfaces: [org.apache.flex.core.IBead] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadLayout.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadLayout.js
deleted file mode 100644
index 95fdc61..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadLayout.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.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IBeadLayout');
-
-goog.require('org.apache.flex.core.IBead');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IBead}
- */
-org.apache.flex.core.IBeadLayout = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IBeadLayout.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IBeadLayout',
- qName: 'org.apache.flex.core.IBeadLayout' }],
- interfaces: [org.apache.flex.core.IBead] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadModel.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadModel.js
deleted file mode 100644
index eddad4b..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadModel.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IBeadModel');
-
-goog.require('org.apache.flex.core.IBead');
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IBead}
- * @extends {org.apache.flex.events.IEventDispatcher}
- */
-org.apache.flex.core.IBeadModel = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IBeadModel.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IBeadModel',
- qName: 'org.apache.flex.core.IBeadModel' }],
- interfaces: [org.apache.flex.core.IBead,
- org.apache.flex.events.IEventDispatcher] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadView.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadView.js
deleted file mode 100644
index 5cac33f..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IBeadView.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IBeadView');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IBeadView = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IBeadView.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IBeadView',
- qName: 'org.apache.flex.core.IBeadView' }] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IChild.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IChild.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IChild.js
deleted file mode 100644
index 5c66441..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IChild.js
+++ /dev/null
@@ -1,49 +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.flex.core.IChild
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IChild');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IChild = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.core.IChild.prototype, {
- /** @export */
- parent: {
- get: function() {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IChild.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IChild', qName: 'org.apache.flex.core.IChild'}]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IChrome.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IChrome.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IChrome.js
deleted file mode 100644
index 46d9f6b..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IChrome.js
+++ /dev/null
@@ -1,31 +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.flex.core.IChrome
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IChrome');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IChrome = function() {
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IContainer.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IContainer.js
deleted file mode 100644
index 6df12dc..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IContainer.js
+++ /dev/null
@@ -1,52 +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.flex.core.IContainer
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IContainer');
-
-goog.require('org.apache.flex.core.IParent');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IParent}
- */
-org.apache.flex.core.IContainer = function() {
-};
-
-
-/**
- * Called after all of the children have been added to the container.
- * @return {void}
- */
-org.apache.flex.core.IContainer.prototype.childrenAdded = function() {};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IContainer.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IContainer', qName: 'org.apache.flex.core.IContainer'}],
- interfaces: [org.apache.flex.core.IParent]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IContainerView.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IContainerView.js
deleted file mode 100644
index 4b74c52..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IContainerView.js
+++ /dev/null
@@ -1,44 +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.flex.core.IContainerView
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IContainerView');
-
-goog.require('org.apache.flex.core.IParent');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IContainerView = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IContainerView.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IContainerView', qName: 'org.apache.flex.core.IContainerView'}],
- interfaces: [org.apache.flex.core.IParent]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IContentView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IContentView.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IContentView.js
deleted file mode 100644
index 890334a..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IContentView.js
+++ /dev/null
@@ -1,79 +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.flex.core.IContentView
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IContentView');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IContentView = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.core.IContentView.prototype, {
- /** @export */
- x: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- y: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- width: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- height: {
- get: function() {},
- set: function(value) {}
- }
-});
-
-
-/**
- * Adds a new element to component.
- * @param {Object} value The child element being added.
- */
-org.apache.flex.core.IContentView.prototype.addElement = function(value) {};
-
-
-/**
- * Removes all of the component's children.
- * @return {void}
- */
-org.apache.flex.core.IContentView.prototype.removeAllElements = function() {};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IContentView.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IContentView', qName: 'org.apache.flex.core.IContentView'}]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IContentViewHost.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IContentViewHost.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IContentViewHost.js
deleted file mode 100644
index 708e532..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IContentViewHost.js
+++ /dev/null
@@ -1,52 +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.flex.core.IContentViewHost
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IContentViewHost');
-
-goog.require('org.apache.flex.core.IParent');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IContentViewHost = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.core.IContentViewHost.prototype, {
- /** @export */
- strandChildren: {
- get: function() {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IContentViewHost.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IContentViewHost', qName: 'org.apache.flex.core.IContentViewHost'}],
- interfaces: [org.apache.flex.core.IParent]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IDataProviderItemRendererMapper.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IDataProviderItemRendererMapper.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IDataProviderItemRendererMapper.js
deleted file mode 100644
index bde81e0..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IDataProviderItemRendererMapper.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.
- */
-
-/**
- * org.apache.flex.html.beads.IDataProviderItemRendererMapper
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IDataProviderItemRendererMapper');
-
-goog.require('org.apache.flex.core.IBead');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IBead}
- */
-org.apache.flex.core.IDataProviderItemRendererMapper =
-function() {
-};
-
-
-/**
- * @export
- */
-org.apache.flex.core.IDataProviderItemRendererMapper.prototype.itemRendererFactory = null;
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IDataProviderItemRendererMapper.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IDataProviderItemRendererMapper',
- qName: 'org.apache.flex.core.IDataProviderItemRendererMapper'}],
- interfaces: [org.apache.flex.core.IBead]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IDocument.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IDocument.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IDocument.js
deleted file mode 100644
index 36b4f72..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IDocument.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IDocument');
-
-
-
-/**
- * IDocument
- *
- * @interface
- */
-org.apache.flex.core.IDocument = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IDocument.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IDocument',
- qName: 'org.apache.flex.core.IDocument' }] };
-
-
-/**
- * setDocument()
- *
- * @export
- * @param {Object} document The DOM document element.
- * @param {string=} opt_id The id (optional).
- */
-org.apache.flex.core.IDocument.prototype.setDocument =
- function(document, opt_id) {};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IEffectTimer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IEffectTimer.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IEffectTimer.js
deleted file mode 100644
index 5880318..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IEffectTimer.js
+++ /dev/null
@@ -1,45 +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.flex.core.IEffectTimer
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IEffectTimer');
-
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.events.IEventDispatcher}
- */
-org.apache.flex.core.IEffectTimer = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IEffectTimer.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IEffectTimer', qName: 'org.apache.flex.core.IEffectTimer'}],
- interfaces: [org.apache.flex.events.IEventDispatcher]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IFactory.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IFactory.js
deleted file mode 100644
index dd3623c..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IFactory.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IFactory');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IFactory = function() {
-};
-
-
-/**
- * @export
- * @return {Object} A new instance of the itemRenderer.
- */
-org.apache.flex.core.IFactory.prototype.newInstance = function() {};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IFactory.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IFactory',
- qName: 'org.apache.flex.core.IFactory' }] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IFormatBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IFormatBead.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IFormatBead.js
deleted file mode 100644
index 12c0a0b..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IFormatBead.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IFormatBead');
-
-goog.require('org.apache.flex.core.IBead');
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IBead}
- * @extends {org.apache.flex.events.IEventDispatcher}
- */
-org.apache.flex.core.IFormatBead = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.core.IFormatBead.prototype, {
- /** @export */
- propertyName: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- eventName: {
- get: function() {},
- set: function(value) {}
- },
- /** @export */
- formattedString: {
- get: function() {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IFormatBead.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IFormatBead', qName: 'org.apache.flex.core.IFormatBead'}],
- interfaces: [org.apache.flex.core.IBead, org.apache.flex.events.IEventDispatcher]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRenderer.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRenderer.js
deleted file mode 100644
index 6366f8e..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRenderer.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IItemRenderer');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IItemRenderer = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IItemRenderer.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IItemRenderer',
- qName: 'org.apache.flex.core.IItemRenderer' }] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererClassFactory.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererClassFactory.js
deleted file mode 100644
index 297121e..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererClassFactory.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IItemRendererClassFactory');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IItemRendererClassFactory = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IItemRendererClassFactory.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IItemRendererClassFactory',
- qName: 'org.apache.flex.core.IItemRendererClassFactory' }] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererFactory.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererFactory.js
deleted file mode 100644
index 100eccd..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererFactory.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IItemRendererFactory');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IItemRendererFactory = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IItemRendererFactory.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IItemRendererFactory',
- qName: 'org.apache.flex.core.IItemRendererFactory' }] };
-
-
-/**
- * @export
- * @return {Object} A new instance of the itemRenderer.
- */
-org.apache.flex.core.IItemRendererFactory.prototype.newInstance = function() {};
[52/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - clean
up warnings
Posted by ah...@apache.org.
clean up warnings
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a94bf841
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a94bf841
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a94bf841
Branch: refs/heads/develop
Commit: a94bf841edc283505e320067e72b60b42aee8c6c
Parents: 9180820
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 15:39:51 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 15:39:51 2015 -0800
----------------------------------------------------------------------
examples/build_example.xml | 54 +++++++++++++++
examples/flexjs/ChartExample/build.xml | 31 +--------
examples/flexjs/CordovaCameraExample/build.xml | 29 --------
examples/flexjs/DataBindingExample/build.xml | 29 --------
.../flexjs/DataBindingExample_Flat/build.xml | 29 --------
examples/flexjs/DataBindingExample_as/build.xml | 29 --------
examples/flexjs/DataGridExample/build.xml | 33 +--------
examples/flexjs/DesktopMap/build.xml | 35 +---------
examples/flexjs/FlexJSStore/build.xml | 29 --------
examples/flexjs/FlexJSStore_jquery/build.xml | 31 +--------
.../flexjs/FlexWebsiteStatsViewer/build.xml | 29 --------
examples/flexjs/MapSearch/build.xml | 35 +---------
examples/flexjs/MobileTrader/build.xml | 33 +--------
examples/flexjs/TodoListSampleApp/build.xml | 29 --------
examples/native/ButtonExample/build.xml | 69 ++++++++----------
examples/native/USStatesMap/build.xml | 73 ++++++++------------
16 files changed, 121 insertions(+), 476 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/examples/build_example.xml b/examples/build_example.xml
index 0dae399..9a78647 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -20,6 +20,60 @@
<project name="build_example" basedir=".">
+ <condition property="FALCON_HOME" value="${env.FALCON_HOME}">
+ <and>
+ <not>
+ <isset property="FALCON_HOME" />
+ </not>
+ <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar" type="file" />
+ </and>
+ </condition>
+
+ <condition property="FALCON_HOME" value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk">
+ <and>
+ <not>
+ <isset property="FALCON_HOME" />
+ </not>
+ <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar" type="file" />
+ </and>
+ </condition>
+
+ <condition property="FALCONJX_HOME" value="${env.FALCONJX_HOME}">
+ <and>
+ <not>
+ <isset property="FALCONJX_HOME" />
+ </not>
+ <available file="${env.FALCONJX_HOME}/lib/jsc.jar" type="file" />
+ </and>
+ </condition>
+
+ <condition property="FALCONJX_HOME" value="${FLEXJS_HOME}/../flex-falcon/compiler.jx">
+ <and>
+ <not>
+ <isset property="FALCONJX_HOME" />
+ </not>
+ <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar" type="file" />
+ </and>
+ </condition>
+
+ <condition property="GOOG_HOME" value="${env.GOOG_HOME}">
+ <and>
+ <not>
+ <isset property="GOOG_HOME" />
+ </not>
+ <available file="${env.GOOG_HOME}/closure/goog/base.js" type="file" />
+ </and>
+ </condition>
+
+ <condition property="GOOG_HOME" value="${FLEXJS_HOME}/js/lib/google/closure-library">
+ <and>
+ <not>
+ <isset property="GOOG_HOME" />
+ </not>
+ <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js" type="file" />
+ </and>
+ </condition>
+
<path id="lib.path">
<fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
</path>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/ChartExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/ChartExample/build.xml b/examples/flexjs/ChartExample/build.xml
index e193711..3eaa208 100644
--- a/examples/flexjs/ChartExample/build.xml
+++ b/examples/flexjs/ChartExample/build.xml
@@ -27,40 +27,11 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
+ <include file="${basedir}/../../build_example.xml" />
<property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
- <include file="${basedir}/../../build_example.xml" />
-
<!-- temp remove build_example.compilejs -->
<target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
</target>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/CordovaCameraExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/CordovaCameraExample/build.xml b/examples/flexjs/CordovaCameraExample/build.xml
index 7aa14f4..9087907 100644
--- a/examples/flexjs/CordovaCameraExample/build.xml
+++ b/examples/flexjs/CordovaCameraExample/build.xml
@@ -31,35 +31,6 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
<property name="AIR_HOME" value="${env.AIR_HOME}"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/DataBindingExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataBindingExample/build.xml b/examples/flexjs/DataBindingExample/build.xml
index 88dbbba..9a08e7c 100644
--- a/examples/flexjs/DataBindingExample/build.xml
+++ b/examples/flexjs/DataBindingExample/build.xml
@@ -27,35 +27,6 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
<include file="${basedir}/../../build_example.xml" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/DataBindingExample_Flat/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataBindingExample_Flat/build.xml b/examples/flexjs/DataBindingExample_Flat/build.xml
index 6553b2e..5ecc0dd 100644
--- a/examples/flexjs/DataBindingExample_Flat/build.xml
+++ b/examples/flexjs/DataBindingExample_Flat/build.xml
@@ -28,35 +28,6 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
<include file="${basedir}/../../build_example.xml" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/DataBindingExample_as/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataBindingExample_as/build.xml b/examples/flexjs/DataBindingExample_as/build.xml
index db584dc..3aed7f8 100644
--- a/examples/flexjs/DataBindingExample_as/build.xml
+++ b/examples/flexjs/DataBindingExample_as/build.xml
@@ -27,35 +27,6 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
<include file="${basedir}/../../build_example.xml" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/DataGridExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataGridExample/build.xml b/examples/flexjs/DataGridExample/build.xml
index 61ebd4a..34c9abf 100644
--- a/examples/flexjs/DataGridExample/build.xml
+++ b/examples/flexjs/DataGridExample/build.xml
@@ -27,40 +27,11 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
-
- <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
<include file="${basedir}/../../build_example.xml" />
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
+
<target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
</target>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/DesktopMap/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DesktopMap/build.xml b/examples/flexjs/DesktopMap/build.xml
index d77d87d..3b6daa0 100644
--- a/examples/flexjs/DesktopMap/build.xml
+++ b/examples/flexjs/DesktopMap/build.xml
@@ -31,41 +31,8 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
-
<property name="AIR_HOME" value="${env.AIR_HOME}"/>
- <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc"/>
-
-
<condition property="adl" value="adl.exe">
<os family="windows"/>
</condition>
@@ -84,6 +51,8 @@
<include file="${basedir}/../../build_example.xml" />
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc"/>
+
<target name="main" depends="clean,build_example.compilejsair" description="Clean build of ${example}">
</target>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/FlexJSStore/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore/build.xml b/examples/flexjs/FlexJSStore/build.xml
index 7dc4d66..82d62d3 100644
--- a/examples/flexjs/FlexJSStore/build.xml
+++ b/examples/flexjs/FlexJSStore/build.xml
@@ -27,35 +27,6 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
<include file="${basedir}/../../build_example.xml" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/FlexJSStore_jquery/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/build.xml b/examples/flexjs/FlexJSStore_jquery/build.xml
index 4412a04..d78adbd 100644
--- a/examples/flexjs/FlexJSStore_jquery/build.xml
+++ b/examples/flexjs/FlexJSStore_jquery/build.xml
@@ -27,40 +27,11 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
+ <include file="${basedir}/../../build_example.xml" />
<property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/jquery/out/bin/jquery-1.9.swc"/>
- <include file="${basedir}/../../build_example.xml" />
-
<target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
<mkdir dir="${basedir}/bin-debug/data" />
<copy file="${basedir}/src/data/catalog.json" tofile="${basedir}/bin-debug/data/catalog.json" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/FlexWebsiteStatsViewer/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexWebsiteStatsViewer/build.xml b/examples/flexjs/FlexWebsiteStatsViewer/build.xml
index 20b4415..c8479ae 100644
--- a/examples/flexjs/FlexWebsiteStatsViewer/build.xml
+++ b/examples/flexjs/FlexWebsiteStatsViewer/build.xml
@@ -27,35 +27,6 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
<include file="${basedir}/../../build_example.xml" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/MapSearch/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MapSearch/build.xml b/examples/flexjs/MapSearch/build.xml
index 77f0596..c661f54 100644
--- a/examples/flexjs/MapSearch/build.xml
+++ b/examples/flexjs/MapSearch/build.xml
@@ -30,41 +30,9 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
<property name="AIR_HOME" value="${env.AIR_HOME}"/>
- <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc"/>
-
-
<condition property="adl" value="adl.exe">
<os family="windows"/>
</condition>
@@ -83,6 +51,9 @@
<include file="${basedir}/../../build_example.xml" />
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc"/>
+
+
<target name="main" depends="clean,build_example.compilejsair" description="Clean build of ${example}">
</target>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/MobileTrader/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileTrader/build.xml b/examples/flexjs/MobileTrader/build.xml
index cfadc95..8384d48 100644
--- a/examples/flexjs/MobileTrader/build.xml
+++ b/examples/flexjs/MobileTrader/build.xml
@@ -26,40 +26,11 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
-
- <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
<include file="${basedir}/../../build_example.xml" />
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
+
<target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
</target>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/flexjs/TodoListSampleApp/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TodoListSampleApp/build.xml b/examples/flexjs/TodoListSampleApp/build.xml
index db82c4c..3fc578b 100644
--- a/examples/flexjs/TodoListSampleApp/build.xml
+++ b/examples/flexjs/TodoListSampleApp/build.xml
@@ -25,35 +25,6 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
<include file="${basedir}/../../build_example.xml" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/native/ButtonExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/native/ButtonExample/build.xml b/examples/native/ButtonExample/build.xml
index 2d99e0f..9215c58 100644
--- a/examples/native/ButtonExample/build.xml
+++ b/examples/native/ButtonExample/build.xml
@@ -27,50 +27,35 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
- <available file="${FLEXJS_HOME}/js/libs/js.swc"
- type="file"
- property="JS.SWC"
- value="${FLEXJS_HOME}/js/libs/js.swc" />
-
- <available file="${FALCONJX_HOME}/../externs/js/out/bin/js.swc"
- type="file"
- property="JS.SWC"
- value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <include file="${basedir}/../../build_example.xml" />
+
+ <condition property="JS.SWC" value="${FLEXJS_HOME}/js/libs/js.swc" >
+ <and>
+ <not>
+ <isset property="JS.SWC" />
+ </not>
+ <available file="${FLEXJS_HOME}/js/libs/js.swc" type="file" />
+ </and>
+ </condition>
+
+ <condition property="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" >
+ <and>
+ <not>
+ <isset property="JS.SWC" />
+ </not>
+ <available file="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" type="file" />
+ </and>
+ </condition>
- <available file="${FALCONJX_HOME}/libs/js.swc"
- type="file"
- property="JS.SWC"
- value="${FALCONJX_HOME}/libs/js.swc" />
+ <condition property="JS.SWC" value="${FALCONJX_HOME}/libs/js.swc" >
+ <and>
+ <not>
+ <isset property="JS.SWC" />
+ </not>
+ <available file="${FALCONJX_HOME}/libs/js.swc" type="file" />
+ </and>
+ </condition>
<path id="lib.path">
<fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a94bf841/examples/native/USStatesMap/build.xml
----------------------------------------------------------------------
diff --git a/examples/native/USStatesMap/build.xml b/examples/native/USStatesMap/build.xml
index e2724f5..7dbabc4 100644
--- a/examples/native/USStatesMap/build.xml
+++ b/examples/native/USStatesMap/build.xml
@@ -27,51 +27,36 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
- <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar"
- type="file"
- property="FALCON_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/>
-
- <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${env.FALCONJX_HOME}"/>
-
- <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar"
- type="file"
- property="FALCONJX_HOME"
- value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/>
-
- <available file="${env.GOOG_HOME}/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${env.GOOG_HOME}"/>
-
- <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js"
- type="file"
- property="GOOG_HOME"
- value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
- <available file="${FLEXJS_HOME}/js/libs/js.swc"
- type="file"
- property="JS.SWC"
- value="${FLEXJS_HOME}/js/libs/js.swc" />
-
- <available file="${FALCONJX_HOME}/../externs/js/out/bin/js.swc"
- type="file"
- property="JS.SWC"
- value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
-
- <available file="${FALCONJX_HOME}/libs/js.swc"
- type="file"
- property="JS.SWC"
- value="${FALCONJX_HOME}/libs/js.swc" />
-
+ <include file="${basedir}/../../build_example.xml" />
+
+ <condition property="JS.SWC" value="${FLEXJS_HOME}/js/libs/js.swc" >
+ <and>
+ <not>
+ <isset property="JS.SWC" />
+ </not>
+ <available file="${FLEXJS_HOME}/js/libs/js.swc" type="file" />
+ </and>
+ </condition>
+
+ <condition property="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" >
+ <and>
+ <not>
+ <isset property="JS.SWC" />
+ </not>
+ <available file="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" type="file" />
+ </and>
+ </condition>
+
+ <condition property="JS.SWC" value="${FALCONJX_HOME}/libs/js.swc" >
+ <and>
+ <not>
+ <isset property="JS.SWC" />
+ </not>
+ <available file="${FALCONJX_HOME}/libs/js.swc" type="file" />
+ </and>
+ </condition>
+
<path id="lib.path">
<fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
</path>
[04/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/List.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/List.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/List.js
deleted file mode 100644
index 7c44d8a..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/List.js
+++ /dev/null
@@ -1,196 +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.List');
-
-goog.require('org.apache.flex.core.IDataProviderItemRendererMapper');
-goog.require('org.apache.flex.core.IFactory');
-goog.require('org.apache.flex.core.IItemRendererClassFactory');
-goog.require('org.apache.flex.core.IListPresentationModel');
-goog.require('org.apache.flex.core.ItemRendererClassFactory');
-goog.require('org.apache.flex.core.ListBase');
-goog.require('org.apache.flex.core.ValuesManager');
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.html.beads.ListView');
-goog.require('org.apache.flex.html.beads.TextItemRendererFactoryForArrayData');
-goog.require('org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController');
-goog.require('org.apache.flex.html.beads.models.ArraySelectionModel');
-goog.require('org.apache.flex.html.beads.models.ListPresentationModel');
-goog.require('org.apache.flex.html.supportClasses.DataItemRenderer');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html.List = function() {
- org.apache.flex.html.List.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.List,
- org.apache.flex.core.ListBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.List.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'List',
- qName: 'org.apache.flex.html.List' }] };
-
-
-Object.defineProperties(org.apache.flex.html.List.prototype, {
- /** @export */
- itemRenderer: {
- /** @this {org.apache.flex.html.List} */
- get: function() {
- return this.itemRenderer_;
- },
- /** @this {org.apache.flex.html.List} */
- set: function(value) {
- this.itemRenderer_ = value;
- }
- },
- /** @export */
- selectedItem: {
- /** @this {org.apache.flex.html.List} */
- get: function() {
- return this.model.selectedItem;
- },
- /** @this {org.apache.flex.html.List} */
- set: function(value) {
- this.model.selectedItem = value;
- }
- },
- /** @export */
- labelField: {
- /** @this {org.apache.flex.html.List} */
- get: function() {
- return this.model.labelField;
- },
- /** @this {org.apache.flex.html.List} */
- set: function(value) {
- this.model.labelField = value;
- }
- },
- /** @export */
- rowHeight: {
- /** @this {org.apache.flex.html.List} */
- get: function() {
- return this.presentationModel.rowHeight;
- },
- /** @this {org.apache.flex.html.List} */
- set: function(value) {
- this.presentationModel.rowHeight = value;
- }
- },
- /** @export */
- presentationModel: {
- /** @this {org.apache.flex.html.List} */
- get: function() {
- var presModel = this.getBeadByType(org.apache.flex.core.IListPresentationModel);
- if (presModel == null) {
- presModel = new org.apache.flex.html.beads.models.ListPresentationModel();
- this.addBead(presModel);
- }
- return presModel;
- }
- }
-});
-
-
-/**
- * @override
- */
-org.apache.flex.html.List.prototype.createElement =
- function() {
- org.apache.flex.html.List.base(this, 'createElement');
- this.className = 'List';
-
- return this.element;
-};
-
-
-/**
- * @override
- */
-org.apache.flex.html.List.prototype.addedToParent =
- function() {
- org.apache.flex.html.List.base(this, 'addedToParent');
-
- var dataFactory = this.getBeadByType(org.apache.flex.core.IDataProviderItemRendererMapper);
- if (dataFactory == null) {
- var m1 = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'iDataProviderItemRendererMapper');
- dataFactory = new m1();
- this.addBead(dataFactory);
- }
-
- var itemRendererFactory = this.getBeadByType(org.apache.flex.core.IItemRendererClassFactory);
- if (itemRendererFactory == null) {
- var m2 = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'iItemRendererClassFactory');
- itemRendererFactory = new m2();
- this.addBead(itemRendererFactory);
- }
-
- this.dispatchEvent(new org.apache.flex.events.Event('initComplete'));
-};
-
-
-/**
- * @export
- * @return {Array.<Object>} An array of objects that make up the actual
- * list (most likely itemRenderers).
- */
-org.apache.flex.html.List.prototype.internalChildren =
- function() {
- var listView =
- this.getBeadByType(org.apache.flex.html.beads.ListView);
- var dg = listView.dataGroup;
- var items = null;
- if (dg.renderers) {
- items = [];
- for (var i = 0; i < dg.renderers.length; i++) {
- var r = dg.renderers[i];
- var element = r.element;
- items.push(element);
- }
- }
- return items;
-};
-
-
-/**
- * @export
- * @param {Object} event The event that triggered the selection.
- */
-org.apache.flex.html.List.prototype.selectedHandler =
- function(event) {
- var itemRenderer = event.currentTarget;
- if (this.renderers) {
- var n = this.renderers.length;
- var i;
- for (i = 0; i < n; i++) {
- var test = this.renderers[i];
- if (test == itemRenderer) {
- this.model.selectedIndex = i;
- itemRenderer.selected = true;
- }
- else {
- test.selected = false;
- }
- }
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/MultilineLabel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/MultilineLabel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/MultilineLabel.js
deleted file mode 100644
index 5e177ad..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/MultilineLabel.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html.MultilineLabel');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.MultilineLabel = function() {
- org.apache.flex.html.MultilineLabel.base(this, 'constructor');
-
- this.element = document.createElement('div');
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
-};
-goog.inherits(org.apache.flex.html.MultilineLabel,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.MultilineLabel.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'MultilineLabel',
- qName: 'org.apache.flex.html.MultilineLabel' }] };
-
-
-Object.defineProperties(org.apache.flex.html.MultilineLabel.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html.MultilineLabel} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html.MultilineLabel} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- },
- /** @export */
- html: {
- /** @this {org.apache.flex.html.MultilineLabel} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html.MultilineLabel} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/NumericStepper.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/NumericStepper.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/NumericStepper.js
deleted file mode 100644
index a9ddbc4..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/NumericStepper.js
+++ /dev/null
@@ -1,163 +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.NumericStepper');
-
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.html.Spinner');
-goog.require('org.apache.flex.html.TextInput');
-goog.require('org.apache.flex.html.beads.models.RangeModel');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.NumericStepper = function() {
- org.apache.flex.html.NumericStepper.base(this, 'constructor');
- this.model =
- new org.apache.flex.html.beads.models.RangeModel();
-};
-goog.inherits(org.apache.flex.html.NumericStepper,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.NumericStepper.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'NumericStepper',
- qName: 'org.apache.flex.html.NumericStepper' }] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.NumericStepper.prototype.createElement =
- function() {
- this.element = document.createElement('div');
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- this.input = new org.apache.flex.html.TextInput();
- this.addElement(this.input);
- this.input.positioner.style.display = 'inline-block';
- this.input.positioner.style.width = '100px';
-
- this.spinner = new org.apache.flex.html.Spinner();
- this.spinner.positioner.style.display = 'inline-block';
- this.spinner.positioner.style.height = '24px';
- this.spinner.positioner.style.marginLeft = '-1px';
- this.spinner.positioner.style.marginTop = '-1px';
- this.addElement(this.spinner);
- /* TODO: ajh move to view and css */
- this.spinner.incrementButton.positioner.style.display = 'block';
- this.spinner.incrementButton.positioner.style.marginBottom = '-1px';
- this.spinner.incrementButton.positioner.style.paddingTop = '1.5px';
- this.spinner.incrementButton.positioner.style.paddingBottom = '2px';
- this.spinner.incrementButton.positioner.style.fontSize = '7px';
- this.spinner.decrementButton.positioner.style.marginTop = '0px';
- this.spinner.decrementButton.positioner.style.display = 'block';
- this.spinner.decrementButton.positioner.style.paddingTop = '2px';
- this.spinner.decrementButton.positioner.style.paddingBottom = '1.5px';
- this.spinner.decrementButton.positioner.style.fontSize = '7px';
- this.spinner.positioner.style.display = 'inline-block';
- goog.events.listen(this.spinner, 'valueChange',
- goog.bind(this.spinnerChange, this));
-
- this.element.flexjs_wrapper = this;
- this.className = 'NumericStepper';
-
- this.input.text = String(this.spinner.value);
-
- return this.element;
-};
-
-
-/**
- * @param {Object} event The input event.
- */
-org.apache.flex.html.NumericStepper.prototype.spinnerChange =
- function(event)
- {
- var newValue = this.spinner.value;
- this.value = newValue;
- this.input.text = String(this.spinner.value);
- this.dispatchEvent(new org.apache.flex.events.Event('valueChange'));
-};
-
-
-Object.defineProperties(org.apache.flex.html.NumericStepper.prototype, {
- /** @export */
- minimum: {
- /** @this {org.apache.flex.html.NumericStepper} */
- get: function() {
- return this.model.minimum;
- },
- /** @this {org.apache.flex.html.NumericStepper} */
- set: function(value) {
- this.model.minimum = value;
- }
- },
- /** @export */
- maximum: {
- /** @this {org.apache.flex.html.NumericStepper} */
- get: function() {
- return this.model.maximum;
- },
- /** @this {org.apache.flex.html.NumericStepper} */
- set: function(value) {
- this.model.maximum = value;
- }
- },
- /** @export */
- value: {
- /** @this {org.apache.flex.html.NumericStepper} */
- get: function() {
- return this.model.value;
- },
- /** @this {org.apache.flex.html.NumericStepper} */
- set: function(newValue) {
- this.model.value = newValue;
- this.spinner.value = newValue;
- }
- },
- /** @export */
- snapInterval: {
- /** @this {org.apache.flex.html.NumericStepper} */
- get: function() {
- return this.model.snapInterval;
- },
- /** @this {org.apache.flex.html.NumericStepper} */
- set: function(value) {
- this.model.snapInterval = value;
- }
- },
- /** @export */
- stepSize: {
- /** @this {org.apache.flex.html.NumericStepper} */
- get: function() {
- return this.model.stepSize;
- },
- /** @this {org.apache.flex.html.NumericStepper} */
- set: function(value) {
- this.model.stepSize = value;
- }
- }
-});
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js
deleted file mode 100644
index e05c0e5..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js
+++ /dev/null
@@ -1,163 +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.Panel');
-
-goog.require('org.apache.flex.html.Container');
-goog.require('org.apache.flex.html.beads.PanelView');
-goog.require('org.apache.flex.html.beads.models.PanelModel');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Container}
- */
-org.apache.flex.html.Panel = function() {
- org.apache.flex.html.Panel.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.Panel,
- org.apache.flex.html.Container);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.Panel.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Panel',
- qName: 'org.apache.flex.html.Panel' }] };
-
-
-/**
- * @override
- * @param {Object} c Element being added.
- *
-org.apache.flex.html.Panel.prototype.addElement = function(c) {
- if (c == this.titleBar) {
- this.element.insertBefore(this.titleBar.element, this.contentArea);
- }
- else if (c == this.controlBar) {
- this.element.appendChild(c.element);
- }
- else {
- this.contentArea.appendChild(c.element);
- }
- c.addedToParent();
- this.dispatchEvent('childrenAdded');
-};*/
-
-
-/**
- * @override
- * @param {Object} c The child element.
- * @param {number} index The index.
- *
-org.apache.flex.html.Panel.prototype.addElementAt =
- function(c, index) {
- var children = this.internalChildren();
- if (index >= children.length)
- this.addElement(c);
- else
- {
- this.contentArea.insertBefore(c.element,
- children[index]);
- c.addedToParent();
- this.dispatchEvent('childrenAdded');
- }
-};*/
-
-
-/**
- * @override
- * @param {Object} c The child element.
- * @return {number} The index in parent.
- *
-org.apache.flex.html.Panel.prototype.getElementIndex =
- function(c) {
- var children = this.internalChildren();
- var n = children.length;
- for (var i = 0; i < n; i++)
- {
- if (children[i] == c.element)
- return i;
- }
- return -1;
-};*/
-
-
-/**
- * @override
- * @param {Object} c The child element.
- *
-org.apache.flex.html.Panel.prototype.removeElement =
- function(c) {
- this.contentArea.removeChild(c.element);
-};*/
-
-
-/**
- * @override
- */
-org.apache.flex.html.Panel.prototype.createElement =
- function() {
- org.apache.flex.html.Panel.base(this, 'createElement');
- this.element.className = 'Panel';
- this.typeNames = 'Panel';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.Panel.prototype, {
- /** @export */
- showCloseButton: {
- /** @this {org.apache.flex.html.Panel} */
- get: function() {
- return this.model.showCloseButton;
- },
- /** @this {org.apache.flex.html.Panel} */
- set: function(value) {
- this.model.showCloseButton = value;
- }
- },
- /** @export */
- title: {
- /** @this {org.apache.flex.html.Panel} */
- get: function() {
- return this.model.title;
- },
- /** @this {org.apache.flex.html.Panel} */
- set: function(value) {
- this.model.title = value;
- }
- },
- /** @export */
- controlBar: {
- /** @this {org.apache.flex.html.Panel} */
- get: function() {
- return this.controlBarChildren;
- },
- /** @this {org.apache.flex.html.Panel} */
- set: function(value) {
- this.controlBarChildren = value;
-
- for (var i = 0; i < value.length; i++) {
- var item = value[i];
- this.controlBar.addElement(item);
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/RadioButton.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/RadioButton.js
deleted file mode 100644
index f24d439..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/RadioButton.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.RadioButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.RadioButton = function() {
- org.apache.flex.html.RadioButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.RadioButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.RadioButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'RadioButton',
- qName: 'org.apache.flex.html.RadioButton'}] };
-
-
-/**
- * Provides unique name
- */
-org.apache.flex.html.RadioButton.radioCounter = 0;
-
-
-/**
- * @override
- */
-org.apache.flex.html.RadioButton.prototype.createElement =
- function() {
-
- this.input = document.createElement('input');
- this.input.type = 'radio';
- this.input.id = '_radio_' + org.apache.flex.html.RadioButton.radioCounter++;
-
- this.textNode = document.createTextNode('radio button');
-
- this.labelFor = document.createElement('label');
- this.labelFor.appendChild(this.input);
- this.labelFor.appendChild(this.textNode);
-
- this.element = this.labelFor;
- this.element.className = 'RadioButton';
- this.typeNames = 'RadioButton';
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.input.flexjs_wrapper = this;
- this.element.flexjs_wrapper = this;
- this.textNode.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @export
- */
-org.apache.flex.html.RadioButton.prototype.initModel =
- function() {
-};
-
-
-/**
- * @export
- */
-org.apache.flex.html.RadioButton.prototype.initSkin =
- function() {
-};
-
-
-Object.defineProperties(org.apache.flex.html.RadioButton.prototype, {
- /** @export */
- id: {
- /** @this {org.apache.flex.html.RadioButton} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(org.apache.flex.html.RadioButton, this, 'id', value);
- this.labelFor.id = value;
- this.input.id = value;
- }
- },
- /** @export */
- groupName: {
- /** @this {org.apache.flex.html.RadioButton} */
- get: function() {
- return this.input.name;
- },
- /** @this {org.apache.flex.html.RadioButton} */
- set: function(value) {
- this.input.name = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.html.RadioButton} */
- get: function() {
- return this.textNode.nodeValue;
- },
- /** @this {org.apache.flex.html.RadioButton} */
- set: function(value) {
- this.textNode.nodeValue = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.html.RadioButton} */
- get: function() {
- return this.input.checked;
- },
- /** @this {org.apache.flex.html.RadioButton} */
- set: function(value) {
- this.input.checked = value;
- }
- },
- /** @export */
- value: {
- /** @this {org.apache.flex.html.RadioButton} */
- get: function() {
- return this.input.value;
- },
- /** @this {org.apache.flex.html.RadioButton} */
- set: function(value) {
- this.input.value = value;
- }
- },
- /** @export */
- selectedValue: {
- /** @this {org.apache.flex.html.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.html.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/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/SimpleAlert.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/SimpleAlert.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/SimpleAlert.js
deleted file mode 100644
index 833769b..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/SimpleAlert.js
+++ /dev/null
@@ -1,51 +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.SimpleAlert');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.SimpleAlert = function() {
- org.apache.flex.html.SimpleAlert.base(this, 'constructor');
-
-};
-goog.inherits(org.apache.flex.html.SimpleAlert,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.SimpleAlert.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SimpleAlert',
- qName: 'org.apache.flex.html.SimpleAlert'}] };
-
-
-/**
- * @param {string} message The message to display in the alert.
- * @param {Object} host The host that should display the alert.
- */
-org.apache.flex.html.SimpleAlert.show =
- function(message, host) {
-
- alert(message);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/SimpleList.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/SimpleList.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/SimpleList.js
deleted file mode 100644
index db2546e..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/SimpleList.js
+++ /dev/null
@@ -1,111 +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.SimpleList');
-
-goog.require('org.apache.flex.core.ListBase');
-goog.require('org.apache.flex.html.beads.models.ArraySelectionModel');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ListBase}
- */
-org.apache.flex.html.SimpleList = function() {
- org.apache.flex.html.SimpleList.base(this, 'constructor');
- this.model = new org.apache.flex.html.beads.models.ArraySelectionModel();
-};
-goog.inherits(org.apache.flex.html.SimpleList,
- org.apache.flex.core.ListBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.SimpleList.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SimpleList',
- qName: 'org.apache.flex.html.SimpleList'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.SimpleList.prototype.
- createElement = function() {
- this.element = document.createElement('select');
- this.element.size = 5;
- goog.events.listen(this.element, 'change',
- goog.bind(this.changeHandler, this));
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.className = 'SimpleList';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.SimpleList.prototype, {
- /** @export */
- dataProvider: {
- /** @this {org.apache.flex.html.SimpleList} */
- get: function() {
- return this.model.dataProvider;
- },
- /** @this {org.apache.flex.html.SimpleList} */
- set: function(value) {
- var dp, i, n, opt;
-
- this.model.dataProvider = value;
-
- dp = this.element.options;
- n = dp.length;
- for (i = 0; i < n; i++) {
- dp.remove(0);
- }
-
- n = value.length;
- for (i = 0; i < n; i++) {
- opt = document.createElement('option');
- opt.text = value[i].toString();
- dp.add(opt);
- }
- }
- },
- /** @export */
- selectedIndex: {
- /** @this {org.apache.flex.html.SimpleList} */
- get: function() {
- return this.model.selectedIndex;
- },
- /** @this {org.apache.flex.html.SimpleList} */
- set: function(value) {
- this.model.selectedIndex = value;
- }
- },
- /** @export */
- selectedItem: {
- /** @this {org.apache.flex.html.SimpleList} */
- get: function() {
- return this.model.selectedItem;
- },
- /** @this {org.apache.flex.html.SimpleList} */
- set: function(value) {
- this.model.selectedItem = value;
- }
- }
-});
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/Slider.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Slider.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Slider.js
deleted file mode 100644
index 308967c..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Slider.js
+++ /dev/null
@@ -1,173 +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.Slider');
-
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.html.beads.SliderThumbView');
-goog.require('org.apache.flex.html.beads.SliderTrackView');
-goog.require('org.apache.flex.html.beads.controllers.SliderMouseController');
-goog.require('org.apache.flex.html.beads.models.RangeModel');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.Slider = function() {
- this.model =
- new org.apache.flex.html.beads.models.RangeModel();
- org.apache.flex.html.Slider.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.Slider,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.Slider.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Slider',
- qName: 'org.apache.flex.html.Slider'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.Slider.prototype.createElement =
- function() {
-
- this.element = document.createElement('div');
- this.element.style.width = '200px';
- this.element.style.height = '30px';
-
- this.track = new org.apache.flex.html.beads.SliderTrackView();
- this.addBead(this.track);
-
- this.thumb = new org.apache.flex.html.beads.SliderThumbView();
- this.addBead(this.thumb);
-
- this.controller = new org.apache.flex.html.beads.controllers.SliderMouseController();
- this.addBead(this.controller);
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-
- this.className = 'Slider';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.Slider.prototype, {
- /** @export */
- value: {
- /** @this {org.apache.flex.html.Slider} */
- get: function() {
- return this.model.value;
- },
- /** @this {org.apache.flex.html.Slider} */
- set: function(newValue) {
- this.model.value = newValue;
- this.setThumbFromValue(this.model.value);
- }
- },
- /** @export */
- minimum: {
- /** @this {org.apache.flex.html.Slider} */
- get: function() {
- return this.model.minimum;
- },
- /** @this {org.apache.flex.html.Slider} */
- set: function(value) {
- this.model.minimum = value;
- }
- },
- /** @export */
- maximum: {
- /** @this {org.apache.flex.html.Slider} */
- get: function() {
- return this.model.maximum;
- },
- /** @this {org.apache.flex.html.Slider} */
- set: function(value) {
- this.model.maximum = value;
- }
- },
- /** @export */
- snapInterval: {
- /** @this {org.apache.flex.html.Slider} */
- get: function() {
- return this.model.snapInterval;
- },
- /** @this {org.apache.flex.html.Slider} */
- set: function(value) {
- this.model.snapInterval = value;
- }
- },
- /** @export */
- stepSize: {
- /** @this {org.apache.flex.html.Slider} */
- get: function() {
- return this.model.stepSize;
- },
- /** @this {org.apache.flex.html.Slider} */
- set: function(value) {
- this.model.stepSize = value;
- }
- }
-});
-
-
-/**
- * @param {Object} value The current value.
- * @return {number} Calculates the new value based snapInterval and stepSize.
- */
-org.apache.flex.html.Slider.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;
-};
-
-
-/**
- * @param {number} value The value used to calculate new position of the thumb.
- * @return {void} Moves the thumb to the corresponding position.
- */
-org.apache.flex.html.Slider.prototype.setThumbFromValue =
- function(value)
- {
- var min = this.model.minimum;
- var max = this.model.maximum;
- var p = (value - min) / (max - min);
- var xloc = p * (parseInt(this.track.element.style.width, 10) -
- parseInt(this.thumb.element.style.width, 10));
-
- this.thumb.element.style.left = String(xloc) + 'px';
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/Spacer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Spacer.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Spacer.js
deleted file mode 100644
index 2024bd4..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Spacer.js
+++ /dev/null
@@ -1,44 +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.Spacer');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.Spacer = function() {
- org.apache.flex.html.Spacer.base(this, 'constructor');
-
- this.element = document.createElement('div');
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
-};
-goog.inherits(org.apache.flex.html.Spacer,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.Spacer.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Spacer',
- qName: 'org.apache.flex.html.Spacer' }] };
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/Spinner.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Spinner.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Spinner.js
deleted file mode 100644
index 2c04200..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Spinner.js
+++ /dev/null
@@ -1,171 +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.Spinner');
-
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.html.TextButton');
-goog.require('org.apache.flex.html.beads.controllers.SpinnerMouseController');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.Spinner = function() {
- org.apache.flex.html.Spinner.base(this, 'constructor');
-
- this.minimum_ = 0;
- this.maximum_ = 100;
- this.value_ = 1;
- this.stepSize_ = 1;
- this.snapInterval_ = 1;
-};
-goog.inherits(org.apache.flex.html.Spinner,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.Spinner.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'Spinner',
- qName: 'org.apache.flex.html.Spinner'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.Spinner.prototype.createElement =
- function() {
- this.element = document.createElement('div');
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
-
- this.element.style.verticalAlign = 'middle';
-
- this.incrementButton = new org.apache.flex.html.TextButton();
- this.incrementButton.text = '\u25B2';
- this.addElement(this.incrementButton);
-
- this.decrementButton = new org.apache.flex.html.TextButton();
- this.decrementButton.text = '\u25BC';
- this.addElement(this.decrementButton);
-
- this.controller = new org.apache.flex.html.beads.controllers.SpinnerMouseController();
- this.addBead(this.controller);
-
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.Spinner.prototype, {
- /** @export */
- minimum: {
- /** @this {org.apache.flex.html.Spinner} */
- get: function() {
- return this.minimum_;
- },
- /** @this {org.apache.flex.html.Spinner} */
- set: function(value) {
- if (value != this.minimum_) {
- this.minimum_ = value;
- this.dispatchEvent('minimumChanged');
- }
- }
- },
- /** @export */
- maximum: {
- /** @this {org.apache.flex.html.Spinner} */
- get: function() {
- return this.maximum_;
- },
- /** @this {org.apache.flex.html.Spinner} */
- set: function(value) {
- if (value != this.maximum_) {
- this.maximum_ = value;
- this.dispatchEvent('maximumChanged');
- }
- }
- },
- /** @export */
- snapInterval: {
- /** @this {org.apache.flex.html.Spinner} */
- get: function() {
- return this.snapInterval_;
- },
- /** @this {org.apache.flex.html.Spinner} */
- set: function(value) {
- if (value != this.snapInterval_) {
- this.snapInterval_ = value;
- this.dispatchEvent('snapIntervalChanged');
- }
- }
- },
- /** @export */
- stepSize: {
- /** @this {org.apache.flex.html.Spinner} */
- get: function() {
- return this.stepSize_;
- },
- /** @this {org.apache.flex.html.Spinner} */
- set: function(value) {
- if (value != this.stepSize_) {
- this.stepSize_ = value;
- this.dispatchEvent('stepSizeChanged');
- }
- }
- },
- /** @export */
- value: {
- /** @this {org.apache.flex.html.Spinner} */
- get: function() {
- return this.value_;
- },
- /** @this {org.apache.flex.html.Spinner} */
- set: function(value) {
- if (value != this.value_) {
- this.value_ = value;
- this.dispatchEvent('valueChange');
- }
- }
- }
-});
-
-
-/**
- * @param {number} value The proposed value.
- * @return {number} The new value based on snapInterval
- * and stepSize.
- */
-org.apache.flex.html.Spinner.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/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/TextArea.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/TextArea.js
deleted file mode 100644
index 4c18081..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/TextArea.js
+++ /dev/null
@@ -1,71 +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.TextArea');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.TextArea = function() {
- org.apache.flex.html.TextArea.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.TextArea,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.TextArea.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'TextArea',
- qName: 'org.apache.flex.html.TextArea'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.TextArea.prototype.createElement =
- function() {
-
- this.element = document.createElement('textarea');
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
- this.element.className = 'TextArea';
- this.typeNames = 'TextArea';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.TextArea.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html.TextArea} */
- get: function() {
- return this.element.value;
- },
- /** @this {org.apache.flex.html.TextArea} */
- set: function(value) {
- this.element.value = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/TextButton.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/TextButton.js
deleted file mode 100644
index 6d52448..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/TextButton.js
+++ /dev/null
@@ -1,54 +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.TextButton');
-
-goog.require('org.apache.flex.html.Button');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Button}
- */
-org.apache.flex.html.TextButton = function() {
- org.apache.flex.html.TextButton.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.TextButton,
- org.apache.flex.html.Button);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.TextButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'TextButton',
- qName: 'org.apache.flex.html.TextButton'}] };
-
-
-Object.defineProperties(org.apache.flex.html.TextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html.TextButton} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html.TextButton} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/TextInput.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/TextInput.js
deleted file mode 100644
index a6a67b1..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/TextInput.js
+++ /dev/null
@@ -1,98 +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.TextInput');
-
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.events.Event');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.TextInput = function() {
- org.apache.flex.html.TextInput.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.TextInput,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.TextInput.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'TextInput',
- qName: 'org.apache.flex.html.TextInput'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.TextInput.prototype.createElement = function() {
- this.element = document.createElement('input');
- this.element.setAttribute('type', 'input');
- this.element.className = 'TextInput';
- this.typeNames = 'TextInput';
-
- //attach input handler to dispatch flexjs change event when user write in textinput
- //goog.events.listen(this.element, 'change', goog.bind(this.killChangeHandler, this));
- goog.events.listen(this.element, 'input', goog.bind(this.inputChangeHandler_, this));
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.TextInput.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html.TextInput} */
- get: function() {
- return this.element.value;
- },
- /** @this {org.apache.flex.html.TextInput} */
- set: function(value) {
- this.element.value = value;
- this.dispatchEvent(new org.apache.flex.events.Event('textChange'));
- }
- }
-});
-
-
-/**
- * @export
- * @param {Object} event The event.
- */
-/*org.apache.flex.html.TextInput.prototype.killChangeHandler = function(event) {
- //event.preventDefault();
-};*/
-
-
-/**
- * @private
- * @param {Object} event The event.
- */
-org.apache.flex.html.TextInput.prototype.inputChangeHandler_ = function(event) {
- event.stopPropagation();
-
- this.dispatchEvent(new org.apache.flex.events.Event(org.apache.flex.events.Event.EventType.CHANGE));
- this.dispatchEvent(new org.apache.flex.events.Event('textChange'));
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/TitleBar.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/TitleBar.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/TitleBar.js
deleted file mode 100644
index 5df5dde..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/TitleBar.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.html.TitleBar');
-
-goog.require('org.apache.flex.html.Container');
-goog.require('org.apache.flex.html.Label');
-goog.require('org.apache.flex.html.TextButton');
-goog.require('org.apache.flex.html.beads.models.TitleBarModel');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Container}
- */
-org.apache.flex.html.TitleBar = function() {
-
- org.apache.flex.html.TitleBar.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.TitleBar,
- org.apache.flex.html.Container);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.TitleBar.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'TitleBar',
- qName: 'org.apache.flex.html.TitleBar'}] };
-
-
-/**
- * @override
- */
-org.apache.flex.html.TitleBar.prototype.createElement =
- function() {
-
- this.element = document.createElement('div');
-
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-
- this.className = 'TitleBar';
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.html.TitleBar.prototype, {
- /** @export */
- title: {
- /** @this {org.apache.flex.html.TitleBar} */
- get: function() {
- return this.model.title;
- },
- /** @this {org.apache.flex.html.TitleBar} */
- set: function(value) {
- this.model.title = value;
- }
- },
- /** @export */
- showCloseButton: {
- /** @this {org.apache.flex.html.TitleBar} */
- get: function() {
- return this.model.showCloseButton;
- },
- /** @this {org.apache.flex.html.TitleBar} */
- set: function(value) {
- this.model.showCloseButton = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/ToggleTextButton.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/ToggleTextButton.js
deleted file mode 100644
index 2f8bafa..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/ToggleTextButton.js
+++ /dev/null
@@ -1,122 +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.ToggleTextButton');
-
-goog.require('org.apache.flex.html.Button');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Button}
- */
-org.apache.flex.html.ToggleTextButton = function() {
- org.apache.flex.html.ToggleTextButton.base(this, 'constructor');
-
- this.typeNames = 'toggleTextButton';
-
- /**
- * @private
- * @type {boolean}
- */
- this.selected_ = false;
-};
-goog.inherits(org.apache.flex.html.ToggleTextButton,
- org.apache.flex.html.Button);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ToggleTextButton',
- qName: 'org.apache.flex.html.ToggleTextButton'}] };
-
-
-Object.defineProperties(org.apache.flex.html.ToggleTextButton.prototype, {
- /** @export */
- text: {
- /** @this {org.apache.flex.html.ToggleTextButton} */
- get: function() {
- return this.element.innerHTML;
- },
- /** @this {org.apache.flex.html.ToggleTextButton} */
- set: function(value) {
- this.element.innerHTML = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.html.ToggleTextButton} */
- get: function() {
- return this.selected_;
- },
- /** @this {org.apache.flex.html.ToggleTextButton} */
- set: function(value) {
- if (this.selected_ != value) {
- this.selected_ = value;
-
- var className = this.className;
- var typeNames = this.typeNames;
- if (value) {
- if (typeNames.indexOf(this.SELECTED) == -1) {
- this.typeNames = typeNames + this.SELECTED;
- if (className)
- this.element.className = this.typeNames + ' ' + className;
- else
- this.element.className = this.typeNames;
- }
- }
- else {
- if (typeNames.indexOf(this.SELECTED) == typeNames.length - this.SELECTED.length) {
- this.typeNames = typeNames.substring(0, typeNames.length - this.SELECTED.length);
- if (className)
- this.element.className = this.typeNames + ' ' + className;
- else
- this.element.className = this.typeNames;
- }
- }
- }
- }
- }
-});
-
-
-/**
- * @type {string} The selected setter.
- */
-org.apache.flex.html.ToggleTextButton.prototype.SELECTED = '_Selected';
-
-
-/**
- * @override
- */
-org.apache.flex.html.ToggleTextButton.prototype.createElement = function() {
- org.apache.flex.html.ToggleTextButton.base(this, 'createElement');
- this.addEventListener('click', goog.bind(this.clickHandler_, this));
- return this.element;
-};
-
-
-/**
- * @private.
- * @param {Object} e The event object.
- */
-org.apache.flex.html.ToggleTextButton.prototype.clickHandler_ = function(e) {
- this.selected = !this.selected;
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/ToolTip.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/ToolTip.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/ToolTip.js
deleted file mode 100644
index b3f5b07..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/ToolTip.js
+++ /dev/null
@@ -1,40 +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.ToolTip');
-
-goog.require('org.apache.flex.html.Label');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Label}
- */
-org.apache.flex.html.ToolTip = function() {
- org.apache.flex.html.ToolTip.base(this, 'constructor');
- this.element.className = 'ToolTip';
-};
-goog.inherits(org.apache.flex.html.ToolTip,
- org.apache.flex.html.Label);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.ToolTip.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ToolTip',
- qName: 'org.apache.flex.html.ToolTip' }]};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/VContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/VContainer.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/VContainer.js
deleted file mode 100644
index e1198eb..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/VContainer.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.html.VContainer');
-
-goog.require('org.apache.flex.core.IContainer');
-goog.require('org.apache.flex.html.Container');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IContainer}
- * @extends {org.apache.flex.html.Container}
- */
-org.apache.flex.html.VContainer = function() {
- org.apache.flex.html.VContainer.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.html.VContainer,
- org.apache.flex.html.Container);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.VContainer.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'VContainer',
- qName: 'org.apache.flex.html.VContainer' }],
- interfaces: [org.apache.flex.core.IContainer] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/VRule.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/VRule.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/VRule.js
deleted file mode 100644
index 01959f1..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/VRule.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.html.VRule');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.html.VRule = function() {
- org.apache.flex.html.VRule.base(this, 'constructor');
-
- this.element = document.createElement('div');
- this.element.style.borderLeftStyle = 'solid';
- this.element.style.borderLeftWidth = '1px';
- this.element.style.borderTop = 'none';
- this.element.style.borderBottom = 'none';
- this.element.style.borderRight = 'none';
- this.positioner = this.element;
- this.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-};
-goog.inherits(org.apache.flex.html.VRule,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.VRule.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'VRule',
- qName: 'org.apache.flex.html.VRule' }] };
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
deleted file mode 100644
index 4e89151..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
+++ /dev/null
@@ -1,92 +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.accessories.NumericOnlyTextInputBead');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.accessories.NumericOnlyTextInputBead =
- function() {
-
- /**
- * @protected
- * @type {Object}
- */
- this.promptElement = null;
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.accessories.NumericOnlyTextInputBead.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'NumericOnlyTextInputBead',
- qName: 'org.apache.flex.html.accessories.NumericOnlyTextInputBead' }] };
-
-
-Object.defineProperties(org.apache.flex.html.accessories.NumericOnlyTextInputBead.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.accessories.NumericOnlyTextInputBead} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- value.addEventListener('keypress', goog.bind(this.validateInput, this));
- }
- }
- }
-});
-
-
-/**
- * @export
- * @param {Object} event The input to validate?
- */
-org.apache.flex.html.accessories.NumericOnlyTextInputBead.
- prototype.validateInput = function(event) {
-
- var code = event.charCode;
-
- // backspace or delete
- if (event.keyCode == 8 || event.keyCode == 46) return;
-
- // tab or return/enter
- if (event.keyCode == 9 || event.keyCode == 13) return;
-
- // left or right cursor arrow
- if (event.keyCode == 37 || event.keyCode == 39) return;
-
- var key = String.fromCharCode(code);
-
- var regex = /[0-9]|\./;
- if (!regex.test(key)) {
- event.returnValue = false;
- if (event.preventDefault) event.preventDefault();
- return;
- }
- var cursorStart = event.target.selectionStart;
- var cursorEnd = event.target.selectionEnd;
- var left = event.target.value.substring(0, cursorStart);
- var right = event.target.value.substr(cursorEnd);
- var complete = left + key + right;
- if (isNaN(complete)) {
- event.returnValue = false;
- if (event.preventDefault) event.preventDefault();
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/PasswordInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/PasswordInputBead.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/PasswordInputBead.js
deleted file mode 100644
index be9c65e..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/PasswordInputBead.js
+++ /dev/null
@@ -1,54 +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.accessories.PasswordInputBead');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.accessories.PasswordInputBead =
- function() {
-
- /**
- * @protected
- * @type {Object}
- */
- this.promptElement = null;
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.accessories.PasswordInputBead.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'PasswordInputBead',
- qName: 'org.apache.flex.html.accessories.PasswordInputBead' }] };
-
-
-Object.defineProperties(org.apache.flex.html.accessories.PasswordInputBead.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.accessories.PasswordInputBead} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- value.element.type = 'password';
- }
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/TextPromptBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/TextPromptBead.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/TextPromptBead.js
deleted file mode 100644
index cfea7f7..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/accessories/TextPromptBead.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.html.accessories.TextPromptBead');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.html.accessories.TextPromptBead = function() {
-
- /**
- * @protected
- * @type {Object}
- */
- this.promptElement = null;
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.accessories.TextPromptBead.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'TextPromptBead',
- qName: 'org.apache.flex.html.accessories.TextPromptBead' }] };
-
-
-Object.defineProperties(org.apache.flex.html.accessories.TextPromptBead.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.accessories.TextPromptBead} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- value.element.placeholder = this.prompt;
- }
- }
- },
- /** @export */
- prompt: {
- /** @this {org.apache.flex.html.accessories.TextPromptBead} */
- get: function() {
- return this.prompt;
- },
- /** @this {org.apache.flex.html.accessories.TextPromptBead} */
- set: function(value) {
- this.prompt = value;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ButtonBarView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ButtonBarView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ButtonBarView.js
deleted file mode 100644
index b65965f..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ButtonBarView.js
+++ /dev/null
@@ -1,70 +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.ButtonBarView');
-
-goog.require('org.apache.flex.html.beads.ListView');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.beads.ListView}
- */
-org.apache.flex.html.beads.ButtonBarView = function() {
- this.lastSelectedIndex = -1;
- org.apache.flex.html.beads.ButtonBarView.base(this, 'constructor');
-
- this.className = 'ButtonBarView';
-};
-goog.inherits(
- org.apache.flex.html.beads.ButtonBarView,
- org.apache.flex.html.beads.ListView);
-
-
-/**
- * @override
- */
-org.apache.flex.html.beads.ButtonBarView.
- prototype.layoutViewBeforeContentLayout = function() {
- var host = this._strand;
- var vm = this.viewportModel;
- vm.borderMetrics = org.apache.flex.utils.CSSContainerUtils.getBorderMetrics(host);
- vm.chromeMetrics = this.getChromeMetrics();
- this.viewport.setPosition(0, 0);
- this.viewport.layoutViewportBeforeContentLayout(host.width, host.height);
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.ButtonBarView.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ButtonBarView',
- qName: 'org.apache.flex.html.beads.ButtonBarView' }] };
-
-
-Object.defineProperties(org.apache.flex.html.beads.ButtonBarView.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.ButtonBarView} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(
- org.apache.flex.html.beads.ButtonBarView, this, 'strand', value);
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
deleted file mode 100644
index 39158f6..0000000
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
+++ /dev/null
@@ -1,434 +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.ContainerView');
-
-goog.require('org.apache.flex.core.BeadViewBase');
-goog.require('org.apache.flex.core.IBeadLayout');
-goog.require('org.apache.flex.core.IContainerView');
-goog.require('org.apache.flex.core.ILayoutHost');
-goog.require('org.apache.flex.core.IViewport');
-goog.require('org.apache.flex.core.IViewportModel');
-goog.require('org.apache.flex.geom.Rectangle');
-goog.require('org.apache.flex.utils.CSSContainerUtils');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.BeadViewBase}
- * @implements {org.apache.flex.core.ILayoutHost}
- */
-org.apache.flex.html.beads.ContainerView = function() {
- this.lastSelectedIndex = -1;
- org.apache.flex.html.beads.ContainerView.base(this, 'constructor');
-
- this.className = 'ContainerView';
- this.runningLayout = false;
-};
-goog.inherits(
- org.apache.flex.html.beads.ContainerView,
- org.apache.flex.core.BeadViewBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.html.beads.ContainerView.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ContainerView',
- qName: 'org.apache.flex.html.beads.ContainerView' }],
- interfaces: [org.apache.flex.core.ILayoutHost, org.apache.flex.core.IContainerView]
- };
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.html.beads.ContainerView.prototype.viewport_ = null;
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.html.beads.ContainerView.prototype.viewportModel_ = null;
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.html.beads.ContainerView.prototype.contentArea_ = null;
-
-
-/**
- * @param {org.apache.flex.events.Event} event The event.
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.initCompleteHandler = function(event) {
- if ((this.host.isHeightSizedToContent() || !isNaN(this.host.explicitHeight)) &&
- (this.host.isWidthSizedToContent() || !isNaN(this.host.explicitWidth))) {
- this.completeSetup();
-
- var num = this.contentView.numElements;
- // make sure there are children AND you are in the DOM before laying out.
- // If not in the DOM, you'll get funky numbers
- if (num > 0 && document.body.contains(this.host.element)) {
- this.performLayout(event);
- }
- }
- else {
- this._strand.addEventListener('sizeChanged',
- org.apache.flex.utils.Language.closure(this.deferredSizeHandler, this, 'deferredSizeHandler'));
- this._strand.addEventListener('widthChanged',
- org.apache.flex.utils.Language.closure(this.deferredSizeHandler, this, 'deferredSizeHandler'));
- this._strand.addEventListener('heightChanged',
- org.apache.flex.utils.Language.closure(this.deferredSizeHandler, this, 'deferredSizeHandler'));
- }
-};
-
-
-/**
- * @param {org.apache.flex.events.Event} event The event.
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.deferredSizeHandler = function(event) {
- this._strand.removeEventListener('sizeChanged',
- org.apache.flex.utils.Language.closure(this.deferredSizeHandler, this, 'deferredSizeHandler'));
- this._strand.removeEventListener('widthChanged',
- org.apache.flex.utils.Language.closure(this.deferredSizeHandler, this, 'deferredSizeHandler'));
- this._strand.removeEventListener('heightChanged',
- org.apache.flex.utils.Language.closure(this.deferredSizeHandler, this, 'deferredSizeHandler'));
- this.completeSetup();
-
- var num = this.contentView.numElements;
- if (num > 0) {
- this.performLayout(event);
- }
-};
-
-
-/**
- * @param {org.apache.flex.events.Event} event The event.
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.changeHandler = function(event) {
- this.performLayout(event);
-};
-
-
-/**
- * @param {org.apache.flex.events.Event} event The event.
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.childrenChangedHandler = function(event) {
- var num = this.contentView.numElements;
- for (var i = 0; i < num; i++) {
- var child = this.contentView.getElementAt(i);
- child.addEventListener('widthChanged',
- org.apache.flex.utils.Language.closure(this.childResizeHandler, this, 'childResizeHandler'));
- child.addEventListener('heightChanged',
- org.apache.flex.utils.Language.closure(this.childResizeHandler, this, 'childResizeHandler'));
- }
-};
-
-
-/**
- * @param {org.apache.flex.events.Event} event The event.
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.sizeChangeHandler = function(event) {
- if (this.runningLayout) return;
- this.performLayout(event);
-};
-
-
-/**
- * @param {org.apache.flex.events.Event} event The event.
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.resizeHandler = function(event) {
- if (this.runningLayout) return;
- this.performLayout(event);
-};
-
-
-/**
- * @param {org.apache.flex.events.Event} event The event.
- */
- org.apache.flex.html.beads.ContainerView.
- prototype.childResizeHandler = function(event) {
- if (this.runningLayout) return;
- this.performLayout(event);
-};
-
-
-/**
- *
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.completeSetup = function() {
- this.createViewport();
-
- this._strand.addEventListener('childrenAdded',
- org.apache.flex.utils.Language.closure(this.childrenChangedHandler, this, 'childrenChangedHandler'));
- this.childrenChangedHandler(null);
- this._strand.addEventListener('childrenAdded',
- org.apache.flex.utils.Language.closure(this.changeHandler, this, 'changeHandler'));
- this._strand.addEventListener('childrenRemoved',
- org.apache.flex.utils.Language.closure(this.changeHandler, this, 'changeHandler'));
- this._strand.addEventListener('layoutNeeded',
- org.apache.flex.utils.Language.closure(this.performLayout, this, 'performLayout'));
- this._strand.addEventListener('widthChanged',
- org.apache.flex.utils.Language.closure(this.resizeHandler, this, 'resizeHandler'));
- this._strand.addEventListener('heightChanged',
- org.apache.flex.utils.Language.closure(this.resizeHandler, this, 'resizeHandler'));
- this._strand.addEventListener('sizeChanged',
- org.apache.flex.utils.Language.closure(this.resizeHandler, this, 'resizeHandler'));
-};
-
-
-/**
- * Calculate the space taken up by non-content children like a TItleBar in a Panel.
- * @return {org.apache.flex.geom.Rectangle} The space.
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.getChromeMetrics = function() {
- return new org.apache.flex.geom.Rectangle(0, 0, 0, 0);
-};
-
-
-/**
- * Creates the viewport and viewportModel.
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.createViewport = function() {
- this.viewportModel = this._strand.getBeadByType(org.apache.flex.core.IViewportModel);
- if (this.viewportModel == null) {
- var m3 = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this._strand, 'iViewportModel');
- this.viewportModel = new m3();
- this._strand.addBead(this.viewportModel);
- }
- this.viewport = this._strand.getBeadByType(org.apache.flex.core.IViewport);
- if (this.viewport == null) {
- var m2 = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this._strand, 'iViewport');
- this.viewport = new m2();
- this._strand.addBead(this.viewport);
- }
-};
-
-
-/**
- *
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.layoutViewBeforeContentLayout = function() {
- var host = this._strand;
- var vm = this.viewportModel;
- vm.borderMetrics = org.apache.flex.utils.CSSContainerUtils.getBorderMetrics(host);
- vm.chromeMetrics = this.getChromeMetrics();
- this.viewport.setPosition(vm.borderMetrics.left + vm.chromeMetrics.left,
- vm.borderMetrics.top + vm.chromeMetrics.top);
- this.viewport.layoutViewportBeforeContentLayout(
- !host.isWidthSizedToContent() ?
- host.width - vm.borderMetrics.left - vm.borderMetrics.right -
- vm.chromeMetrics.left - vm.chromeMetrics.right - 1 : NaN,
- !host.isHeightSizedToContent() ?
- host.height - vm.borderMetrics.top - vm.borderMetrics.bottom -
- vm.chromeMetrics.top - vm.chromeMetrics.bottom - 1 : NaN);
-};
-
-
-/**
- * @param {org.apache.flex.events.Event} event The event.
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.performLayout = function(event) {
- this.runningLayout = true;
- this.layoutViewBeforeContentLayout();
- if (this.layout == null) {
- this.layout = this._strand.getBeadByType(org.apache.flex.core.IBeadLayout);
- if (this.layout == null) {
- var m3 = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this._strand, 'iBeadLayout');
- this.layout = new m3();
- this._strand.addBead(this.layout);
- }
- }
- this.layout.layout();
-
- this.layoutViewAfterContentLayout();
- this.runningLayout = false;
-};
-
-
-/**
- *
- */
-org.apache.flex.html.beads.ContainerView.
- prototype.layoutViewAfterContentLayout = function() {
- var host = this._strand;
-
- var viewportSize = this.viewport.layoutViewportAfterContentLayout();
- var vm = this.viewportModel;
-
- if (host.isWidthSizedToContent() && host.isHeightSizedToContent()) {
- host.setWidthAndHeight(viewportSize.width + vm.borderMetrics.left + vm.borderMetrics.right +
- vm.chromeMetrics.left + vm.chromeMetrics.right + 1,
- viewportSize.height + vm.borderMetrics.top + vm.borderMetrics.bottom +
- vm.chromeMetrics.top + vm.chromeMetrics.bottom + 1, false);
- }
- else if (!host.isWidthSizedToContent() && host.isHeightSizedToContent()) {
- host.setHeight(viewportSize.height + vm.borderMetrics.top + vm.borderMetrics.bottom +
- vm.chromeMetrics.top + vm.chromeMetrics.bottom + 1, false);
- }
- else if (host.isWidthSizedToContent() && !host.isHeightSizedToContent()) {
- host.setWidth(viewportSize.width + vm.borderMetrics.left + vm.borderMetrics.right +
- vm.chromeMetrics.left + vm.chromeMetrics.right + 1, false);
- }
-};
-
-
-/**
- * @expose
- * @return {number} The count of the elements in this object.
- */
-org.apache.flex.html.beads.ContainerView.prototype.numElements =
- function() {
- return this.contentView.numElements();
-};
-
-
-/**
- * @expose
- * @param {Object} c The element being added.
- * @param {boolean=} opt_dispatchEvent If true and event is dispatched.
- */
-org.apache.flex.html.beads.ContainerView.prototype.addElement =
- function(c, opt_dispatchEvent) {
- this.contentView.addElement(c, opt_dispatchEvent);
-};
-
-
-/**
- * @expose
- * @param {Object} c The element being added.
- * @param {number} index The index of the new element.
- * @param {boolean=} opt_dispatchEvent If true and event is dispatched.
- */
-org.apache.flex.html.beads.ContainerView.prototype.addElementAt =
- function(c, index, opt_dispatchEvent) {
- this.contentView.addElementAt(c, index, opt_dispatchEvent);
-};
-
-
-/**
- * @expose
- * @param {Object} c The element being removed.
- * @param {boolean=} opt_dispatchEvent If true and event is dispatched.
- */
-org.apache.flex.html.beads.ContainerView.prototype.removeElement =
- function(c, opt_dispatchEvent) {
- this.contentView.removeElement(c, opt_dispatchEvent);
-};
-
-
-/**
- * @expose
- * @param {Object} c The element whose index is sought.
- * @return {number} The index of the given element.
- */
-org.apache.flex.html.beads.ContainerView.prototype.getElementIndex =
- function(c) {
- return this.contentView.getElementIndex(c);
-};
-
-
-/**
- * @expose
- * @param {number} index The index of the element.
- * @return {Object} The element at the given index.
- */
-org.apache.flex.html.beads.ContainerView.prototype.getElementAt =
- function(index) {
- return this.contentView.getElementAt(index);
-};
-
-
-Object.defineProperties(org.apache.flex.html.beads.ContainerView.prototype, {
- /** @export */
- contentView: {
- /** @this {org.apache.flex.html.beads.ContainerView} */
- get: function() {
- return this.viewport.contentView;
- }
- },
- /** @export */
- resizableView: {
- /** @this {org.apache.flex.html.beads.ContainerView} */
- get: function() {
- return this._strand;
- },
- /** @this {org.apache.flex.html.beads.ContainerView} */
- set: function(value) {
- }
- },
- /** @export */
- strand: {
- /** @this {org.apache.flex.html.beads.ContainerView} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(org.apache.flex.html.beads.ContainerView, this, 'strand', value);
- this.createViewport();
- this.host.strandChildren.addElement(this.viewport.contentView, false);
- this._strand.addEventListener('initComplete',
- org.apache.flex.utils.Language.closure(this.initCompleteHandler, this, 'initCompleteHandler'));
- }
- },
- /** @export */
- viewport: {
- /** @this {org.apache.flex.html.beads.ContainerView} */
- set: function(value) {
- this.viewport_ = value;
- },
- /** @this {org.apache.flex.html.beads.ContainerView} */
- get: function() {
- return this.viewport_;
- }
- },
- /** @export */
- viewportModel: {
- /** @this {org.apache.flex.html.beads.ContainerView} */
- set: function(value) {
- this.viewportModel_ = value;
- },
- /** @this {org.apache.flex.html.beads.ContainerView} */
- get: function() {
- return this.viewportModel_;
- }
- },
- /** @export */
- layout: {
- /** @this {org.apache.flex.html.beads.ContainerView} */
- set: function(value) {
- this.layout_ = value;
- },
- /** @this {org.apache.flex.html.beads.ContainerView} */
- get: function() {
- return this.layout_;
- }
- }
-
-});
[35/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - Work
in progress for GoogleMaps.
Posted by ah...@apache.org.
Work in progress for GoogleMaps.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f5ec157c
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f5ec157c
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f5ec157c
Branch: refs/heads/develop
Commit: f5ec157c60c29a24110f419f4530add714888275
Parents: 5f42748
Author: Peter Ent <pe...@apache.org>
Authored: Mon Dec 14 16:59:20 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Mon Dec 14 16:59:20 2015 -0500
----------------------------------------------------------------------
examples/flexjs/MapSearch/build.xml | 4 +-
.../flexjs/MapSearch/src/MyInitialView.mxml | 15 +-
.../projects/GoogleMaps/compile-asjs-config.xml | 10 +-
.../projects/GoogleMaps/compile-config.xml | 4 -
.../projects/GoogleMaps/google-manifest.xml | 2 +-
.../src/org/apache/flex/maps/google/Geometry.js | 50 ---
.../src/org/apache/flex/maps/google/LatLng.js | 53 ---
.../js/src/org/apache/flex/maps/google/Map.js | 360 -------------------
.../src/org/apache/flex/maps/google/Marker.js | 63 ----
.../js/src/org/apache/flex/maps/google/Place.js | 93 -----
.../apache/flex/maps/google/beads/MapView.js | 67 ----
.../apache/flex/maps/google/models/MapModel.js | 108 ------
12 files changed, 18 insertions(+), 811 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5ec157c/examples/flexjs/MapSearch/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MapSearch/build.xml b/examples/flexjs/MapSearch/build.xml
index 9516e96..77f0596 100644
--- a/examples/flexjs/MapSearch/build.xml
+++ b/examples/flexjs/MapSearch/build.xml
@@ -62,6 +62,8 @@
<property name="AIR_HOME" value="${env.AIR_HOME}"/>
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/google_maps/out/bin/google_maps.swc"/>
+
<condition property="adl" value="adl.exe">
<os family="windows"/>
@@ -81,7 +83,7 @@
<include file="${basedir}/../../build_example.xml" />
- <target name="main" depends="clean,build_example.compileair,build_example.compilejsair" description="Clean build of ${example}">
+ <target name="main" depends="clean,build_example.compilejsair" description="Clean build of ${example}">
</target>
<target name="clean">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5ec157c/examples/flexjs/MapSearch/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MapSearch/src/MyInitialView.mxml b/examples/flexjs/MapSearch/src/MyInitialView.mxml
index 3199f1e..bf302fa 100644
--- a/examples/flexjs/MapSearch/src/MyInitialView.mxml
+++ b/examples/flexjs/MapSearch/src/MyInitialView.mxml
@@ -24,12 +24,11 @@ limitations under the License.
initComplete="initControls()">
<fx:Script>
<![CDATA[
- import org.apache.flex.maps.google.models.MapModel;
- import models.MyModel;
-
+ import models.MyModel;
import org.apache.flex.events.Event;
- import org.apache.flex.maps.google.Place;
- import org.apache.flex.maps.google.Marker;
+
+ import google.maps.places.PlaceResult;
+ import google.maps.Marker;
private function initControls() : void
{
@@ -102,7 +101,7 @@ limitations under the License.
*/
private function onSearchResults(event:org.apache.flex.events.Event):void
{
- var searchResults:Array = MapModel(map.model).searchResults;
+ var searchResults:Array = map.searchResults;
MyModel(applicationModel).searchResults = searchResults;
}
@@ -115,7 +114,7 @@ limitations under the License.
{
var marker:Marker = map.selectedMarker;
map.setZoom(12);
- map.setCenter(marker.position);
+ map.setCenter(marker.getPosition());
}
]]>
@@ -183,7 +182,7 @@ limitations under the License.
dataProvider="{MyModel(applicationModel).cities}" />
</js:Container>
- <google:Map id="map" width="450" height="300" className="MainMap"
+ <google:GoogleMap id="map" width="450" height="300" className="MainMap"
token="AIzaSyDkQgg2iojLCYeuW6hK7DkuAHD-SwJJhdE"
ready="onMapReady()"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5ec157c/frameworks/projects/GoogleMaps/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/compile-asjs-config.xml b/frameworks/projects/GoogleMaps/compile-asjs-config.xml
index eba22e4..e17db6a 100644
--- a/frameworks/projects/GoogleMaps/compile-asjs-config.xml
+++ b/frameworks/projects/GoogleMaps/compile-asjs-config.xml
@@ -21,9 +21,6 @@
<compiler>
<accessible>false</accessible>
- <external-library-path>
- <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
- </external-library-path>
<mxml>
<children-as-data>true</children-as-data>
@@ -49,6 +46,13 @@
<path-element>../../externs/Core.swc</path-element>
</library-path>
+ <namespaces>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/google</uri>
+ <manifest>google-manifest.xml</manifest>
+ </namespace>
+ </namespaces>
+
<source-path>
<path-element>as/src</path-element>
</source-path>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5ec157c/frameworks/projects/GoogleMaps/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/compile-config.xml b/frameworks/projects/GoogleMaps/compile-config.xml
index eb300fe..243f679 100644
--- a/frameworks/projects/GoogleMaps/compile-config.xml
+++ b/frameworks/projects/GoogleMaps/compile-config.xml
@@ -64,10 +64,6 @@
<name>defaults.css</name>
<path>as/defaults.css</path>
</include-file>
- <include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
- </include-file>
<include-classes>
<class>GoogleMapsClasses</class>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5ec157c/frameworks/projects/GoogleMaps/google-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/google-manifest.xml b/frameworks/projects/GoogleMaps/google-manifest.xml
index f843c0c..a9138df 100644
--- a/frameworks/projects/GoogleMaps/google-manifest.xml
+++ b/frameworks/projects/GoogleMaps/google-manifest.xml
@@ -20,5 +20,5 @@
<componentPackage>
- <component id="Map" class="org.apache.flex.maps.google.GoogleMap" />
+ <component id="GoogleMap" class="org.apache.flex.maps.google.GoogleMap" />
</componentPackage>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5ec157c/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Geometry.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Geometry.js b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Geometry.js
deleted file mode 100644
index 2ee1201..0000000
--- a/frameworks/projects/GoogleMaps/js/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/f5ec157c/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/LatLng.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/LatLng.js b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/LatLng.js
deleted file mode 100644
index 23fac04..0000000
--- a/frameworks/projects/GoogleMaps/js/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/f5ec157c/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Map.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Map.js b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Map.js
deleted file mode 100644
index c53abd5..0000000
--- a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Map.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.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;
-
-
-/**
- * @private
- */
-org.apache.flex.maps.google.Map.prototype.token_ = 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.positioner.style.position = 'relative';
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-Object.defineProperties(org.apache.flex.maps.google.Map.prototype, {
- /** @export */
- token: {
- /** @this {org.apache.flex.maps.google.Map} */
- set: function(value) {
- this.token_ = value;
- },
- /** @this {org.apache.flex.maps.google.Map} */
- get: function() {
- return this.token_;
- }
- },
- /** @export */
- 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');
-};
-
-
-/**
- * @export
- * @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));
- }
-};
-
-
-/**
- * @export
- * @param {Number} zoomLevel The level of magnification.
- */
-org.apache.flex.maps.google.Map.prototype.setZoom =
- function(zoomLevel) {
- if (this.initialized) {
- this.map.setZoom(zoomLevel);
- }
-};
-
-
-/**
- * @export
- * @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));
-};
-
-
-/**
- * @export
- * @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);
-};
-
-
-/**
- * @export
- */
-org.apache.flex.maps.google.Map.prototype.markCurrentLocation = function() {
- this.createMarker(this.currentCenter);
-};
-
-
-/**
- * @export
- * @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));
- }
-};
-
-
-/**
- * @export
- * @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;
-};
-
-
-/**
- * @export
- * @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));
-};
-
-
-/**
- * @export
- */
-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/f5ec157c/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Marker.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Marker.js b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Marker.js
deleted file mode 100644
index 1332b24..0000000
--- a/frameworks/projects/GoogleMaps/js/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;
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5ec157c/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Place.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Place.js b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Place.js
deleted file mode 100644
index 9014958..0000000
--- a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/Place.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.maps.google.Place');
-
-goog.require('org.apache.flex.maps.google.Geometry');
-
-
-// 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.Place = function() {
- this.geometry = new org.apache.flex.maps.google.Geometry();
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.maps.google.Place.prototype.
-FLEXJS_CLASS_INFO =
-{ names: [{ name: 'Place',
- qName: 'org.apache.flex.maps.google.Place' }],
- interfaces: [] };
-
-
-/**
- * @type {Object} The current location
- */
-org.apache.flex.maps.google.Place.prototype.geometry = null;
-
-
-/**
- * @type {String} The icon representing the place.
- */
-org.apache.flex.maps.google.Place.prototype.icon = null;
-
-
-/**
- * @type {String} A unique identifier for the place.
- */
-org.apache.flex.maps.google.Place.prototype.id = null;
-
-
-/**
- * @type {string} The name of the place.
- */
-org.apache.flex.maps.google.Place.prototype.name = '';
-
-
-/**
- * @type {string} A reference identifier.
- */
-org.apache.flex.maps.google.Place.prototype.reference = '';
-
-
-/**
- * @type {string} A description of the area of the place.
- */
-org.apache.flex.maps.google.Place.prototype.vicinity = '';
-
-
-/**
- * @override
- * @return {string} A description of the area of the place.
- */
-org.apache.flex.maps.google.Place.prototype.toString = function PlaceToString() {
- /** @type {string} The result of the function call. */
- var results = '';
- if (this.name) results = this.name;
- if (this.vicinity) results += ' ' + this.vicinity;
- return results;
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5ec157c/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/beads/MapView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/beads/MapView.js b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/beads/MapView.js
deleted file mode 100644
index dbb7ecb..0000000
--- a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/beads/MapView.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.
- */
-/* MapView isn't really the view, but is a bead used to trigger
- the loading of the map JS files */
-
-goog.provide('org.apache.flex.maps.google.beads.MapView');
-
-goog.require('org.apache.flex.core.IBeadView');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.maps.google.beads.MapView = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.maps.google.beads.MapView.prototype.
-FLEXJS_CLASS_INFO =
-{ names: [{ name: 'MapView',
- qName: 'org.apache.flex.maps.google.beads.MapView' }],
- interfaces: [org.apache.flex.core.IBeadView] };
-
-
-Object.defineProperties(org.apache.flex.maps.google.beads.MapView.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.maps.google.beads.MapView} */
- set: function(value) {
- this.strand_ = value;
-
- var token = this.strand_.token;
- var src = 'https://maps.googleapis.com/maps/api/js?v=3.exp';
- if (token)
- src += '&key=' + token;
- src += '&libraries=places&sensor=false&callback=mapInit';
-
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = src;
-
- window.mapView = this;
- window['mapInit'] = function() {
- this.mapView.strand_.finishInitalization();
- };
- document.head.appendChild(script);
- }
- }
-});
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5ec157c/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/models/MapModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/models/MapModel.js b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/models/MapModel.js
deleted file mode 100644
index 7b0dd48..0000000
--- a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/models/MapModel.js
+++ /dev/null
@@ -1,108 +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.models.MapModel');
-
-goog.require('org.apache.flex.core.IBeadModel');
-goog.require('org.apache.flex.events.EventDispatcher');
-
-
-// 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.events.EventDispatcher}
- * @implements {org.apache.flex.core.IBeadModel}
- */
-org.apache.flex.maps.google.models.MapModel = function() {
- org.apache.flex.maps.google.models.MapModel.base(this, 'constructor');
-};
-goog.inherits(
- org.apache.flex.maps.google.models.MapModel,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.maps.google.models.MapModel.prototype.
-FLEXJS_CLASS_INFO =
-{ names: [{ name: 'MapModel',
- qName: 'org.apache.flex.maps.google.models.MapModel' }],
- interfaces: [org.apache.flex.core.IBeadModel] };
-
-
-Object.defineProperties(org.apache.flex.maps.google.models.MapModel.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.maps.google.models.MapModel} */
- set: function(value) {
- this.strand_ = value;
- }
- },
- /** @export */
- searchResults: {
- /** @this {org.apache.flex.maps.google.models.MapModel} */
- get: function() {
- return this._searchResults;
- },
- /** @this {org.apache.flex.maps.google.models.MapModel} */
- set: function(value) {
- this._searchResults = value;
- this.dispatchEvent('searchResultsChanged');
- }
- },
- /** @export */
- zoom: {
- /** @this {org.apache.flex.maps.google.models.MapModel} */
- get: function() {
- return this._zoom;
- },
- /** @this {org.apache.flex.maps.google.models.MapModel} */
- set: function(value) {
- this._zoom = value;
- this.dispatchEvent('zoomChanged');
- }
- },
- /** @export */
- selectedMarker: {
- /** @this {org.apache.flex.maps.google.models.MapModel} */
- get: function() {
- return this._selectedMarker;
- },
- /** @this {org.apache.flex.maps.google.models.MapModel} */
- set: function(value) {
- this._selectedMarker = value;
- this.dispatchEvent('selectedMarkerChanged');
- }
- },
- /** @export */
- currentLocation: {
- /** @this {org.apache.flex.maps.google.models.MapModel} */
- get: function() {
- return this._currentLocation;
- },
- /** @this {org.apache.flex.maps.google.models.MapModel} */
- set: function(value) {
- this._currentLocation = value;
- this.dispatchEvent('currentLocationChanged');
- }
- }
-});
[38/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - clean
build after removing airglobal from js builds
Posted by ah...@apache.org.
clean build after removing airglobal from js builds
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/e04974e2
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/e04974e2
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/e04974e2
Branch: refs/heads/develop
Commit: e04974e2e86122014cee05c08f955d2c168aab85
Parents: 1e82c6e
Author: Alex Harui <ah...@apache.org>
Authored: Mon Dec 14 14:49:41 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 14 14:49:41 2015 -0800
----------------------------------------------------------------------
frameworks/projects/Charts/compile-asjs-config.xml | 7 +++----
frameworks/projects/Collections/compile-asjs-config.xml | 3 +--
.../projects/Formatters/as/src/FormattersClasses.as | 7 +++++--
.../Formatters/as/src/org/apache/flex/core/FormatBase.as | 2 --
frameworks/projects/Formatters/compile-asjs-config.xml | 11 +++++------
frameworks/projects/HTML5/compile-asjs-config.xml | 5 ++---
frameworks/projects/JQuery/compile-asjs-config.xml | 1 -
7 files changed, 16 insertions(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e04974e2/frameworks/projects/Charts/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/compile-asjs-config.xml b/frameworks/projects/Charts/compile-asjs-config.xml
index a55ee3f..38cbcf3 100644
--- a/frameworks/projects/Charts/compile-asjs-config.xml
+++ b/frameworks/projects/Charts/compile-asjs-config.xml
@@ -22,7 +22,6 @@
<accessible>false</accessible>
<external-library-path>
- <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
</external-library-path>
<mxml>
@@ -46,9 +45,9 @@
<!-- asjscompc won't 'link' these classes in, but will list their requires
if these swcs are on the external-library-path then their requires
will not be listed -->
- <path-element>../../libs/Core.swc</path-element>
- <path-element>../../libs/Graphics.swc</path-element>
- <path-element>../../libs/HTML.swc</path-element>
+ <path-element>../../externs/Core.swc</path-element>
+ <path-element>../../externs/Graphics.swc</path-element>
+ <path-element>../../externs/HTML.swc</path-element>
</library-path>
<source-path>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e04974e2/frameworks/projects/Collections/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/compile-asjs-config.xml b/frameworks/projects/Collections/compile-asjs-config.xml
index 89305a6..f5e728e 100644
--- a/frameworks/projects/Collections/compile-asjs-config.xml
+++ b/frameworks/projects/Collections/compile-asjs-config.xml
@@ -22,7 +22,6 @@
<accessible>false</accessible>
<external-library-path>
- <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
</external-library-path>
<mxml>
@@ -46,7 +45,7 @@
<!-- asjscompc won't 'link' these classes in, but will list their requires
if these swcs are on the external-library-path then their requires
will not be listed -->
- <path-element>../../libs/Core.swc</path-element>
+ <path-element>../../externs/Core.swc</path-element>
</library-path>
<source-path>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e04974e2/frameworks/projects/Formatters/as/src/FormattersClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/as/src/FormattersClasses.as b/frameworks/projects/Formatters/as/src/FormattersClasses.as
index 4c3646a..bbf43ce 100644
--- a/frameworks/projects/Formatters/as/src/FormattersClasses.as
+++ b/frameworks/projects/Formatters/as/src/FormattersClasses.as
@@ -30,8 +30,11 @@ internal class FormattersClasses
import org.apache.flex.core.FormatBase; FormatBase;
import org.apache.flex.html.accessories.DateFormatMMDDYYYYBead; DateFormatMMDDYYYYBead;
- import org.apache.flex.html.beads.FormatableLabelView; FormatableLabelView;
- import org.apache.flex.html.beads.FormatableTextInputView; FormatableTextInputView;
+ COMPILE::AS3
+ {
+ import org.apache.flex.html.beads.FormatableLabelView; FormatableLabelView;
+ import org.apache.flex.html.beads.FormatableTextInputView; FormatableTextInputView;
+ }
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e04974e2/frameworks/projects/Formatters/as/src/org/apache/flex/core/FormatBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/as/src/org/apache/flex/core/FormatBase.as b/frameworks/projects/Formatters/as/src/org/apache/flex/core/FormatBase.as
index 1056978..b1fa1af 100644
--- a/frameworks/projects/Formatters/as/src/org/apache/flex/core/FormatBase.as
+++ b/frameworks/projects/Formatters/as/src/org/apache/flex/core/FormatBase.as
@@ -18,8 +18,6 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.core
{
- import flash.events.Event;
-
import org.apache.flex.events.Event;
import org.apache.flex.events.EventDispatcher;
import org.apache.flex.events.IEventDispatcher;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e04974e2/frameworks/projects/Formatters/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/compile-asjs-config.xml b/frameworks/projects/Formatters/compile-asjs-config.xml
index 4632bc2..7626601 100644
--- a/frameworks/projects/Formatters/compile-asjs-config.xml
+++ b/frameworks/projects/Formatters/compile-asjs-config.xml
@@ -22,7 +22,6 @@
<accessible>false</accessible>
<external-library-path>
- <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
</external-library-path>
<mxml>
@@ -46,8 +45,8 @@
<!-- asjscompc won't 'link' these classes in, but will list their requires
if these swcs are on the external-library-path then their requires
will not be listed -->
- <path-element>../../libs/Core.swc</path-element>
- <path-element>../../libs/HTML.swc</path-element>
+ <path-element>../../externs/Core.swc</path-element>
+ <path-element>../../externs/HTML.swc</path-element>
</library-path>
<source-path>
@@ -60,9 +59,9 @@
<include-file>
</include-file>
- <include-sources>
- <path-element>as/src</path-element>
- </include-sources>
+ <include-classes>
+ <class>FormattersClasses</class>
+ </include-classes>
<include-namespaces>
<uri>library://ns.apache.org/flexjs/basic</uri>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e04974e2/frameworks/projects/HTML5/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/compile-asjs-config.xml b/frameworks/projects/HTML5/compile-asjs-config.xml
index e67c744..0e2439c 100644
--- a/frameworks/projects/HTML5/compile-asjs-config.xml
+++ b/frameworks/projects/HTML5/compile-asjs-config.xml
@@ -22,7 +22,6 @@
<accessible>false</accessible>
<external-library-path>
- <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
</external-library-path>
<mxml>
@@ -46,8 +45,8 @@
<!-- asjscompc won't 'link' these classes in, but will list their requires
if these swcs are on the external-library-path then their requires
will not be listed -->
- <path-element>../../libs/Core.swc</path-element>
- <path-element>../../libs/HTML.swc</path-element>
+ <path-element>../../externs/Core.swc</path-element>
+ <path-element>../../externs/HTML.swc</path-element>
</library-path>
<source-path>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e04974e2/frameworks/projects/JQuery/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/compile-asjs-config.xml b/frameworks/projects/JQuery/compile-asjs-config.xml
index 3f88534..c5c53a5 100644
--- a/frameworks/projects/JQuery/compile-asjs-config.xml
+++ b/frameworks/projects/JQuery/compile-asjs-config.xml
@@ -22,7 +22,6 @@
<accessible>false</accessible>
<external-library-path>
- <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
</external-library-path>
<mxml>
[11/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix up
build configs now that handwritten JS is gone
Posted by ah...@apache.org.
fix up build configs now that handwritten JS is gone
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f6166ddd
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f6166ddd
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f6166ddd
Branch: refs/heads/develop
Commit: f6166ddde388a41066c89c9a6e37b75791b80084
Parents: d4cace4
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 2 11:35:00 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 2 11:35:00 2015 -0800
----------------------------------------------------------------------
frameworks/projects/Charts/compile-config.xml | 4 ----
frameworks/projects/Collections/compile-config.xml | 4 ----
frameworks/projects/DragDrop/compile-asjs-config.xml | 7 +++++++
frameworks/projects/Effects/compile-asjs-config.xml | 7 +++++++
frameworks/projects/Mobile/compile-config.xml | 4 ----
5 files changed, 14 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f6166ddd/frameworks/projects/Charts/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/compile-config.xml b/frameworks/projects/Charts/compile-config.xml
index f64b4d6..b5c04c0 100644
--- a/frameworks/projects/Charts/compile-config.xml
+++ b/frameworks/projects/Charts/compile-config.xml
@@ -69,10 +69,6 @@
<name>js/out/*</name>
<path>js/out/*</path>
</include-file>
- <include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
- </include-file>
<include-classes>
<class>ChartsClasses</class>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f6166ddd/frameworks/projects/Collections/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/compile-config.xml b/frameworks/projects/Collections/compile-config.xml
index 0b68206..22daebd 100644
--- a/frameworks/projects/Collections/compile-config.xml
+++ b/frameworks/projects/Collections/compile-config.xml
@@ -63,10 +63,6 @@
<name>js/out/*</name>
<path>js/out/*</path>
</include-file>
- <include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
- </include-file>
<include-classes>
<class>CollectionsClasses</class>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f6166ddd/frameworks/projects/DragDrop/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/compile-asjs-config.xml b/frameworks/projects/DragDrop/compile-asjs-config.xml
index 3152403..1ad65d7 100644
--- a/frameworks/projects/DragDrop/compile-asjs-config.xml
+++ b/frameworks/projects/DragDrop/compile-asjs-config.xml
@@ -48,6 +48,13 @@
<path-element>../../externs/Core.swc</path-element>
</library-path>
+ <namespaces>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/basic</uri>
+ <manifest>basic-manifest.xml</manifest>
+ </namespace>
+ </namespaces>
+
<source-path>
<path-element>as/src</path-element>
</source-path>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f6166ddd/frameworks/projects/Effects/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Effects/compile-asjs-config.xml b/frameworks/projects/Effects/compile-asjs-config.xml
index b315505..8f64d55 100644
--- a/frameworks/projects/Effects/compile-asjs-config.xml
+++ b/frameworks/projects/Effects/compile-asjs-config.xml
@@ -52,6 +52,13 @@
<path-element>as/src</path-element>
</source-path>
+ <namespaces>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/basic</uri>
+ <manifest>basic-manifest.xml</manifest>
+ </namespace>
+ </namespaces>
+
<warn-no-constructor>false</warn-no-constructor>
</compiler>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f6166ddd/frameworks/projects/Mobile/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/compile-config.xml b/frameworks/projects/Mobile/compile-config.xml
index dfe9506..1738229 100644
--- a/frameworks/projects/Mobile/compile-config.xml
+++ b/frameworks/projects/Mobile/compile-config.xml
@@ -69,10 +69,6 @@
<name>js/out/*</name>
<path>js/out/*</path>
</include-file>
- <include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
- </include-file>
<include-classes>
<class>MobileClasses</class>
[08/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - delete
handwritten JS from these projects since they are theoretically replaced by
cross-compiled AS
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererParent.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererParent.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererParent.js
deleted file mode 100644
index da62752..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererParent.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IItemRendererParent');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IItemRendererParent = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IItemRendererParent.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IItemRendererParent',
- qName: 'org.apache.flex.core.IItemRendererParent' }] };
-
-
-/**
- * @export
- * @param {number} index The selected index.
- * @return {Object} The itemRenderer at the given index.
- */
-org.apache.flex.core.IItemRendererParent.prototype.
- getItemRendererForIndex = function(index) {
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ILayoutChild.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ILayoutChild.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ILayoutChild.js
deleted file mode 100644
index 9ab3f1d..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ILayoutChild.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.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.ILayoutChild');
-
-goog.require('org.apache.flex.core.IChild');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.ILayoutChild = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ILayoutChild.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ILayoutChild',
- qName: 'org.apache.flex.core.ILayoutChild' }],
- interfaces: [org.apache.flex.core.IChild] };
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ILayoutHost.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ILayoutHost.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ILayoutHost.js
deleted file mode 100644
index efada4a..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ILayoutHost.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.ILayoutHost');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.ILayoutHost = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ILayoutHost.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ILayoutHost',
- qName: 'org.apache.flex.core.ILayoutHost' }] };
-
-
-Object.defineProperties(org.apache.flex.core.ILayoutHost.prototype, {
- /** @export */
- contentView: {
- get: function() {}
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IListPresentationModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IListPresentationModel.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IListPresentationModel.js
deleted file mode 100644
index 4c78c74..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IListPresentationModel.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * org.apache.flex.core.IListPresentationModel
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IListPresentationModel');
-
-goog.require('org.apache.flex.core.IBead');
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.events.IEventDispatcher}
- * @extends {org.apache.flex.core.IBead}
- */
-org.apache.flex.core.IListPresentationModel = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.core.IListPresentationModel.prototype, {
- /** @export */
- rowHeight: {
- set: function(value) {},
- get: function() {}
- },
- /** @export */
- separatorThickness: {
- set: function(value) {},
- get: function() {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IListPresentationModel.prototype.FLEXJS_CLASS_INFO =
-{ names: [{ name: 'IListPresentationModel', qName: 'org.apache.flex.core.IListPresentationModel'}],
- interfaces: [org.apache.flex.events.IEventDispatcher, org.apache.flex.core.IBead] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IMXMLDocument.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IMXMLDocument.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IMXMLDocument.js
deleted file mode 100644
index 88c76e1..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IMXMLDocument.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IMXMLDocument');
-
-
-
-/**
- * IMXMLDocument
- *
- * @interface
- */
-org.apache.flex.core.IMXMLDocument = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IMXMLDocument.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IMXMLDocument',
- qName: 'org.apache.flex.core.IMXMLDocument' }] };
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IMeasurementBead.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IMeasurementBead.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IMeasurementBead.js
deleted file mode 100644
index 46b58f3..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IMeasurementBead.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IMeasurementBead');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IMeasurementBead = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IMeasurementBead.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IMeasurementBead',
- qName: 'org.apache.flex.core.IMeasurementBead' }] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IParent.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IParent.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IParent.js
deleted file mode 100644
index 8bae15a..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IParent.js
+++ /dev/null
@@ -1,70 +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.flex.core.IParent
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IParent');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IParent = function() {
-};
-
-
-/**
- * @param {Object} c
- * @param {boolean=} opt_dispatchEvent
- */
-org.apache.flex.core.IParent.prototype.addElement = function(c, opt_dispatchEvent) {};
-
-
-/**
- * @param {Object} c
- * @param {number} index
- * @param {boolean=} opt_dispatchEvent
- */
-org.apache.flex.core.IParent.prototype.addElementAt = function(c, index, opt_dispatchEvent) {};
-
-
-/**
- * @return {number}
- * @param {Object} c
- */
-org.apache.flex.core.IParent.prototype.getElementIndex = function(c) {};
-
-
-/**
- * @param {Object} c
- * @param {boolean=} opt_dispatchEvent
- */
-org.apache.flex.core.IParent.prototype.removeElement = function(c, opt_dispatchEvent) {};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IParent.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IParent', qName: 'org.apache.flex.core.IParent'}]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IParentIUIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IParentIUIBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IParentIUIBase.js
deleted file mode 100644
index 1958f94..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IParentIUIBase.js
+++ /dev/null
@@ -1,46 +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.flex.core.IParentIUIBase
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IParentIUIBase');
-
-goog.require('org.apache.flex.core.IParent');
-goog.require('org.apache.flex.core.IUIBase');
-
-
-
-/**
- * @interface
- */
-org.apache.flex.core.IParentIUIBase = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IParentIUIBase.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IParentIUIBase', qName: 'org.apache.flex.core.IParentIUIBase'}],
- interfaces: [org.apache.flex.core.IParent,
- org.apache.flex.core.IUIBase]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IPopUpHost.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IPopUpHost.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IPopUpHost.js
deleted file mode 100644
index 2c1aaae..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IPopUpHost.js
+++ /dev/null
@@ -1,45 +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.flex.core.IPopUpHost
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IPopUpHost');
-
-goog.require('org.apache.flex.core.IParent');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IParent}
- */
-org.apache.flex.core.IPopUpHost = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IPopUpHost.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IPopUpHost', qName: 'org.apache.flex.core.IPopUpHost'}],
- interfaces: [org.apache.flex.core.IParent]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IRollOverModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IRollOverModel.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IRollOverModel.js
deleted file mode 100644
index 059b1a1..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IRollOverModel.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.
- */
-
-/**
- * org.apache.flex.core.IRollOverModel
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IRollOverModel');
-
-goog.require('org.apache.flex.core.IBeadModel');
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IBeadModel}
- * @extends {org.apache.flex.events.IEventDispatcher}
- */
-org.apache.flex.core.IRollOverModel =
-function() {
-};
-
-
-Object.defineProperties(org.apache.flex.core.IRollOverModel.prototype, {
- /** @export */
- rollOverIndex: {
- get: function() {},
- set: function(value) {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IRollOverModel.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IRollOverModel',
- qName: 'org.apache.flex.core.IRollOverModel'}],
- interfaces: [org.apache.flex.core.IBead, org.apache.flex.events.IEventDispatcher]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ISelectableItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ISelectableItemRenderer.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ISelectableItemRenderer.js
deleted file mode 100644
index 611cc85..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ISelectableItemRenderer.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.
- */
-
-/**
- * org.apache.flex.core.ISelectableItemRenderer
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.ISelectableItemRenderer');
-
-goog.require('org.apache.flex.core.IItemRenderer');
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.events.IEventDispatcher}
- * @extends {org.apache.flex.core.IItemRenderer}
- */
-org.apache.flex.core.ISelectableItemRenderer = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.core.ISelectableItemRenderer.prototype, {
- /** @export */
- labelField: {
- set: function(value) {},
- get: function() {}
- },
- /** @export */
- index: {
- set: function(value) {},
- get: function() {}
- },
- /** @export */
- selected: {
- set: function(value) {},
- get: function() {}
- },
- /** @export */
- hovered: {
- set: function(value) {},
- get: function() {}
- },
- /** @export */
- down: {
- set: function(value) {},
- get: function() {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ISelectableItemRenderer.prototype.FLEXJS_CLASS_INFO =
-{ names: [{ name: 'ISelectableItemRenderer', qName: 'org.apache.flex.core.ISelectableItemRenderer'}],
- interfaces: [org.apache.flex.core.IItemRenderer] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ISelectionModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ISelectionModel.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ISelectionModel.js
deleted file mode 100644
index e3a1aad..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ISelectionModel.js
+++ /dev/null
@@ -1,65 +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.flex.core.ISelectionModel
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.ISelectionModel');
-
-goog.require('org.apache.flex.core.IBeadModel');
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.events.IEventDispatcher}
- * @extends {org.apache.flex.core.IBeadModel}
- */
-org.apache.flex.core.ISelectionModel = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.core.ISelectionModel.prototype, {
- /** @export */
- dataProvider: {
- set: function(value) {},
- get: function() {}
- },
- /** @export */
- selectedIndex: {
- set: function(value) {},
- get: function() {}
- },
- /** @export */
- selectedItem: {
- set: function(value) {},
- get: function() {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ISelectionModel.prototype.FLEXJS_CLASS_INFO =
-{ names: [{ name: 'ISelectionModel', qName: 'org.apache.flex.core.ISelectionModel'}],
- interfaces: [org.apache.flex.events.IEventDispatcher, org.apache.flex.core.IBeadModel] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IStatesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IStatesImpl.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IStatesImpl.js
deleted file mode 100644
index c8b2bc7..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IStatesImpl.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IStatesImpl');
-
-goog.require('org.apache.flex.core.IBead');
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * IStatesImpl
- *
- * @interface
- * @extends {org.apache.flex.core.IBead}
- * @extends {org.apache.flex.events.IEventDispatcher}
- */
-org.apache.flex.core.IStatesImpl = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IStatesImpl.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IStatesImpl',
- qName: 'org.apache.flex.core.IStatesImpl' }],
- interfaces: [org.apache.flex.core.IBead,
- org.apache.flex.events.IEventDispatcher] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IStrand.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IStrand.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IStrand.js
deleted file mode 100644
index 28d7f90..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IStrand.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IStrand');
-
-
-
-/**
- * IStrand
- *
- * @interface
- */
-org.apache.flex.core.IStrand = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IStrand',
- qName: 'org.apache.flex.core.IStrand' }] };
-
-
-/**
- * addBead()
- *
- * @export
- * @param {org.apache.flex.core.IBead} bead The bead to add.
- */
-org.apache.flex.core.IStrand.prototype.addBead = function(bead) {};
-
-
-/**
- * getBeadByType()
- *
- * @export
- * @param {Object} classOrInterface The type of bead to look for.
- * @return {org.apache.flex.core.IBead} The bead.
- */
-org.apache.flex.core.IStrand.prototype.getBeadByType =
- function(classOrInterface) {};
-
-
-/**
- * removeBead()
- *
- * @export
- * @param {org.apache.flex.core.IBead} bead The bead to remove.
- * @return {org.apache.flex.core.IBead} The bead that was removed.
- */
-org.apache.flex.core.IStrand.prototype.removeBead = function(bead) {};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IStyleableObject.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IStyleableObject.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IStyleableObject.js
deleted file mode 100644
index eaaf5b4..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IStyleableObject.js
+++ /dev/null
@@ -1,46 +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.flex.core.IStyleableObject
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IStyleableObject');
-
-goog.require('org.apache.flex.events.IEventDispatcher');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.events.IEventDispatcher}
- */
-org.apache.flex.core.IStyleableObject = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IStyleableObject.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'IStyleableObject',
- qName: 'org.apache.flex.core.IStyleableObject'}],
- interfaces: [org.apache.flex.events.IEventDispatcher]
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ITextModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ITextModel.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ITextModel.js
deleted file mode 100644
index 441c459..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ITextModel.js
+++ /dev/null
@@ -1,54 +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.flex.core.ITextModel
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.ITextModel');
-
-goog.require('org.apache.flex.core.IBeadModel');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.events.IEventDispatcher}
- * @extends {org.apache.flex.core.IBeadModel}
- */
-org.apache.flex.core.ITextModel = function() {
-};
-
-
-Object.defineProperties(org.apache.flex.core.ITextModel.prototype, {
- /** @export */
- text: {
- set: function(value) {},
- get: function() {}
- }
-});
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ITextModel.prototype.FLEXJS_CLASS_INFO =
-{ names: [{ name: 'ITextModel', qName: 'org.apache.flex.core.ITextModel'}],
- interfaces: [org.apache.flex.events.IEventDispatcher, org.apache.flex.core.IBeadModel] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IUIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IUIBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IUIBase.js
deleted file mode 100644
index 7fd8318..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IUIBase.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IUIBase');
-
-
-
-/**
- * IUIBase
- *
- * @interface
- */
-org.apache.flex.core.IUIBase = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IUIBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IUIBase',
- qName: 'org.apache.flex.core.IUIBase' }] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IValuesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IValuesImpl.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IValuesImpl.js
deleted file mode 100644
index 0b9b68c..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IValuesImpl.js
+++ /dev/null
@@ -1,73 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IValuesImpl');
-
-
-
-/**
- * IValuesImpl
- *
- * @interface
- */
-org.apache.flex.core.IValuesImpl = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IValuesImpl.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'IValuesImpl',
- qName: 'org.apache.flex.core.IValuesImpl' }]};
-
-
-/**
- * @export
- * @param {Object} thisObject The object to fetch a value for.
- * @param {string} valueName The name of the value to fetch.
- * @param {string=} opt_state The psuedo-state if any for.
- * @param {Object=} opt_attrs The object with name value pairs that
- * might make a difference.
- * @return {?Object} The value.
- */
-org.apache.flex.core.IValuesImpl.prototype.getValue =
- function(thisObject, valueName, opt_state, opt_attrs) {};
-
-
-/**
- * @export
- * @param {Object} thisObject The object to fetch a value for.
- * @param {string} valueName The name of the value to fetch.
- * @param {string=} opt_state The psuedo-state if any for.
- * @param {Object=} opt_attrs The object with name value pairs that
- * might make a difference.
- * @return {Object} The new instance.
- */
-org.apache.flex.core.IValuesImpl.prototype.newInstance =
-function(thisObject, valueName, opt_state, opt_attrs) {};
-
-
-/**
- * @export
- * @param {Object} mainclass The main class for the application.
- */
-org.apache.flex.core.IValuesImpl.prototype.init = function(mainclass) {};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IViewport.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IViewport.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IViewport.js
deleted file mode 100644
index 185ba62..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IViewport.js
+++ /dev/null
@@ -1,44 +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.flex.core.IViewport
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IViewport');
-
-goog.require('org.apache.flex.core.IBead');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IBead}
- */
-org.apache.flex.core.IViewport = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IViewport.prototype.FLEXJS_CLASS_INFO =
-{ names: [{ name: 'IViewport', qName: 'org.apache.flex.core.IViewport'}],
- interfaces: [org.apache.flex.core.IBead] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/IViewportModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IViewportModel.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IViewportModel.js
deleted file mode 100644
index c438abc..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IViewportModel.js
+++ /dev/null
@@ -1,44 +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.flex.core.IViewportModel
- *
- * @fileoverview
- *
- * @suppress {checkTypes}
- */
-
-goog.provide('org.apache.flex.core.IViewportModel');
-
-goog.require('org.apache.flex.core.IBead');
-
-
-
-/**
- * @interface
- * @extends {org.apache.flex.core.IBeadModel}
- */
-org.apache.flex.core.IViewportModel = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.IViewportModel.prototype.FLEXJS_CLASS_INFO =
-{ names: [{ name: 'IViewportModel', qName: 'org.apache.flex.core.IViewportModel'}],
- interfaces: [org.apache.flex.core.IBead] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ItemRendererClassFactory.js
deleted file mode 100644
index 9d3ca0d..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ItemRendererClassFactory.js
+++ /dev/null
@@ -1,96 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.ItemRendererClassFactory');
-
-goog.require('org.apache.flex.core.ClassFactory');
-goog.require('org.apache.flex.core.IItemRendererClassFactory');
-goog.require('org.apache.flex.core.ValuesManager');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IItemRendererClassFactory}
- */
-org.apache.flex.core.ItemRendererClassFactory = function() {
- /**
- * @type {Function}
- */
- this.itemRendererClass = null;
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ItemRendererClassFactory.
- prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ItemRendererClassFactory',
- qName: 'org.apache.flex.core.ItemRendererClassFactory'}],
- interfaces: [org.apache.flex.core.IItemRendererClassFactory] };
-
-
-Object.defineProperties(org.apache.flex.core.ItemRendererClassFactory.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.core.ItemRendererClassFactory} */
- set: function(value) {
- this.strand_ = value;
-
- // see if the _strand has an itemRenderer property that isn't empty. if that's
- // true, use that value instead of pulling it from the the style
- this.itemRendererClassFactory = this.strand_.itemRenderer;
- if (this.itemRendererClassFactory) {
- this.createFunction = this.createFromClass;
- return;
- }
-
- if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) {
- this.itemRendererClass =
- /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this.strand_, 'iItemRenderer'));
- if (this.itemRendererClass) {
- this.itemRendererClassFactory = new org.apache.flex.core.ClassFactory(this.itemRendererClass);
- this.createFunction = this.createFromClass;
- }
- }
- }
- }
-});
-
-
-/**
- * @export
- * @param {Object} parent The display parent of the new item renderer.
- * @return {Object} The new item renderer.
- */
-org.apache.flex.core.ItemRendererClassFactory.
- prototype.createItemRenderer = function(parent) {
- return this.createFunction(parent);
-};
-
-
-/**
- * @export
- * @param {Object} parent The parent of the new item renderer.
- * @return {Object} The new item renderer.
- */
-org.apache.flex.core.ItemRendererClassFactory.
- prototype.createFromClass = function(parent) {
- var renderer = this.itemRendererClassFactory.newInstance();
- return renderer;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ListBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ListBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ListBase.js
deleted file mode 100644
index 70811bf..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ListBase.js
+++ /dev/null
@@ -1,179 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.ListBase');
-
-goog.require('org.apache.flex.core.IContentViewHost');
-goog.require('org.apache.flex.core.ListBaseStrandChildren');
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.html.supportClasses.StringItemRenderer');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- * @implements {org.apache.flex.core.IContentViewHost}
- */
-org.apache.flex.core.ListBase = function() {
- org.apache.flex.core.ListBase.base(this, 'constructor');
-
- /**
- * @private
- * @type {number}
- */
- this.selectedIndex_ = -1;
-
- /**
- * @private
- * @type {Object}
- */
- this.strandChildren_ = new org.apache.flex.core.ListBaseStrandChildren(this);
-};
-goog.inherits(org.apache.flex.core.ListBase,
- org.apache.flex.core.UIBase);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ListBase.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ListBase',
- qName: 'org.apache.flex.core.ListBase' }],
- interfaces: [org.apache.flex.core.IContentViewHost] };
-
-
-/**
- * @override
- */
-org.apache.flex.core.ListBase.prototype.createElement = function() {
- // this.element = document.createElement('select');
- // goog.events.listen(this.element, 'change',
- // goog.bind(this.changeHandler, this));
- this.element = document.createElement('div');
- this.element.style.position = 'relative';
- this.element.style.overflow = 'auto';
- this.element.style.border = 'solid';
- this.element.style.borderWidth = '1px';
- this.element.style.borderColor = '#333333';
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @expose
- * @return {number} The number of raw elements.
- */
-org.apache.flex.core.ListBase.prototype.$numElements = function() {
- return this.numElements();
-};
-
-
-/**
- * @expose
- * @param {Object} c The element to add.
- * @param {boolean=} opt_dispatchEvent If true, an event is dispatched.
- */
-org.apache.flex.core.ListBase.prototype.$addElement = function(c, opt_dispatchEvent) {
- this.addElement(c, opt_dispatchEvent);
-};
-
-
-/**
- * @expose
- * @param {Object} c The element to add.
- * @param {number} index The index of the element.
- * @param {boolean=} opt_dispatchEvent If true, an event is dispatched.
- */
-org.apache.flex.core.ListBase.prototype.$addElementAt = function(c, index, opt_dispatchEvent) {
- this.addElementAt(c, index, opt_dispatchEvent);
-};
-
-
-/**
- * @expose
- * @param {number} index The index of the number.
- * @return {Object} The element at the given index.
- */
-org.apache.flex.core.ListBase.prototype.$getElementAt = function(index) {
- return this.getElementAt(index);
-};
-
-
-/**
- * @expose
- * @param {Object} c The element being queried.
- * @return {number} The index of the element.
- */
-org.apache.flex.core.ListBase.prototype.$getElementIndex = function(c) {
- return this.getElementIndex(c);
-};
-
-
-Object.defineProperties(org.apache.flex.core.ListBase.prototype, {
- /** @export */
- dataProvider: {
- /** @this {org.apache.flex.core.ListBase} */
- get: function() {
- return this.model.dataProvider;
- },
- /** @this {org.apache.flex.core.ListBase} */
- set: function(value) {
- this.model.dataProvider = value;
- }
- },
- /** @export */
- selectedIndex: {
- /** @this {org.apache.flex.core.ListBase} */
- get: function() {
- return this.model.selectedIndex;
- },
- /** @this {org.apache.flex.core.ListBase} */
- set: function(value) {
- this.model.selectedIndex = value;
- }
- },
- /** @export */
- selectedItem: {
- /** @this {org.apache.flex.core.ListBase} */
- get: function() {
- return this.model.selectedItem;
- },
- /** @this {org.apache.flex.core.ListBase} */
- set: function(value) {
- this.model.selectedItem = value;
- }
- },
- /** @export */
- strandChildren: {
- /** @this {org.apache.flex.core.ListBase} */
- get: function() {
- return this.strandChildren_;
- }
- }
-});
-
-
-/**
- * @protected
- */
-org.apache.flex.core.ListBase.prototype.changeHandler =
- function() {
- this.dispatchEvent('change');
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/ListBaseStrandChildren.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ListBaseStrandChildren.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ListBaseStrandChildren.js
deleted file mode 100644
index ccc04a2..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ListBaseStrandChildren.js
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.ListBaseStrandChildren');
-
-goog.require('org.apache.flex.core.IParent');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IParent}
- * @param {Object} owner The base owner of this object.
- */
-org.apache.flex.core.ListBaseStrandChildren = function(owner) {
- this.owner_ = owner;
-};
-
-
-/**
- * @private
- * @type {Object}
- */
-org.apache.flex.core.ListBaseStrandChildren.prototype.owner_ = null;
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.ListBaseStrandChildren.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ListBaseStrandChildren',
- qName: 'org.apache.flex.core.ListBaseStrandChildren'}] ,
- interfaces: [org.apache.flex.core.IParent]};
-
-
-/**
- * @export
- * @return {number} The number of non-content children elements
- */
-org.apache.flex.core.ListBaseStrandChildren.prototype.numElements =
- function() {
- return this.owner_.$numElements();
-};
-
-
-/**
- * @export
- * @param {Object} c The element to be added.
- * @param {boolean=} opt_dispatchEvent Whether or not to dispatch an event.
- */
-org.apache.flex.core.ListBaseStrandChildren.prototype.addElement =
- function(c, opt_dispatchEvent) {
- this.owner_.$addElement(c, opt_dispatchEvent);
-};
-
-
-/**
- * @export
- * @param {Object} c The element to be added.
- * @param {number} index The index of the new element.
- * @param {boolean=} opt_dispatchEvent Whether or not to dispatch an event.
- */
-org.apache.flex.core.ListBaseStrandChildren.prototype.addElementAt =
- function(c, index, opt_dispatchEvent) {
- this.owner_.$addElementAt(c, index, opt_dispatchEvent);
-};
-
-
-/**
- * @export
- * @param {Object} c The element to be removed.
- * @param {boolean=} opt_dispatchEvent Whether or not to dispatch an event.
- */
-org.apache.flex.core.ListBaseStrandChildren.prototype.removeElement =
- function(c, opt_dispatchEvent) {
- this.owner_.$removeElement(c, opt_dispatchEvent);
-};
-
-
-/**
- * @export
- * @param {number} index The index of the element sought.
- * @return {Object} The element at the given index.
- */
-org.apache.flex.core.ListBaseStrandChildren.prototype.getElementAt =
- function(index) {
- return this.owner_.$getElementAt(index);
-};
-
-
-/**
- * @export
- * @param {Object} c The element in question.
- * @return {number} The index of the element.
- */
-org.apache.flex.core.ListBaseStrandChildren.prototype.getElementIndex =
- function(c) {
- return this.owner_.$getElementIndex(c);
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleApplication.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleApplication.js b/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleApplication.js
deleted file mode 100644
index 545355f..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleApplication.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.SimpleApplication');
-
-goog.require('org.apache.flex.core.HTMLElementWrapper');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.HTMLElementWrapper}
- */
-org.apache.flex.core.SimpleApplication = function() {
- org.apache.flex.core.SimpleApplication.base(this, 'constructor');
-};
-goog.inherits(org.apache.flex.core.SimpleApplication,
- org.apache.flex.core.HTMLElementWrapper);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.SimpleApplication.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SimpleApplication',
- qName: 'org.apache.flex.core.SimpleApplication' }] };
-
-
-/**
- * @export
- */
-org.apache.flex.core.SimpleApplication.prototype.start = function() {
- this.element = document.getElementsByTagName('body')[0];
- this.element.flexjs_wrapper = this;
- this.element.className = 'SimpleApplication';
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js b/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
deleted file mode 100644
index bcfed03..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ /dev/null
@@ -1,361 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.SimpleCSSValuesImpl');
-
-goog.require('org.apache.flex.core.IValuesImpl');
-
-
-
-/**
- * @constructor
- * @implements {org.apache.flex.core.IValuesImpl};
- */
-org.apache.flex.core.SimpleCSSValuesImpl = function() {
-};
-
-
-/**
- * @type {string}
- */
-org.apache.flex.core.SimpleCSSValuesImpl.GLOBAL_SELECTOR = 'global';
-
-
-/**
- * @type {string}
- */
-org.apache.flex.core.SimpleCSSValuesImpl.UNIVERSAL_SELECTOR = '*';
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.SimpleCSSValuesImpl.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SimpleCSSValuesImpl',
- qName: 'org.apache.flex.core.SimpleCSSValuesImpl'}],
- interfaces: [org.apache.flex.core.IValuesImpl]};
-
-
-/**
- * @param {Object} thisObject The object to fetch a value for.
- * @param {string} valueName The name of the value to fetch.
- * @param {string=} opt_state The psuedo-state if any for.
- * @param {Object=} opt_attrs The object with name value pairs that
- * might make a difference.
- * @return {Object} The value.
- */
-org.apache.flex.core.SimpleCSSValuesImpl.prototype.getValue =
- function(thisObject, valueName, opt_state, opt_attrs) {
- var c = valueName.indexOf('-');
- while (c != -1)
- {
- valueName = valueName.substr(0, c) +
- valueName.charAt(c + 1).toUpperCase() +
- valueName.substr(c + 2);
- c = valueName.indexOf('-');
- }
-
- var values = this.values;
- var value;
- var o;
- var cName;
- var selectorName;
-
- try {
- var style = thisObject.style;
- if (style != null) {
- value = style[valueName];
- if (value !== undefined)
- return value;
- }
- }
- catch (e) {}
-
- if ('className' in thisObject)
- {
- cName = thisObject.className;
- if (opt_state)
- {
- selectorName = cName + ':' + opt_state;
- o = values['.' + selectorName];
- if (o)
- {
- value = o[valueName];
- if (value !== undefined)
- return value;
- }
- }
-
- o = values['.' + cName];
- if (o)
- {
- value = o[valueName];
- if (value !== undefined)
- return value;
- }
- }
-
- cName = thisObject.FLEXJS_CLASS_INFO.names[0].qName;
- if (opt_state)
- {
- selectorName = cName + ':' + opt_state;
- o = values['.' + selectorName];
- if (o)
- {
- value = o[valueName];
- if (value !== undefined)
- return value;
- }
- }
-
- o = values['.' + cName];
- if (o)
- {
- value = o[valueName];
- if (value !== undefined)
- return value;
- }
-
- while (cName != 'Object')
- {
- if (opt_state)
- {
- selectorName = cName + ':' + opt_state;
- o = values[selectorName];
- if (o)
- {
- value = o[valueName];
- if (value !== undefined)
- return value;
- }
- }
-
- o = values[cName];
- if (o)
- {
- value = o[valueName];
- if (value !== undefined)
- return value;
- }
- thisObject = thisObject.constructor.superClass_;
- if (!thisObject || !thisObject.FLEXJS_CLASS_INFO)
- break;
-
- cName = thisObject.FLEXJS_CLASS_INFO.names[0].qName;
- }
- o = values[org.apache.flex.core.SimpleCSSValuesImpl.GLOBAL_SELECTOR];
- if (o)
- return o[valueName];
- o = values[org.apache.flex.core.SimpleCSSValuesImpl.UNIVERSAL_SELECTOR];
- if (o)
- return o[valueName];
- return undefined;
-};
-
-
-/**
- * @param {Object} thisObject The object to fetch a value for.
- * @param {string} valueName The name of the value to fetch.
- * @param {string=} opt_state The psuedo-state if any for.
- * @param {Object=} opt_attrs The object with name value pairs that
- * might make a difference.
- * @return {Object} The value.
- * @suppress {checkTypes}
- */
-org.apache.flex.core.SimpleCSSValuesImpl.prototype.newInstance =
-function(thisObject, valueName, opt_state, opt_attrs) {
- var f = this.getValue(thisObject, valueName, opt_state, opt_attrs);
- if (f)
- return new f();
- return null;
-};
-
-
-/**
- * @param {Object} mainclass The main class for the application.
- */
-org.apache.flex.core.SimpleCSSValuesImpl.prototype.init = function(mainclass) {
- var cssData = mainclass.cssData;
- var values = this.values;
- if (values == null)
- values = {};
-
- if (cssData) {
- var n = cssData.length;
- var i = 0;
- while (i < n)
- {
- var numMQ = cssData[i++];
- if (numMQ > 0)
- {
- // skip MediaQuery tests for now
- i += numMQ;
- }
- var numSel = cssData[i++];
- var props = {};
- for (var j = 0; j < numSel; j++)
- {
- var selName = cssData[i++];
- if (values[selName])
- props = values[selName];
- values[selName] = props;
- }
- var numProps = cssData[i++];
- for (j = 0; j < numProps; j++)
- {
- var propName = cssData[i++];
- var propValue = cssData[i++];
- props[propName] = propValue;
- }
- }
- }
-
- this.values = values;
-};
-
-
-/**
- * @param {string} styles The styles as HTML style syntax.
- * @return {Object} The styles object.
- */
-org.apache.flex.core.SimpleCSSValuesImpl.prototype.parseStyles = function(styles) {
- var obj = {};
- var parts = styles.split(';');
- var l = parts.length;
- for (var i = 0; i < l; i++) {
- var part = parts[i];
- var pieces = part.split(':');
- var value = pieces[1];
- if (value == 'null')
- obj[pieces[0]] = null;
- else if (value == 'true')
- obj[pieces[0]] = true;
- else if (value == 'false')
- obj[pieces[0]] = false;
- else {
- var n = Number(value);
- if (isNaN(n)) {
- if (value.indexOf("'") === 0)
- value = value.substring(1, value.length - 1);
- obj[pieces[0]] = value;
- }
- else
- obj[pieces[0]] = n;
- }
- }
- return obj;
-};
-
-
-/**
- * @param {string} ruleName The name of the rule.
- * @param {Object} values The styles object.
- */
-org.apache.flex.core.SimpleCSSValuesImpl.prototype.addRule = function(ruleName, values) {
- var v;
- var asValues = {};
- for (var valueName in values) {
- v = values[valueName];
- var c = valueName.indexOf('-');
- while (c != -1)
- {
- valueName = valueName.substr(0, c) +
- valueName.charAt(c + 1).toUpperCase() +
- valueName.substr(c + 2);
- c = valueName.indexOf('-');
- }
- asValues[valueName] = v;
- }
- this.values[ruleName] = asValues;
-
- var s = '{';
- for (var p in values) {
- v = values[p];
- if (typeof(v) === 'number')
- v = v.toString() + 'px';
- s += p + ':' + v + ';';
- }
- s += '}';
- s = ruleName + ' ' + s;
- var sheet = document.styleSheets[0];
- sheet.insertRule(s, 0);
-};
-
-
-/**
- * The styles that apply to each UI widget
- */
-org.apache.flex.core.SimpleCSSValuesImpl.perInstanceStyles = {
- 'backgroundColor': 1,
- 'backgroundImage': 1,
- 'color': 1,
- 'fontFamily': 1,
- 'fontWeight': 1,
- 'fontSize': 1,
- 'fontStyle': 1
-};
-
-
-/**
- * The styles that use color format #RRGGBB
- */
-org.apache.flex.core.SimpleCSSValuesImpl.colorStyles = {
- 'backgroundColor': 1,
- 'borderColor': 1,
- 'color': 1
-};
-
-
-/**
- * The properties that enumerate that we skip
- */
-org.apache.flex.core.SimpleCSSValuesImpl.skipStyles = {
- 'constructor': 1
-};
-
-
-/**
- * @param {Object} thisObject The object to apply styles to;
- * @param {Object} styles The styles.
- */
-org.apache.flex.core.SimpleCSSValuesImpl.prototype.applyStyles =
- function(thisObject, styles) {
- var styleList = org.apache.flex.core.SimpleCSSValuesImpl.perInstanceStyles;
- var colorStyles = org.apache.flex.core.SimpleCSSValuesImpl.colorStyles;
- var skipStyles = org.apache.flex.core.SimpleCSSValuesImpl.skipStyles;
- var listObj = styles;
- if (styles.styleList)
- listObj = styles.styleList;
- for (var p in listObj) {
- //if (styleList[p])
- if (skipStyles[p])
- continue;
- var value = styles[p];
- if (value === undefined)
- continue;
- if (typeof(value) == 'number') {
- if (colorStyles[p])
- value = '#' + value.toString(16);
- else
- value = value.toString() + 'px';
- }
- else if (p == 'backgroundImage') {
- if (p.indexOf('url') !== 0)
- value = 'url(' + value + ')';
- }
- thisObject.element.style[p] = value;
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleStatesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleStatesImpl.js b/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleStatesImpl.js
deleted file mode 100644
index 2964f77..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleStatesImpl.js
+++ /dev/null
@@ -1,221 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.SimpleStatesImpl');
-
-goog.require('org.apache.flex.core.IBead');
-goog.require('org.apache.flex.core.IStatesImpl');
-goog.require('org.apache.flex.core.IStrand');
-goog.require('org.apache.flex.core.UIBase');
-goog.require('org.apache.flex.events.Event');
-goog.require('org.apache.flex.events.EventDispatcher');
-goog.require('org.apache.flex.events.ValueChangeEvent');
-goog.require('org.apache.flex.states.AddItems');
-goog.require('org.apache.flex.states.SetEventHandler');
-goog.require('org.apache.flex.states.SetProperty');
-goog.require('org.apache.flex.states.State');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
- * @implements {org.apache.flex.core.IBead}
- * @implements {org.apache.flex.core.IStatesImpl}
- */
-org.apache.flex.core.SimpleStatesImpl = function() {
- org.apache.flex.core.SimpleStatesImpl.base(this, 'constructor');
-
- /**
- * @private
- * @type {org.apache.flex.core.IStrand}
- */
- this.strand_ = null;
-};
-goog.inherits(org.apache.flex.core.SimpleStatesImpl,
- org.apache.flex.events.EventDispatcher);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.SimpleStatesImpl.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SimpleStatesImpl',
- qName: 'org.apache.flex.core.SimpleStatesImpl' }],
- interfaces: [org.apache.flex.core.IBead,
- org.apache.flex.core.IStatesImpl] };
-
-
-Object.defineProperties(org.apache.flex.core.SimpleStatesImpl.prototype, {
- /** @export */
- strand: {
- /** @this {org.apache.flex.core.SimpleStatesImpl} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- if (this.strand_.addEventListener) {
- this.strand_.addEventListener('currentStateChange',
- goog.bind(this.stateChangeHandler_, this));
- this.strand_.addEventListener('initComplete',
- goog.bind(this.initialStateHandler_, this));
- }
- }
- }
- }
-});
-
-
-/**
- * @private
- * @param {Object} event The event.
- */
-org.apache.flex.core.SimpleStatesImpl.prototype.initialStateHandler_ =
- function(event) {
- /**
- * @type {Object}
- **/
- var host = this.strand_;
- this.dispatchEvent(new org.apache.flex.events.ValueChangeEvent('currentStateChange',
- false, false, null,
- host.currentState));
- };
-
-
-/**
- * @private
- * @param {Object} event The event.
- */
-org.apache.flex.core.SimpleStatesImpl.prototype.stateChangeHandler_ =
- function(event) {
- var arr, doc, p, s;
-
- doc = event.target;
- arr = doc.states;
- for (p in arr) {
- s = arr[p];
- if (s.name === event.oldValue) {
- this.revert_(s);
- break;
- }
- }
-
- for (p in arr) {
- s = arr[p];
- if (s.name === event.newValue) {
- this.apply_(s);
- break;
- }
- }
-};
-
-
-/**
- * @private
- * @param {org.apache.flex.states.State} s The State to revert.
- */
-org.apache.flex.core.SimpleStatesImpl.prototype.revert_ = function(s) {
- var arr, item, o, p, q, target;
- /**
- * @type {org.apache.flex.core.UIBase}
- */
- var parent;
- arr = s.overrides;
- for (p in arr) {
- o = arr[p];
- if (org.apache.flex.utils.Language.is(o, org.apache.flex.states.AddItems)) {
- for (q in o.items) {
- item = o.items[q];
-
- parent = o.document;
- if (o.destination) {
- parent = o.document[o.destination];
- }
-
- parent.removeElement(item);
- parent.dispatchEvent(
- new org.apache.flex.events.Event('childrenAdded'));
- }
- } else if (org.apache.flex.utils.Language.is(o, org.apache.flex.states.SetProperty)) {
- target = o.document[o.target];
- target[o.name] = o.previousValue;
- } else if (org.apache.flex.utils.Language.is(o, org.apache.flex.states.SetEventHandler)) {
- target = o.document[o.target];
- target.removeEventListener(o.name, o.handlerFunction);
- }
- }
-};
-
-
-/**
- * @private
- * @param {org.apache.flex.states.State} s The State to apply.
- */
-org.apache.flex.core.SimpleStatesImpl.prototype.apply_ = function(s) {
- var arr, child, index, item, o, p, q, target;
- /**
- * type {org.apache.flex.core.UIBase}
- */
- var parent;
- arr = s.overrides;
- for (p in arr) {
- o = arr[p];
- if (org.apache.flex.utils.Language.is(o, org.apache.flex.states.AddItems)) {
- if (!o.items) {
- o.items = o.itemsDescriptor.items;
- if (o.items == null) {
- o.items =
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLArray(o.document,
- null, o.itemsDescriptor.descriptor);
- o.itemsDescriptor.items = o.items;
- }
- }
-
- for (q in o.items) {
- item = o.items[q];
-
- parent = o.document;
- if (o.destination) {
- parent = o.document[o.destination];
- }
-
- if (o.relativeTo) {
- child = o.document[o.relativeTo];
-
- index = parent.getElementIndex(child);
- if (o.position === 'after') {
- index++;
- }
-
- parent.addElementAt(item, index);
- } else {
- parent.addElement(item);
- }
-
- parent.dispatchEvent(
- new org.apache.flex.events.Event('childrenAdded'));
- }
- }
- else if (org.apache.flex.utils.Language.is(o, org.apache.flex.states.SetProperty))
- {
- target = o.document[o.target];
- o.previousValue = target[o.name];
- target[o.name] = o.value;
- } else if (org.apache.flex.utils.Language.is(o, org.apache.flex.states.SetEventHandler)) {
- target = o.document[o.target];
- target.addEventListener(o.name, o.handlerFunction);
- }
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d4cace4a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleValuesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleValuesImpl.js b/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleValuesImpl.js
deleted file mode 100644
index aef2a83..0000000
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleValuesImpl.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.core.SimpleValuesImpl');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.core.SimpleValuesImpl = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.core.SimpleValuesImpl.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'SimpleValuesImpl',
- qName: 'org.apache.flex.core.SimpleValuesImpl' }] };
[20/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix
build for Flat and CreateJS
Posted by ah...@apache.org.
fix build for Flat and CreateJS
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/240b8833
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/240b8833
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/240b8833
Branch: refs/heads/develop
Commit: 240b8833d4b4af9e4c2e0ff030e0b2f549065b55
Parents: d6ee57d
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 9 13:37:53 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 9 13:38:02 2015 -0800
----------------------------------------------------------------------
frameworks/build.xml | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/240b8833/frameworks/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/build.xml b/frameworks/build.xml
index 5aeb5d1..8695298 100644
--- a/frameworks/build.xml
+++ b/frameworks/build.xml
@@ -95,22 +95,17 @@
</target>
<target name="compile-asjs" description="Cross-compiles all SWCs">
- <ant dir="${basedir}/projects/CreateJS" target="compile-asjs"/>
<ant dir="${basedir}/projects/Formatters" target="compile-asjs"/>
<ant dir="${basedir}/projects/GoogleMaps" target="compile-asjs"/>
</target>
<target name="lint-js" description="Cross-compiles all SWCs">
- <ant dir="${basedir}/projects/CreateJS" target="lint-js"/>
- <ant dir="${basedir}/projects/Flat" target="lint-js"/>
<ant dir="${basedir}/projects/Formatters" target="lint-js"/>
<ant dir="${basedir}/projects/GoogleMaps" target="lint-js"/>
</target>
<target name="re-compile" description="Builds all SWCs which should pick up the JS files from asjs">
<!-- order may matter due to dependencies -->
- <ant dir="${basedir}/projects/Flat" target="compile"/>
- <ant dir="${basedir}/projects/CreateJS" target="compile"/>
<ant dir="${basedir}/projects/Formatters" target="compile"/>
<ant dir="${basedir}/projects/GoogleMaps" target="compile"/>
</target>
@@ -194,7 +189,7 @@
</target>
<target name="CreateJS" description="Clean build of CreateJS.swc">
- <ant dir="${basedir}/projects/CreateJS"/>
+ <ant dir="${basedir}/projects/CreateJS" target="all"/>
</target>
<target name="DragDrop" description="Clean build of DragDrop.swc">
@@ -206,7 +201,7 @@
</target>
<target name="Flat" description="Clean build of Flat.swc">
- <ant dir="${basedir}/projects/Flat"/>
+ <ant dir="${basedir}/projects/Flat" target="all"/>
</target>
<target name="Formatters" description="Clean build of Formatters.swc">
[30/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix up
FlexJSStore_jquery
Posted by ah...@apache.org.
fix up FlexJSStore_jquery
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b1f78ddf
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b1f78ddf
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b1f78ddf
Branch: refs/heads/develop
Commit: b1f78ddfb31104aa34309c627a265b2a16df2398
Parents: 018ff46
Author: Alex Harui <ah...@apache.org>
Authored: Fri Dec 11 23:26:29 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Dec 11 23:26:29 2015 -0800
----------------------------------------------------------------------
.../src/productsView/ProductCatalogThumbnail.mxml | 6 +++---
.../FlexJSStore_jquery/src/productsView/ProductDetails.mxml | 6 +++---
.../FlexJSStore_jquery/src/productsView/ProductListItem.mxml | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b1f78ddf/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
index dec248f..1d8ce8f 100755
--- a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
+++ b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductCatalogThumbnail.mxml
@@ -183,21 +183,21 @@ limitations under the License.
<js:style>
<js:SimpleCSSStyles paddingRight="8" right="8" top="12" /> <!-- gap="4" -->
</js:style>
- <js:ImageButton id="purchase" backgroundImage="assets/button_cart_empty.png" className="hoverButton"
+ <js:ImageButton id="purchase" source="assets/button_cart_empty.png" className="hoverButton"
click="dispatchEvent(new ProductThumbEvent(ProductThumbEvent.PURCHASE, product))"
width="30">
<js:beads>
<js:ToolTipBead toolTip="Add to cart"/>
</js:beads>
</js:ImageButton>
- <js:ImageButton id="compare" backgroundImage="assets/button_compare.png" className="hoverButton"
+ <js:ImageButton id="compare" source="assets/button_compare.png" className="hoverButton"
click="dispatchEvent(new ProductThumbEvent(ProductThumbEvent.COMPARE, product))"
width="30">
<js:beads>
<js:ToolTipBead toolTip="Add to compare list"/>
</js:beads>
</js:ImageButton>
- <js:ImageButton id="details" backgroundImage="assets/button_details.png" className="hoverButton"
+ <js:ImageButton id="details" source="assets/button_details.png" className="hoverButton"
click="dispatchEvent(new ProductThumbEvent(ProductThumbEvent.DETAILS, product))"
width="30">
<js:beads>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b1f78ddf/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductDetails.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductDetails.mxml b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductDetails.mxml
index f0162ad..fa32497 100755
--- a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductDetails.mxml
+++ b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductDetails.mxml
@@ -125,17 +125,17 @@ limitations under the License.
<js:SimpleCSSStyles marginTop="4" right="16" top="36" />
</js:style>
<js:Spacer width="100%"/>
- <js:ImageButton id="purchase" backgroundImage="assets/button_cart_empty.png" click="dispatchEvent(new ProductThumbEvent(ProductThumbEvent.PURCHASE, product))" width="30">
+ <js:ImageButton id="purchase" source="assets/button_cart_empty.png" click="dispatchEvent(new ProductThumbEvent(ProductThumbEvent.PURCHASE, product))" width="30">
<js:beads>
<js:ToolTipBead toolTip="Add to cart"/>
</js:beads>
</js:ImageButton>
- <js:ImageButton id="compare" backgroundImage="assets/button_compare.png" click="dispatchEvent(new ProductThumbEvent(ProductThumbEvent.COMPARE, product))" width="30">
+ <js:ImageButton id="compare" source="assets/button_compare.png" click="dispatchEvent(new ProductThumbEvent(ProductThumbEvent.COMPARE, product))" width="30">
<js:beads>
<js:ToolTipBead toolTip="Add to compare list"/>
</js:beads>
</js:ImageButton>
- <js:ImageButton id="tiles" backgroundImage="assets/button_tiles.png" click="dispatchEvent(new ProductThumbEvent(ProductThumbEvent.BROWSE, product));" width="30">
+ <js:ImageButton id="tiles" source="assets/button_tiles.png" click="dispatchEvent(new ProductThumbEvent(ProductThumbEvent.BROWSE, product));" width="30">
<js:beads>
<js:ToolTipBead toolTip="Back to thumbnail view"/>
</js:beads>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b1f78ddf/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
index 0a83e1a..2864cca 100755
--- a/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
+++ b/examples/flexjs/FlexJSStore_jquery/src/productsView/ProductListItem.mxml
@@ -99,7 +99,7 @@ limitations under the License.
<js:ContainerDataBinding />
</js:beads>
- <js:ImageButton id="removeButton" backgroundImage="assets/trashcan.png"
+ <js:ImageButton id="removeButton" source="assets/trashcan.png"
width="14" height="14" y="5"
click="removeItem()">
<js:beads>
[12/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix
drag/drop now that we're finally using cross-compiled version
Posted by ah...@apache.org.
fix drag/drop now that we're finally using cross-compiled version
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/09439520
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/09439520
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/09439520
Branch: refs/heads/develop
Commit: 094395209b74ad544065e56288e382de6a8e1c95
Parents: f6166dd
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 2 11:35:41 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 2 11:35:41 2015 -0800
----------------------------------------------------------------------
.../as/src/org/apache/flex/events/DragEvent.as | 24 ++++++++++++++++++--
.../beads/controllers/DropMouseController.as | 10 +++++---
2 files changed, 29 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/09439520/frameworks/projects/DragDrop/as/src/org/apache/flex/events/DragEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/as/src/org/apache/flex/events/DragEvent.as b/frameworks/projects/DragDrop/as/src/org/apache/flex/events/DragEvent.as
index c7dec05..7d9fefb 100644
--- a/frameworks/projects/DragDrop/as/src/org/apache/flex/events/DragEvent.as
+++ b/frameworks/projects/DragDrop/as/src/org/apache/flex/events/DragEvent.as
@@ -296,6 +296,7 @@ package org.apache.flex.events
* @productversion FlexJS 0.0
* @flexjsignorecoercion org.apache.flex.events.DragEvent
* @flexjsignorecoercion window.Event
+ * @flexjsignorecoercion Event
*/
public static function createDragEvent(type:String, event:MouseEvent):DragEvent
{
@@ -314,7 +315,7 @@ package org.apache.flex.events
}
COMPILE::JS
{
- var out:MouseEvent = new MouseEvent(type);
+ var out:window.MouseEvent = new window.MouseEvent(type);
var e:window.Event = event as window.Event;
(out as window.Event).initMouseEvent(type, true, true,
e.view, e.detail, e.screenX, e.screenY,
@@ -349,5 +350,24 @@ package org.apache.flex.events
(target as IUIBase).element.dispatchEvent(event as window.Event);
}
}
- }
+
+ /**
+ */
+ COMPILE::JS
+ private static function installDragEventMixin():Boolean
+ {
+ var o:Object = org.apache.flex.events.ElementEvents.elementEvents;
+ o['dragEnd'] = 1;
+ o['dragMove'] = 1;
+ return true;
+ }
+
+
+ /**
+ * Add some other events to listen from the element
+ */
+ COMPILE::JS
+ private static var dragEventMixin:Boolean = installDragEventMixin();
+
+ }
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/09439520/frameworks/projects/DragDrop/as/src/org/apache/flex/html/beads/controllers/DropMouseController.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/as/src/org/apache/flex/html/beads/controllers/DropMouseController.as b/frameworks/projects/DragDrop/as/src/org/apache/flex/html/beads/controllers/DropMouseController.as
index 03afba6..3165241 100644
--- a/frameworks/projects/DragDrop/as/src/org/apache/flex/html/beads/controllers/DropMouseController.as
+++ b/frameworks/projects/DragDrop/as/src/org/apache/flex/html/beads/controllers/DropMouseController.as
@@ -130,6 +130,7 @@ package org.apache.flex.html.beads.controllers
/**
* @private
+ * @flexjsignorecoercion org.apache.flex.events.MouseEvent
*/
private function dragMoveHandler(event:DragEvent):void
{
@@ -137,7 +138,7 @@ package org.apache.flex.html.beads.controllers
var dragEvent:DragEvent;
if (!inside)
{
- dragEvent = DragEvent.createDragEvent("dragEnter", event);
+ dragEvent = DragEvent.createDragEvent("dragEnter", event as MouseEvent);
dispatchEvent(dragEvent);
inside = true;
IUIBase(_strand).topMostEventDispatcher.addEventListener(DragEvent.DRAG_END, dragEndHandler);
@@ -145,7 +146,7 @@ package org.apache.flex.html.beads.controllers
}
else
{
- dragEvent = DragEvent.createDragEvent("dragOver", event);
+ dragEvent = DragEvent.createDragEvent("dragOver", event as MouseEvent);
dispatchEvent(dragEvent);
}
}
@@ -164,12 +165,15 @@ package org.apache.flex.html.beads.controllers
IUIBase(_strand).removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
}
+ /**
+ * @flexjsignorecoercion org.apache.flex.events.MouseEvent
+ */
private function dragEndHandler(event:DragEvent):void
{
trace("dragEnd");
var dragEvent:DragEvent;
- dragEvent = DragEvent.createDragEvent("dragDrop", event);
+ dragEvent = DragEvent.createDragEvent("dragDrop", event as MouseEvent);
dispatchEvent(dragEvent);
inside = false;
[13/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - Back
port of jQuery.
Posted by ah...@apache.org.
Back port of jQuery.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/426fa559
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/426fa559
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/426fa559
Branch: refs/heads/develop
Commit: 426fa5593555fe3fec2e78089988c490b2ec176f
Parents: 0943952
Author: Peter Ent <pe...@apache.org>
Authored: Thu Dec 3 16:08:34 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Dec 3 16:08:34 2015 -0500
----------------------------------------------------------------------
.../src/org/apache/flex/jquery/Application.as | 12 ++
.../as/src/org/apache/flex/jquery/CheckBox.as | 1 +
.../src/org/apache/flex/jquery/RadioButton.as | 14 ++
.../as/src/org/apache/flex/jquery/TextButton.as | 23 ++++
.../org/apache/flex/jquery/ToggleTextButton.as | 61 +--------
frameworks/projects/JQuery/build.xml | 131 +++++++++++--------
.../projects/JQuery/compile-asjs-config.xml | 87 ++++++++++++
frameworks/projects/JQuery/compile-config.xml | 4 +-
8 files changed, 223 insertions(+), 110 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/426fa559/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as
index 88e21b3..6cb9229 100644
--- a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as
+++ b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/Application.as
@@ -21,6 +21,18 @@ package org.apache.flex.jquery
import org.apache.flex.core.Application;
import org.apache.flex.core.IFlexInfo;
+ /*
+ 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>
+ */
+
public class Application extends org.apache.flex.core.Application implements IFlexInfo
{
public function Application()
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/426fa559/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/CheckBox.as b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/CheckBox.as
index 9b9cb71..0a98dcd 100644
--- a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/CheckBox.as
+++ b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/CheckBox.as
@@ -22,5 +22,6 @@ package org.apache.flex.jquery
public class CheckBox extends org.apache.flex.html.CheckBox
{
+
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/426fa559/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as
index e7b64a9..7a9c9e6 100644
--- a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as
+++ b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as
@@ -20,7 +20,21 @@ package org.apache.flex.jquery
{
import org.apache.flex.html.RadioButton;
+ COMPILE::AS3
public class RadioButton extends org.apache.flex.html.RadioButton
{
+
+ }
+
+ COMPILE::JS
+ public class RadioButton extends org.apache.flex.html.RadioButton
+ {
+ override public function addedToParent():void
+ {
+ super.addedToParent();
+
+ var input:HTMLInputElement = element.childNodes.item(0) as HTMLInputElement;
+ $(input).button();
+ }
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/426fa559/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as
index 43d7dc8..e2c750c 100644
--- a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as
+++ b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as
@@ -20,11 +20,34 @@ package org.apache.flex.jquery
{
import org.apache.flex.html.TextButton;
+ COMPILE::JS {
+ import org.apache.flex.core.WrappedHTMLElement;
+ }
+
public class TextButton extends org.apache.flex.html.TextButton
{
public function TextButton()
{
super();
}
+
+ COMPILE::JS
+ override protected function createElement():WrappedHTMLElement
+ {
+ element = document.createElement('button') as WrappedHTMLElement;
+ element.setAttribute('type', 'button');
+
+ positioner = element;
+ positioner.style.position = 'relative';
+ element.flexjs_wrapper = this;
+ return element;
+ }
+
+ COMPILE::JS
+ override public function addedToParent():void
+ {
+ super.addedToParent();
+ $(element).button();
+ }
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/426fa559/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/ToggleTextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/ToggleTextButton.as b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/ToggleTextButton.as
index b76846c..af14a87 100644
--- a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/ToggleTextButton.as
+++ b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/ToggleTextButton.as
@@ -18,26 +18,7 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.jquery
{
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.IToggleButtonModel;
- import org.apache.flex.core.IUIBase;
- import org.apache.flex.core.UIButtonBase;
- import org.apache.flex.core.ValuesManager;
- import org.apache.flex.events.IEventDispatcher;
-
- //--------------------------------------
- // Events
- //--------------------------------------
-
- /**
- * Dispatched when the user clicks on a button.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- [Event(name="click", type="org.apache.flex.events.Event")]
+ import org.apache.flex.html.ToggleTextButton;
/**
* The ToggleButton class is a TextButton that supports
@@ -48,42 +29,14 @@ package org.apache.flex.jquery
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
- public class ToggleTextButton extends TextButton implements IStrand, IEventDispatcher, IUIBase
+ public class ToggleTextButton extends org.apache.flex.html.ToggleTextButton
{
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function ToggleTextButton()
+
+ COMPILE::JS
+ override public function addedToParent():void
{
- super();
+ super.addedToParent();
+ $(element).button();
}
-
- /**
- * <code>true</code> if the Button is selected.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get selected():Boolean
- {
- return IToggleButtonModel(model).selected;
- }
-
- /**
- * @private
- */
- public function set selected(value:Boolean):void
- {
- IToggleButtonModel(model).selected = value;
- }
-
-
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/426fa559/frameworks/projects/JQuery/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/build.xml b/frameworks/projects/JQuery/build.xml
index 61b2ac9..ce63aeb 100644
--- a/frameworks/projects/JQuery/build.xml
+++ b/frameworks/projects/JQuery/build.xml
@@ -19,7 +19,7 @@
-->
-<project name="JQuery" default="main" basedir=".">
+<project name="jQuery" default="main" basedir=".">
<property name="FLEXJS_HOME" location="../../.."/>
<property file="${FLEXJS_HOME}/env.properties"/>
@@ -28,35 +28,23 @@
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
<property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
- <property name="gjslint" value="gjslint" />
- <property name="jshint" value="jshint" />
- <condition property="no.lint" value="true">
- <os family="windows"/>
- </condition>
-
- <target name="main" depends="clean,compile,test" description="Clean build of JQuery.swc">
+
+ <target name="main" depends="clean,compile,test" description="Clean build of jQuery.swc">
</target>
-
- <target name="all" depends="main,compile-asjs,lint-js,test-js" description="Full build of JQuery.swc">
+
+ <target name="all" depends="clean,compile-asjs,compile-extern-swc,copy-js,compile,test" description="Full build of jQuery.swc">
</target>
-
+
<target name="test" unless="is.jenkins">
<!-- no tests yet
<ant dir="as/tests" />
- <ant dir="asjs/tests" />
- -->
- </target>
-
- <target name="test-js" unless="is.jenkins">
- <!-- no tests yet
- <ant dir="js/tests" />
-->
</target>
<target name="clean">
<delete failonerror="false">
<fileset dir="${FLEXJS_HOME}/frameworks/libs">
- <include name="JQuery.swc"/>
+ <include name="jQuery.swc"/>
</fileset>
</delete>
<delete failonerror="false">
@@ -71,9 +59,11 @@
</path>
<target name="compile" description="Compiles .as files into .swc">
- <echo message="Compiling libs/JQuery.swc"/>
+ <echo message="Compiling libs/jQuery.swc"/>
<echo message="FLEX_HOME: ${FLEX_HOME}"/>
<echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <!-- make JS output folder now so include-file doesn't error -->
+ <mkdir dir="${basedir}/js/out" />
<!-- Load the <compc> task. We can't do this at the <project> level -->
<!-- because targets that run before flexTasks.jar gets built would fail. -->
@@ -82,7 +72,7 @@
Link in the classes (and their dependencies) for the MXML tags
listed in this project's manifest.xml.
Also link the additional classes (and their dependencies)
- listed in JQueryClasses.as,
+ listed in jQueryClasses.as,
because these aren't referenced by the manifest classes.
Keep the standard metadata when compiling.
Include the appropriate CSS files and assets in the SWC.
@@ -91,51 +81,84 @@
into the file bundles.properties in this directory.
-->
<compc fork="true"
- output="${FLEXJS_HOME}/frameworks/libs/JQuery.swc">
+ output="${FLEXJS_HOME}/frameworks/libs/jQuery.swc">
<jvmarg line="${compc.jvm.args}"/>
<load-config filename="compile-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-define=COMPILE::AS3,true" />
+ <arg value="-define=COMPILE::JS,false" />
</compc>
</target>
- <target name="compile-asjs" >
- <!-- nothing to cross-compile yet -->
+ <target name="compile-asjs">
+ <echo message="Cross-compiling jQuery"/>
+ <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
+ <java jar="${FALCONJX_HOME}/lib/compc.jar" fork="true" >
+ <jvmarg value="-Xmx384m" />
+ <jvmarg value="-Dsun.io.useCanonCaches=false" />
+ <jvmarg value="-Dflexcompiler=${FALCONJX_HOME}/../compiler" />
+ <jvmarg value="-Dflexlib=${FLEXJS_HOME}/frameworks" />
+ <arg value="+flexlib=${FLEX_HOME}/frameworks" />
+ <arg value="-js-output-type=FLEXJS" />
+ <arg value="-keep-asdoc" /><!-- allows compiler to see @flexjsignorecoercion annotations -->
+ <arg value="-output=${basedir}/js/out" />
+ <arg value="-load-config=${basedir}/compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/jquery/out/bin/jquery-1.9.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </java>
+ </target>
+
+ <target name="compile-extern-swc" description="Compiles .as files into .swc used for cross-compiling other projects">
+ <echo message="Compiling externs/jQuery.swc"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <!-- make JS output folder now so include-file doesn't error -->
+ <mkdir dir="${FLEXJS_HOME}/frameworks/externs"/>
+
+ <!-- Load the <compc> task. We can't do this at the <project> level -->
+ <!-- because targets that run before flexTasks.jar gets built would fail. -->
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+ <!--
+ Link in the classes (and their dependencies) for the MXML tags
+ listed in this project's manifest.xml.
+ Also link the additional classes (and their dependencies)
+ listed in CoreClasses.as,
+ because these aren't referenced by the manifest classes.
+ Keep the standard metadata when compiling.
+ Include the appropriate CSS files and assets in the SWC.
+ Don't include any resources in the SWC.
+ Write a bundle list of referenced resource bundles
+ into the file bundles.properties in this directory.
+ -->
+ <compc fork="true"
+ output="${FLEXJS_HOME}/frameworks/externs/jQuery.swc">
+ <jvmarg line="${compc.jvm.args}"/>
+ <load-config filename="compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/jquery/out/bin/jquery-1.9.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </compc>
</target>
- <target name="lint-js" depends="gjslint, jshint, copy-js" />
- <target name="copy-js" >
+ <target name="copy-js">
<copy todir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
- <fileset dir="${basedir}/js/src">
- <include name="**/**" />
+ <fileset dir="${basedir}/js/out">
+ <include name="**/**"/>
</fileset>
</copy>
</target>
- <target name="gjslint" unless="no.lint">
- <echo>running gjslint</echo>
- <exec executable="${gjslint}" dir="${basedir}" failonerror="true">
- <arg value="--strict" />
- <arg value="--disable" />
- <arg value="006,100,214,300" />
- <!-- 006: wrong indentation -->
- <!-- 100: cannot have non-primitive value -->
- <!-- 214: @fileoverview tag missing description -->
- <!-- 300: missing newline at end of file -->
- <arg value="--max_line_length" />
- <arg value="120" />
- <arg value="-r" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
- <target name="jshint" unless="no.lint">
- <echo>running jshint</echo>
- <exec executable="${jshint}" dir="${basedir}" failonerror="true">
- <arg value="--config" />
- <arg value="${FLEX_HOME}/frameworks/js/jshint.properties" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/426fa559/frameworks/projects/JQuery/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/compile-asjs-config.xml b/frameworks/projects/JQuery/compile-asjs-config.xml
new file mode 100644
index 0000000..3f88534
--- /dev/null
+++ b/frameworks/projects/JQuery/compile-asjs-config.xml
@@ -0,0 +1,87 @@
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<flex-config>
+
+ <compiler>
+ <accessible>false</accessible>
+
+ <external-library-path>
+ <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
+ </external-library-path>
+
+ <mxml>
+ <children-as-data>true</children-as-data>
+ </mxml>
+ <binding-value-change-event>org.apache.flex.events.ValueChangeEvent</binding-value-change-event>
+ <binding-value-change-event-kind>org.apache.flex.events.ValueChangeEvent</binding-value-change-event-kind>
+ <binding-value-change-event-type>valueChange</binding-value-change-event-type>
+
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+
+ <locale/>
+
+ <library-path>
+ <!-- asjscompc won't 'link' these classes in, but will list their requires
+ if these swcs are on the external-library-path then their requires
+ will not be listed -->
+ <path-element>../../externs/Binding.swc</path-element>
+ <path-element>../../externs/Core.swc</path-element>
+ <path-element>../../externs/Graphics.swc</path-element>
+ <path-element>../../externs/Collections.swc</path-element>
+ <path-element>../../externs/HTML.swc</path-element>
+ </library-path>
+
+ <namespaces>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/jquery</uri>
+ <manifest>jquery-manifest.xml</manifest>
+ </namespace>
+ </namespaces>
+
+ <source-path>
+ <path-element>as/src</path-element>
+ </source-path>
+
+ <warn-no-constructor>false</warn-no-constructor>
+ </compiler>
+
+ <include-file>
+ </include-file>
+
+ <include-sources>
+ </include-sources>
+
+ <include-classes>
+ <class>HTMLClasses</class>
+ </include-classes>
+
+ <include-namespaces>
+ <uri>library://ns.apache.org/flexjs/jquery</uri>
+ </include-namespaces>
+
+ <target-player>${playerglobal.version}</target-player>
+
+
+</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/426fa559/frameworks/projects/JQuery/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/compile-config.xml b/frameworks/projects/JQuery/compile-config.xml
index 59f2bfb..7c3e1e7 100644
--- a/frameworks/projects/JQuery/compile-config.xml
+++ b/frameworks/projects/JQuery/compile-config.xml
@@ -65,8 +65,8 @@
<path>as/defaults.css</path>
</include-file>
<include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
+ <name>js/out/*</name>
+ <path>js/out/*</path>
</include-file>
<include-classes>
[25/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - add
option for native swc
Posted by ah...@apache.org.
add option for native swc
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3cfd3659
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3cfd3659
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3cfd3659
Branch: refs/heads/develop
Commit: 3cfd3659bd2d02a1669dc271ab629375e5bf865a
Parents: 61ee45f
Author: Alex Harui <ah...@apache.org>
Authored: Thu Dec 10 17:05:57 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Dec 10 17:05:57 2015 -0800
----------------------------------------------------------------------
examples/build_example.xml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3cfd3659/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/examples/build_example.xml b/examples/build_example.xml
index 81a263e..0dae399 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -153,6 +153,7 @@
<echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
<echo message="GOOG_HOME: ${GOOG_HOME}"/>
<property name="theme_arg" value="-define=CONFIG::theme,false" />
+ <property name="extlib_arg" value="-define=CONFIG::extlib,false" />
<java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
fork="true">
@@ -167,12 +168,11 @@
<arg value="-compiler.binding-value-change-event-type=valueChange" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="${extlib_arg}" />
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/jquery_externals.js" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/createjs_externals.js" />
- <arg value="${basedir}/src/${example}.mxml" />
+ <arg value="${basedir}/src/${example}.mxml" />
</java>
<fail>
<condition>
@@ -192,6 +192,7 @@
<echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
<echo message="GOOG_HOME: ${GOOG_HOME}"/>
<property name="theme_arg" value="-define=CONFIG::theme,false" />
+ <property name="extlib_arg" value="-define=CONFIG::extlib,false" />
<java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
fork="true">
@@ -207,11 +208,10 @@
<arg value="-compiler.binding-value-change-event-type=valueChange" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="${extlib_arg}" />
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/jquery_externals.js" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/createjs_externals.js" />
<arg value="${basedir}/src/${example}.mxml" />
</java>
<fail>
@@ -232,6 +232,7 @@
<echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
<echo message="GOOG_HOME: ${GOOG_HOME}"/>
<property name="theme_arg" value="-define=CONFIG::theme,false" />
+ <property name="extlib_arg" value="-define=CONFIG::extlib,false" />
<java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
fork="true">
@@ -248,12 +249,11 @@
<arg value="-compiler.binding-value-change-event-type=valueChange" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ <arg value="${extlib_arg}" />
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/jquery_externals.js" />
- <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs/createjs_externals.js" />
- <arg value="${basedir}/src/${example}.as" />
+ <arg value="${basedir}/src/${example}.as" />
</java>
<fail>
<condition>
[16/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - Flat
backport
Posted by ah...@apache.org.
Flat backport
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9634f9af
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9634f9af
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9634f9af
Branch: refs/heads/develop
Commit: 9634f9af6b8888db1b9bcb6c212162f3c0857988
Parents: 4b7f2c0
Author: Alex Harui <ah...@apache.org>
Authored: Mon Dec 7 21:56:21 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 7 21:56:35 2015 -0800
----------------------------------------------------------------------
frameworks/projects/Flat/as/src/FlatClasses.as | 15 +-
.../as/src/org/apache/flex/flat/CheckBox.as | 116 ++++++-
.../as/src/org/apache/flex/flat/DropDownList.as | 324 ++++++++++++++++++-
.../as/src/org/apache/flex/flat/RadioButton.as | 200 +++++++++++-
frameworks/projects/Flat/build.xml | 84 ++---
.../projects/Flat/compile-asjs-config.xml | 80 +++++
frameworks/projects/Flat/compile-config.xml | 8 +-
frameworks/projects/Flat/flat-as-manifest.xml | 26 ++
frameworks/projects/Flat/flat-manifest.xml | 6 -
.../html/supportClasses/DataItemRenderer.as | 2 +-
10 files changed, 807 insertions(+), 54 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/Flat/as/src/FlatClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/as/src/FlatClasses.as b/frameworks/projects/Flat/as/src/FlatClasses.as
index 161c114..29173ef 100644
--- a/frameworks/projects/Flat/as/src/FlatClasses.as
+++ b/frameworks/projects/Flat/as/src/FlatClasses.as
@@ -27,10 +27,17 @@ package
*/
internal class FlatClasses
{
-
- import org.apache.flex.flat.beads.CSSScrollBarView; CSSScrollBarView;
- import org.apache.flex.flat.beads.CSSScrollBarButtonView; CSSScrollBarButtonView;
- import org.apache.flex.flat.supportClasses.DropDownListStringItemRenderer; DropDownListStringItemRenderer;
+ COMPILE::AS3
+ {
+ import org.apache.flex.flat.beads.CSSScrollBarView; CSSScrollBarView;
+ import org.apache.flex.flat.beads.CSSScrollBarButtonView; CSSScrollBarButtonView;
+ import org.apache.flex.flat.supportClasses.DropDownListStringItemRenderer; DropDownListStringItemRenderer;
+ import org.apache.flex.flat.supportClasses.DropDownListList; DropDownListList;
+ import org.apache.flex.flat.beads.DropDownListView; DropDownListView;
+ import org.apache.flex.flat.beads.CheckboxCSSContentAndTextToggleButtonView; CheckboxCSSContentAndTextToggleButtonView;
+ import org.apache.flex.flat.beads.RadioCSSContentAndTextToggleButtonView; RadioCSSContentAndTextToggleButtonView;
+
+ }
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/Flat/as/src/org/apache/flex/flat/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/as/src/org/apache/flex/flat/CheckBox.as b/frameworks/projects/Flat/as/src/org/apache/flex/flat/CheckBox.as
index b91a2c9..466e9b2 100644
--- a/frameworks/projects/Flat/as/src/org/apache/flex/flat/CheckBox.as
+++ b/frameworks/projects/Flat/as/src/org/apache/flex/flat/CheckBox.as
@@ -18,7 +18,16 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.flat
{
- import org.apache.flex.html.CheckBox;
+ COMPILE::AS3
+ {
+ import org.apache.flex.html.CheckBox;
+ }
+ COMPILE::JS
+ {
+ import org.apache.flex.core.UIBase;
+ import org.apache.flex.core.WrappedHTMLElement;
+ import org.apache.flex.events.Event;
+ }
/**
* The CheckBox class provides a FlatUI-like appearance for
@@ -29,6 +38,7 @@ package org.apache.flex.flat
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
+ COMPILE::AS3
public class CheckBox extends org.apache.flex.html.CheckBox
{
/**
@@ -44,4 +54,108 @@ package org.apache.flex.flat
super();
}
}
+
+ COMPILE::JS
+ public class CheckBox extends UIBase
+ {
+
+ private var input:HTMLInputElement;
+ private var checkbox:HTMLSpanElement;
+ private var label:HTMLLabelElement;
+ private var textNode:Text;
+
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+ override protected function createElement():WrappedHTMLElement
+ {
+ label = document.createElement('label') as HTMLLabelElement;
+ element = label as WrappedHTMLElement;
+
+ input = document.createElement('input') as HTMLInputElement;
+ input.type = 'checkbox';
+ input.className = 'checkbox-input';
+ input.addEventListener('change', selectionChangeHandler, false);
+ label.appendChild(input);
+
+ checkbox = document.createElement('span') as HTMLSpanElement;
+ checkbox.className = 'checkbox-icon';
+ checkbox.addEventListener('mouseover', mouseOverHandler, false);
+ checkbox.addEventListener('mouseout', mouseOutHandler, false);
+ label.appendChild(checkbox);
+
+ textNode = document.createTextNode('') as Text;
+ label.appendChild(textNode);
+ label.className = 'CheckBox';
+ typeNames = 'CheckBox';
+
+ positioner = element;
+ positioner.style.position = 'relative';
+ (input as WrappedHTMLElement).flexjs_wrapper = this;
+ (checkbox as WrappedHTMLElement).flexjs_wrapper = this;
+ element.flexjs_wrapper = this;
+
+ return element;
+ };
+
+
+ /**
+ */
+ private function mouseOverHandler(event:Event):void
+ {
+ checkbox.className = 'checkbox-icon-hover';
+ }
+
+ /**
+ */
+ private function mouseOutHandler(event:Event):void
+ {
+ if (input.checked)
+ checkbox.className = 'checkbox-icon-checked';
+ else
+ checkbox.className = 'checkbox-icon';
+ }
+
+
+ /**
+ */
+ private function selectionChangeHandler(event:Event):void
+ {
+ if (input.checked)
+ checkbox.className = 'checkbox-icon-checked';
+ else
+ checkbox.className = 'checkbox-icon';
+ }
+
+
+ public function get text():String
+ {
+ return textNode.nodeValue;
+ }
+
+ public function set text(value:String):void
+ {
+ textNode.nodeValue = value;
+ }
+
+ public function get selected():Boolean
+ {
+ return input.checked;
+ }
+
+ public function set selected(value:Boolean):void
+ {
+ input.checked = value;
+ if (value)
+ checkbox.className = 'checkbox-icon-checked';
+ else
+ checkbox.className = 'checkbox-icon';
+ }
+
+ }
+
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/Flat/as/src/org/apache/flex/flat/DropDownList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/as/src/org/apache/flex/flat/DropDownList.as b/frameworks/projects/Flat/as/src/org/apache/flex/flat/DropDownList.as
index 30a22a5..265f2c7 100644
--- a/frameworks/projects/Flat/as/src/org/apache/flex/flat/DropDownList.as
+++ b/frameworks/projects/Flat/as/src/org/apache/flex/flat/DropDownList.as
@@ -18,7 +18,23 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.flat
{
- import org.apache.flex.html.DropDownList;
+ import org.apache.flex.core.UIBase;
+
+ COMPILE::AS3
+ {
+ import org.apache.flex.html.DropDownList;
+ }
+ COMPILE::JS
+ {
+ import goog.events;
+ import org.apache.flex.core.ListBase;
+ import org.apache.flex.core.WrappedHTMLElement;
+ import org.apache.flex.core.ISelectionModel;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.html.beads.models.ArraySelectionModel;
+ import org.apache.flex.utils.CSSUtils;
+ }
+
/**
* The DropDownList class provides a FlatUI-like appearance for
* a DropDownList.
@@ -28,6 +44,7 @@ package org.apache.flex.flat
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
+ COMPILE::AS3
public class DropDownList extends org.apache.flex.html.DropDownList
{
/**
@@ -43,4 +60,309 @@ package org.apache.flex.flat
super();
}
}
+
+ COMPILE::JS
+ public class DropDownList extends ListBase
+ {
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DropDownList()
+ {
+ super();
+ model = new ArraySelectionModel();
+ }
+
+ private var label:HTMLSpanElement;
+ private var button:HTMLButtonElement;
+ private var caret:HTMLSpanElement;
+ private var menu:HTMLUListElement;
+
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLButtonElement
+ * @flexjsignorecoercion HTMLDivElement
+ * @flexjsignorecoercion HTMLSpanElement
+ */
+ override protected function createElement():WrappedHTMLElement
+ {
+ var button:HTMLButtonElement;
+ var outer:HTMLDivElement;
+ var caret:HTMLSpanElement;
+
+ this.element = document.createElement('div') as WrappedHTMLElement;
+ outer = this.element as HTMLDivElement;
+
+ this.button = button = document.createElement('button') as HTMLButtonElement;
+ button.className = 'dropdown-toggle-open-btn';
+ if (this.className)
+ button.className += ' ' + this.className;
+ goog.events.listen(button, 'click', buttonClicked);
+ outer.appendChild(button);
+
+ this.label = document.createElement('span') as HTMLSpanElement;
+ this.label.className = 'dropdown-label';
+ button.appendChild(this.label);
+ this.caret = caret = document.createElement('span') as HTMLSpanElement;
+ button.appendChild(caret);
+ caret.className = 'dropdown-caret';
+
+ this.positioner = this.element;
+ this.positioner.style.position = 'relative';
+
+ // add a click handler so that a click outside of the combo box can
+ // dismiss the pop-up should it be visible.
+ goog.events.listen(document, 'click', dismissPopup);
+
+ (button as WrappedHTMLElement).flexjs_wrapper = this;
+ this.element.flexjs_wrapper = this;
+ (this.label as WrappedHTMLElement).flexjs_wrapper = this;
+ (caret as WrappedHTMLElement).flexjs_wrapper = this;
+
+ return this.element;
+ }
+
+
+ /**
+ * @param event The event.
+ * @flexjsignorecoercion org.apache.flex.core.UIBase
+ */
+ private function selectChanged(event:Event):void
+ {
+ var select:UIBase;
+
+ select = event.target as UIBase;
+
+ this.selectedIndex = parseInt(select.id, 10);
+
+ this.menu.parentNode.removeChild(this.menu);
+ this.menu = null;
+
+ this.dispatchEvent('change');
+ }
+
+
+ /**
+ * @param event The event.
+ */
+ private function dismissPopup(event:Event = null):void
+ {
+ // remove the popup if it already exists
+ if (this.menu)
+ {
+ this.menu.parentNode.removeChild(this.menu);
+ this.menu = null;
+ }
+ }
+
+
+ /**
+ * @param event The event.
+ * @flexjsignorecoercion Array
+ * @flexjsignorecoercion HTMLButtonElement
+ * @flexjsignorecoercion HTMLUListElement
+ * @flexjsignorecoercion HTMLLIElement
+ * @flexjsignorecoercion HTMLAnchorElement
+ */
+ private function buttonClicked(event:Event):void
+ {
+ var dp:Array;
+ var i:int;
+ var button:HTMLButtonElement;
+ var left:Number;
+ var n:int;
+ var opt:HTMLLIElement;
+ var opts:Array;
+ var pn:HTMLDivElement;
+ var select:HTMLUListElement;
+ var top:Number;
+ var width:Number;
+
+ event.stopPropagation();
+
+ if (this.menu)
+ {
+ this.dismissPopup();
+ return;
+ }
+
+ button = this.element.childNodes.item(0) as HTMLButtonElement;
+
+ pn = this.element as HTMLDivElement;
+ top = pn.offsetTop + button.offsetHeight;
+ left = pn.offsetLeft;
+ width = pn.offsetWidth;
+
+ this.menu = select = document.createElement('ul') as HTMLUListElement;
+ var el:Element = element as Element;
+ var cv:Object = getComputedStyle(el);
+ select.style.width = cv.width;
+ goog.events.listen(select, 'click', selectChanged);
+ select.className = 'dropdown-menu';
+
+ var lf:String = this.labelField;
+ dp = dataProvider as Array;
+ n = dp.length;
+ for (i = 0; i < n; i++) {
+ opt = document.createElement('li') as HTMLLIElement;
+ opt.style.backgroundColor = 'transparent';
+ var ir:HTMLAnchorElement = document.createElement('a') as HTMLAnchorElement;
+ if (lf)
+ ir.innerHTML = dp[i][lf];
+ else
+ ir.innerHTML = dp[i];
+ ir.id = i.toString();
+ if (i == this.selectedIndex)
+ ir.className = 'dropdown-menu-item-renderer-selected';
+ else
+ ir.className = 'dropdown-menu-item-renderer';
+ opt.appendChild(ir);
+ select.appendChild(opt);
+ }
+
+ this.element.appendChild(select);
+ };
+
+
+ /**
+ */
+ override public function addedToParent():void
+ {
+ super.addedToParent();
+ var el:Element = button as Element;
+ var cv:Object = getComputedStyle(el);
+ var s:String = cv.paddingLeft;
+ var pl:Number = CSSUtils.toNumber(s);
+ s = cv.paddingRight;
+ var pr:Number = CSSUtils.toNumber(s);
+ s = cv.borderLeftWidth;
+ var bl:Number = CSSUtils.toNumber(s);
+ s = cv.borderRightWidth;
+ var br:Number = CSSUtils.toNumber(s);
+ var caretWidth:Number = this.caret.offsetWidth;
+ // 10 seems to factor spacing between span and extra FF padding?
+ var fluff:Number = pl + pr + bl + br + caretWidth + 1 + 10;
+ var labelWidth:Number = this.width - fluff;
+ var strWidth:String = labelWidth.toString();
+ strWidth += 'px';
+ this.label.style.width = strWidth;
+ }
+
+ override public function set className(value:String):void
+ {
+ super.className = value;
+ if (this.button) {
+ this.button.className = this.typeNames ?
+ value + ' ' + 'dropdown-toggle-open-btn' + ' ' + this.typeNames :
+ value + ' ' + 'dropdown-toggle-open-btn';
+ }
+ }
+
+ /**
+ * The data set to be displayed. Usually a simple
+ * array of strings. A more complex component
+ * would allow more complex data and data sets.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get dataProvider():Object
+ {
+ return ISelectionModel(model).dataProvider;
+ }
+
+ /**
+ * @private
+ * @flexjsignorecoercion HTMLOptionElement
+ * @flexjsignorecoercion HTMLSelectElement
+ */
+ public function set dataProvider(value:Object):void
+ {
+ ISelectionModel(model).dataProvider = value;
+ }
+
+ /**
+ * The name of field within the data used for display. Each item of the
+ * data should have a property with this name.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get labelField():String
+ {
+ return ISelectionModel(model).labelField;
+ }
+ public function set labelField(value:String):void
+ {
+ ISelectionModel(model).labelField = value;
+ }
+
+ [Bindable("change")]
+ /**
+ * @copy org.apache.flex.core.ISelectionModel#selectedIndex
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get selectedIndex():int
+ {
+ return ISelectionModel(model).selectedIndex;
+ }
+
+ /**
+ * @private
+ * @flexjsignorecoercion HTMLSelectElement
+ * @flexjsignorecoercion String
+ */
+ public function set selectedIndex(value:int):void
+ {
+ ISelectionModel(model).selectedIndex = value;
+ var lf:String = this.labelField;
+ if (lf)
+ this.label.innerHTML = this.selectedItem[lf] as String;
+ else
+ this.label.innerHTML = this.selectedItem as String;
+ }
+
+
+ [Bindable("change")]
+ /**
+ * @copy org.apache.flex.core.ISelectionModel#selectedItem
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get selectedItem():Object
+ {
+ return ISelectionModel(model).selectedItem;
+ }
+
+ /**
+ * @private
+ * @flexjsignorecoercion HTMLSelectElement
+ * @flexjsignorecoercion String
+ */
+ public function set selectedItem(value:Object):void
+ {
+ ISelectionModel(model).selectedItem = value;
+ var lf:String = this.labelField;
+ if (lf)
+ this.label.innerHTML = this.selectedItem[lf] as String;
+ else
+ this.label.innerHTML = this.selectedItem as String;
+ }
+ }
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/Flat/as/src/org/apache/flex/flat/RadioButton.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/as/src/org/apache/flex/flat/RadioButton.as b/frameworks/projects/Flat/as/src/org/apache/flex/flat/RadioButton.as
index ca02613..1294a25 100644
--- a/frameworks/projects/Flat/as/src/org/apache/flex/flat/RadioButton.as
+++ b/frameworks/projects/Flat/as/src/org/apache/flex/flat/RadioButton.as
@@ -18,7 +18,15 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.flat
{
- import org.apache.flex.html.RadioButton;
+ COMPILE::AS3
+ {
+ import org.apache.flex.html.RadioButton;
+ }
+ COMPILE::JS
+ {
+ import org.apache.flex.core.UIBase;
+ import org.apache.flex.core.WrappedHTMLElement;
+ }
/**
* The RadioButton class provides a FlatUI-like appearance for
@@ -29,6 +37,7 @@ package org.apache.flex.flat
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
+ COMPILE::AS3
public class RadioButton extends org.apache.flex.html.RadioButton
{
/**
@@ -44,4 +53,193 @@ package org.apache.flex.flat
super();
}
}
+
+ COMPILE::JS
+ public class RadioButton extends UIBase
+ {
+ /**
+ * Provides unique name
+ */
+ public static var radioCounter:int = 0;
+
+ private var input:HTMLInputElement;
+ private var radio:HTMLSpanElement;
+ private var textNode:Text;
+ private var labelFor:HTMLLabelElement;
+
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion HTMLLabelElement
+ */
+ override protected function createElement():WrappedHTMLElement
+ {
+ // hide this eleement
+ input = document.createElement('input') as HTMLInputElement;
+ input.type = 'radio';
+ input.className = 'radio-input';
+ input.id = '_radio_' + radioCounter++;
+ input.addEventListener('change', selectionChangeHandler, false);
+
+ radio = document.createElement('span') as HTMLSpanElement;
+ radio.className = 'radio-icon';
+ radio.addEventListener('mouseover', mouseOverHandler, false);
+ radio.addEventListener('mouseout', mouseOutHandler, false);
+
+ textNode = document.createTextNode('radio button') as Text;
+
+ labelFor = document.createElement('label') as HTMLLabelElement;
+ labelFor.appendChild(input);
+ labelFor.appendChild(radio);
+ labelFor.appendChild(textNode);
+ labelFor.style.position = 'relative';
+
+ element = labelFor as WrappedHTMLElement;
+ element.className = 'RadioButton';
+ typeNames = 'RadioButton';
+
+ positioner = element;
+ positioner.style.position = 'relative';
+ (input as WrappedHTMLElement).flexjs_wrapper = this;
+ (radio as WrappedHTMLElement).flexjs_wrapper = this;
+ element.flexjs_wrapper = this;
+ (textNode as WrappedHTMLElement).flexjs_wrapper = this;
+
+ return element;
+ }
+
+
+ /**
+ * @param e The event object.
+ */
+ private function mouseOverHandler(e:Event):void
+ {
+ radio.className = 'radio-icon-hover';
+ }
+
+
+ /**
+ * @param e The event object.
+ */
+ private function mouseOutHandler(e:Event):void
+ {
+ if (input.checked)
+ radio.className = 'radio-icon-checked';
+ else
+ radio.className = 'radio-icon';
+ }
+
+
+ /**
+ * @param e The event object.
+ */
+ private function selectionChangeHandler(e:Event):void
+ {
+ // this should reset the icons in the non-selected radio
+ selectedValue = value;
+ }
+
+
+ override public function set id(value:String):void
+ {
+ super.id = value;
+ labelFor.id = value;
+ input.id = value;
+ }
+
+ /**
+ * @flexjsignorecoercion String
+ */
+ public function get groupName():String
+ {
+ return input.name as String;
+ }
+
+ public function set groupName(value:String):void
+ {
+ input.name = value;
+ }
+
+ public function get text():String
+ {
+ return textNode.nodeValue;
+ }
+
+ public function set text(value:String):void
+ {
+ textNode.nodeValue = value;
+ }
+
+ public function get selected():Boolean
+ {
+ return input.checked;
+ }
+
+ public function set selected(value:Boolean):void
+ {
+ input.checked = value;
+ if (input.checked)
+ radio.className = 'radio-icon-checked';
+ else
+ radio.className = 'radio-icon';
+ }
+
+ public function get value():String
+ {
+ return input.value;
+ }
+
+ public function set value(value:String):void
+ {
+ input.value = value;
+ }
+
+ /**
+ * @flexjsignorecoercion Array
+ * @flexjsignorecoercion String
+ */
+ public function get selectedValue():Object
+ {
+ var buttons:Array;
+ var groupName:String;
+ var i:int;
+ var n:int;
+
+ groupName = input.name as String;
+ buttons = document.getElementsByName(groupName) as Array;
+ n = buttons.length;
+
+ for (i = 0; i < n; i++) {
+ if (buttons[i].checked) {
+ return buttons[i].value;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @flexjsignorecoercion Array
+ * @flexjsignorecoercion String
+ */
+ public function set selectedValue(value:Object):void
+ {
+ var buttons:Array;
+ var groupName:String;
+ var i:int;
+ var n:int;
+
+ groupName = input.name as String;
+ buttons = document.getElementsByName(groupName) as Array;
+ n = buttons.length;
+ for (i = 0; i < n; i++) {
+ if (buttons[i].value === value) {
+ buttons[i].checked = true;
+ buttons[i].flexjs_wrapper.selected = true;
+ }
+ else
+ buttons[i].flexjs_wrapper.selected = false;
+ }
+ }
+ }
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/Flat/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/build.xml b/frameworks/projects/Flat/build.xml
index 54ceacd..04ad536 100644
--- a/frameworks/projects/Flat/build.xml
+++ b/frameworks/projects/Flat/build.xml
@@ -37,7 +37,7 @@
<target name="main" depends="clean,compile,test" description="Clean build of Flat.swc">
</target>
- <target name="all" depends="main,compile-asjs,lint-js,test-js" description="Full build of Flat.swc">
+ <target name="all" depends="clean,compile-asjs,compile-extern-swc,compile,copy-js,test" description="Full build of Flat.swc">
</target>
<target name="test" unless="is.jenkins">
@@ -98,11 +98,13 @@
<load-config filename="compile-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-define=COMPILE::AS3,true" />
+ <arg value="-define=COMPILE::JS,false" />
</compc>
</target>
-
- <target name="compile-asjs" >
- <echo message="Cross-compiling Flat/asjs"/>
+
+ <target name="compile-asjs">
+ <echo message="Cross-compiling Flat"/>
<echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
<java jar="${FALCONJX_HOME}/lib/compc.jar" fork="true" >
<jvmarg value="-Xmx384m" />
@@ -117,45 +119,55 @@
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
<arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
</java>
</target>
-
- <target name="lint-js" depends="gjslint, jshint, copy-js" />
+
+ <target name="compile-extern-swc" description="Compiles .as files into .swc used for cross-compiling other projects">
+ <echo message="Compiling externs/Flat.swc"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCON_HOME: ${FALCON_HOME}"/>
+ <!-- make JS output folder now so include-file doesn't error -->
+ <mkdir dir="${FLEXJS_HOME}/frameworks/externs"/>
+
+ <!-- Load the <compc> task. We can't do this at the <project> level -->
+ <!-- because targets that run before flexTasks.jar gets built would fail. -->
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+ <!--
+ Link in the classes (and their dependencies) for the MXML tags
+ listed in this project's manifest.xml.
+ Also link the additional classes (and their dependencies)
+ listed in FlatClasses.as,
+ because these aren't referenced by the manifest classes.
+ Keep the standard metadata when compiling.
+ Include the appropriate CSS files and assets in the SWC.
+ Don't include any resources in the SWC.
+ Write a bundle list of referenced resource bundles
+ into the file bundles.properties in this directory.
+ -->
+ <compc fork="true"
+ output="${FLEXJS_HOME}/frameworks/externs/Flat.swc">
+ <jvmarg line="${compc.jvm.args}"/>
+ <load-config filename="compile-asjs-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
+ <arg value="-external-library-path+=${FALCONJX_HOME}/../externs/js/out/bin/js.swc" />
+ <!-- this is not on external-library path otherwise goog.requires are not generated -->
+ <arg value="-library-path+=${FALCONJX_HOME}/../externs/GCL/out/bin/GCL.swc" />
+ <arg value="-define=COMPILE::AS3,false" />
+ <arg value="-define=COMPILE::JS,true" />
+ </compc>
+ </target>
+
<target name="copy-js" >
<copy todir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
- <fileset dir="${basedir}/js/src">
- <include name="**/**" />
- </fileset>
<fileset dir="${basedir}/js/out">
<include name="**/**" />
</fileset>
</copy>
</target>
-
- <target name="gjslint" unless="no.lint">
- <echo>running gjslint</echo>
- <exec executable="${gjslint}" dir="${basedir}" failonerror="true">
- <arg value="--strict" />
- <arg value="--disable" />
- <arg value="006,100,214,300" />
- <!-- 006: wrong indentation -->
- <!-- 100: cannot have non-primitive value -->
- <!-- 214: @fileoverview tag missing description -->
- <!-- 300: missing newline at end of file -->
- <arg value="--max_line_length" />
- <arg value="120" />
- <arg value="-r" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
- <target name="jshint" unless="no.lint">
- <echo>running jshint</echo>
- <exec executable="${jshint}" dir="${basedir}" failonerror="true">
- <arg value="--config" />
- <arg value="${FLEX_HOME}/frameworks/js/jshint.properties" />
- <arg value="${basedir}/js/src" />
- </exec>
- </target>
-
</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/Flat/compile-asjs-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/compile-asjs-config.xml b/frameworks/projects/Flat/compile-asjs-config.xml
new file mode 100644
index 0000000..a755d5c
--- /dev/null
+++ b/frameworks/projects/Flat/compile-asjs-config.xml
@@ -0,0 +1,80 @@
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<flex-config>
+
+ <compiler>
+ <accessible>false</accessible>
+
+ <external-library-path>
+ </external-library-path>
+
+ <mxml>
+ <children-as-data>true</children-as-data>
+ </mxml>
+ <binding-value-change-event>org.apache.flex.events.ValueChangeEvent</binding-value-change-event>
+ <binding-value-change-event-kind>org.apache.flex.events.ValueChangeEvent</binding-value-change-event-kind>
+ <binding-value-change-event-type>valueChange</binding-value-change-event-type>
+
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+
+ <locale/>
+
+ <library-path>
+ <!-- asjscompc won't 'link' these classes in, but will list their requires
+ if these swcs are on the external-library-path then their requires
+ will not be listed -->
+ <path-element>../../externs/Core.swc</path-element>
+ <path-element>../../externs/HTML.swc</path-element>
+ </library-path>
+
+ <namespaces>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/flat</uri>
+ <manifest>flat-manifest.xml</manifest>
+ </namespace>
+ </namespaces>
+
+ <source-path>
+ <path-element>as/src</path-element>
+ </source-path>
+
+ <warn-no-constructor>false</warn-no-constructor>
+ </compiler>
+
+ <include-file>
+ </include-file>
+
+ <include-classes>
+ <class>FlatClasses</class>
+ </include-classes>
+
+ <include-namespaces>
+ <uri>library://ns.apache.org/flexjs/flat</uri>
+ </include-namespaces>
+
+ <target-player>${playerglobal.version}</target-player>
+
+
+</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/Flat/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/compile-config.xml b/frameworks/projects/Flat/compile-config.xml
index b8a2f60..44c7c9f 100644
--- a/frameworks/projects/Flat/compile-config.xml
+++ b/frameworks/projects/Flat/compile-config.xml
@@ -53,6 +53,10 @@
<uri>library://ns.apache.org/flexjs/flat</uri>
<manifest>flat-manifest.xml</manifest>
</namespace>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/flat</uri>
+ <manifest>flat-as-manifest.xml</manifest>
+ </namespace>
</namespaces>
<source-path>
@@ -71,10 +75,6 @@
<name>js/out/*</name>
<path>js/out/*</path>
</include-file>
- <include-file>
- <name>js/src/*</name>
- <path>js/src/*</path>
- </include-file>
<include-classes>
<class>FlatClasses</class>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/Flat/flat-as-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/flat-as-manifest.xml b/frameworks/projects/Flat/flat-as-manifest.xml
new file mode 100644
index 0000000..6f12083
--- /dev/null
+++ b/frameworks/projects/Flat/flat-as-manifest.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+
+
+<componentPackage>
+
+ <component id="DropDownListList" class="org.apache.flex.flat.supportClasses.DropDownListList" />
+
+</componentPackage>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/Flat/flat-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/flat-manifest.xml b/frameworks/projects/Flat/flat-manifest.xml
index ac05bf7..77f5ffc 100644
--- a/frameworks/projects/Flat/flat-manifest.xml
+++ b/frameworks/projects/Flat/flat-manifest.xml
@@ -25,7 +25,6 @@
<component id="ButtonBar" class="org.apache.flex.html.ButtonBar" lookupOnly="true" />
<component id="CloseButton" class="org.apache.flex.html.CloseButton" lookupOnly="true" />
<component id="DropDownList" class="org.apache.flex.flat.DropDownList" />
- <component id="DropDownListList" class="org.apache.flex.flat.supportClasses.DropDownListList" />
<component id="Image" class="org.apache.flex.html.Image" lookupOnly="true" />
<component id="Label" class="org.apache.flex.html.Label" lookupOnly="true" />
<component id="MultilineLabel" class="org.apache.flex.html.MultilineLabel" lookupOnly="true" />
@@ -64,20 +63,15 @@
<component id="NumericStepper" class="org.apache.flex.html.NumericStepper" lookupOnly="true" />
<component id="TextFieldItemRenderer" class="org.apache.flex.html.supportClasses.TextFieldItemRenderer" lookupOnly="true" />
<component id="StringItemRenderer" class="org.apache.flex.html.supportClasses.StringItemRenderer" lookupOnly="true" />
- <component id="DropDownListView" class="org.apache.flex.flat.beads.DropDownListView" />
- <component id="DropDownListStringItemRenderer" class="org.apache.flex.flat.supportClasses.DropDownListStringItemRenderer" />
<component id="DataItemRenderer" class="org.apache.flex.html.supportClasses.DataItemRenderer" lookupOnly="true" />
<component id="ButtonBarButtonItemRenderer" class="org.apache.flex.html.supportClasses.ButtonBarButtonItemRenderer" lookupOnly="true" />
<component id="VScrollBar" class="org.apache.flex.html.supportClasses.VScrollBar" lookupOnly="true" />
- <component id="CSSScrollBarView" class="org.apache.flex.flat.beads.CSSScrollBarView" />
<component id="NumericOnlyTextInputBead" class="org.apache.flex.html.accessories.NumericOnlyTextInputBead" lookupOnly="true" />
<component id="PasswordInputBead" class="org.apache.flex.html.accessories.PasswordInputBead" lookupOnly="true" />
<component id="TextPromptBead" class="org.apache.flex.html.accessories.TextPromptBead" lookupOnly="true" />
<component id="HRule" class="org.apache.flex.html.HRule" lookupOnly="true" />
<component id="Spacer" class="org.apache.flex.html.Spacer" lookupOnly="true" />
<component id="ImageAndTextButtonView" class="org.apache.flex.html.beads.ImageAndTextButtonView" lookupOnly="true" />
- <component id="CheckboxCSSContentAndTextToggleButtonView" class="org.apache.flex.flat.beads.CheckboxCSSContentAndTextToggleButtonView" />
- <component id="RadioCSSContentAndTextToggleButtonView" class="org.apache.flex.flat.beads.RadioCSSContentAndTextToggleButtonView" />
<component id="ScrollingViewport" class="org.apache.flex.html.supportClasses.ScrollingViewport" lookupOnly="true" />
<component id="DataGrid" class="org.apache.flex.html.DataGrid" lookupOnly="true" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9634f9af/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/DataItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/DataItemRenderer.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/DataItemRenderer.as
index ae2612c..ac15dcf 100644
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/DataItemRenderer.as
+++ b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/DataItemRenderer.as
@@ -138,7 +138,7 @@ package org.apache.flex.html.supportClasses
super.updateRenderer();
background.graphics.clear();
- background.graphics.beginFill(backgroundColor, (down||selected||hovered)?1:0);
+ background.graphics.beginFill(useColor, (down||selected||hovered)?1:0);
background.graphics.drawRect(0, 0, width, height);
background.graphics.endFill();
}
[32/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - remove
the last of the handwritten js files (except for googlemaps)
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
deleted file mode 100644
index 09670eb..0000000
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
+++ /dev/null
@@ -1,149 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.jquery.ToggleTextButton');
-
-goog.require('org.apache.flex.html.Button');
-goog.require('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.html.Button}
- */
-org.apache.flex.jquery.ToggleTextButton = function() {
- org.apache.flex.jquery.ToggleTextButton.base(this, 'constructor');
-
-
-
- /**
- * @private
- * @type {boolean}
- */
- this.selected_ = false;
-};
-goog.inherits(org.apache.flex.jquery.ToggleTextButton,
- org.apache.flex.html.Button);
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.jquery.ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
- { names: [{ name: 'ToggleTextButton',
- qName: 'org.apache.flex.jquery.ToggleTextButton'}] };
-
-
-/**
- * @export
- * Used to provide ids to the ToggleTextButton.
- */
-org.apache.flex.jquery.ToggleTextButton.toggleCounter = 0;
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.ToggleTextButton.prototype.createElement =
- function() {
-
- // the radio itself
- this.input = document.createElement('input');
- this.input.type = 'checkbox';
- this.input.name = 'checkbox';
- this.input.id = '_toggle_' + org.apache.flex.jquery.ToggleTextButton.toggleCounter++;
-
- this.labelFor = document.createElement('label');
- this.labelFor.htmlFor = this.input.id;
-
- this.positioner = document.createElement('div');
- this.positioner.style.position = 'relative';
- this.positioner.appendChild(this.input);
- this.positioner.appendChild(this.labelFor);
- this.element = this.input;
-
- this.input.flexjs_wrapper = this;
- this.labelFor.flexjs_wrapper = this;
- this.positioner.flexjs_wrapper = this;
-
- return this.element;
-};
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.ToggleTextButton.prototype.addedToParent =
- function() {
- org.apache.flex.jquery.ToggleTextButton.base(this, 'addedToParent');
- $(this.element).button();
-};
-
-
-Object.defineProperties(org.apache.flex.jquery.ToggleTextButton.prototype, {
- /** @export */
- id: {
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- set: function(value) {
- org.apache.flex.utils.Language.superSetter(org.apache.flex.jquery.ToggleTextButton.base, this, 'id', value);
- this.labelFor.id = value;
- this.labelFor.htmlFor = value;
- }
- },
- /** @export */
- text: {
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- get: function() {
- return this.labelFor.innerHTML;
- },
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- set: function(value) {
- this.labelFor.innerHTML = value;
- }
- },
- /** @export */
- selected: {
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- get: function() {
- return this.input.selected_;
- },
- /** @this {org.apache.flex.jquery.ToggleTextButton} */
- set: function(value) {
- if (this.input.selected_ != value) {
- this.inputselected_ = value;
- /*
- var className = this.className;
- if (value) {
- if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length)
- this.className = className.substring(0, className.length - this.SELECTED.length);
- }
- else {
- if (className.indexOf(this.SELECTED) == -1)
- this.className = className + this.SELECTED;
- }
- */
- }
- }
- }
-});
-
-
-/**
- * @type {string} The selected setter.
- */
-org.apache.flex.jquery.ToggleTextButton.prototype.SELECTED = '_Selected';
-
[48/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix
buttons when cross-compiled
Posted by ah...@apache.org.
fix buttons when cross-compiled
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6a71b858
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6a71b858
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6a71b858
Branch: refs/heads/develop
Commit: 6a71b8584a5726549333031e168f80b129291220
Parents: aad8244
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 16 13:34:33 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 16 13:34:49 2015 -0800
----------------------------------------------------------------------
.../projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as | 3 +++
.../projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as | 3 +++
2 files changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6a71b858/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as
index 7a9c9e6..cc27ad9 100644
--- a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as
+++ b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/RadioButton.as
@@ -26,6 +26,9 @@ package org.apache.flex.jquery
}
+ /**
+ * @flexjsignorecoercion HTMLInputElement
+ */
COMPILE::JS
public class RadioButton extends org.apache.flex.html.RadioButton
{
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6a71b858/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as
index e2c750c..a20ef8e 100644
--- a/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as
+++ b/frameworks/projects/JQuery/as/src/org/apache/flex/jquery/TextButton.as
@@ -31,6 +31,9 @@ package org.apache.flex.jquery
super();
}
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ */
COMPILE::JS
override protected function createElement():WrappedHTMLElement
{
[28/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - clean
compile of DataGridExample
Posted by ah...@apache.org.
clean compile of DataGridExample
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/8a3755f2
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8a3755f2
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8a3755f2
Branch: refs/heads/develop
Commit: 8a3755f292fa9df3eb4b6d2f9230a0f17a58e0d3
Parents: 0c9e438
Author: Alex Harui <ah...@apache.org>
Authored: Fri Dec 11 15:37:41 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Dec 11 15:37:41 2015 -0800
----------------------------------------------------------------------
examples/flexjs/DataGridExample/build.xml | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8a3755f2/examples/flexjs/DataGridExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataGridExample/build.xml b/examples/flexjs/DataGridExample/build.xml
index fd89f00..61ebd4a 100644
--- a/examples/flexjs/DataGridExample/build.xml
+++ b/examples/flexjs/DataGridExample/build.xml
@@ -57,6 +57,8 @@
property="GOOG_HOME"
value="${FLEXJS_HOME}/js/lib/google/closure-library"/>
+ <property name="extlib_arg" value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
+
<include file="${basedir}/../../build_example.xml" />
<target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
[37/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - fix
GoogleMaps
Posted by ah...@apache.org.
fix GoogleMaps
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1e82c6e0
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1e82c6e0
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1e82c6e0
Branch: refs/heads/develop
Commit: 1e82c6e0f30abcedacf90fc3f920858eee2d35f6
Parents: f77e1c4
Author: Alex Harui <ah...@apache.org>
Authored: Mon Dec 14 14:19:53 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 14 14:19:53 2015 -0800
----------------------------------------------------------------------
frameworks/projects/GoogleMaps/compile-config.xml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1e82c6e0/frameworks/projects/GoogleMaps/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/compile-config.xml b/frameworks/projects/GoogleMaps/compile-config.xml
index 243f679..0f70841 100644
--- a/frameworks/projects/GoogleMaps/compile-config.xml
+++ b/frameworks/projects/GoogleMaps/compile-config.xml
@@ -24,7 +24,6 @@
<external-library-path>
<path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-element>
<path-element>../../libs/Core.swc</path-element>
- <path-element>../../externs/GoogleMaps.swc</path-element>
</external-library-path>
<mxml>
@@ -64,6 +63,10 @@
<name>defaults.css</name>
<path>as/defaults.css</path>
</include-file>
+ <include-file>
+ <name>js/out/*</name>
+ <path>js/out/*</path>
+ </include-file>
<include-classes>
<class>GoogleMapsClasses</class>