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' }] };
