http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js index e9c2be9..2380e40 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js @@ -12,21 +12,21 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.ViewBaseDataBinding'); +goog.provide('org_apache_flex_core_ViewBaseDataBinding'); -goog.require('org.apache.flex.binding.ConstantBinding'); -goog.require('org.apache.flex.binding.GenericBinding'); -goog.require('org.apache.flex.binding.PropertyWatcher'); -goog.require('org.apache.flex.binding.SimpleBinding'); -goog.require('org.apache.flex.events.Event'); -goog.require('org.apache.flex.events.ValueChangeEvent'); +goog.require('org_apache_flex_binding_ConstantBinding'); +goog.require('org_apache_flex_binding_GenericBinding'); +goog.require('org_apache_flex_binding_PropertyWatcher'); +goog.require('org_apache_flex_binding_SimpleBinding'); +goog.require('org_apache_flex_events_Event'); +goog.require('org_apache_flex_events_ValueChangeEvent'); /** * @constructor */ -org.apache.flex.core.ViewBaseDataBinding = function() { +org_apache_flex_core_ViewBaseDataBinding = function() { /** * @private @@ -48,16 +48,16 @@ org.apache.flex.core.ViewBaseDataBinding = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.ViewBaseDataBinding.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_ViewBaseDataBinding.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'ViewBaseDataBinding', - qName: 'org.apache.flex.core.ViewBaseDataBinding'}] }; + qName: 'org_apache_flex_core_ViewBaseDataBinding'}] }; /** * @expose * @param {Object} value The new host. */ -org.apache.flex.core.ViewBaseDataBinding.prototype.set_strand = +org_apache_flex_core_ViewBaseDataBinding.prototype.set_strand = function(value) { if (this.strand_ !== value) { this.strand_ = value; @@ -71,7 +71,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.set_strand = * @protected * @param {Object} event The event. */ -org.apache.flex.core.ViewBaseDataBinding.prototype.initCompleteHandler = +org_apache_flex_core_ViewBaseDataBinding.prototype.initCompleteHandler = function(event) { var prop; @@ -112,7 +112,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.initCompleteHandler = fieldWatcher = childMap[binding.source[1]]; if (typeof(fieldWatcher.eventNames) == 'string') { - sb = new org.apache.flex.binding.SimpleBinding(); + sb = new org_apache_flex_binding_SimpleBinding(); sb.destinationPropertyName = binding.destination[1]; sb.eventName = fieldWatcher.eventNames; @@ -141,7 +141,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.initCompleteHandler = else if (fieldWatcher.eventNames == null) { var cb; - cb = org.apache.flex.binding.ConstantBinding; + cb = org_apache_flex_binding_ConstantBinding; cb = new cb(); cb.destinationPropertyName = binding.destination[1]; @@ -174,7 +174,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.initCompleteHandler = fieldWatcher = watchers.watcherMap[binding.source]; if (typeof(fieldWatcher.eventNames) == 'string') { - sb = new org.apache.flex.binding.SimpleBinding(); + sb = new org_apache_flex_binding_SimpleBinding(); sb.destinationPropertyName = binding.destination[1]; sb.eventName = fieldWatcher.eventNames; sb.sourcePropertyName = binding.source; @@ -211,9 +211,9 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.initCompleteHandler = * @param {number} index The offset in the Binding database. * @param {Object} watchers The database of Watchers. */ -org.apache.flex.core.ViewBaseDataBinding.prototype.makeGenericBinding = +org_apache_flex_core_ViewBaseDataBinding.prototype.makeGenericBinding = function(binding, index, watchers) { - var gb = new org.apache.flex.binding.GenericBinding(); + var gb = new org_apache_flex_binding_GenericBinding(); gb.setDocument(this.strand_); gb.destinationData = binding.destination; gb.destinationFunction = binding.destFunc; @@ -229,7 +229,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.makeGenericBinding = * @param {Object} watchers The array of Watchers. * @param {Object} parentWatcher The parent Watcher or null if top. */ -org.apache.flex.core.ViewBaseDataBinding.prototype.setupWatchers = +org_apache_flex_core_ViewBaseDataBinding.prototype.setupWatchers = function(gb, index, watchers, parentWatcher) { var i, n; n = watchers.length; @@ -243,7 +243,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.setupWatchers = { case 'property': { - var pw = new org.apache.flex.binding.PropertyWatcher( + var pw = new org_apache_flex_binding_PropertyWatcher( this, watcher.propertyName, watcher.eventNames, @@ -275,7 +275,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.setupWatchers = * @param {Object} bindingData The watcher data to decode. * @return {Object} The watcher tree structure. */ -org.apache.flex.core.ViewBaseDataBinding.prototype.decodeWatcher = +org_apache_flex_core_ViewBaseDataBinding.prototype.decodeWatcher = function(bindingData) { var watcherMap = {}; var watchers = []; @@ -342,9 +342,9 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.decodeWatcher = /** * @protected - * @param {org.apache.flex.events.ValueChangeEvent} event The event. + * @param {org_apache_flex_events_ValueChangeEvent} event The event. */ -org.apache.flex.core.ViewBaseDataBinding.prototype.deferredBindingsHandler = +org_apache_flex_core_ViewBaseDataBinding.prototype.deferredBindingsHandler = function(event) { var p; var destination;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js index 205b9a9..7a7b47f 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js @@ -12,18 +12,18 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.Circle'); +goog.provide('org_apache_flex_core_graphics_Circle'); -goog.require('org.apache.flex.core.graphics.GraphicShape'); +goog.require('org_apache_flex_core_graphics_GraphicShape'); /** * @constructor - * @extends {org.apache.flex.core.graphics.GraphicShape} + * @extends {org_apache_flex_core_graphics_GraphicShape} */ -org.apache.flex.core.graphics.Circle = function() { - org.apache.flex.core.graphics.Circle.base(this, 'constructor'); +org_apache_flex_core_graphics_Circle = function() { + org_apache_flex_core_graphics_Circle.base(this, 'constructor'); /** * @private @@ -31,8 +31,8 @@ org.apache.flex.core.graphics.Circle = function() { */ this.radius_ = 0; }; -goog.inherits(org.apache.flex.core.graphics.Circle, - org.apache.flex.core.graphics.GraphicShape); +goog.inherits(org_apache_flex_core_graphics_Circle, + org_apache_flex_core_graphics_GraphicShape); /** @@ -40,16 +40,16 @@ goog.inherits(org.apache.flex.core.graphics.Circle, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.Circle.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_Circle.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Circle', - qName: 'org.apache.flex.core.graphics.Circle' }] }; + qName: 'org_apache_flex_core_graphics_Circle' }] }; /** * @expose * @param {number} v The radius of the circle. */ -org.apache.flex.core.graphics.Circle.prototype.set_radius = function(v) { +org_apache_flex_core_graphics_Circle.prototype.set_radius = function(v) { this.radius_ = v; }; @@ -58,7 +58,7 @@ org.apache.flex.core.graphics.Circle.prototype.set_radius = function(v) { * @expose * @return {number} The radius of the circle. */ -org.apache.flex.core.graphics.Circle.prototype.get_radius = function() { +org_apache_flex_core_graphics_Circle.prototype.get_radius = function() { return this.radius_; }; @@ -69,7 +69,7 @@ org.apache.flex.core.graphics.Circle.prototype.get_radius = function() { * @param {number} y The y location of the center of the circle. * @param {number} radius The radius of the circle. */ -org.apache.flex.core.graphics.Circle.prototype.drawCircle = function(x, y, radius) { +org_apache_flex_core_graphics_Circle.prototype.drawCircle = function(x, y, radius) { var style = this.getStyleStr(); var circle = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse'); circle.flexjs_wrapper = this; @@ -98,6 +98,6 @@ org.apache.flex.core.graphics.Circle.prototype.drawCircle = function(x, y, radiu /** * @override */ -org.apache.flex.core.graphics.Circle.prototype.draw = function() { +org_apache_flex_core_graphics_Circle.prototype.draw = function() { this.drawCircle(this.get_x(), this.get_y(), this.get_radius()); - }; \ No newline at end of file + }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js index 9ce333a..1cd5d18 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js @@ -12,22 +12,22 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.Ellipse'); +goog.provide('org_apache_flex_core_graphics_Ellipse'); -goog.require('org.apache.flex.core.graphics.GraphicShape'); +goog.require('org_apache_flex_core_graphics_GraphicShape'); /** * @constructor - * @extends {org.apache.flex.core.graphics.GraphicShape} + * @extends {org_apache_flex_core_graphics_GraphicShape} */ -org.apache.flex.core.graphics.Ellipse = function() { - org.apache.flex.core.graphics.Ellipse.base(this, 'constructor'); +org_apache_flex_core_graphics_Ellipse = function() { + org_apache_flex_core_graphics_Ellipse.base(this, 'constructor'); }; -goog.inherits(org.apache.flex.core.graphics.Ellipse, - org.apache.flex.core.graphics.GraphicShape); +goog.inherits(org_apache_flex_core_graphics_Ellipse, + org_apache_flex_core_graphics_GraphicShape); /** @@ -35,9 +35,9 @@ goog.inherits(org.apache.flex.core.graphics.Ellipse, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.Ellipse.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_Ellipse.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Ellipse', - qName: 'org.apache.flex.core.graphics.Ellipse' }] }; + qName: 'org_apache_flex_core_graphics_Ellipse' }] }; /** @@ -47,7 +47,7 @@ org.apache.flex.core.graphics.Ellipse.prototype.FLEXJS_CLASS_INFO = * @param {number} width The width of the ellipse. * @param {number} height The height of the ellipse. */ -org.apache.flex.core.graphics.Ellipse.prototype.drawEllipse = function(x, y, width, height) { +org_apache_flex_core_graphics_Ellipse.prototype.drawEllipse = function(x, y, width, height) { var style = this.getStyleStr(); var ellipse = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse'); ellipse.flexjs_wrapper = this; @@ -75,6 +75,6 @@ org.apache.flex.core.graphics.Ellipse.prototype.drawEllipse = function(x, y, wid /** * @override */ -org.apache.flex.core.graphics.Ellipse.prototype.draw = function() { +org_apache_flex_core_graphics_Ellipse.prototype.draw = function() { this.drawEllipse(this.get_x(), this.get_y(), this.get_width(), this.get_height()); - }; \ No newline at end of file + }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js index 66873b6..5d7ce32 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js @@ -13,21 +13,21 @@ */ /** - * org.apache.flex.core.graphics.GradientBase + * org_apache_flex_core_graphics_GradientBase * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.graphics.GradientBase'); +goog.provide('org_apache_flex_core_graphics_GradientBase'); /** * @constructor */ -org.apache.flex.core.graphics.GradientBase = function() { +org_apache_flex_core_graphics_GradientBase = function() { }; @@ -35,40 +35,40 @@ org.apache.flex.core.graphics.GradientBase = function() { * @protected * @type {Array} */ -org.apache.flex.core.graphics.GradientBase.prototype.colors = []; +org_apache_flex_core_graphics_GradientBase.prototype.colors = []; /** * @protected * @type {Array} */ -org.apache.flex.core.graphics.GradientBase.prototype.ratios = []; +org_apache_flex_core_graphics_GradientBase.prototype.ratios = []; /** * @protected * @type {Array} */ -org.apache.flex.core.graphics.GradientBase.prototype.alphas = []; +org_apache_flex_core_graphics_GradientBase.prototype.alphas = []; /** * @type {Array} */ -org.apache.flex.core.graphics.GradientBase.prototype._entries = []; +org_apache_flex_core_graphics_GradientBase.prototype._entries = []; /** * @type {number} */ -org.apache.flex.core.graphics.GradientBase.prototype._rotation = 0.0; +org_apache_flex_core_graphics_GradientBase.prototype._rotation = 0.0; /** * @expose * @return {Array} */ -org.apache.flex.core.graphics.GradientBase.prototype.get_entries = function() { +org_apache_flex_core_graphics_GradientBase.prototype.get_entries = function() { return this._entries; }; @@ -77,7 +77,7 @@ org.apache.flex.core.graphics.GradientBase.prototype.get_entries = function() { * @expose * @param {Array} value */ -org.apache.flex.core.graphics.GradientBase.prototype.set_entries = function(value) { +org_apache_flex_core_graphics_GradientBase.prototype.set_entries = function(value) { this._entries = value; }; @@ -91,7 +91,7 @@ org.apache.flex.core.graphics.GradientBase.prototype.set_entries = function(valu * to occur from right to left, rather than from left to right. * @return {number} */ -org.apache.flex.core.graphics.GradientBase.prototype.get_rotation = function() { +org_apache_flex_core_graphics_GradientBase.prototype.get_rotation = function() { return this._rotation; }; @@ -100,7 +100,7 @@ org.apache.flex.core.graphics.GradientBase.prototype.get_rotation = function() { * @expose * @param {number} value */ -org.apache.flex.core.graphics.GradientBase.prototype.set_rotation = function(value) { +org_apache_flex_core_graphics_GradientBase.prototype.set_rotation = function(value) { this._rotation = value; }; @@ -108,14 +108,14 @@ org.apache.flex.core.graphics.GradientBase.prototype.set_rotation = function(val /** * @type {number} */ -org.apache.flex.core.graphics.GradientBase.prototype._x = 0; +org_apache_flex_core_graphics_GradientBase.prototype._x = 0; /** * @expose * @return {number} */ -org.apache.flex.core.graphics.GradientBase.prototype.get_x = function() { +org_apache_flex_core_graphics_GradientBase.prototype.get_x = function() { return this._x; }; @@ -124,7 +124,7 @@ org.apache.flex.core.graphics.GradientBase.prototype.get_x = function() { * @expose * @param {number} value */ -org.apache.flex.core.graphics.GradientBase.prototype.set_x = function(value) { +org_apache_flex_core_graphics_GradientBase.prototype.set_x = function(value) { this._x = value; }; @@ -132,14 +132,14 @@ org.apache.flex.core.graphics.GradientBase.prototype.set_x = function(value) { /** * @type {number} */ -org.apache.flex.core.graphics.GradientBase.prototype._y = 0; +org_apache_flex_core_graphics_GradientBase.prototype._y = 0; /** * @expose * @param {number} value */ -org.apache.flex.core.graphics.GradientBase.prototype.set_y = function(value) { +org_apache_flex_core_graphics_GradientBase.prototype.set_y = function(value) { this._y = value; }; @@ -148,7 +148,7 @@ org.apache.flex.core.graphics.GradientBase.prototype.set_y = function(value) { * @expose * @return {number} */ -org.apache.flex.core.graphics.GradientBase.prototype.get_y = function() { +org_apache_flex_core_graphics_GradientBase.prototype.get_y = function() { return this._y; }; @@ -157,7 +157,7 @@ org.apache.flex.core.graphics.GradientBase.prototype.get_y = function() { * @expose * @return {string} A new gradient id value. */ -org.apache.flex.core.graphics.GradientBase.prototype.get_newId = function() { +org_apache_flex_core_graphics_GradientBase.prototype.get_newId = function() { return 'gradient' + String(Math.floor((Math.random() * 100000) + 1)); }; @@ -167,6 +167,6 @@ org.apache.flex.core.graphics.GradientBase.prototype.get_newId = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.GradientBase.prototype.FLEXJS_CLASS_INFO = { - names: [{ name: 'GradientBase', qName: 'org.apache.flex.core.graphics.GradientBase'}] +org_apache_flex_core_graphics_GradientBase.prototype.FLEXJS_CLASS_INFO = { + names: [{ name: 'GradientBase', qName: 'org_apache_flex_core_graphics_GradientBase'}] }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js index 68cd762..df85483 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js @@ -13,14 +13,14 @@ */ /** - * org.apache.flex.core.graphics.GradientEntry + * org_apache_flex_core_graphics_GradientEntry * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.graphics.GradientEntry'); +goog.provide('org_apache_flex_core_graphics_GradientEntry'); @@ -30,7 +30,7 @@ goog.provide('org.apache.flex.core.graphics.GradientEntry'); * @param {number} color * @param {number} ratio */ -org.apache.flex.core.graphics.GradientEntry = function(alpha, color, ratio) { +org_apache_flex_core_graphics_GradientEntry = function(alpha, color, ratio) { this._alpha = alpha; this._color = color; this._ratio = ratio; @@ -40,26 +40,26 @@ org.apache.flex.core.graphics.GradientEntry = function(alpha, color, ratio) { /** * @type {number} */ -org.apache.flex.core.graphics.GradientEntry.prototype._alpha = 1.0; +org_apache_flex_core_graphics_GradientEntry.prototype._alpha = 1.0; /** * @type {number} */ -org.apache.flex.core.graphics.GradientEntry.prototype._color = 0x000000; +org_apache_flex_core_graphics_GradientEntry.prototype._color = 0x000000; /** * @type {number} */ -org.apache.flex.core.graphics.GradientEntry.prototype._ratio = 0x000000; +org_apache_flex_core_graphics_GradientEntry.prototype._ratio = 0x000000; /** * @expose * @return {number} */ -org.apache.flex.core.graphics.GradientEntry.prototype.get_alpha = function() { +org_apache_flex_core_graphics_GradientEntry.prototype.get_alpha = function() { return this._alpha; }; @@ -68,7 +68,7 @@ org.apache.flex.core.graphics.GradientEntry.prototype.get_alpha = function() { * @expose * @param {number} value */ -org.apache.flex.core.graphics.GradientEntry.prototype.set_alpha = function(value) { +org_apache_flex_core_graphics_GradientEntry.prototype.set_alpha = function(value) { var /** @type {number} */ oldValue = this._alpha; if (value != oldValue) { this._alpha = value; @@ -80,7 +80,7 @@ org.apache.flex.core.graphics.GradientEntry.prototype.set_alpha = function(value * @expose * @return {number} */ -org.apache.flex.core.graphics.GradientEntry.prototype.get_color = function() { +org_apache_flex_core_graphics_GradientEntry.prototype.get_color = function() { return this._color; }; @@ -89,7 +89,7 @@ org.apache.flex.core.graphics.GradientEntry.prototype.get_color = function() { * @expose * @param {number} value */ -org.apache.flex.core.graphics.GradientEntry.prototype.set_color = function(value) { +org_apache_flex_core_graphics_GradientEntry.prototype.set_color = function(value) { var /** @type {number} */ oldValue = this._color; if (value != oldValue) { this._color = value; @@ -101,7 +101,7 @@ org.apache.flex.core.graphics.GradientEntry.prototype.set_color = function(value * @expose * @return {number} */ -org.apache.flex.core.graphics.GradientEntry.prototype.get_ratio = function() { +org_apache_flex_core_graphics_GradientEntry.prototype.get_ratio = function() { return this._ratio; }; @@ -110,25 +110,25 @@ org.apache.flex.core.graphics.GradientEntry.prototype.get_ratio = function() { * @expose * @param {number} value */ -org.apache.flex.core.graphics.GradientEntry.prototype.set_ratio = function(value) { +org_apache_flex_core_graphics_GradientEntry.prototype.set_ratio = function(value) { this._ratio = value; }; /** * @expose - * @param {org.apache.flex.core.graphics.GraphicShape} s + * @param {org_apache_flex_core_graphics_GraphicShape} s */ -org.apache.flex.core.graphics.GradientEntry.prototype.begin = function(s) { +org_apache_flex_core_graphics_GradientEntry.prototype.begin = function(s) { s.get_graphics().beginFill(this.get_color(), this.get_alpha()); }; /** * @expose - * @param {org.apache.flex.core.graphics.GraphicShape} s + * @param {org_apache_flex_core_graphics_GraphicShape} s */ -org.apache.flex.core.graphics.GradientEntry.prototype.end = function(s) { +org_apache_flex_core_graphics_GradientEntry.prototype.end = function(s) { s.get_graphics().endFill(); }; @@ -138,6 +138,6 @@ org.apache.flex.core.graphics.GradientEntry.prototype.end = function(s) { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.GradientEntry.prototype.FLEXJS_CLASS_INFO = { - names: [{ name: 'GradientEntry', qName: 'org.apache.flex.core.graphics.GradientEntry'}] +org_apache_flex_core_graphics_GradientEntry.prototype.FLEXJS_CLASS_INFO = { + names: [{ name: 'GradientEntry', qName: 'org_apache_flex_core_graphics_GradientEntry'}] }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js index 2707d80..fd4526f 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js @@ -12,30 +12,30 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.GraphicShape'); -goog.require('org.apache.flex.core.UIBase'); -goog.require('org.apache.flex.core.graphics.SolidColor'); -goog.require('org.apache.flex.core.graphics.SolidColorStroke'); +goog.provide('org_apache_flex_core_graphics_GraphicShape'); +goog.require('org_apache_flex_core_UIBase'); +goog.require('org_apache_flex_core_graphics_SolidColor'); +goog.require('org_apache_flex_core_graphics_SolidColorStroke'); /** * @constructor - * @extends {org.apache.flex.core.UIBase} + * @extends {org_apache_flex_core_UIBase} */ -org.apache.flex.core.graphics.GraphicShape = function() { +org_apache_flex_core_graphics_GraphicShape = function() { - org.apache.flex.core.graphics.GraphicShape.base(this, 'constructor'); + org_apache_flex_core_graphics_GraphicShape.base(this, 'constructor'); /** * @private - * @type {org.apache.flex.core.graphics.IFill} + * @type {org_apache_flex_core_graphics_IFill} */ this.fill_ = null; /** * @private - * @type {org.apache.flex.core.graphics.IStroke} + * @type {org_apache_flex_core_graphics_IStroke} */ this.stroke_ = null; @@ -74,8 +74,8 @@ org.apache.flex.core.graphics.GraphicShape = function() { this.element.offsetParent = null; this.positioner = this.element; }; -goog.inherits(org.apache.flex.core.graphics.GraphicShape, - org.apache.flex.core.UIBase); +goog.inherits(org_apache_flex_core_graphics_GraphicShape, + org_apache_flex_core_UIBase); /** @@ -83,42 +83,42 @@ goog.inherits(org.apache.flex.core.graphics.GraphicShape, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.GraphicShape.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_GraphicShape.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'GraphicShape', - qName: 'org.apache.flex.core.graphics.GraphicShape' }] }; + qName: 'org_apache_flex_core_graphics_GraphicShape' }] }; /** * @expose - * @return {org.apache.flex.core.graphics.IFill} The fill object. + * @return {org_apache_flex_core_graphics_IFill} The fill object. */ -org.apache.flex.core.graphics.GraphicShape.prototype.get_fill = function() { +org_apache_flex_core_graphics_GraphicShape.prototype.get_fill = function() { return this.fill_; }; /** - * @param {org.apache.flex.core.graphics.IFill} value The fill object. + * @param {org_apache_flex_core_graphics_IFill} value The fill object. */ -org.apache.flex.core.graphics.GraphicShape.prototype.set_fill = function(value) { +org_apache_flex_core_graphics_GraphicShape.prototype.set_fill = function(value) { this.fill_ = value; }; /** * @expose - * @return {org.apache.flex.core.graphics.IStroke} The stroke object. + * @return {org_apache_flex_core_graphics_IStroke} The stroke object. */ -org.apache.flex.core.graphics.GraphicShape.prototype.get_stroke = function() { +org_apache_flex_core_graphics_GraphicShape.prototype.get_stroke = function() { return this.stroke_; }; /** * @expose - * @param {org.apache.flex.core.graphics.IStroke} value The stroke object. + * @param {org_apache_flex_core_graphics_IStroke} value The stroke object. */ -org.apache.flex.core.graphics.GraphicShape.prototype.set_stroke = function(value) { +org_apache_flex_core_graphics_GraphicShape.prototype.set_stroke = function(value) { this.stroke_ = value; }; @@ -126,7 +126,7 @@ org.apache.flex.core.graphics.GraphicShape.prototype.set_stroke = function(value /** * */ -org.apache.flex.core.graphics.GraphicShape.prototype.addedToParent = function() { +org_apache_flex_core_graphics_GraphicShape.prototype.addedToParent = function() { this.draw(); this.element.style.overflow = 'visible'; /* @@ -141,7 +141,7 @@ org.apache.flex.core.graphics.GraphicShape.prototype.addedToParent = function() /** * This is where the drawing methods get called from. */ -org.apache.flex.core.graphics.GraphicShape.prototype.draw = function() { +org_apache_flex_core_graphics_GraphicShape.prototype.draw = function() { //Overwrite in subclass }; @@ -150,7 +150,7 @@ org.apache.flex.core.graphics.GraphicShape.prototype.draw = function() { * @expose * @return {string} The style attribute. */ -org.apache.flex.core.graphics.GraphicShape.prototype.getStyleStr = function() { +org_apache_flex_core_graphics_GraphicShape.prototype.getStyleStr = function() { var fillStr; if (this.get_fill()) { @@ -182,7 +182,7 @@ org.apache.flex.core.graphics.GraphicShape.prototype.getStyleStr = function() { * @param {number} y Y position. * @param {Object} bbox The bounding box of the svg element. */ -org.apache.flex.core.graphics.GraphicShape.prototype.resize = function(x, y, bbox) { +org_apache_flex_core_graphics_GraphicShape.prototype.resize = function(x, y, bbox) { var width = Math.max(this.get_width(), bbox.width); var height = Math.max(this.get_height(), bbox.height); @@ -203,7 +203,7 @@ org.apache.flex.core.graphics.GraphicShape.prototype.resize = function(x, y, bbo * @param {number} xOffset offset from x position. * @param {number} yOffset offset from y position. */ -org.apache.flex.core.graphics.GraphicShape.prototype.setPosition = function(x, y, xOffset, yOffset) { +org_apache_flex_core_graphics_GraphicShape.prototype.setPosition = function(x, y, xOffset, yOffset) { this.x_ = x; this.y_ = y; this.xOffset_ = xOffset; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js index c6d7d30..7db0225 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js @@ -12,20 +12,20 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.GraphicsContainer'); +goog.provide('org_apache_flex_core_graphics_GraphicsContainer'); -goog.require('org.apache.flex.core.graphics.GraphicShape'); +goog.require('org_apache_flex_core_graphics_GraphicShape'); /** * @constructor - * @extends {org.apache.flex.core.graphics.GraphicShape} + * @extends {org_apache_flex_core_graphics_GraphicShape} */ -org.apache.flex.core.graphics.GraphicsContainer = function() { - org.apache.flex.core.graphics.GraphicsContainer.base(this, 'constructor'); +org_apache_flex_core_graphics_GraphicsContainer = function() { + org_apache_flex_core_graphics_GraphicsContainer.base(this, 'constructor'); }; -goog.inherits(org.apache.flex.core.graphics.GraphicsContainer, org.apache.flex.core.graphics.GraphicShape); +goog.inherits(org_apache_flex_core_graphics_GraphicsContainer, org_apache_flex_core_graphics_GraphicShape); /** @@ -33,16 +33,16 @@ goog.inherits(org.apache.flex.core.graphics.GraphicsContainer, org.apache.flex.c * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_GraphicsContainer.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'GraphicsContainer', - qName: 'org.apache.flex.core.graphics.GraphicsContainer'}] }; + qName: 'org_apache_flex_core_graphics_GraphicsContainer'}] }; /** * @expose * @return {number} The number of child elements. */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.get_numChildren = function() { +org_apache_flex_core_graphics_GraphicsContainer.prototype.get_numChildren = function() { return this.internalChildren().length; }; @@ -50,7 +50,7 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.get_numChildren = func /** * @expose */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.removeAllElements = function() { +org_apache_flex_core_graphics_GraphicsContainer.prototype.removeAllElements = function() { var svg = this.element; while (svg.lastChild) { svg.removeChild(svg.lastChild); @@ -61,8 +61,8 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.removeAllElements = fu /** * @override */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.set_width = function(value) { - org.apache.flex.core.graphics.GraphicsContainer.base(this, 'set_width', value); +org_apache_flex_core_graphics_GraphicsContainer.prototype.set_width = function(value) { + org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_width', value); this.element.setAttribute('width', String(value) + 'px'); this.element.style.width = String(value) + 'px'; }; @@ -71,8 +71,8 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.set_width = function(v /** * @override */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.set_height = function(value) { - org.apache.flex.core.graphics.GraphicsContainer.base(this, 'set_height', value); +org_apache_flex_core_graphics_GraphicsContainer.prototype.set_height = function(value) { + org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_height', value); this.element.setAttribute('height', String(value) + 'px'); this.element.style.height = String(value) + 'px'; }; @@ -81,8 +81,8 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.set_height = function( /** * @override */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.set_x = function(value) { - org.apache.flex.core.graphics.GraphicsContainer.base(this, 'set_x', value); +org_apache_flex_core_graphics_GraphicsContainer.prototype.set_x = function(value) { + org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_x', value); this.element.setAttribute('x', String(value) + 'px'); this.element.style.position = 'absolute'; this.element.style.left = String(value) + 'px'; @@ -93,8 +93,8 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.set_x = function(value /** * @override */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.set_y = function(value) { - org.apache.flex.core.graphics.GraphicsContainer.base(this, 'set_y', value); +org_apache_flex_core_graphics_GraphicsContainer.prototype.set_y = function(value) { + org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_y', value); this.element.setAttribute('y', String(value) + 'px'); this.element.style.position = 'absolute'; this.element.style.top = String(value) + 'px'; @@ -109,7 +109,7 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.set_y = function(value * @param {number} width The width of the rectangle. * @param {number} height The height of the rectangle. */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.drawRect = function(x, y, width, height) { +org_apache_flex_core_graphics_GraphicsContainer.prototype.drawRect = function(x, y, width, height) { var style = this.getStyleStr(); var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); rect.flexjs_wrapper = this; @@ -132,7 +132,7 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.drawRect = function(x, * @param {number} width The width of the ellipse. * @param {number} height The height of the ellipse. */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.drawEllipse = function(x, y, width, height) { +org_apache_flex_core_graphics_GraphicsContainer.prototype.drawEllipse = function(x, y, width, height) { var style = this.getStyleStr(); var ellipse = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse'); ellipse.flexjs_wrapper = this; @@ -154,7 +154,7 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.drawEllipse = function * @param {number} y The y location of the center of the circle. * @param {number} radius The radius of the circle. */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.drawCircle = function(x, y, radius) { +org_apache_flex_core_graphics_GraphicsContainer.prototype.drawCircle = function(x, y, radius) { var style = this.getStyleStr(); var circle = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse'); circle.flexjs_wrapper = this; @@ -180,7 +180,7 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.drawCircle = function( * If the segment command is upper-case, the parameters are absolute values. * If the segment command is lower-case, the parameters are relative values. */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.drawPath = function(data) { +org_apache_flex_core_graphics_GraphicsContainer.prototype.drawPath = function(data) { var style = this.getStyleStr(); var path = document.createElementNS('http://www.w3.org/2000/svg', 'path'); path.flexjs_wrapper = this; @@ -199,7 +199,7 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.drawPath = function(da * @param {number} x The x position of the text. * @param {number} y The y position of the text. */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.drawText = function(value, x, y) { +org_apache_flex_core_graphics_GraphicsContainer.prototype.drawText = function(value, x, y) { var style = this.getStyleStr(); var text = document.createElementNS('http://www.w3.org/2000/svg', 'text'); text.flexjs_wrapper = this; @@ -218,13 +218,13 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.drawText = function(va /** * @expose */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.drawLine = function() { +org_apache_flex_core_graphics_GraphicsContainer.prototype.drawLine = function() { }; /** * @expose */ -org.apache.flex.core.graphics.GraphicsContainer.prototype.drawPolygon = function() { +org_apache_flex_core_graphics_GraphicsContainer.prototype.drawPolygon = function() { }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IFill.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IFill.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IFill.js index e4c9f9f..ac572d7 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IFill.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IFill.js @@ -17,7 +17,7 @@ * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.graphics.IFill'); +goog.provide('org_apache_flex_core_graphics_IFill'); @@ -26,7 +26,7 @@ goog.provide('org.apache.flex.core.graphics.IFill'); * * @interface */ -org.apache.flex.core.graphics.IFill = function() { +org_apache_flex_core_graphics_IFill = function() { }; @@ -35,18 +35,18 @@ org.apache.flex.core.graphics.IFill = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.IFill.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_IFill.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IFill', - qName: 'org.apache.flex.core.graphics.IFill' }] }; + qName: 'org_apache_flex_core_graphics_IFill' }] }; /** * addFillAttrib() * * @expose - * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the fill must be added. + * @param {org_apache_flex_core_graphics_GraphicShape} value The GraphicShape object on which the fill must be added. * @return {string} The fill style attribute. */ -org.apache.flex.core.graphics.IFill.prototype.addFillAttrib = +org_apache_flex_core_graphics_IFill.prototype.addFillAttrib = function(value) {}; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IStroke.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IStroke.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IStroke.js index 52acfb1..398b4e6 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IStroke.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/IStroke.js @@ -17,7 +17,7 @@ * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.graphics.IStroke'); +goog.provide('org_apache_flex_core_graphics_IStroke'); @@ -26,7 +26,7 @@ goog.provide('org.apache.flex.core.graphics.IStroke'); * * @interface */ -org.apache.flex.core.graphics.IStroke = function() { +org_apache_flex_core_graphics_IStroke = function() { }; @@ -35,18 +35,18 @@ org.apache.flex.core.graphics.IStroke = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.IStroke.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_IStroke.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IStroke', - qName: 'org.apache.flex.core.graphics.IStroke' }] }; + qName: 'org_apache_flex_core_graphics_IStroke' }] }; /** * addStrokeAttrib() * * @expose - * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the stroke must be added. + * @param {org_apache_flex_core_graphics_GraphicShape} value The GraphicShape object on which the stroke must be added. * @return {string} The stroke style attribute. */ -org.apache.flex.core.graphics.IStroke.prototype.addStrokeAttrib = +org_apache_flex_core_graphics_IStroke.prototype.addStrokeAttrib = function(value) {}; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js index abfbd4e..9cb54a3 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js @@ -12,22 +12,22 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.Line'); +goog.provide('org_apache_flex_core_graphics_Line'); -goog.require('org.apache.flex.core.graphics.GraphicShape'); +goog.require('org_apache_flex_core_graphics_GraphicShape'); /** * @constructor - * @extends {org.apache.flex.core.graphics.GraphicShape} + * @extends {org_apache_flex_core_graphics_GraphicShape} */ -org.apache.flex.core.graphics.Line = function() { - org.apache.flex.core.graphics.Line.base(this, 'constructor'); +org_apache_flex_core_graphics_Line = function() { + org_apache_flex_core_graphics_Line.base(this, 'constructor'); }; -goog.inherits(org.apache.flex.core.graphics.Line, - org.apache.flex.core.graphics.GraphicShape); +goog.inherits(org_apache_flex_core_graphics_Line, + org_apache_flex_core_graphics_GraphicShape); /** @@ -35,9 +35,9 @@ goog.inherits(org.apache.flex.core.graphics.Line, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.Line.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_Line.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Line', - qName: 'org.apache.flex.core.graphics.Line' }] }; + qName: 'org_apache_flex_core_graphics_Line' }] }; /** @@ -47,7 +47,7 @@ org.apache.flex.core.graphics.Line.prototype.FLEXJS_CLASS_INFO = * @param {number} x2 The x2 attribute defines the end of the line on the x-axis. * @param {number} y2 The y2 attribute defines the end of the line on the y-axis. */ -org.apache.flex.core.graphics.Line.prototype.drawLine = function(x1, y1, x2, y2) { +org_apache_flex_core_graphics_Line.prototype.drawLine = function(x1, y1, x2, y2) { var style = this.getStyleStr(); var line = document.createElementNS('http://www.w3.org/2000/svg', 'line'); line.flexjs_wrapper = this; @@ -70,7 +70,7 @@ org.apache.flex.core.graphics.Line.prototype.drawLine = function(x1, y1, x2, y2) * @param {number} y Y position. * @param {Object} bbox The bounding box of the svg element. */ -org.apache.flex.core.graphics.Line.prototype.resize = function(x, y, bbox) { +org_apache_flex_core_graphics_Line.prototype.resize = function(x, y, bbox) { this.element.setAttribute('width', String(bbox.width) + 'px'); this.element.setAttribute('height', String(bbox.height) + 'px'); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js index a8b2a45..c5eaec5 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js @@ -13,40 +13,40 @@ */ /** - * org.apache.flex.core.graphics.LinearGradient + * org_apache_flex_core_graphics_LinearGradient * * @fileoverview * * @suppress {checkTypes} */ -goog.provide('org.apache.flex.core.graphics.LinearGradient'); -goog.require('org.apache.flex.core.graphics.GradientBase'); +goog.provide('org_apache_flex_core_graphics_LinearGradient'); +goog.require('org_apache_flex_core_graphics_GradientBase'); /** * @constructor - * @extends {org.apache.flex.core.graphics.GradientBase} - * @implements {org.apache.flex.core.graphics.IFill} + * @extends {org_apache_flex_core_graphics_GradientBase} + * @implements {org_apache_flex_core_graphics_IFill} */ -org.apache.flex.core.graphics.LinearGradient = function() { - org.apache.flex.core.graphics.LinearGradient.base(this, 'constructor'); +org_apache_flex_core_graphics_LinearGradient = function() { + org_apache_flex_core_graphics_LinearGradient.base(this, 'constructor'); }; -goog.inherits(org.apache.flex.core.graphics.LinearGradient, org.apache.flex.core.graphics.GradientBase); +goog.inherits(org_apache_flex_core_graphics_LinearGradient, org_apache_flex_core_graphics_GradientBase); /** * @type {number} */ -org.apache.flex.core.graphics.LinearGradient.prototype._scaleX = 1.0; +org_apache_flex_core_graphics_LinearGradient.prototype._scaleX = 1.0; /** * @expose * @return {number} */ -org.apache.flex.core.graphics.LinearGradient.prototype.get_scaleX = function() { +org_apache_flex_core_graphics_LinearGradient.prototype.get_scaleX = function() { return this._scaleX; }; @@ -55,7 +55,7 @@ org.apache.flex.core.graphics.LinearGradient.prototype.get_scaleX = function() { * @expose * @param {number} value */ -org.apache.flex.core.graphics.LinearGradient.prototype.set_scaleX = function(value) { +org_apache_flex_core_graphics_LinearGradient.prototype.set_scaleX = function(value) { this._scaleX = value; }; @@ -64,10 +64,10 @@ org.apache.flex.core.graphics.LinearGradient.prototype.set_scaleX = function(val * addFillAttrib() * * @expose - * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the fill must be added. + * @param {org_apache_flex_core_graphics_GraphicShape} value The GraphicShape object on which the fill must be added. * @return {string} */ -org.apache.flex.core.graphics.LinearGradient.prototype.addFillAttrib = function(value) { +org_apache_flex_core_graphics_LinearGradient.prototype.addFillAttrib = function(value) { //Create and add a linear gradient def var svgNS = value.element.namespaceURI; var grad = document.createElementNS(svgNS, 'linearGradient'); @@ -122,7 +122,7 @@ org.apache.flex.core.graphics.LinearGradient.prototype.addFillAttrib = function( * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.LinearGradient.prototype.FLEXJS_CLASS_INFO = { - names: [{ name: 'LinearGradient', qName: 'org.apache.flex.core.graphics.LinearGradient'}], - interfaces: [org.apache.flex.core.graphics.IFill] +org_apache_flex_core_graphics_LinearGradient.prototype.FLEXJS_CLASS_INFO = { + names: [{ name: 'LinearGradient', qName: 'org_apache_flex_core_graphics_LinearGradient'}], + interfaces: [org_apache_flex_core_graphics_IFill] }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js index d986a16..1490de9 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js @@ -12,18 +12,18 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.Path'); +goog.provide('org_apache_flex_core_graphics_Path'); -goog.require('org.apache.flex.core.graphics.GraphicShape'); +goog.require('org_apache_flex_core_graphics_GraphicShape'); /** * @constructor - * @extends {org.apache.flex.core.graphics.GraphicShape} + * @extends {org_apache_flex_core_graphics_GraphicShape} */ -org.apache.flex.core.graphics.Path = function() { - org.apache.flex.core.graphics.Path.base(this, 'constructor'); +org_apache_flex_core_graphics_Path = function() { + org_apache_flex_core_graphics_Path.base(this, 'constructor'); /** * @private @@ -31,8 +31,8 @@ org.apache.flex.core.graphics.Path = function() { */ this.data_ = ''; }; -goog.inherits(org.apache.flex.core.graphics.Path, - org.apache.flex.core.graphics.GraphicShape); +goog.inherits(org_apache_flex_core_graphics_Path, + org_apache_flex_core_graphics_GraphicShape); /** @@ -40,16 +40,16 @@ goog.inherits(org.apache.flex.core.graphics.Path, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.Path.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_Path.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Path', - qName: 'org.apache.flex.core.graphics.Path' }] }; + qName: 'org_apache_flex_core_graphics_Path' }] }; /** * @expose * @param {string} v The string representation of the path data. */ -org.apache.flex.core.graphics.Path.prototype.set_data = function(v) { +org_apache_flex_core_graphics_Path.prototype.set_data = function(v) { this.data_ = v; }; @@ -58,7 +58,7 @@ org.apache.flex.core.graphics.Path.prototype.set_data = function(v) { * @expose * @return {string} The string representation of the path data. */ -org.apache.flex.core.graphics.Path.prototype.get_data = function() { +org_apache_flex_core_graphics_Path.prototype.get_data = function() { return this.data_; }; @@ -75,7 +75,7 @@ org.apache.flex.core.graphics.Path.prototype.get_data = function() { * If the segment command is upper-case, the parameters are absolute values. * If the segment command is lower-case, the parameters are relative values. */ -org.apache.flex.core.graphics.Path.prototype.drawPath = function(x, y, data) { +org_apache_flex_core_graphics_Path.prototype.drawPath = function(x, y, data) { if (data == null || data.length === 0) return; var style = this.getStyleStr(); var path = document.createElementNS('http://www.w3.org/2000/svg', 'path'); @@ -99,6 +99,6 @@ org.apache.flex.core.graphics.Path.prototype.drawPath = function(x, y, data) { /** * @override */ -org.apache.flex.core.graphics.Path.prototype.draw = function() { +org_apache_flex_core_graphics_Path.prototype.draw = function() { this.drawPath(this.get_x(), this.get_y(), this.get_data()); }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js index 33392c8..f145b63 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js @@ -12,22 +12,22 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.Rect'); +goog.provide('org_apache_flex_core_graphics_Rect'); -goog.require('org.apache.flex.core.graphics.GraphicShape'); +goog.require('org_apache_flex_core_graphics_GraphicShape'); /** * @constructor - * @extends {org.apache.flex.core.graphics.GraphicShape} + * @extends {org_apache_flex_core_graphics_GraphicShape} */ -org.apache.flex.core.graphics.Rect = function() { - org.apache.flex.core.graphics.Rect.base(this, 'constructor'); +org_apache_flex_core_graphics_Rect = function() { + org_apache_flex_core_graphics_Rect.base(this, 'constructor'); }; -goog.inherits(org.apache.flex.core.graphics.Rect, - org.apache.flex.core.graphics.GraphicShape); +goog.inherits(org_apache_flex_core_graphics_Rect, + org_apache_flex_core_graphics_GraphicShape); /** @@ -35,9 +35,9 @@ goog.inherits(org.apache.flex.core.graphics.Rect, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.Rect.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_Rect.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Rect', - qName: 'org.apache.flex.core.graphics.Rect' }] }; + qName: 'org_apache_flex_core_graphics_Rect' }] }; /** @@ -47,7 +47,7 @@ org.apache.flex.core.graphics.Rect.prototype.FLEXJS_CLASS_INFO = * @param {number} width The width of the rectangle. * @param {number} height The height of the rectangle. */ -org.apache.flex.core.graphics.Rect.prototype.drawRect = function(x, y, width, height) { +org_apache_flex_core_graphics_Rect.prototype.drawRect = function(x, y, width, height) { var style = this.getStyleStr(); var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); rect.flexjs_wrapper = this; @@ -75,6 +75,6 @@ org.apache.flex.core.graphics.Rect.prototype.drawRect = function(x, y, width, he /** * @override */ -org.apache.flex.core.graphics.Rect.prototype.draw = function() { +org_apache_flex_core_graphics_Rect.prototype.draw = function() { this.drawRect(this.get_x(), this.get_y(), this.get_width(), this.get_height()); - }; \ No newline at end of file + }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js index 31a5045..43079b7 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js @@ -12,16 +12,16 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.SolidColor'); -goog.require('org.apache.flex.core.graphics.IFill'); +goog.provide('org_apache_flex_core_graphics_SolidColor'); +goog.require('org_apache_flex_core_graphics_IFill'); /** * @constructor - * @implements {org.apache.flex.core.graphics.IFill} + * @implements {org_apache_flex_core_graphics_IFill} */ -org.apache.flex.core.graphics.SolidColor = function() { +org_apache_flex_core_graphics_SolidColor = function() { /** * @private @@ -43,17 +43,17 @@ org.apache.flex.core.graphics.SolidColor = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.SolidColor.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_SolidColor.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'SolidColor', - qName: 'org.apache.flex.core.graphics.SolidColor' }], - interfaces: [org.apache.flex.core.graphics.IFill] }; + qName: 'org_apache_flex_core_graphics_SolidColor' }], + interfaces: [org_apache_flex_core_graphics_IFill] }; /** * @expose * @return {number} color. */ -org.apache.flex.core.graphics.SolidColor.prototype.get_color = function() { +org_apache_flex_core_graphics_SolidColor.prototype.get_color = function() { return this.color_; }; @@ -61,7 +61,7 @@ org.apache.flex.core.graphics.SolidColor.prototype.get_color = function() { /** * @param {number} value color. */ -org.apache.flex.core.graphics.SolidColor.prototype.set_color = function(value) { +org_apache_flex_core_graphics_SolidColor.prototype.set_color = function(value) { this.color_ = value; }; @@ -70,7 +70,7 @@ org.apache.flex.core.graphics.SolidColor.prototype.set_color = function(value) { * @expose * @return {number} alpha. */ -org.apache.flex.core.graphics.SolidColor.prototype.get_alpha = function() { +org_apache_flex_core_graphics_SolidColor.prototype.get_alpha = function() { return this.alpha_; }; @@ -78,7 +78,7 @@ org.apache.flex.core.graphics.SolidColor.prototype.get_alpha = function() { /** * @param {number} value alpha. */ -org.apache.flex.core.graphics.SolidColor.prototype.set_alpha = function(value) { +org_apache_flex_core_graphics_SolidColor.prototype.set_alpha = function(value) { this.alpha_ = value; }; @@ -87,10 +87,10 @@ org.apache.flex.core.graphics.SolidColor.prototype.set_alpha = function(value) { * addFillAttrib() * * @expose - * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the fill must be added. + * @param {org_apache_flex_core_graphics_GraphicShape} value The GraphicShape object on which the fill must be added. * @return {string} */ -org.apache.flex.core.graphics.SolidColor.prototype.addFillAttrib = function(value) { +org_apache_flex_core_graphics_SolidColor.prototype.addFillAttrib = function(value) { var color = Number(this.get_color()).toString(16); if (color.length == 1) color = '00' + color; if (color.length == 2) color = '00' + color; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js index 5b40304..f6465eb 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js @@ -12,17 +12,17 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.SolidColorStroke'); -goog.require('org.apache.flex.core.graphics.IStroke'); +goog.provide('org_apache_flex_core_graphics_SolidColorStroke'); +goog.require('org_apache_flex_core_graphics_IStroke'); /** * @constructor - * @implements {org.apache.flex.core.graphics.IStroke} + * @implements {org_apache_flex_core_graphics_IStroke} * */ -org.apache.flex.core.graphics.SolidColorStroke = function() { +org_apache_flex_core_graphics_SolidColorStroke = function() { /** * @private @@ -50,16 +50,16 @@ org.apache.flex.core.graphics.SolidColorStroke = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.SolidColorStroke.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_SolidColorStroke.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'SolidColorStroke', - qName: 'org.apache.flex.core.graphics.SolidColorStroke' }] }; + qName: 'org_apache_flex_core_graphics_SolidColorStroke' }] }; /** * @expose * @return {number} color. */ -org.apache.flex.core.graphics.SolidColorStroke.prototype.get_color = function() { +org_apache_flex_core_graphics_SolidColorStroke.prototype.get_color = function() { return this.color_; }; @@ -67,7 +67,7 @@ org.apache.flex.core.graphics.SolidColorStroke.prototype.get_color = function() /** * @param {number} value color. */ -org.apache.flex.core.graphics.SolidColorStroke.prototype.set_color = function(value) { +org_apache_flex_core_graphics_SolidColorStroke.prototype.set_color = function(value) { this.color_ = value; }; @@ -76,7 +76,7 @@ org.apache.flex.core.graphics.SolidColorStroke.prototype.set_color = function(va * @expose * @return {number} alpha. */ -org.apache.flex.core.graphics.SolidColorStroke.prototype.get_alpha = function() { +org_apache_flex_core_graphics_SolidColorStroke.prototype.get_alpha = function() { return this.alpha_; }; @@ -84,7 +84,7 @@ org.apache.flex.core.graphics.SolidColorStroke.prototype.get_alpha = function() /** * @param {number} value alpha. */ -org.apache.flex.core.graphics.SolidColorStroke.prototype.set_alpha = function(value) { +org_apache_flex_core_graphics_SolidColorStroke.prototype.set_alpha = function(value) { this.alpha_ = value; }; @@ -93,7 +93,7 @@ org.apache.flex.core.graphics.SolidColorStroke.prototype.set_alpha = function(va * @expose * @return {number} weight. */ -org.apache.flex.core.graphics.SolidColorStroke.prototype.get_weight = function() { +org_apache_flex_core_graphics_SolidColorStroke.prototype.get_weight = function() { return this.weight_; }; @@ -101,7 +101,7 @@ org.apache.flex.core.graphics.SolidColorStroke.prototype.get_weight = function() /** * @param {number} value weight. */ -org.apache.flex.core.graphics.SolidColorStroke.prototype.set_weight = function(value) { +org_apache_flex_core_graphics_SolidColorStroke.prototype.set_weight = function(value) { this.weight_ = value; }; @@ -110,10 +110,10 @@ org.apache.flex.core.graphics.SolidColorStroke.prototype.set_weight = function(v * addStrokeAttrib() * * @expose - * @param {org.apache.flex.core.graphics.GraphicShape} value The GraphicShape object on which the stroke must be added. + * @param {org_apache_flex_core_graphics_GraphicShape} value The GraphicShape object on which the stroke must be added. * @return {string} */ -org.apache.flex.core.graphics.SolidColorStroke.prototype.addStrokeAttrib = function(value) { +org_apache_flex_core_graphics_SolidColorStroke.prototype.addStrokeAttrib = function(value) { var strokeColor = Number(this.get_color()).toString(16); if (strokeColor.length == 1) strokeColor = '00' + strokeColor; if (strokeColor.length == 2) strokeColor = '00' + strokeColor; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Text.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Text.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Text.js index adffeaa..80afbda 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Text.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Text.js @@ -12,22 +12,22 @@ * limitations under the License. */ -goog.provide('org.apache.flex.core.graphics.Text'); +goog.provide('org_apache_flex_core_graphics_Text'); -goog.require('org.apache.flex.core.graphics.GraphicShape'); +goog.require('org_apache_flex_core_graphics_GraphicShape'); /** * @constructor - * @extends {org.apache.flex.core.graphics.GraphicShape} + * @extends {org_apache_flex_core_graphics_GraphicShape} */ -org.apache.flex.core.graphics.Text = function() { - org.apache.flex.core.graphics.Text.base(this, 'constructor'); +org_apache_flex_core_graphics_Text = function() { + org_apache_flex_core_graphics_Text.base(this, 'constructor'); }; -goog.inherits(org.apache.flex.core.graphics.Text, - org.apache.flex.core.graphics.GraphicShape); +goog.inherits(org_apache_flex_core_graphics_Text, + org_apache_flex_core_graphics_GraphicShape); /** @@ -35,9 +35,9 @@ goog.inherits(org.apache.flex.core.graphics.Text, * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.core.graphics.Text.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_core_graphics_Text.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Rect', - qName: 'org.apache.flex.core.graphics.Text' }] }; + qName: 'org_apache_flex_core_graphics_Text' }] }; /** @@ -46,7 +46,7 @@ org.apache.flex.core.graphics.Text.prototype.FLEXJS_CLASS_INFO = * @param {number} x The x position of the top-left corner of the rectangle. * @param {number} y The y position of the top-left corner. */ -org.apache.flex.core.graphics.Text.prototype.drawText = function(value, x, y) { +org_apache_flex_core_graphics_Text.prototype.drawText = function(value, x, y) { var style = this.getStyleStr(); var text = document.createElementNS('http://www.w3.org/2000/svg', 'text'); text.flexjs_wrapper = this; @@ -65,6 +65,6 @@ org.apache.flex.core.graphics.Text.prototype.drawText = function(value, x, y) { /** * @override */ -org.apache.flex.core.graphics.Text.prototype.draw = function() { +org_apache_flex_core_graphics_Text.prototype.draw = function() { -}; \ No newline at end of file +}; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js index 9fe4a46..6dba7eb 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js @@ -26,63 +26,63 @@ // end createjs // ------------------------------------------------------------------ -goog.provide('org.apache.flex.createjs.Application'); +goog.provide('org_apache_flex_createjs_Application'); -goog.require('org.apache.flex.core.HTMLElementWrapper'); -goog.require('org.apache.flex.utils.MXMLDataInterpreter'); +goog.require('org_apache_flex_core_HTMLElementWrapper'); +goog.require('org_apache_flex_utils_MXMLDataInterpreter'); /** * @constructor - * @extends {org.apache.flex.core.HTMLElementWrapper} + * @extends {org_apache_flex_core_HTMLElementWrapper} */ -org.apache.flex.createjs.Application = function() { - org.apache.flex.createjs.Application.base(this, 'constructor'); +org_apache_flex_createjs_Application = function() { + org_apache_flex_createjs_Application.base(this, 'constructor'); }; -goog.inherits(org.apache.flex.createjs.Application, - org.apache.flex.core.HTMLElementWrapper); +goog.inherits(org_apache_flex_createjs_Application, + org_apache_flex_core_HTMLElementWrapper); /** * @expose * @type {Object} */ -org.apache.flex.createjs.Application.prototype.controller = null; +org_apache_flex_createjs_Application.prototype.controller = null; /** * @expose - * @type {org.apache.flex.createjs.core.ViewBase} + * @type {org_apache_flex_createjs_core_ViewBase} */ -org.apache.flex.createjs.Application.prototype.initialView = null; +org_apache_flex_createjs_Application.prototype.initialView = null; /** * @expose * @type {createjs.Stage} */ -org.apache.flex.createjs.Application.prototype.stage = null; +org_apache_flex_createjs_Application.prototype.stage = null; /** * @expose - * @type {org.apache.flex.events.EventDispatcher} + * @type {org_apache_flex_events_EventDispatcher} */ -org.apache.flex.createjs.Application.prototype.model = null; +org_apache_flex_createjs_Application.prototype.model = null; /** * @expose - * @type {org.apache.flex.core.SimpleValuesImpl} + * @type {org_apache_flex_core_SimpleValuesImpl} */ -org.apache.flex.createjs.Application.prototype.valuesImpl = null; +org_apache_flex_createjs_Application.prototype.valuesImpl = null; /** * @expose */ -org.apache.flex.createjs.Application.prototype.start = function() { +org_apache_flex_createjs_Application.prototype.start = function() { var body; // For createjs, the application is the same as the canvas @@ -98,7 +98,7 @@ org.apache.flex.createjs.Application.prototype.start = function() { this.stage = new createjs.Stage('flexjsCanvas'); - org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this, + org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties(this, this.get_MXMLProperties()); this.dispatchEvent('initialize'); @@ -113,7 +113,7 @@ org.apache.flex.createjs.Application.prototype.start = function() { /** * @param {Object} c The child element. */ -org.apache.flex.createjs.core.Application.prototype.addElement = +org_apache_flex_createjs_core_Application.prototype.addElement = function(c) { this.stage.addChild(c.element); c.addedToParent(); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js index f4fcc0c..bd7f0dc 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js @@ -12,35 +12,35 @@ * limitations under the License. */ -goog.provide('org.apache.flex.createjs.CheckBox'); +goog.provide('org_apache_flex_createjs_CheckBox'); -goog.require('org.apache.flex.createjs.core.UIBase'); +goog.require('org_apache_flex_createjs_core_UIBase'); /** * @constructor - * @extends {org.apache.flex.createjs.core.UIBase} + * @extends {org_apache_flex_createjs_core_UIBase} */ -org.apache.flex.createjs.CheckBox = function() { - org.apache.flex.createjs.CheckBox.base(this, 'constructor'); +org_apache_flex_createjs_CheckBox = function() { + org_apache_flex_createjs_CheckBox.base(this, 'constructor'); }; -goog.inherits(org.apache.flex.createjs.CheckBox, - org.apache.flex.createjs.core.UIBase); +goog.inherits(org_apache_flex_createjs_CheckBox, + org_apache_flex_createjs_core_UIBase); /** * @expose * @type {Object} */ -org.apache.flex.createjs.CheckBox.prototype.checkMark = null; +org_apache_flex_createjs_CheckBox.prototype.checkMark = null; /** * @expose * @type {Object} */ -org.apache.flex.createjs.CheckBox.prototype.checkMarkBackground = +org_apache_flex_createjs_CheckBox.prototype.checkMarkBackground = null; @@ -48,13 +48,13 @@ org.apache.flex.createjs.CheckBox.prototype.checkMarkBackground = * @expose * @type {Object} */ -org.apache.flex.createjs.CheckBox.prototype.checkBoxLabel = null; +org_apache_flex_createjs_CheckBox.prototype.checkBoxLabel = null; /** * @override */ -org.apache.flex.createjs.CheckBox.prototype.createElement = +org_apache_flex_createjs_CheckBox.prototype.createElement = function() { this.checkMarkBackground = new createjs.Shape(); this.checkMarkBackground.name = 'checkmarkbackground'; @@ -97,7 +97,7 @@ org.apache.flex.createjs.CheckBox.prototype.createElement = * @expose * @return {string} The text getter. */ -org.apache.flex.createjs.CheckBox.prototype.get_text = +org_apache_flex_createjs_CheckBox.prototype.get_text = function() { return this.checkBoxLabel.text; }; @@ -107,7 +107,7 @@ org.apache.flex.createjs.CheckBox.prototype.get_text = * @expose * @param {string} value The text setter. */ -org.apache.flex.createjs.CheckBox.prototype.set_text = +org_apache_flex_createjs_CheckBox.prototype.set_text = function(value) { this.checkBoxLabel.text = value; }; @@ -117,7 +117,7 @@ org.apache.flex.createjs.CheckBox.prototype.set_text = * @expose * @return {bool} The selected getter. */ -org.apache.flex.createjs.CheckBox.prototype.get_selected = +org_apache_flex_createjs_CheckBox.prototype.get_selected = function() { return this.selected; }; @@ -127,7 +127,7 @@ org.apache.flex.createjs.CheckBox.prototype.get_selected = * @expose * @param {bool} value The selected setter. */ -org.apache.flex.createjs.CheckBox.prototype.set_selected = +org_apache_flex_createjs_CheckBox.prototype.set_selected = function(value) { this.checkMark.visible = this.selected = value; this.element.getStage().update(); @@ -138,7 +138,7 @@ org.apache.flex.createjs.CheckBox.prototype.set_selected = * @expose * @param {string|Object|goog.events.Event} event The event. */ -org.apache.flex.createjs.CheckBox.prototype.clickHandler = +org_apache_flex_createjs_CheckBox.prototype.clickHandler = function(event) { this.set_selected(!this.get_selected()); }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js index 406087d..3cb9867 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js @@ -12,29 +12,29 @@ * limitations under the License. */ -goog.provide('org.apache.flex.createjs.Label'); +goog.provide('org_apache_flex_createjs_Label'); -goog.require('org.apache.flex.createjs.core.UIBase'); +goog.require('org_apache_flex_createjs_core_UIBase'); /** * @constructor - * @extends {org.apache.flex.createjs.core.UIBase} + * @extends {org_apache_flex_createjs_core_UIBase} */ -org.apache.flex.createjs.Label = function() { - org.apache.flex.createjs.core.UIBase.call(this); +org_apache_flex_createjs_Label = function() { + org_apache_flex_createjs_core_UIBase.call(this); }; -goog.inherits(org.apache.flex.createjs.Label, - org.apache.flex.createjs.core.UIBase); +goog.inherits(org_apache_flex_createjs_Label, + org_apache_flex_createjs_core_UIBase); /** * @override */ -org.apache.flex.createjs.Label.prototype.createElement = +org_apache_flex_createjs_Label.prototype.createElement = function(p) { - org.apache.flex.createjs.Label.base(this, 'createElement'); + org_apache_flex_createjs_Label.base(this, 'createElement'); this.element = new createjs.Text('default text', '20px Arial', '#ff7700'); this.element.x = 0; @@ -51,7 +51,7 @@ org.apache.flex.createjs.Label.prototype.createElement = * @expose * @return {string} The text getter. */ -org.apache.flex.createjs.Label.prototype.get_text = function() { +org_apache_flex_createjs_Label.prototype.get_text = function() { return this.element.text; }; @@ -60,7 +60,7 @@ org.apache.flex.createjs.Label.prototype.get_text = function() { * @expose * @param {string} value The text setter. */ -org.apache.flex.createjs.Label.prototype.set_text = +org_apache_flex_createjs_Label.prototype.set_text = function(value) { this.element.text = value; this.element.getStage().update(); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js index 5ac4f21..691edca 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js @@ -12,42 +12,42 @@ * limitations under the License. */ -goog.provide('org.apache.flex.createjs.TextButton'); +goog.provide('org_apache_flex_createjs_TextButton'); -goog.require('org.apache.flex.createjs.core.UIBase'); +goog.require('org_apache_flex_createjs_core_UIBase'); /** * @constructor - * @extends {org.apache.flex.createjs.core.UIBase} + * @extends {org_apache_flex_createjs_core_UIBase} */ -org.apache.flex.createjs.TextButton = function() { - org.apache.flex.createjs.core.UIBase.call(this); +org_apache_flex_createjs_TextButton = function() { + org_apache_flex_createjs_core_UIBase.call(this); }; -goog.inherits(org.apache.flex.createjs.TextButton, - org.apache.flex.createjs.core.UIBase); +goog.inherits(org_apache_flex_createjs_TextButton, + org_apache_flex_createjs_core_UIBase); /** * @expose * @type {Object} */ -org.apache.flex.createjs.TextButton.prototype.buttonLabel = null; +org_apache_flex_createjs_TextButton.prototype.buttonLabel = null; /** * @expose * @type {Object} */ -org.apache.flex.createjs.TextButton.prototype.buttonBackground = +org_apache_flex_createjs_TextButton.prototype.buttonBackground = null; /** * @override */ -org.apache.flex.createjs.TextButton.prototype.createElement = +org_apache_flex_createjs_TextButton.prototype.createElement = function(p) { this.buttonBackground = new createjs.Shape(); @@ -79,7 +79,7 @@ org.apache.flex.createjs.TextButton.prototype.createElement = * @expose * @return {string} The text getter. */ -org.apache.flex.createjs.TextButton.prototype.get_text = +org_apache_flex_createjs_TextButton.prototype.get_text = function() { return this.buttonLabel.text; }; @@ -89,7 +89,7 @@ org.apache.flex.createjs.TextButton.prototype.get_text = * @expose * @param {string} value The text setter. */ -org.apache.flex.createjs.TextButton.prototype.set_text = +org_apache_flex_createjs_TextButton.prototype.set_text = function(value) { this.buttonLabel.text = value; }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js index 6abad04..cf479f5 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js @@ -12,18 +12,18 @@ * limitations under the License. */ -goog.provide('org.apache.flex.createjs.core.UIBase'); +goog.provide('org_apache_flex_createjs_core_UIBase'); -goog.require('org.apache.flex.core.HTMLElementWrapper'); +goog.require('org_apache_flex_core_HTMLElementWrapper'); /** * @constructor - * @extends {org.apache.flex.core.HTMLElementWrapper} + * @extends {org_apache_flex_core_HTMLElementWrapper} */ -org.apache.flex.createjs.core.UIBase = function() { - org.apache.flex.createjs.core.UIBase.base(this, 'constructor'); +org_apache_flex_createjs_core_UIBase = function() { + org_apache_flex_createjs_core_UIBase.base(this, 'constructor'); /** * @protected @@ -33,14 +33,14 @@ org.apache.flex.createjs.core.UIBase = function() { this.createElement(); }; -goog.inherits(org.apache.flex.createjs.core.UIBase, - org.apache.flex.core.HTMLElementWrapper); +goog.inherits(org_apache_flex_createjs_core_UIBase, + org_apache_flex_core_HTMLElementWrapper); /** * @param {Object} c The child element. */ -org.apache.flex.createjs.core.UIBase.prototype.addElement = +org_apache_flex_createjs_core_UIBase.prototype.addElement = function(c) { this.addChild(c.element); }; @@ -48,7 +48,7 @@ org.apache.flex.createjs.core.UIBase.prototype.addElement = /** */ -org.apache.flex.createjs.core.UIBase.prototype.createElement = +org_apache_flex_createjs_core_UIBase.prototype.createElement = function() { this.element = new createjs.Container(); @@ -60,7 +60,7 @@ org.apache.flex.createjs.core.UIBase.prototype.createElement = * @expose * @param {number} pixels The pixel count from the left edge. */ -org.apache.flex.createjs.core.UIBase.prototype.set_x = function(pixels) { +org_apache_flex_createjs_core_UIBase.prototype.set_x = function(pixels) { this.positioner.x = pixels; this.element.getStage().update(); }; @@ -70,7 +70,7 @@ org.apache.flex.createjs.core.UIBase.prototype.set_x = function(pixels) { * @expose * @param {number} pixels The pixel count from the top edge. */ -org.apache.flex.createjs.core.UIBase.prototype.set_y = function(pixels) { +org_apache_flex_createjs_core_UIBase.prototype.set_y = function(pixels) { this.positioner.y = pixels; this.element.getStage().update(); }; @@ -80,7 +80,7 @@ org.apache.flex.createjs.core.UIBase.prototype.set_y = function(pixels) { * @expose * @param {number} pixels The pixel count from the left edge. */ -org.apache.flex.createjs.core.UIBase.prototype.set_width = function(pixels) { +org_apache_flex_createjs_core_UIBase.prototype.set_width = function(pixels) { this.positioner.width = pixels; this.element.getStage().update(); }; @@ -90,7 +90,7 @@ org.apache.flex.createjs.core.UIBase.prototype.set_width = function(pixels) { * @expose * @param {number} pixels The pixel count from the top edge. */ -org.apache.flex.createjs.core.UIBase.prototype.set_height = function(pixels) { +org_apache_flex_createjs_core_UIBase.prototype.set_height = function(pixels) { this.positioner.height = pixels; this.element.getStage().update(); }; @@ -100,14 +100,14 @@ org.apache.flex.createjs.core.UIBase.prototype.set_height = function(pixels) { * @expose * @type {string} */ -org.apache.flex.createjs.core.UIBase.prototype.id = null; +org_apache_flex_createjs_core_UIBase.prototype.id = null; /** * @expose * @return {string} The id. */ -org.apache.flex.createjs.core.UIBase.prototype.get_id = function() { +org_apache_flex_createjs_core_UIBase.prototype.get_id = function() { return this.name; }; @@ -116,7 +116,7 @@ org.apache.flex.createjs.core.UIBase.prototype.get_id = function() { * @expose * @param {object} value The new id. */ -org.apache.flex.createjs.core.UIBase.prototype.set_id = function(value) { +org_apache_flex_createjs_core_UIBase.prototype.set_id = function(value) { if (this.name !== value) { this.element.name = value; @@ -130,14 +130,14 @@ org.apache.flex.createjs.core.UIBase.prototype.set_id = function(value) { * @expose * @type {object} */ -org.apache.flex.createjs.core.UIBase.prototype.model = null; +org_apache_flex_createjs_core_UIBase.prototype.model = null; /** * @expose * @return {object} The model. */ -org.apache.flex.createjs.core.UIBase.prototype.get_model = function() { +org_apache_flex_createjs_core_UIBase.prototype.get_model = function() { return this.model; }; @@ -146,7 +146,7 @@ org.apache.flex.createjs.core.UIBase.prototype.get_model = function() { * @expose * @param {object} value The new model. */ -org.apache.flex.createjs.core.UIBase.prototype.set_model = function(value) { +org_apache_flex_createjs_core_UIBase.prototype.set_model = function(value) { if (this.model !== value) { this.addBead(value); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js index e1aba42..81c140b 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js @@ -12,35 +12,35 @@ * limitations under the License. */ -goog.provide('org.apache.flex.createjs.core.ViewBase'); +goog.provide('org_apache_flex_createjs_core_ViewBase'); -goog.require('org.apache.flex.createjs.core.UIBase'); -goog.require('org.apache.flex.utils.MXMLDataInterpreter'); +goog.require('org_apache_flex_createjs_core_UIBase'); +goog.require('org_apache_flex_utils_MXMLDataInterpreter'); /** * @constructor - * @extends {org.apache.flex.createjs.core.UIBase} + * @extends {org_apache_flex_createjs_core_UIBase} */ -org.apache.flex.createjs.core.ViewBase = function() { - org.apache.flex.createjs.core.ViewBase.base(this, 'constructor'); +org_apache_flex_createjs_core_ViewBase = function() { + org_apache_flex_createjs_core_ViewBase.base(this, 'constructor'); /** * @private - * @type {org.apache.flex.createjs.core.ViewBase} + * @type {org_apache_flex_createjs_core_ViewBase} */ this.currentObject_ = null; }; -goog.inherits(org.apache.flex.createjs.core.ViewBase, - org.apache.flex.createjs.core.UIBase); +goog.inherits(org_apache_flex_createjs_core_ViewBase, + org_apache_flex_createjs_core_UIBase); /** * @expose * @return {Object} Returns the application model. */ -org.apache.flex.createjs.core.ViewBase.prototype.get_applicationModel = +org_apache_flex_createjs_core_ViewBase.prototype.get_applicationModel = function() { return this.applicationModel; }; @@ -50,7 +50,7 @@ org.apache.flex.createjs.core.ViewBase.prototype.get_applicationModel = * @expose * @param {Object} value The application model. */ -org.apache.flex.createjs.core.ViewBase.prototype.set_applicationModel = +org_apache_flex_createjs_core_ViewBase.prototype.set_applicationModel = function(value) { this.applicationModel = value; }; @@ -60,23 +60,23 @@ org.apache.flex.createjs.core.ViewBase.prototype.set_applicationModel = * @expose * @type {Array} */ -org.apache.flex.createjs.core.ViewBase.prototype.MXMLProperties = null; +org_apache_flex_createjs_core_ViewBase.prototype.MXMLProperties = null; /** * @expose * @type {Array} */ -org.apache.flex.createjs.core.ViewBase.prototype.MXMLDescriptor = null; +org_apache_flex_createjs_core_ViewBase.prototype.MXMLDescriptor = null; /** * @param {Object} model The model for this view. */ -org.apache.flex.createjs.core.ViewBase.prototype.initUI = function(model) { +org_apache_flex_createjs_core_ViewBase.prototype.initUI = function(model) { this.applicationModel = model; - org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this, + org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties(this, this.get_MXMLProperties()); - org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this, + org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this, this, this.get_MXMLDescriptor()); }; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49f207c4/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js b/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js index 9f0e9b9..f62cb42 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js @@ -12,16 +12,16 @@ * limitations under the License. */ -goog.provide('org.apache.flex.effects.PlatformWiper'); +goog.provide('org_apache_flex_effects_PlatformWiper'); -goog.require('org.apache.flex.geom.Rectangle'); +goog.require('org_apache_flex_geom_Rectangle'); /** * @constructor */ -org.apache.flex.effects.PlatformWiper = function() { +org_apache_flex_effects_PlatformWiper = function() { /** * @private @@ -44,9 +44,9 @@ org.apache.flex.effects.PlatformWiper = function() { * * @type {Object.<string, Array.<Object>>} */ -org.apache.flex.effects.PlatformWiper.prototype.FLEXJS_CLASS_INFO = +org_apache_flex_effects_PlatformWiper.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'PlatformWiper', - qName: 'org.apache.flex.effects.PlatformWiper'}] }; + qName: 'org_apache_flex_effects_PlatformWiper'}] }; /** @@ -54,7 +54,7 @@ org.apache.flex.effects.PlatformWiper.prototype.FLEXJS_CLASS_INFO = * Sets the target for the Wipe. * @param {Object} target The target for the Wipe effect. */ -org.apache.flex.effects.PlatformWiper.prototype.set_target = +org_apache_flex_effects_PlatformWiper.prototype.set_target = function(target) { if (target == null) { if (this.overflow_ == null) @@ -72,9 +72,9 @@ org.apache.flex.effects.PlatformWiper.prototype.set_target = /** * @expose * Clips the Object. - * @param {org.apache.flex.geom.Rectangle} rect The visible area. + * @param {org_apache_flex_geom_Rectangle} rect The visible area. */ -org.apache.flex.effects.PlatformWiper.prototype.set_visibleRect = +org_apache_flex_effects_PlatformWiper.prototype.set_visibleRect = function(rect) { /* var styleString = 'rect(';
