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() {};
