http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/IMeasurementBead.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IMeasurementBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IMeasurementBead.js index 46b58f3..3465b92 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/IMeasurementBead.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IMeasurementBead.js @@ -17,14 +17,14 @@ * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.IMeasurementBead'); +goog.provide('org_apache_flex_core_IMeasurementBead'); /** * @interface */ -org.apache.flex.core.IMeasurementBead = function() { +org_apache_flex_core_IMeasurementBead = function() { }; @@ -33,6 +33,6 @@ org.apache.flex.core.IMeasurementBead = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.IMeasurementBead.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_IMeasurementBead.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IMeasurementBead', - qName: 'org.apache.flex.core.IMeasurementBead' }] }; + qName: 'org_apache_flex_core_IMeasurementBead' }] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/IParent.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IParent.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IParent.js index 2b58163..ac0baff 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/IParent.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IParent.js @@ -13,48 +13,48 @@ */ /** - * org.apache.flex.core.IParent + * org_apache_flex_core_IParent * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.IParent'); +goog.provide('org_apache_flex_core_IParent'); /** * @interface */ -org.apache.flex.core.IParent = function() { +org_apache_flex_core_IParent = function() { }; /** * @param {Object} c */ -org.apache.flex.core.IParent.prototype.addElement = function(c) {}; +org_apache_flex_core_IParent.prototype.addElement = function(c) {}; /** * @param {Object} c * @param {number} index */ -org.apache.flex.core.IParent.prototype.addElementAt = function(c, index) {}; +org_apache_flex_core_IParent.prototype.addElementAt = function(c, index) {}; /** * @return {number} * @param {Object} c */ -org.apache.flex.core.IParent.prototype.getElementIndex = function(c) {}; +org_apache_flex_core_IParent.prototype.getElementIndex = function(c) {}; /** * @param {Object} c */ -org.apache.flex.core.IParent.prototype.removeElement = function(c) {}; +org_apache_flex_core_IParent.prototype.removeElement = function(c) {}; /** @@ -62,6 +62,6 @@ org.apache.flex.core.IParent.prototype.removeElement = function(c) {}; * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.IParent.prototype.FLEXJS_CLASS_INFO = { - names: [{ name: 'IParent', qName: 'org.apache.flex.core.IParent'}] +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/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/IParentIUIBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IParentIUIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IParentIUIBase.js index 1958f94..fc7d7c0 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/IParentIUIBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IParentIUIBase.js @@ -13,24 +13,24 @@ */ /** - * org.apache.flex.core.IParentIUIBase + * org_apache_flex_core_IParentIUIBase * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.IParentIUIBase'); +goog.provide('org_apache_flex_core_IParentIUIBase'); -goog.require('org.apache.flex.core.IParent'); -goog.require('org.apache.flex.core.IUIBase'); +goog.require('org_apache_flex_core_IParent'); +goog.require('org_apache_flex_core_IUIBase'); /** * @interface */ -org.apache.flex.core.IParentIUIBase = function() { +org_apache_flex_core_IParentIUIBase = function() { }; @@ -39,8 +39,8 @@ org.apache.flex.core.IParentIUIBase = function() { * * @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] +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/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/IPopUpHost.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IPopUpHost.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IPopUpHost.js index 2c1aaae..b1613cf 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/IPopUpHost.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IPopUpHost.js @@ -13,24 +13,24 @@ */ /** - * org.apache.flex.core.IPopUpHost + * org_apache_flex_core_IPopUpHost * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.IPopUpHost'); +goog.provide('org_apache_flex_core_IPopUpHost'); -goog.require('org.apache.flex.core.IParent'); +goog.require('org_apache_flex_core_IParent'); /** * @interface - * @extends {org.apache.flex.core.IParent} + * @extends {org_apache_flex_core_IParent} */ -org.apache.flex.core.IPopUpHost = function() { +org_apache_flex_core_IPopUpHost = function() { }; @@ -39,7 +39,7 @@ org.apache.flex.core.IPopUpHost = function() { * * @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] +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/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js index 94f7782..bf80b6f 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js @@ -13,25 +13,25 @@ */ /** - * org.apache.flex.core.ISelectableItemRenderer + * org_apache_flex_core_ISelectableItemRenderer * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.ISelectableItemRenderer'); +goog.provide('org_apache_flex_core_ISelectableItemRenderer'); -goog.require('org.apache.flex.core.IItemRenderer'); +goog.require('org_apache_flex_core_IItemRenderer'); /** * @interface - * @extends {org.apache.flex.events.IEventDispatcher} - * @extends {org.apache.flex.core.IItemRenderer} + * @extends {org_apache_flex_events_IEventDispatcher} + * @extends {org_apache_flex_core_IItemRenderer} */ -org.apache.flex.core.ISelectableItemRenderer = function() { +org_apache_flex_core_ISelectableItemRenderer = function() { }; @@ -39,70 +39,70 @@ org.apache.flex.core.ISelectableItemRenderer = function() { * @expose * @param {Object} value */ -org.apache.flex.core.ISelectableItemRenderer.prototype.set_labelField = function(value) {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.set_labelField = function(value) {}; /** * @expose * @return {Object} The labelField. */ -org.apache.flex.core.ISelectableItemRenderer.prototype.get_labelField = function() {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.get_labelField = function() {}; /** * @expose * @param {number} value */ -org.apache.flex.core.ISelectableItemRenderer.prototype.set_index = function(value) {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.set_index = function(value) {}; /** * @expose * @return {number} The selected index. */ -org.apache.flex.core.ISelectableItemRenderer.prototype.get_index = function() {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.get_index = function() {}; /** * @expose * @param {Object} value */ -org.apache.flex.core.ISelectableItemRenderer.prototype.set_selected = function(value) {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.set_selected = function(value) {}; /** * @expose * @return {Object} Whether or not the item in the selected state. */ -org.apache.flex.core.ISelectableItemRenderer.prototype.get_selected = function() {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.get_selected = function() {}; /** * @expose * @param {Object} value */ -org.apache.flex.core.ISelectableItemRenderer.prototype.set_hovered = function(value) {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.set_hovered = function(value) {}; /** * @expose * @return {Object} Whether or not the item is in the hovered state. */ -org.apache.flex.core.ISelectableItemRenderer.prototype.get_hovered = function() {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.get_hovered = function() {}; /** * @expose * @param {Object} value */ -org.apache.flex.core.ISelectableItemRenderer.prototype.set_down = function(value) {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.set_down = function(value) {}; /** * @expose * @return {Object} Whether or not the item is in the down state. */ -org.apache.flex.core.ISelectableItemRenderer.prototype.get_down = function() {}; +org_apache_flex_core_ISelectableItemRenderer.prototype.get_down = function() {}; /** @@ -110,6 +110,6 @@ org.apache.flex.core.ISelectableItemRenderer.prototype.get_down = function() {}; * * @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] }; +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/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js index 0422dcf..a503263 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js @@ -13,25 +13,25 @@ */ /** - * org.apache.flex.core.ISelectionModel + * org_apache_flex_core_ISelectionModel * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.ISelectionModel'); +goog.provide('org_apache_flex_core_ISelectionModel'); -goog.require('org.apache.flex.core.IBeadModel'); +goog.require('org_apache_flex_core_IBeadModel'); /** * @interface - * @extends {org.apache.flex.events.IEventDispatcher} - * @extends {org.apache.flex.core.IBeadModel} + * @extends {org_apache_flex_events_IEventDispatcher} + * @extends {org_apache_flex_core_IBeadModel} */ -org.apache.flex.core.ISelectionModel = function() { +org_apache_flex_core_ISelectionModel = function() { }; @@ -39,42 +39,42 @@ org.apache.flex.core.ISelectionModel = function() { * @expose * @param {Object} value */ -org.apache.flex.core.ISelectionModel.prototype.set_dataProvider = function(value) {}; +org_apache_flex_core_ISelectionModel.prototype.set_dataProvider = function(value) {}; /** * @expose * @return {Object} The dataProvider. */ -org.apache.flex.core.ISelectionModel.prototype.get_dataProvider = function() {}; +org_apache_flex_core_ISelectionModel.prototype.get_dataProvider = function() {}; /** * @expose * @param {number} value */ -org.apache.flex.core.ISelectionModel.prototype.set_selectedIndex = function(value) {}; +org_apache_flex_core_ISelectionModel.prototype.set_selectedIndex = function(value) {}; /** * @expose * @return {number} The selected index. */ -org.apache.flex.core.ISelectionModel.prototype.get_selectedIndex = function() {}; +org_apache_flex_core_ISelectionModel.prototype.get_selectedIndex = function() {}; /** * @expose * @param {Object} value */ -org.apache.flex.core.ISelectionModel.prototype.set_selectedItem = function(value) {}; +org_apache_flex_core_ISelectionModel.prototype.set_selectedItem = function(value) {}; /** * @expose * @return {Object} The selected item. */ -org.apache.flex.core.ISelectionModel.prototype.get_selectedItem = function() {}; +org_apache_flex_core_ISelectionModel.prototype.get_selectedItem = function() {}; /** @@ -82,6 +82,6 @@ org.apache.flex.core.ISelectionModel.prototype.get_selectedItem = function() {}; * * @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] }; +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/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/IStatesImpl.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IStatesImpl.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IStatesImpl.js index c8b2bc7..d98ccae 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/IStatesImpl.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IStatesImpl.js @@ -17,10 +17,10 @@ * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.IStatesImpl'); +goog.provide('org_apache_flex_core_IStatesImpl'); -goog.require('org.apache.flex.core.IBead'); -goog.require('org.apache.flex.events.IEventDispatcher'); +goog.require('org_apache_flex_core_IBead'); +goog.require('org_apache_flex_events_IEventDispatcher'); @@ -28,10 +28,10 @@ goog.require('org.apache.flex.events.IEventDispatcher'); * IStatesImpl * * @interface - * @extends {org.apache.flex.core.IBead} - * @extends {org.apache.flex.events.IEventDispatcher} + * @extends {org_apache_flex_core_IBead} + * @extends {org_apache_flex_events_IEventDispatcher} */ -org.apache.flex.core.IStatesImpl = function() { +org_apache_flex_core_IStatesImpl = function() { }; @@ -40,8 +40,8 @@ org.apache.flex.core.IStatesImpl = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.IStatesImpl.prototype.FLEXJS_CLASS_INFO = +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] }; + 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/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/IStrand.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IStrand.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IStrand.js index 13f414b..558efbc 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/IStrand.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IStrand.js @@ -17,7 +17,7 @@ * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.IStrand'); +goog.provide('org_apache_flex_core_IStrand'); @@ -26,7 +26,7 @@ goog.provide('org.apache.flex.core.IStrand'); * * @interface */ -org.apache.flex.core.IStrand = function() { +org_apache_flex_core_IStrand = function() { }; @@ -35,18 +35,18 @@ org.apache.flex.core.IStrand = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IStrand', - qName: 'org.apache.flex.core.IStrand' }] }; + qName: 'org_apache_flex_core_IStrand' }] }; /** * addBead() * * @expose - * @param {org.apache.flex.core.IBead} bead The bead to add. + * @param {org_apache_flex_core_IBead} bead The bead to add. */ -org.apache.flex.core.IStrand.prototype.addBead = function(bead) {}; +org_apache_flex_core_IStrand.prototype.addBead = function(bead) {}; /** @@ -54,9 +54,9 @@ org.apache.flex.core.IStrand.prototype.addBead = function(bead) {}; * * @expose * @param {Object} classOrInterface The type of bead to look for. - * @return {org.apache.flex.core.IBead} The bead. + * @return {org_apache_flex_core_IBead} The bead. */ -org.apache.flex.core.IStrand.prototype.getBeadByType = +org_apache_flex_core_IStrand.prototype.getBeadByType = function(classOrInterface) {}; @@ -64,7 +64,7 @@ org.apache.flex.core.IStrand.prototype.getBeadByType = * removeBead() * * @expose - * @param {org.apache.flex.core.IBead} bead The bead to remove. - * @return {org.apache.flex.core.IBead} The bead that was removed. + * @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) {}; +org_apache_flex_core_IStrand.prototype.removeBead = function(bead) {}; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/IStyleableObject.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IStyleableObject.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IStyleableObject.js index eaaf5b4..57be8b1 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/IStyleableObject.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IStyleableObject.js @@ -13,24 +13,24 @@ */ /** - * org.apache.flex.core.IStyleableObject + * org_apache_flex_core_IStyleableObject * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.IStyleableObject'); +goog.provide('org_apache_flex_core_IStyleableObject'); -goog.require('org.apache.flex.events.IEventDispatcher'); +goog.require('org_apache_flex_events_IEventDispatcher'); /** * @interface - * @extends {org.apache.flex.events.IEventDispatcher} + * @extends {org_apache_flex_events_IEventDispatcher} */ -org.apache.flex.core.IStyleableObject = function() { +org_apache_flex_core_IStyleableObject = function() { }; @@ -39,8 +39,8 @@ org.apache.flex.core.IStyleableObject = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.IStyleableObject.prototype.FLEXJS_CLASS_INFO = { +org_apache_flex_core_IStyleableObject.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IStyleableObject', - qName: 'org.apache.flex.core.IStyleableObject'}], - interfaces: [org.apache.flex.events.IEventDispatcher] + qName: 'org_apache_flex_core_IStyleableObject'}], + interfaces: [org_apache_flex_events_IEventDispatcher] }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js index 85c1d97..d394d9d 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js @@ -13,25 +13,25 @@ */ /** - * org.apache.flex.core.ITextModel + * org_apache_flex_core_ITextModel * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.ITextModel'); +goog.provide('org_apache_flex_core_ITextModel'); -goog.require('org.apache.flex.core.IBeadModel'); +goog.require('org_apache_flex_core_IBeadModel'); /** * @interface - * @extends {org.apache.flex.events.IEventDispatcher} - * @extends {org.apache.flex.core.IBeadModel} + * @extends {org_apache_flex_events_IEventDispatcher} + * @extends {org_apache_flex_core_IBeadModel} */ -org.apache.flex.core.ITextModel = function() { +org_apache_flex_core_ITextModel = function() { }; @@ -39,14 +39,14 @@ org.apache.flex.core.ITextModel = function() { * @expose * @param {Object} value The text content. */ -org.apache.flex.core.ITextModel.prototype.set_text = function(value) {}; +org_apache_flex_core_ITextModel.prototype.set_text = function(value) {}; /** * @expose * @return {Object} The text content. */ -org.apache.flex.core.ITextModel.prototype.get_text = function() {}; +org_apache_flex_core_ITextModel.prototype.get_text = function() {}; /** @@ -54,6 +54,6 @@ org.apache.flex.core.ITextModel.prototype.get_text = function() {}; * * @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] }; +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/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/IUIBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IUIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IUIBase.js index 7fd8318..f810184 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/IUIBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IUIBase.js @@ -17,7 +17,7 @@ * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.IUIBase'); +goog.provide('org_apache_flex_core_IUIBase'); @@ -26,7 +26,7 @@ goog.provide('org.apache.flex.core.IUIBase'); * * @interface */ -org.apache.flex.core.IUIBase = function() { +org_apache_flex_core_IUIBase = function() { }; @@ -35,6 +35,6 @@ org.apache.flex.core.IUIBase = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.IUIBase.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_IUIBase.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IUIBase', - qName: 'org.apache.flex.core.IUIBase' }] }; + qName: 'org_apache_flex_core_IUIBase' }] }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/IValuesImpl.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IValuesImpl.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IValuesImpl.js index 884c11e..319eb3e 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/IValuesImpl.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IValuesImpl.js @@ -17,7 +17,7 @@ * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.IValuesImpl'); +goog.provide('org_apache_flex_core_IValuesImpl'); @@ -26,7 +26,7 @@ goog.provide('org.apache.flex.core.IValuesImpl'); * * @interface */ -org.apache.flex.core.IValuesImpl = function() { +org_apache_flex_core_IValuesImpl = function() { }; @@ -35,9 +35,9 @@ org.apache.flex.core.IValuesImpl = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.IValuesImpl.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_IValuesImpl.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IValuesImpl', - qName: 'org.apache.flex.core.IValuesImpl' }]}; + qName: 'org_apache_flex_core_IValuesImpl' }]}; /** @@ -49,7 +49,7 @@ org.apache.flex.core.IValuesImpl.prototype.FLEXJS_CLASS_INFO = * might make a difference. * @return {?Object} The value. */ -org.apache.flex.core.IValuesImpl.prototype.getValue = +org_apache_flex_core_IValuesImpl.prototype.getValue = function(thisObject, valueName, opt_state, opt_attrs) {}; @@ -62,7 +62,7 @@ org.apache.flex.core.IValuesImpl.prototype.getValue = * might make a difference. * @return {Object} The new instance. */ -org.apache.flex.core.IValuesImpl.prototype.newInstance = +org_apache_flex_core_IValuesImpl.prototype.newInstance = function(thisObject, valueName, opt_state, opt_attrs) {}; @@ -70,4 +70,4 @@ function(thisObject, valueName, opt_state, opt_attrs) {}; * @expose * @param {Object} mainclass The main class for the application. */ -org.apache.flex.core.IValuesImpl.prototype.init = function(mainclass) {}; +org_apache_flex_core_IValuesImpl.prototype.init = function(mainclass) {}; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js index cf34ab7..e9f41be 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js @@ -12,19 +12,19 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.ItemRendererClassFactory'); +goog.provide('org_apache_flex_core_ItemRendererClassFactory'); -goog.require('mx.core.ClassFactory'); -goog.require('org.apache.flex.core.IItemRendererClassFactory'); -goog.require('org.apache.flex.core.ValuesManager'); +goog.require('mx_core_ClassFactory'); +goog.require('org_apache_flex_core_IItemRendererClassFactory'); +goog.require('org_apache_flex_core_ValuesManager'); /** * @constructor - * @implements {org.apache.flex.core.IItemRendererClassFactory} + * @implements {org_apache_flex_core_IItemRendererClassFactory} */ -org.apache.flex.core.ItemRendererClassFactory = function() { +org_apache_flex_core_ItemRendererClassFactory = function() { /** * @type {Function} */ @@ -37,18 +37,18 @@ org.apache.flex.core.ItemRendererClassFactory = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.ItemRendererClassFactory. +org_apache_flex_core_ItemRendererClassFactory. prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'ItemRendererClassFactory', - qName: 'org.apache.flex.core.ItemRendererClassFactory'}], - interfaces: [org.apache.flex.core.IItemRendererClassFactory] }; + qName: 'org_apache_flex_core_ItemRendererClassFactory'}], + interfaces: [org_apache_flex_core_IItemRendererClassFactory] }; /** * @expose * @param {Object} value The component strand. */ -org.apache.flex.core.ItemRendererClassFactory. +org_apache_flex_core_ItemRendererClassFactory. prototype.set_strand = function(value) { this.strand_ = value; @@ -62,12 +62,12 @@ org.apache.flex.core.ItemRendererClassFactory. } } - if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) { + if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) { this.itemRendererClass = - /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl. + /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl. getValue(this.strand_, 'iItemRenderer')); if (this.itemRendererClass) { - this.itemRendererClassFactory = new mx.core.ClassFactory(this.itemRendererClass); + this.itemRendererClassFactory = new mx_core_ClassFactory(this.itemRendererClass); this.createFunction = this.createFromClass; } } @@ -79,7 +79,7 @@ org.apache.flex.core.ItemRendererClassFactory. * @param {Object} parent The display parent of the new item renderer. * @return {Object} The new item renderer. */ -org.apache.flex.core.ItemRendererClassFactory. +org_apache_flex_core_ItemRendererClassFactory. prototype.createItemRenderer = function(parent) { return this.createFunction(parent); }; @@ -90,7 +90,7 @@ org.apache.flex.core.ItemRendererClassFactory. * @param {Object} parent The parent of the new item renderer. * @return {Object} The new item renderer. */ -org.apache.flex.core.ItemRendererClassFactory. +org_apache_flex_core_ItemRendererClassFactory. prototype.createFromClass = function(parent) { var renderer = this.itemRendererClassFactory.newInstance(); parent.addElement(renderer); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js index dad506b..54c43e5 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js @@ -12,19 +12,19 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.ListBase'); +goog.provide('org_apache_flex_core_ListBase'); -goog.require('org.apache.flex.core.UIBase'); -goog.require('org.apache.flex.html.supportClasses.StringItemRenderer'); +goog.require('org_apache_flex_core_UIBase'); +goog.require('org_apache_flex_html_supportClasses_StringItemRenderer'); /** * @constructor - * @extends {org.apache.flex.core.UIBase} + * @extends {org_apache_flex_core_UIBase} */ -org.apache.flex.core.ListBase = function() { - org.apache.flex.core.ListBase.base(this, 'constructor'); +org_apache_flex_core_ListBase = function() { + org_apache_flex_core_ListBase.base(this, 'constructor'); /** * @protected @@ -38,8 +38,8 @@ org.apache.flex.core.ListBase = function() { */ this.selectedIndex_ = -1; }; -goog.inherits(org.apache.flex.core.ListBase, - org.apache.flex.core.UIBase); +goog.inherits(org_apache_flex_core_ListBase, + org_apache_flex_core_UIBase); /** @@ -47,15 +47,15 @@ goog.inherits(org.apache.flex.core.ListBase, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.ListBase.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_ListBase.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'ListBase', - qName: 'org.apache.flex.core.ListBase' }] }; + qName: 'org_apache_flex_core_ListBase' }] }; /** * @override */ -org.apache.flex.core.ListBase.prototype.createElement = function() { +org_apache_flex_core_ListBase.prototype.createElement = function() { // this.element = document.createElement('select'); // goog.events.listen(this.element, 'change', // goog.bind(this.changeHandler, this)); @@ -75,7 +75,7 @@ org.apache.flex.core.ListBase.prototype.createElement = function() { * @expose * @return {Array.<Object>} The collection of data. */ -org.apache.flex.core.ListBase.prototype.get_dataProvider = +org_apache_flex_core_ListBase.prototype.get_dataProvider = function() { return this.get_model().get_dataProvider(); }; @@ -85,7 +85,7 @@ org.apache.flex.core.ListBase.prototype.get_dataProvider = * @expose * @param {Array.<Object>} value The text setter. */ -org.apache.flex.core.ListBase.prototype.set_dataProvider = +org_apache_flex_core_ListBase.prototype.set_dataProvider = function(value) { this.get_model().set_dataProvider(value); }; @@ -95,7 +95,7 @@ org.apache.flex.core.ListBase.prototype.set_dataProvider = * @expose * @return {number} The selected index. */ -org.apache.flex.core.ListBase.prototype.get_selectedIndex = +org_apache_flex_core_ListBase.prototype.get_selectedIndex = function() { return this.get_model().get_selectedIndex(); }; @@ -105,7 +105,7 @@ org.apache.flex.core.ListBase.prototype.get_selectedIndex = * @expose * @param {number} value The selected index. */ -org.apache.flex.core.ListBase.prototype.set_selectedIndex = +org_apache_flex_core_ListBase.prototype.set_selectedIndex = function(value) { this.get_model().set_selectedIndex(value); }; @@ -115,7 +115,7 @@ org.apache.flex.core.ListBase.prototype.set_selectedIndex = * @expose * @return {Object} The selected item. */ -org.apache.flex.core.ListBase.prototype.get_selectedItem = +org_apache_flex_core_ListBase.prototype.get_selectedItem = function() { return this.get_model().get_selectedItem(); }; @@ -125,7 +125,7 @@ org.apache.flex.core.ListBase.prototype.get_selectedItem = * @expose * @param {Object} value The selected item. */ -org.apache.flex.core.ListBase.prototype.set_selectedItem = +org_apache_flex_core_ListBase.prototype.set_selectedItem = function(value) { this.get_model().set_selectedItem(value); }; @@ -134,7 +134,7 @@ org.apache.flex.core.ListBase.prototype.set_selectedItem = /** * @protected */ -org.apache.flex.core.ListBase.prototype.changeHandler = +org_apache_flex_core_ListBase.prototype.changeHandler = function() { this.dispatchEvent('change'); }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js index 6c538dc..e39ab75 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js @@ -12,30 +12,30 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.SimpleCSSValuesImpl'); +goog.provide('org_apache_flex_core_SimpleCSSValuesImpl'); -goog.require('org.apache.flex.core.IValuesImpl'); +goog.require('org_apache_flex_core_IValuesImpl'); /** * @constructor - * @implements {org.apache.flex.core.IValuesImpl}; + * @implements {org_apache_flex_core_IValuesImpl}; */ -org.apache.flex.core.SimpleCSSValuesImpl = function() { +org_apache_flex_core_SimpleCSSValuesImpl = function() { }; /** * @type {string} */ -org.apache.flex.core.SimpleCSSValuesImpl.GLOBAL_SELECTOR = 'global'; +org_apache_flex_core_SimpleCSSValuesImpl.GLOBAL_SELECTOR = 'global'; /** * @type {string} */ -org.apache.flex.core.SimpleCSSValuesImpl.UNIVERSAL_SELECTOR = '*'; +org_apache_flex_core_SimpleCSSValuesImpl.UNIVERSAL_SELECTOR = '*'; /** @@ -43,10 +43,10 @@ org.apache.flex.core.SimpleCSSValuesImpl.UNIVERSAL_SELECTOR = '*'; * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.SimpleCSSValuesImpl.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_SimpleCSSValuesImpl.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'SimpleCSSValuesImpl', - qName: 'org.apache.flex.core.SimpleCSSValuesImpl'}], - interfaces: [org.apache.flex.core.IValuesImpl]}; + qName: 'org_apache_flex_core_SimpleCSSValuesImpl'}], + interfaces: [org_apache_flex_core_IValuesImpl]}; /** @@ -57,7 +57,7 @@ org.apache.flex.core.SimpleCSSValuesImpl.prototype.FLEXJS_CLASS_INFO = * might make a difference. * @return {Object} The value. */ -org.apache.flex.core.SimpleCSSValuesImpl.prototype.getValue = +org_apache_flex_core_SimpleCSSValuesImpl.prototype.getValue = function(thisObject, valueName, opt_state, opt_attrs) { var c = valueName.indexOf('-'); while (c != -1) @@ -162,10 +162,10 @@ org.apache.flex.core.SimpleCSSValuesImpl.prototype.getValue = cName = thisObject.FLEXJS_CLASS_INFO.names[0].qName; } - o = values[org.apache.flex.core.SimpleCSSValuesImpl.GLOBAL_SELECTOR]; + o = values[org_apache_flex_core_SimpleCSSValuesImpl.GLOBAL_SELECTOR]; if (o) return o[valueName]; - o = values[org.apache.flex.core.SimpleCSSValuesImpl.UNIVERSAL_SELECTOR]; + o = values[org_apache_flex_core_SimpleCSSValuesImpl.UNIVERSAL_SELECTOR]; if (o) return o[valueName]; return undefined; @@ -181,7 +181,7 @@ org.apache.flex.core.SimpleCSSValuesImpl.prototype.getValue = * @return {Object} The value. * @suppress {checkTypes} */ -org.apache.flex.core.SimpleCSSValuesImpl.prototype.newInstance = +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) @@ -193,7 +193,7 @@ function(thisObject, valueName, opt_state, opt_attrs) { /** * @param {Object} mainclass The main class for the application. */ -org.apache.flex.core.SimpleCSSValuesImpl.prototype.init = function(mainclass) { +org_apache_flex_core_SimpleCSSValuesImpl.prototype.init = function(mainclass) { var cssData = mainclass.cssData; var values = this.values; if (values == null) @@ -237,7 +237,7 @@ org.apache.flex.core.SimpleCSSValuesImpl.prototype.init = function(mainclass) { * @param {string} styles The styles as HTML style syntax. * @return {Object} The styles object. */ -org.apache.flex.core.SimpleCSSValuesImpl.prototype.parseStyles = function(styles) { +org_apache_flex_core_SimpleCSSValuesImpl.prototype.parseStyles = function(styles) { var obj = {}; var parts = styles.split(';'); var l = parts.length; @@ -269,7 +269,7 @@ org.apache.flex.core.SimpleCSSValuesImpl.prototype.parseStyles = function(styles /** * The styles that apply to each UI widget */ -org.apache.flex.core.SimpleCSSValuesImpl.perInstanceStyles = { +org_apache_flex_core_SimpleCSSValuesImpl.perInstanceStyles = { 'backgroundColor': 1, 'backgroundImage': 1, 'color': 1, @@ -283,7 +283,7 @@ org.apache.flex.core.SimpleCSSValuesImpl.perInstanceStyles = { /** * The styles that use color format #RRGGBB */ -org.apache.flex.core.SimpleCSSValuesImpl.colorStyles = { +org_apache_flex_core_SimpleCSSValuesImpl.colorStyles = { 'backgroundColor': 1, 'borderColor': 1, 'color': 1 @@ -294,10 +294,10 @@ org.apache.flex.core.SimpleCSSValuesImpl.colorStyles = { * @param {Object} thisObject The object to apply styles to; * @param {Object} styles The styles. */ -org.apache.flex.core.SimpleCSSValuesImpl.prototype.applyStyles = +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 styleList = org_apache_flex_core_SimpleCSSValuesImpl.perInstanceStyles; + var colorStyles = org_apache_flex_core_SimpleCSSValuesImpl.colorStyles; for (var p in styles) { //if (styleList[p]) var value = styles[p]; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js index 88cf053..c5780f5 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js @@ -12,37 +12,37 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.SimpleStatesImpl'); +goog.provide('org_apache_flex_core_SimpleStatesImpl'); -goog.require('mx.states.AddItems'); -goog.require('mx.states.SetEventHandler'); -goog.require('mx.states.SetProperty'); -goog.require('mx.states.State'); -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.EventDispatcher'); +goog.require('mx_states_AddItems'); +goog.require('mx_states_SetEventHandler'); +goog.require('mx_states_SetProperty'); +goog.require('mx_states_State'); +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_EventDispatcher'); /** * @constructor - * @extends {org.apache.flex.events.EventDispatcher} - * @implements {org.apache.flex.core.IBead} - * @implements {org.apache.flex.core.IStatesImpl} + * @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'); +org_apache_flex_core_SimpleStatesImpl = function() { + org_apache_flex_core_SimpleStatesImpl.base(this, 'constructor'); /** * @private - * @type {org.apache.flex.core.IStrand} + * @type {org_apache_flex_core_IStrand} */ this.strand_ = null; }; -goog.inherits(org.apache.flex.core.SimpleStatesImpl, - org.apache.flex.events.EventDispatcher); +goog.inherits(org_apache_flex_core_SimpleStatesImpl, + org_apache_flex_events_EventDispatcher); /** @@ -50,18 +50,18 @@ goog.inherits(org.apache.flex.core.SimpleStatesImpl, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.SimpleStatesImpl.prototype.FLEXJS_CLASS_INFO = +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] }; + qName: 'org_apache_flex_core_SimpleStatesImpl' }], + interfaces: [org_apache_flex_core_IBead, + org_apache_flex_core_IStatesImpl] }; /** * @expose - * @param {org.apache.flex.core.IStrand} value The new host. + * @param {org_apache_flex_core_IStrand} value The new host. */ -org.apache.flex.core.SimpleStatesImpl.prototype.set_strand = +org_apache_flex_core_SimpleStatesImpl.prototype.set_strand = function(value) { if (this.strand_ !== value) { this.strand_ = value; @@ -79,13 +79,13 @@ org.apache.flex.core.SimpleStatesImpl.prototype.set_strand = * @private * @param {Object} event The event. */ -org.apache.flex.core.SimpleStatesImpl.prototype.initialStateHandler_ = +org_apache_flex_core_SimpleStatesImpl.prototype.initialStateHandler_ = function(event) { /** * @type {Object} **/ var host = this.strand_; - this.dispatchEvent(new org.apache.flex.events.ValueChangeEvent('currentStateChange', + this.dispatchEvent(new org_apache_flex_events_ValueChangeEvent('currentStateChange', false, false, null, host.get_currentState())); }; @@ -95,7 +95,7 @@ org.apache.flex.core.SimpleStatesImpl.prototype.initialStateHandler_ = * @private * @param {Object} event The event. */ -org.apache.flex.core.SimpleStatesImpl.prototype.stateChangeHandler_ = +org_apache_flex_core_SimpleStatesImpl.prototype.stateChangeHandler_ = function(event) { var arr, doc, p, s; @@ -121,18 +121,18 @@ org.apache.flex.core.SimpleStatesImpl.prototype.stateChangeHandler_ = /** * @private - * @param {mx.states.State} s The State to revert. + * @param {mx_states_State} s The State to revert. */ -org.apache.flex.core.SimpleStatesImpl.prototype.revert_ = function(s) { +org_apache_flex_core_SimpleStatesImpl.prototype.revert_ = function(s) { var arr, item, o, p, q, target; /** - * @type {org.apache.flex.core.UIBase} + * @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, mx.states.AddItems)) { + if (org_apache_flex_utils_Language.is(o, mx_states_AddItems)) { for (q in o.items) { item = o.items[q]; @@ -147,9 +147,9 @@ org.apache.flex.core.SimpleStatesImpl.prototype.revert_ = function(s) { parent.removeElement(item); parent.dispatchEvent( - new org.apache.flex.events.Event('childrenAdded')); + new org_apache_flex_events_Event('childrenAdded')); } - } else if (org.apache.flex.utils.Language.is(o, mx.states.SetProperty)) { + } else if (org_apache_flex_utils_Language.is(o, mx_states_SetProperty)) { if (typeof(o.document['get_' + o.target]) === 'function') { target = o.document['get_' + o.target](); } else { @@ -161,7 +161,7 @@ org.apache.flex.core.SimpleStatesImpl.prototype.revert_ = function(s) { } else { target[o.name] = o.previousValue; } - } else if (org.apache.flex.utils.Language.is(o, mx.states.SetEventHandler)) { + } else if (org_apache_flex_utils_Language.is(o, mx_states_SetEventHandler)) { if (typeof(o.document['get_' + o.target]) === 'function') { target = o.document['get_' + o.target](); } else { @@ -175,23 +175,23 @@ org.apache.flex.core.SimpleStatesImpl.prototype.revert_ = function(s) { /** * @private - * @param {mx.states.State} s The State to apply. + * @param {mx_states_State} s The State to apply. */ -org.apache.flex.core.SimpleStatesImpl.prototype.apply_ = function(s) { +org_apache_flex_core_SimpleStatesImpl.prototype.apply_ = function(s) { var arr, child, index, item, o, p, q, target; /** - * type {org.apache.flex.core.UIBase} + * 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, mx.states.AddItems)) { + if (org_apache_flex_utils_Language.is(o, mx_states_AddItems)) { if (!o.items) { o.items = o.itemsDescriptor.items; if (o.items == null) { o.items = - org.apache.flex.utils.MXMLDataInterpreter.generateMXMLArray(o.document, + org_apache_flex_utils_MXMLDataInterpreter.generateMXMLArray(o.document, null, o.itemsDescriptor.descriptor); o.itemsDescriptor.items = o.items; } @@ -227,10 +227,10 @@ org.apache.flex.core.SimpleStatesImpl.prototype.apply_ = function(s) { } parent.dispatchEvent( - new org.apache.flex.events.Event('childrenAdded')); + new org_apache_flex_events_Event('childrenAdded')); } } - else if (org.apache.flex.utils.Language.is(o, mx.states.SetProperty)) + else if (org_apache_flex_utils_Language.is(o, mx_states_SetProperty)) { if (typeof(o.document['get_' + o.target]) === 'function') { target = o.document['get_' + o.target](); @@ -249,7 +249,7 @@ org.apache.flex.core.SimpleStatesImpl.prototype.apply_ = function(s) { } else { target[o.name] = o.value; } - } else if (org.apache.flex.utils.Language.is(o, mx.states.SetEventHandler)) { + } else if (org_apache_flex_utils_Language.is(o, mx_states_SetEventHandler)) { if (typeof(o.document['get_' + o.target]) === 'function') { target = o.document['get_' + o.target](); } else { http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleValuesImpl.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleValuesImpl.js b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleValuesImpl.js index aef2a83..39ca383 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleValuesImpl.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleValuesImpl.js @@ -12,14 +12,14 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.SimpleValuesImpl'); +goog.provide('org_apache_flex_core_SimpleValuesImpl'); /** * @constructor */ -org.apache.flex.core.SimpleValuesImpl = function() { +org_apache_flex_core_SimpleValuesImpl = function() { }; @@ -28,6 +28,6 @@ org.apache.flex.core.SimpleValuesImpl = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.SimpleValuesImpl.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_SimpleValuesImpl.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'SimpleValuesImpl', - qName: 'org.apache.flex.core.SimpleValuesImpl' }] }; + qName: 'org_apache_flex_core_SimpleValuesImpl' }] }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js index 04f5063..cd71d13 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js @@ -12,31 +12,31 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.UIBase'); +goog.provide('org_apache_flex_core_UIBase'); -goog.require('org.apache.flex.core.HTMLElementWrapper'); -goog.require('org.apache.flex.core.IBeadController'); -goog.require('org.apache.flex.core.IBeadLayout'); -goog.require('org.apache.flex.core.IBeadModel'); -goog.require('org.apache.flex.core.IBeadView'); -goog.require('org.apache.flex.core.ILayoutChild'); -goog.require('org.apache.flex.core.IParentIUIBase'); -goog.require('org.apache.flex.core.IStyleableObject'); -goog.require('org.apache.flex.core.IUIBase'); -goog.require('org.apache.flex.core.ValuesManager'); -goog.require('org.apache.flex.events.ValueChangeEvent'); +goog.require('org_apache_flex_core_HTMLElementWrapper'); +goog.require('org_apache_flex_core_IBeadController'); +goog.require('org_apache_flex_core_IBeadLayout'); +goog.require('org_apache_flex_core_IBeadModel'); +goog.require('org_apache_flex_core_IBeadView'); +goog.require('org_apache_flex_core_ILayoutChild'); +goog.require('org_apache_flex_core_IParentIUIBase'); +goog.require('org_apache_flex_core_IStyleableObject'); +goog.require('org_apache_flex_core_IUIBase'); +goog.require('org_apache_flex_core_ValuesManager'); +goog.require('org_apache_flex_events_ValueChangeEvent'); /** * @constructor - * @implements {org.apache.flex.core.IUIBase} - * @implements {org.apache.flex.core.ILayoutChild} - * @implements {org.apache.flex.core.IParentIUIBase} - * @extends {org.apache.flex.core.HTMLElementWrapper} + * @implements {org_apache_flex_core_IUIBase} + * @implements {org_apache_flex_core_ILayoutChild} + * @implements {org_apache_flex_core_IParentIUIBase} + * @extends {org_apache_flex_core_HTMLElementWrapper} */ -org.apache.flex.core.UIBase = function() { - org.apache.flex.core.UIBase.base(this, 'constructor'); +org_apache_flex_core_UIBase = function() { + org_apache_flex_core_UIBase.base(this, 'constructor'); /** * @private @@ -84,8 +84,8 @@ org.apache.flex.core.UIBase = function() { this.createElement(); }; -goog.inherits(org.apache.flex.core.UIBase, - org.apache.flex.core.HTMLElementWrapper); +goog.inherits(org_apache_flex_core_UIBase, + org_apache_flex_core_HTMLElementWrapper); /** @@ -93,20 +93,20 @@ goog.inherits(org.apache.flex.core.UIBase, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.UIBase.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_UIBase.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'UIBase', - qName: 'org.apache.flex.core.UIBase' }], - interfaces: [org.apache.flex.core.IUIBase, - org.apache.flex.core.IParentIUIBase, - org.apache.flex.core.ILayoutChild, - org.apache.flex.core.IStyleableObject] }; + qName: 'org_apache_flex_core_UIBase' }], + interfaces: [org_apache_flex_core_IUIBase, + org_apache_flex_core_IParentIUIBase, + org_apache_flex_core_ILayoutChild, + org_apache_flex_core_IStyleableObject] }; /** * @expose * @param {Array.<Object>} value The list of beads from MXML. */ -org.apache.flex.core.UIBase.prototype.set_beads = function(value) { +org_apache_flex_core_UIBase.prototype.set_beads = function(value) { this.mxmlBeads_ = value; }; @@ -115,13 +115,13 @@ org.apache.flex.core.UIBase.prototype.set_beads = function(value) { * @expose * @type {Object} */ -org.apache.flex.core.UIBase.prototype.positioner = null; +org_apache_flex_core_UIBase.prototype.positioner = null; /** * @return {Object} The array of children. */ -org.apache.flex.core.UIBase.prototype.internalChildren = +org_apache_flex_core_UIBase.prototype.internalChildren = function() { return this.element.childNodes; }; @@ -131,7 +131,7 @@ org.apache.flex.core.UIBase.prototype.internalChildren = * @protected * @return {Object} The actual element to be parented. */ -org.apache.flex.core.UIBase.prototype.createElement = function() { +org_apache_flex_core_UIBase.prototype.createElement = function() { if (this.element == null) this.element = document.createElement('div'); if (this.positioner == null) @@ -148,13 +148,13 @@ org.apache.flex.core.UIBase.prototype.createElement = function() { * @protected * @type {?function()} */ -org.apache.flex.core.UIBase.prototype.finalizeElement = null; +org_apache_flex_core_UIBase.prototype.finalizeElement = null; /** * @param {Object} c The child element. */ -org.apache.flex.core.UIBase.prototype.addElement = function(c) { +org_apache_flex_core_UIBase.prototype.addElement = function(c) { this.element.appendChild(c.positioner); c.addedToParent(); }; @@ -164,7 +164,7 @@ org.apache.flex.core.UIBase.prototype.addElement = function(c) { * @param {Object} c The child element. * @param {number} index The index. */ -org.apache.flex.core.UIBase.prototype.addElementAt = function(c, index) { +org_apache_flex_core_UIBase.prototype.addElementAt = function(c, index) { var children = this.internalChildren(); if (index >= children.length) this.addElement(c); @@ -181,7 +181,7 @@ org.apache.flex.core.UIBase.prototype.addElementAt = function(c, index) { * @param {number} index The index in parent. * @return {Object} The child element. */ -org.apache.flex.core.UIBase.prototype.getElementAt = function(index) { +org_apache_flex_core_UIBase.prototype.getElementAt = function(index) { var children = this.internalChildren(); return children[index].flexjs_wrapper; }; @@ -191,7 +191,7 @@ org.apache.flex.core.UIBase.prototype.getElementAt = function(index) { * @param {Object} c The child element. * @return {number} The index in parent. */ -org.apache.flex.core.UIBase.prototype.getElementIndex = function(c) { +org_apache_flex_core_UIBase.prototype.getElementIndex = function(c) { var children = this.internalChildren(); var n = children.length; for (var i = 0; i < n; i++) @@ -206,7 +206,7 @@ org.apache.flex.core.UIBase.prototype.getElementIndex = function(c) { /** * @param {Object} c The child element. */ -org.apache.flex.core.UIBase.prototype.removeElement = function(c) { +org_apache_flex_core_UIBase.prototype.removeElement = function(c) { this.element.removeChild(c.element); }; @@ -214,7 +214,7 @@ org.apache.flex.core.UIBase.prototype.removeElement = function(c) { /** * @return {number} The number of child elements. */ -org.apache.flex.core.UIBase.prototype.get_numElements = function() { +org_apache_flex_core_UIBase.prototype.get_numElements = function() { var children = this.internalChildren(); return children.length; }; @@ -223,7 +223,7 @@ org.apache.flex.core.UIBase.prototype.get_numElements = function() { /** * @return {Object} The parent of this object. */ -org.apache.flex.core.UIBase.prototype.get_parent = function() { +org_apache_flex_core_UIBase.prototype.get_parent = function() { var p = this.positioner.parentNode; var wrapper = p.flexjs_wrapper; return wrapper; @@ -232,11 +232,11 @@ org.apache.flex.core.UIBase.prototype.get_parent = function() { /** */ -org.apache.flex.core.UIBase.prototype.addedToParent = function() { +org_apache_flex_core_UIBase.prototype.addedToParent = function() { var styles = this.get_style(); if (styles) - org.apache.flex.core.ValuesManager.valuesImpl.applyStyles(this, styles); + org_apache_flex_core_ValuesManager.valuesImpl.applyStyles(this, styles); if (this.mxmlBeads_) { var n = this.mxmlBeads_.length; @@ -249,10 +249,10 @@ org.apache.flex.core.UIBase.prototype.addedToParent = function() { * @type {Function} */ var c; - if (this.getBeadByType(org.apache.flex.core.IBeadModel) == null) + if (this.getBeadByType(org_apache_flex_core_IBeadModel) == null) { - if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) { - c = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl. + if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) { + c = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl. getValue(this, 'iBeadModel')); if (c) { @@ -262,10 +262,10 @@ org.apache.flex.core.UIBase.prototype.addedToParent = function() { } } } - if (this.getBeadByType(org.apache.flex.core.IBeadView) == null) + if (this.getBeadByType(org_apache_flex_core_IBeadView) == null) { - if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) { - c = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl. + if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) { + c = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl. getValue(this, 'iBeadView')); if (c) { @@ -275,10 +275,10 @@ org.apache.flex.core.UIBase.prototype.addedToParent = function() { } } } - if (this.getBeadByType(org.apache.flex.core.IBeadLayout) == null) + if (this.getBeadByType(org_apache_flex_core_IBeadLayout) == null) { - if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) { - c = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl. + if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) { + c = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl. getValue(this, 'iBeadLayout')); if (c) { @@ -288,10 +288,10 @@ org.apache.flex.core.UIBase.prototype.addedToParent = function() { } } } - if (this.getBeadByType(org.apache.flex.core.IBeadController) == null) + if (this.getBeadByType(org_apache_flex_core_IBeadController) == null) { - if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) { - c = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl. + if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) { + c = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl. getValue(this, 'iBeadController')); if (c) { @@ -307,17 +307,17 @@ org.apache.flex.core.UIBase.prototype.addedToParent = function() { /** * @param {Object} bead The bead to be added. */ -org.apache.flex.core.UIBase.prototype.addBead = function(bead) { +org_apache_flex_core_UIBase.prototype.addBead = function(bead) { if (!this.beads_) { this.beads_ = []; } this.beads_.push(bead); - if (org.apache.flex.utils.Language.is(bead, org.apache.flex.core.IBeadModel)) + if (org_apache_flex_utils_Language.is(bead, org_apache_flex_core_IBeadModel)) this.model = bead; - if (org.apache.flex.utils.Language.is(bead, org.apache.flex.core.IBeadView)) { - this.dispatchEvent(new org.apache.flex.events.Event('viewChanged')); + if (org_apache_flex_utils_Language.is(bead, org_apache_flex_core_IBeadView)) { + this.dispatchEvent(new org_apache_flex_events_Event('viewChanged')); } bead.set_strand(this); @@ -328,14 +328,14 @@ org.apache.flex.core.UIBase.prototype.addBead = function(bead) { * @param {Object} classOrInterface A type or interface. * @return {Object} The bead of the given type or null. */ -org.apache.flex.core.UIBase.prototype.getBeadByType = +org_apache_flex_core_UIBase.prototype.getBeadByType = function(classOrInterface) { if (!this.beads_) { this.beads_ = []; } for (var i = 0; i < this.beads_.length; i++) { var bead = this.beads_[i]; - if (org.apache.flex.utils.Language.is(bead, classOrInterface)) { + if (org_apache_flex_utils_Language.is(bead, classOrInterface)) { return bead; } } @@ -347,7 +347,7 @@ org.apache.flex.core.UIBase.prototype.getBeadByType = * @param {Object} value The bead to be removed. * @return {Object} The bead that was removed. */ -org.apache.flex.core.UIBase.prototype.removeBead = +org_apache_flex_core_UIBase.prototype.removeBead = function(value) { if (!this.beads_) return null; var n = this.beads_.length; @@ -367,7 +367,7 @@ org.apache.flex.core.UIBase.prototype.removeBead = * @expose * @param {number} alpha The alpha or opacity. */ -org.apache.flex.core.UIBase.prototype.set_alpha = function(alpha) { +org_apache_flex_core_UIBase.prototype.set_alpha = function(alpha) { this.positioner.style.opacity = alpha; }; @@ -376,7 +376,7 @@ org.apache.flex.core.UIBase.prototype.set_alpha = function(alpha) { * @expose * @return {number} The alpha or opacity. */ -org.apache.flex.core.UIBase.prototype.get_alpha = function() { +org_apache_flex_core_UIBase.prototype.get_alpha = function() { var stralpha = this.positioner.style.opacity; var alpha = parseFloat(stralpha); return alpha; @@ -387,7 +387,7 @@ org.apache.flex.core.UIBase.prototype.get_alpha = function() { * @expose * @param {number} pixels The pixel count from the left edge. */ -org.apache.flex.core.UIBase.prototype.set_x = function(pixels) { +org_apache_flex_core_UIBase.prototype.set_x = function(pixels) { this.positioner.style.position = 'absolute'; this.positioner.style.left = pixels.toString() + 'px'; }; @@ -397,7 +397,7 @@ org.apache.flex.core.UIBase.prototype.set_x = function(pixels) { * @expose * @return {number} The pixel count from the left edge. */ -org.apache.flex.core.UIBase.prototype.get_x = function() { +org_apache_flex_core_UIBase.prototype.get_x = function() { var strpixels = this.positioner.style.left; var pixels = parseFloat(strpixels); if (isNaN(pixels)) @@ -410,7 +410,7 @@ org.apache.flex.core.UIBase.prototype.get_x = function() { * @expose * @param {number} pixels The pixel count from the top edge. */ -org.apache.flex.core.UIBase.prototype.set_y = function(pixels) { +org_apache_flex_core_UIBase.prototype.set_y = function(pixels) { this.positioner.style.position = 'absolute'; this.positioner.style.top = pixels.toString() + 'px'; }; @@ -420,7 +420,7 @@ org.apache.flex.core.UIBase.prototype.set_y = function(pixels) { * @expose * @return {number} The pixel count from the top edge. */ -org.apache.flex.core.UIBase.prototype.get_y = function() { +org_apache_flex_core_UIBase.prototype.get_y = function() { var strpixels = this.positioner.style.top; var pixels = parseFloat(strpixels); if (isNaN(pixels)) @@ -433,7 +433,7 @@ org.apache.flex.core.UIBase.prototype.get_y = function() { * @expose * @param {number} pixels The pixel count from the left edge. */ -org.apache.flex.core.UIBase.prototype.set_width = function(pixels) { +org_apache_flex_core_UIBase.prototype.set_width = function(pixels) { this.set_explicitWidth(pixels); this.setWidth(pixels); }; @@ -443,7 +443,7 @@ org.apache.flex.core.UIBase.prototype.set_width = function(pixels) { * @expose * @return {number} The width of the object in pixels. */ -org.apache.flex.core.UIBase.prototype.get_width = function() { +org_apache_flex_core_UIBase.prototype.get_width = function() { var pixels; var strpixels = this.positioner.style.width; if (strpixels !== null && strpixels.indexOf('%') != -1) @@ -465,7 +465,7 @@ org.apache.flex.core.UIBase.prototype.get_width = function() { * @expose * @param {number} pixels The pixel count from the left edge. */ -org.apache.flex.core.UIBase.prototype.set_explicitWidth = function(pixels) { +org_apache_flex_core_UIBase.prototype.set_explicitWidth = function(pixels) { this.explicitWidth_ = pixels; if (!isNaN(pixels)) this.percentWidth_ = NaN; @@ -476,7 +476,7 @@ org.apache.flex.core.UIBase.prototype.set_explicitWidth = function(pixels) { * @expose * @return {number} The width of the object in pixels. */ -org.apache.flex.core.UIBase.prototype.get_explicitWidth = function() { +org_apache_flex_core_UIBase.prototype.get_explicitWidth = function() { return this.explicitWidth_; }; @@ -485,7 +485,7 @@ org.apache.flex.core.UIBase.prototype.get_explicitWidth = function() { * @expose * @param {number} pixels The percent width of the object. */ -org.apache.flex.core.UIBase.prototype.set_percentWidth = function(pixels) { +org_apache_flex_core_UIBase.prototype.set_percentWidth = function(pixels) { this.percentWidth_ = pixels; this.positioner.style.width = pixels.toString() + '%'; if (!isNaN(pixels)) @@ -497,7 +497,7 @@ org.apache.flex.core.UIBase.prototype.set_percentWidth = function(pixels) { * @expose * @return {number} The percent width of the object. */ -org.apache.flex.core.UIBase.prototype.get_percentWidth = function() { +org_apache_flex_core_UIBase.prototype.get_percentWidth = function() { return this.percentWidth_; }; @@ -506,7 +506,7 @@ org.apache.flex.core.UIBase.prototype.get_percentWidth = function() { * @expose * @param {number} pixels The pixel count from the top edge. */ -org.apache.flex.core.UIBase.prototype.set_height = function(pixels) { +org_apache_flex_core_UIBase.prototype.set_height = function(pixels) { this.set_explicitHeight(pixels); this.setHeight(pixels); }; @@ -516,7 +516,7 @@ org.apache.flex.core.UIBase.prototype.set_height = function(pixels) { * @expose * @return {number} The height of the object in pixels. */ -org.apache.flex.core.UIBase.prototype.get_height = function() { +org_apache_flex_core_UIBase.prototype.get_height = function() { var pixels; var strpixels = this.positioner.style.height; if (strpixels !== null && strpixels.indexOf('%') != -1) @@ -538,7 +538,7 @@ org.apache.flex.core.UIBase.prototype.get_height = function() { * @expose * @param {number} pixels The height of the object in pixels. */ -org.apache.flex.core.UIBase.prototype.set_explicitHeight = function(pixels) { +org_apache_flex_core_UIBase.prototype.set_explicitHeight = function(pixels) { this.explicitHeight_ = pixels; if (!isNaN(pixels)) this.percentHeight_ = NaN; @@ -549,7 +549,7 @@ org.apache.flex.core.UIBase.prototype.set_explicitHeight = function(pixels) { * @expose * @return {number} The height of the object in pixels. */ -org.apache.flex.core.UIBase.prototype.get_explicitHeight = function() { +org_apache_flex_core_UIBase.prototype.get_explicitHeight = function() { return this.explicitHeight_; }; @@ -558,7 +558,7 @@ org.apache.flex.core.UIBase.prototype.get_explicitHeight = function() { * @expose * @param {number} pixels The percentage height. */ -org.apache.flex.core.UIBase.prototype.set_percentHeight = function(pixels) { +org_apache_flex_core_UIBase.prototype.set_percentHeight = function(pixels) { this.percentHeight_ = pixels; this.positioner.style.height = pixels.toString() + '%'; if (!isNaN(pixels)) @@ -570,7 +570,7 @@ org.apache.flex.core.UIBase.prototype.set_percentHeight = function(pixels) { * @expose * @return {number} The percentage height of the object. */ -org.apache.flex.core.UIBase.prototype.get_percentHeight = function() { +org_apache_flex_core_UIBase.prototype.get_percentHeight = function() { return this.percentHeight_; }; @@ -580,7 +580,7 @@ org.apache.flex.core.UIBase.prototype.get_percentHeight = function() { * @param {number} value The height of the object in pixels. * @param {boolean=} opt_noEvent Whether to skip sending a change event. */ -org.apache.flex.core.UIBase.prototype.setHeight = +org_apache_flex_core_UIBase.prototype.setHeight = function(value, opt_noEvent) { if (opt_noEvent === undefined) @@ -600,7 +600,7 @@ org.apache.flex.core.UIBase.prototype.setHeight = * @param {number} value The width of the object in pixels. * @param {boolean=} opt_noEvent Whether to skip sending a change event. */ -org.apache.flex.core.UIBase.prototype.setWidth = +org_apache_flex_core_UIBase.prototype.setWidth = function(value, opt_noEvent) { if (opt_noEvent === undefined) @@ -621,7 +621,7 @@ org.apache.flex.core.UIBase.prototype.setWidth = * @param {number} newHeight The height of the object in pixels. * @param {boolean=} opt_noEvent Whether to skip sending a change event. */ -org.apache.flex.core.UIBase.prototype.setWidthAndHeight = +org_apache_flex_core_UIBase.prototype.setWidthAndHeight = function(newWidth, newHeight, opt_noEvent) { if (opt_noEvent === undefined) @@ -647,7 +647,7 @@ org.apache.flex.core.UIBase.prototype.setWidthAndHeight = * @expose * @return {boolean} True if width sized to content. */ -org.apache.flex.core.UIBase.prototype.isWidthSizedToContent = function() +org_apache_flex_core_UIBase.prototype.isWidthSizedToContent = function() { return (isNaN(this.explicitWidth_) && isNaN(this.percentWidth_)); }; @@ -657,7 +657,7 @@ org.apache.flex.core.UIBase.prototype.isWidthSizedToContent = function() * @expose * @return {boolean} True if height sized to content. */ -org.apache.flex.core.UIBase.prototype.isHeightSizedToContent = function() +org_apache_flex_core_UIBase.prototype.isHeightSizedToContent = function() { return (isNaN(this.explicitHeight_) && isNaN(this.percentHeight_)); }; @@ -667,14 +667,14 @@ org.apache.flex.core.UIBase.prototype.isHeightSizedToContent = function() * @expose * @type {string} */ -org.apache.flex.core.UIBase.prototype.id = ''; +org_apache_flex_core_UIBase.prototype.id = ''; /** * @expose * @return {string} The id. */ -org.apache.flex.core.UIBase.prototype.get_id = function() { +org_apache_flex_core_UIBase.prototype.get_id = function() { return this.id; }; @@ -683,7 +683,7 @@ org.apache.flex.core.UIBase.prototype.get_id = function() { * @expose * @param {string} value The new id. */ -org.apache.flex.core.UIBase.prototype.set_id = function(value) { +org_apache_flex_core_UIBase.prototype.set_id = function(value) { if (this.id !== value) { this.element.id = value; this.id = value; @@ -696,21 +696,21 @@ org.apache.flex.core.UIBase.prototype.set_id = function(value) { * @expose * @type {string} */ -org.apache.flex.core.UIBase.prototype.typeNames = ''; +org_apache_flex_core_UIBase.prototype.typeNames = ''; /** * @expose * @type {string} */ -org.apache.flex.core.UIBase.prototype.className = ''; +org_apache_flex_core_UIBase.prototype.className = ''; /** * @expose * @return {string} The className. */ -org.apache.flex.core.UIBase.prototype.get_className = function() { +org_apache_flex_core_UIBase.prototype.get_className = function() { return this.className; }; @@ -719,7 +719,7 @@ org.apache.flex.core.UIBase.prototype.get_className = function() { * @expose * @param {string} value The new className. */ -org.apache.flex.core.UIBase.prototype.set_className = function(value) { +org_apache_flex_core_UIBase.prototype.set_className = function(value) { if (this.className !== value) { this.element.className = this.typeNames ? value + ' ' + this.typeNames : value; @@ -733,22 +733,22 @@ org.apache.flex.core.UIBase.prototype.set_className = function(value) { * @expose * @type {Object} */ -org.apache.flex.core.UIBase.prototype.model = null; +org_apache_flex_core_UIBase.prototype.model = null; /** * @expose * @return {Object} The model. */ -org.apache.flex.core.UIBase.prototype.get_model = function() { +org_apache_flex_core_UIBase.prototype.get_model = function() { if (this.model == null) { // addbead will set _model - if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) { + if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) { /** * @type {Function} */ - var m = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl. + var m = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl. getValue(this, 'iBeadModel')); var b = new m(); this.addBead(b); @@ -762,7 +762,7 @@ org.apache.flex.core.UIBase.prototype.get_model = function() { * @expose * @param {Object} value The new model. */ -org.apache.flex.core.UIBase.prototype.set_model = function(value) { +org_apache_flex_core_UIBase.prototype.set_model = function(value) { if (this.model !== value) { this.addBead(value); this.dispatchEvent('modelChanged'); @@ -774,7 +774,7 @@ org.apache.flex.core.UIBase.prototype.set_model = function(value) { * @expose * @return {Object} The style properties. */ -org.apache.flex.core.UIBase.prototype.get_style = function() { +org_apache_flex_core_UIBase.prototype.get_style = function() { return this.style_; }; @@ -783,13 +783,13 @@ org.apache.flex.core.UIBase.prototype.get_style = function() { * @expose * @param {Object} value The new style properties. */ -org.apache.flex.core.UIBase.prototype.set_style = function(value) { +org_apache_flex_core_UIBase.prototype.set_style = function(value) { if (this.style_ !== value) { if (typeof(value) == 'string') - value = org.apache.flex.core.ValuesManager.valuesImpl.parseStyles(value); + value = org_apache_flex_core_ValuesManager.valuesImpl.parseStyles(value); this.style_ = value; if (value.addEventListener) - value.addEventListener(org.apache.flex.events.ValueChangeEvent.VALUE_CHANGE, + value.addEventListener(org_apache_flex_events_ValueChangeEvent.VALUE_CHANGE, goog.bind(this.styleChangeHandler, this)); this.dispatchEvent('stylesChanged'); } @@ -798,12 +798,12 @@ org.apache.flex.core.UIBase.prototype.set_style = function(value) { /** * @expose - * @param {org.apache.flex.events.ValueChangeEvent} value The new style properties. + * @param {org_apache_flex_events_ValueChangeEvent} value The new style properties. */ -org.apache.flex.core.UIBase.prototype.styleChangeHandler = function(value) { +org_apache_flex_core_UIBase.prototype.styleChangeHandler = function(value) { var newStyle = {}; newStyle[value.propertyName] = value.newValue; - org.apache.flex.core.ValuesManager.valuesImpl.applyStyles(this, newStyle); + org_apache_flex_core_ValuesManager.valuesImpl.applyStyles(this, newStyle); }; @@ -811,7 +811,7 @@ org.apache.flex.core.UIBase.prototype.styleChangeHandler = function(value) { * @expose * @return {boolean} True if visible. */ -org.apache.flex.core.UIBase.prototype.get_visible = function() { +org_apache_flex_core_UIBase.prototype.get_visible = function() { return this.positioner.style.display !== 'none'; }; @@ -820,20 +820,20 @@ org.apache.flex.core.UIBase.prototype.get_visible = function() { * @expose * @param {boolean} value The new model. */ -org.apache.flex.core.UIBase.prototype.set_visible = function(value) { +org_apache_flex_core_UIBase.prototype.set_visible = function(value) { var oldValue = this.positioner.style.display !== 'none'; if (value !== oldValue) { if (!value) { this.lastDisplay_ = this.positioner.style.display; this.positioner.style.display = 'none'; - this.dispatchEvent(new org.apache.flex.events.Event('hide')); + this.dispatchEvent(new org_apache_flex_events_Event('hide')); } else { if (this.lastDisplay_) { this.positioner.style.display = this.lastDisplay_; } else { this.positioner.style.display = 'block'; } - this.dispatchEvent(new org.apache.flex.events.Event('show')); + this.dispatchEvent(new org_apache_flex_events_Event('show')); } } }; @@ -843,6 +843,6 @@ org.apache.flex.core.UIBase.prototype.set_visible = function(value) { * @expose * @return {Object} The top most EventDispatcher. */ -org.apache.flex.core.UIBase.prototype.get_topMostEventDispatcher = function() { +org_apache_flex_core_UIBase.prototype.get_topMostEventDispatcher = function() { return document.body.flexjs_wrapper; }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js index 02cbf8d..9ac715a 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js @@ -12,16 +12,16 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.ValuesManager'); +goog.provide('org_apache_flex_core_ValuesManager'); -goog.require('org.apache.flex.core.IValuesImpl'); +goog.require('org_apache_flex_core_IValuesImpl'); /** * @constructor */ -org.apache.flex.core.ValuesManager = function() { +org_apache_flex_core_ValuesManager = function() { }; @@ -30,33 +30,33 @@ org.apache.flex.core.ValuesManager = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.ValuesManager.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_ValuesManager.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'ValuesManager', - qName: 'org.apache.flex.core.ValuesManager' }] }; + qName: 'org_apache_flex_core_ValuesManager' }] }; /** * @expose - * @type {org.apache.flex.core.IValuesImpl} + * @type {org_apache_flex_core_IValuesImpl} */ -org.apache.flex.core.ValuesManager.prototype.valuesImpl = null; +org_apache_flex_core_ValuesManager.prototype.valuesImpl = null; /** * @expose - * @this {org.apache.flex.core.ValuesManager} - * @return {org.apache.flex.core.IValuesImpl} The value. + * @this {org_apache_flex_core_ValuesManager} + * @return {org_apache_flex_core_IValuesImpl} The value. */ -org.apache.flex.core.ValuesManager.get_valuesImpl = function() { - return org.apache.flex.core.ValuesManager.valuesImpl; +org_apache_flex_core_ValuesManager.get_valuesImpl = function() { + return org_apache_flex_core_ValuesManager.valuesImpl; }; /** * @expose - * @this {org.apache.flex.core.ValuesManager} - * @param {org.apache.flex.core.IValuesImpl} value being set. + * @this {org_apache_flex_core_ValuesManager} + * @param {org_apache_flex_core_IValuesImpl} value being set. */ -org.apache.flex.core.ValuesManager.set_valuesImpl = function(value) { - org.apache.flex.core.ValuesManager.valuesImpl = value; +org_apache_flex_core_ValuesManager.set_valuesImpl = function(value) { + org_apache_flex_core_ValuesManager.valuesImpl = value; }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js index 12faa61..c5175e9 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js @@ -12,24 +12,24 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.ViewBase'); +goog.provide('org_apache_flex_core_ViewBase'); -goog.require('org.apache.flex.core.IPopUpHost'); -goog.require('org.apache.flex.core.UIBase'); -goog.require('org.apache.flex.core.ValuesManager'); -goog.require('org.apache.flex.events.Event'); -goog.require('org.apache.flex.events.ValueChangeEvent'); -goog.require('org.apache.flex.utils.MXMLDataInterpreter'); +goog.require('org_apache_flex_core_IPopUpHost'); +goog.require('org_apache_flex_core_UIBase'); +goog.require('org_apache_flex_core_ValuesManager'); +goog.require('org_apache_flex_events_Event'); +goog.require('org_apache_flex_events_ValueChangeEvent'); +goog.require('org_apache_flex_utils_MXMLDataInterpreter'); /** * @constructor - * @implements {org.apache.flex.core.IPopUpHost} - * @extends {org.apache.flex.core.UIBase} + * @implements {org_apache_flex_core_IPopUpHost} + * @extends {org_apache_flex_core_UIBase} */ -org.apache.flex.core.ViewBase = function() { - org.apache.flex.core.ViewBase.base(this, 'constructor'); +org_apache_flex_core_ViewBase = function() { + org_apache_flex_core_ViewBase.base(this, 'constructor'); /** * @private @@ -58,7 +58,7 @@ org.apache.flex.core.ViewBase = function() { this.document = this; }; -goog.inherits(org.apache.flex.core.ViewBase, org.apache.flex.core.UIBase); +goog.inherits(org_apache_flex_core_ViewBase, org_apache_flex_core_UIBase); /** @@ -66,25 +66,25 @@ goog.inherits(org.apache.flex.core.ViewBase, org.apache.flex.core.UIBase); * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.ViewBase.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_ViewBase.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'ViewBase', - qName: 'org.apache.flex.core.ViewBase' }], - interfaces: [org.apache.flex.core.IPopUpHost] }; + qName: 'org_apache_flex_core_ViewBase' }], + interfaces: [org_apache_flex_core_IPopUpHost] }; /** * @expose * @type {Object} */ -org.apache.flex.core.ViewBase.prototype.applicationModel = null; +org_apache_flex_core_ViewBase.prototype.applicationModel = null; /** * @expose * @param {Array} data The data for the attributes. */ -org.apache.flex.core.ViewBase.prototype.generateMXMLAttributes = function(data) { - org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this, data); +org_apache_flex_core_ViewBase.prototype.generateMXMLAttributes = function(data) { + org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties(this, data); }; @@ -92,21 +92,21 @@ org.apache.flex.core.ViewBase.prototype.generateMXMLAttributes = function(data) * @expose * @type {Array} */ -org.apache.flex.core.ViewBase.prototype.MXMLDescriptor = null; +org_apache_flex_core_ViewBase.prototype.MXMLDescriptor = null; /** * @expose * @type {Object} The document. */ -org.apache.flex.core.ViewBase.prototype.document = null; +org_apache_flex_core_ViewBase.prototype.document = null; /** * @expose * @return {Array} An array of descriptors. */ -org.apache.flex.core.ViewBase.prototype.get_MXMLDescriptor = function() { +org_apache_flex_core_ViewBase.prototype.get_MXMLDescriptor = function() { return this.MXMLDescriptor; }; @@ -116,7 +116,7 @@ org.apache.flex.core.ViewBase.prototype.get_MXMLDescriptor = function() { * @param {Object} doc The document. * @param {Array} desc The descriptor data; */ -org.apache.flex.core.ViewBase.prototype.setMXMLDescriptor = +org_apache_flex_core_ViewBase.prototype.setMXMLDescriptor = function(doc, desc) { this.MXMLDescriptor = desc; this.document = doc; @@ -126,25 +126,25 @@ org.apache.flex.core.ViewBase.prototype.setMXMLDescriptor = /** * @expose */ -org.apache.flex.core.ViewBase.prototype.addedToParent = function() { +org_apache_flex_core_ViewBase.prototype.addedToParent = function() { - //org.apache.flex.core.ViewBase.base(this,'addedToParent'); + //org_apache_flex_core_ViewBase.base(this,'addedToParent'); this.element.flexjs_wrapper = this; - if (org.apache.flex.core.ValuesManager.valuesImpl.init) { - org.apache.flex.core.ValuesManager.valuesImpl.init(this); + if (org_apache_flex_core_ValuesManager.valuesImpl.init) { + org_apache_flex_core_ValuesManager.valuesImpl.init(this); } - org.apache.flex.core.ViewBase.base(this, 'addedToParent'); + org_apache_flex_core_ViewBase.base(this, 'addedToParent'); if (!this.initialized_) { - org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this.document, + org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this.document, this, this.get_MXMLDescriptor()); - this.dispatchEvent(new org.apache.flex.events.Event('initBindings')); - this.dispatchEvent(new org.apache.flex.events.Event('initComplete')); + this.dispatchEvent(new org_apache_flex_events_Event('initBindings')); + this.dispatchEvent(new org_apache_flex_events_Event('initComplete')); this.initialized_ = true; } - this.dispatchEvent(new org.apache.flex.events.Event('childrenAdded')); + this.dispatchEvent(new org_apache_flex_events_Event('childrenAdded')); }; @@ -152,7 +152,7 @@ org.apache.flex.core.ViewBase.prototype.addedToParent = function() { * @expose * @return {Object} The application model. */ -org.apache.flex.core.ViewBase.prototype.get_applicationModel = function() { +org_apache_flex_core_ViewBase.prototype.get_applicationModel = function() { return this.applicationModel; }; @@ -161,7 +161,7 @@ org.apache.flex.core.ViewBase.prototype.get_applicationModel = function() { * @expose * @return {Array} The array of State objects. */ -org.apache.flex.core.ViewBase.prototype.get_states = function() { +org_apache_flex_core_ViewBase.prototype.get_states = function() { return this.states_; }; @@ -170,15 +170,15 @@ org.apache.flex.core.ViewBase.prototype.get_states = function() { * @expose * @param {Array} value The array of State objects. */ -org.apache.flex.core.ViewBase.prototype.set_states = function(value) { +org_apache_flex_core_ViewBase.prototype.set_states = function(value) { this.states_ = value; this.currentState_ = value[0].name; - if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) { + if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) { /** * @type {Function} */ - var impl = /** @type {Function} */ (org.apache.flex.core.ValuesManager.valuesImpl. + var impl = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl. getValue(this, 'iStatesImpl')); // TODO: (aharui) check if bead already exists this.addBead(new impl()); @@ -191,7 +191,7 @@ org.apache.flex.core.ViewBase.prototype.set_states = function(value) { * @param {string} state The name of the state. * @return {boolean} True if state in states array. */ -org.apache.flex.core.ViewBase.prototype.hasState = function(state) { +org_apache_flex_core_ViewBase.prototype.hasState = function(state) { for (var p in this.states_) { var s = this.states_[p]; @@ -206,7 +206,7 @@ org.apache.flex.core.ViewBase.prototype.hasState = function(state) { * @expose * @return {string} The name of the current state. */ -org.apache.flex.core.ViewBase.prototype.get_currentState = function() { +org_apache_flex_core_ViewBase.prototype.get_currentState = function() { return this.currentState_; }; @@ -215,8 +215,8 @@ org.apache.flex.core.ViewBase.prototype.get_currentState = function() { * @expose * @param {string} value The name of the current state. */ -org.apache.flex.core.ViewBase.prototype.set_currentState = function(value) { - var event = new org.apache.flex.events.ValueChangeEvent( +org_apache_flex_core_ViewBase.prototype.set_currentState = function(value) { + var event = new org_apache_flex_events_ValueChangeEvent( 'currentStateChange', false, false, this.currentState_, value); this.currentState_ = value; this.dispatchEvent(event); @@ -227,7 +227,7 @@ org.apache.flex.core.ViewBase.prototype.set_currentState = function(value) { * @expose * @return {Array} The array of transitions. */ -org.apache.flex.core.ViewBase.prototype.get_transitions = function() { +org_apache_flex_core_ViewBase.prototype.get_transitions = function() { return this.transitions_; }; @@ -236,7 +236,7 @@ org.apache.flex.core.ViewBase.prototype.get_transitions = function() { * @expose * @param {Array} value The array of transitions. */ -org.apache.flex.core.ViewBase.prototype.set_transitions = function(value) { +org_apache_flex_core_ViewBase.prototype.set_transitions = function(value) { this.transitions_ = value; };
