add @this annotations to stop warnings
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/19f8cb28 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/19f8cb28 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/19f8cb28 Branch: refs/heads/develop Commit: 19f8cb286c955a17d75627310289a124a3818301 Parents: 7ab51ec Author: Alex Harui <[email protected]> Authored: Mon Mar 16 11:28:46 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Mon Mar 16 11:28:46 2015 -0700 ---------------------------------------------------------------------- .../src/org/apache/flex/binding/BindingBase.js | 1 + .../src/org/apache/flex/binding/ChainBinding.js | 3 +- .../org/apache/flex/binding/ConstantBinding.js | 1 + .../org/apache/flex/binding/SimpleBinding.js | 15 +++++---- .../org/apache/flex/charts/core/ChartBase.js | 2 ++ .../src/org/apache/flex/core/ContainerBase.js | 7 +++++ .../src/org/apache/flex/core/FilledRectangle.js | 2 ++ .../src/org/apache/flex/core/FormatBase.js | 7 +++++ .../org/apache/flex/core/HTMLElementWrapper.js | 6 +++- .../flex/core/ItemRendererClassFactory.js | 1 + .../FlexJS/src/org/apache/flex/core/UIBase.js | 32 ++++++++++++++++++++ .../src/org/apache/flex/core/ValuesManager.js | 2 ++ .../FlexJS/src/org/apache/flex/core/ViewBase.js | 8 +++++ .../src/org/apache/flex/core/graphics/Circle.js | 2 ++ .../apache/flex/core/graphics/GradientBase.js | 9 ++++++ .../apache/flex/core/graphics/GradientEntry.js | 6 ++++ .../apache/flex/core/graphics/GraphicShape.js | 6 +++- .../flex/core/graphics/GraphicsContainer.js | 7 ++++- .../apache/flex/core/graphics/LinearGradient.js | 2 ++ .../src/org/apache/flex/core/graphics/Path.js | 4 ++- .../org/apache/flex/core/graphics/SolidColor.js | 4 +++ .../flex/core/graphics/SolidColorStroke.js | 6 ++++ .../src/org/apache/flex/createjs/Label.js | 2 ++ .../src/org/apache/flex/createjs/core/UIBase.js | 10 +++++- .../FlexJS/src/org/apache/flex/events/Event.js | 5 ++- .../js/FlexJS/src/org/apache/flex/html/Alert.js | 5 +++ .../FlexJS/src/org/apache/flex/html/CheckBox.js | 4 +++ .../FlexJS/src/org/apache/flex/html/ComboBox.js | 15 ++------- .../org/apache/flex/html/ImageAndTextButton.js | 4 +++ .../js/FlexJS/src/org/apache/flex/html/Label.js | 4 +++ .../src/org/apache/flex/html/MultilineLabel.js | 4 +++ .../js/FlexJS/src/org/apache/flex/html/Panel.js | 6 ++++ .../src/org/apache/flex/html/RadioButton.js | 11 +++++++ .../FlexJS/src/org/apache/flex/html/Spinner.js | 8 +++++ .../FlexJS/src/org/apache/flex/html/TextArea.js | 2 ++ .../src/org/apache/flex/html/TextButton.js | 2 ++ .../src/org/apache/flex/html/TextInput.js | 4 ++- .../org/apache/flex/html/ToggleTextButton.js | 6 +++- .../accessories/NumericOnlyTextInputBead.js | 5 +-- .../flex/html/accessories/PasswordInputBead.js | 1 + .../DataItemRendererFactoryForArrayData.js | 3 ++ .../src/org/apache/flex/html/beads/ListView.js | 5 +++ .../TextItemRendererFactoryForArrayData.js | 1 + .../controllers/ItemRendererMouseController.js | 1 + .../ListSingleSelectionMouseController.js | 1 + .../beads/controllers/SliderMouseController.js | 1 + .../beads/controllers/SpinnerMouseController.js | 1 + .../html/beads/layouts/NonVirtualBasicLayout.js | 1 + .../layouts/NonVirtualBasicScrollingLayout.js | 1 + .../beads/layouts/NonVirtualVerticalLayout.js | 1 + .../NonVirtualVerticalScrollingLayout.js | 3 +- .../ButtonBarButtonItemRenderer.js | 8 +++-- .../html/supportClasses/DataItemRenderer.js | 7 +++++ .../html/supportClasses/NonVirtualDataGroup.js | 2 ++ .../html/supportClasses/StringItemRenderer.js | 13 +++++++- .../html/supportClasses/UIItemRendererBase.js | 16 ++++++---- .../src/org/apache/flex/html5/CheckBox.js | 4 +++ .../src/org/apache/flex/html5/ComboBox.js | 3 ++ .../FlexJS/src/org/apache/flex/html5/Label.js | 2 ++ .../src/org/apache/flex/html5/TextArea.js | 2 ++ .../src/org/apache/flex/html5/TextInput.js | 2 ++ .../src/org/apache/flex/jquery/CheckBox.js | 4 +++ .../src/org/apache/flex/jquery/RadioButton.js | 11 +++++++ .../org/apache/flex/jquery/ToggleTextButton.js | 5 +++ .../src/org/apache/flex/maps/google/Map.js | 2 ++ .../src/org/apache/flex/net/BinaryUploader.js | 20 ++++++++++++ .../src/org/apache/flex/net/HTTPService.js | 22 ++++++++++++++ .../src/org/apache/flex/utils/BinaryData.js | 5 +++ .../src/org/apache/flex/utils/Language.js | 5 ++- .../FlexJS/src/org/apache/flex/utils/Timer.js | 6 ++++ 70 files changed, 345 insertions(+), 44 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js index 1780dc3..ac31bbb 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js @@ -101,6 +101,7 @@ org_apache_flex_binding_BindingBase.prototype.sourceChangeHandler = function(eve Object.defineProperties(org_apache_flex_binding_BindingBase.prototype, { 'strand': { + /** @this {org_apache_flex_binding_BindingBase} */ set: function(value) { if (this.destination == null) this.destination = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js index ea40ea8..a9b5618 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js @@ -196,8 +196,9 @@ org_apache_flex_binding_ChainWatcher.prototype.handler = function(event) { }; -Object.defineProperties(org_apache_flex_binding_ChainWatcher.prototype, { +Object.defineProperties(org_apache_flex_binding_ChainBinding.prototype, { 'strand': { + /** @this {org_apache_flex_binding_ChainBinding} */ set: function(value) { this.applyBinding(); } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js index 6723bbf..3ed2ab9 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js @@ -41,6 +41,7 @@ org_apache_flex_binding_ConstantBinding.prototype.FLEXJS_CLASS_INFO = Object.defineProperties(org_apache_flex_binding_ConstantBinding.prototype, { 'strand': { + /** @this {org_apache_flex_binding_ConstantBinding} */ set: function(value) { org_apache_flex_utils_Language.superSetter(org_apache_flex_binding_ConstantBinding, this, 'strand', value); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js index 9602a63..235e156 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js @@ -15,6 +15,7 @@ goog.provide('org_apache_flex_binding_SimpleBinding'); goog.require('org_apache_flex_binding_BindingBase'); +goog.require('org_apache_flex_utils_Language'); @@ -70,16 +71,18 @@ org_apache_flex_binding_SimpleBinding.prototype.sourceChangeHandler = function(e Object.defineProperties(org_apache_flex_binding_SimpleBinding.prototype, { 'strand': { + /** @this {org_apache_flex_binding_SimpleBinding} */ set: function(value) { - org_apache_flex_binding_SimpleBinding.base(this, 'set_strand', value); + org_apache_flex_utils_Language.superSetter( + org_apache_flex_binding_SimpleBinding, this, 'strand', value); - if (!this.source) - return; + if (!this.source) + return; - this.source.addEventListener(this.eventName, - goog.bind(this.changeHandler, this)); + this.source.addEventListener(this.eventName, + goog.bind(this.changeHandler, this)); - this.changeHandler(); + this.changeHandler(); } } }); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js index 2f23281..872c9fc 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js @@ -71,9 +71,11 @@ org_apache_flex_charts_core_ChartBase.prototype.series_ = null; Object.defineProperties(org_apache_flex_charts_core_ChartBase.prototype, { 'series': { + /** @this {org_apache_flex_charts_core_ChartBase} */ get: function() { return this.series_; }, + /** @this {org_apache_flex_charts_core_ChartBase} */ set: function(value) { this.series_ = value; this.dispatchEvent(new org_apache_flex_events_Event('seriesChanged')); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js index 39d7e12..77fabb7 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js @@ -132,14 +132,17 @@ org_apache_flex_core_ContainerBase.prototype.setMXMLDescriptor = Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, { 'MXMLDescriptor': { + /** @this {org_apache_flex_core_ContainerBase} */ get: function() { return this.mxmlDescriptor; } }, 'states': { + /** @this {org_apache_flex_core_ContainerBase} */ get: function() { return this.states_; }, + /** @this {org_apache_flex_core_ContainerBase} */ set: function(s) { this.states_ = s; this.currentState_ = s[0].name; @@ -156,9 +159,11 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, { } }, 'currentState': { + /** @this {org_apache_flex_core_ContainerBase} */ get: function() { return this.currentState_; }, + /** @this {org_apache_flex_core_ContainerBase} */ set: function(s) { var event = new org_apache_flex_events_ValueChangeEvent( 'currentStateChange', false, false, this.currentState_, s); @@ -167,9 +172,11 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, { } }, 'transitions': { + /** @this {org_apache_flex_core_ContainerBase} */ get: function() { return this.transitions_; }, + /** @this {org_apache_flex_core_ContainerBase} */ set: function(s) { this.transitions_ = s; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js index 2472258..1d72fc0 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js @@ -56,9 +56,11 @@ org_apache_flex_core_FilledRectangle.prototype.addedToParent = function() { Object.defineProperties(org_apache_flex_core_FilledRectangle.prototype, { 'fillColor': { + /** @this {org_apache_flex_core_FilledRectangle} */ get: function() { return this.fillColor_; }, + /** @this {org_apache_flex_core_FilledRectangle} */ set: function(value) { this.fillColor_ = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js index 813e2ed..f8acdd9 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js @@ -74,39 +74,46 @@ org_apache_flex_core_FormatBase.prototype._formattedResult = ''; Object.defineProperties(org_apache_flex_core_FormatBase.prototype, { 'strand': { + /** @this {org_apache_flex_core_FormatBase} */ set: function(value) { this.strand_ = value; } }, 'propertyValue': { + /** @this {org_apache_flex_core_FormatBase} */ get: function() { var value = this.strand_[this.propertyName]; return value; } }, 'propertyName': { + /** @this {org_apache_flex_core_FormatBase} */ get: function() { if (this._propertyName == null) { this._propertyName = 'text'; } return this._propertyName; }, + /** @this {org_apache_flex_core_FormatBase} */ set: function(value) { this._propertyName = value; } }, 'eventName': { + /** @this {org_apache_flex_core_FormatBase} */ get: function() { if (this._eventName == null) { return this._propertyName + 'Change'; } return this._eventName; }, + /** @this {org_apache_flex_core_FormatBase} */ set: function(value) { this._eventName = value; } }, 'formattedString': { + /** @this {org_apache_flex_core_FormatBase} */ get: function() { return null; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js index 4c0c680..0171ef3 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js @@ -132,12 +132,13 @@ org_apache_flex_core_HTMLElementWrapper.prototype.removeBead = function(bead) { Object.defineProperties(Event.prototype, { - /* Hack to allow event.target expressions to work + /** Hack to allow event.target expressions to work * * @expose * @return {Object} The wrapping object. */ 'target': { + /** @this {Event} */ get: function() { var obj = this.target; if (!obj) @@ -150,6 +151,7 @@ Object.defineProperties(Event.prototype, { * @return {Object} The wrapping object. */ 'currentTarget': { + /** @this {Event} */ get: function() { return this.currentTarget.flexjs_wrapper; } @@ -165,6 +167,7 @@ Object.defineProperties(goog.events.BrowserEvent.prototype, { * @return {Object} The wrapping object. */ 'target': { + /** @this {goog.events.BrowserEvent} */ get: function() { // if it is a faked event so just return the target if (!this.event_) return this.target; @@ -179,6 +182,7 @@ Object.defineProperties(goog.events.BrowserEvent.prototype, { * @return {?Node|Object} The wrapping object. */ 'currentTarget': { + /** @this {goog.events.BrowserEvent} */ get: function() { // if it is a faked event so just return the currentTarget if (!this.event_) return this.currentTarget; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 e3d2405..4170827 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js @@ -46,6 +46,7 @@ org_apache_flex_core_ItemRendererClassFactory. Object.defineProperties(org_apache_flex_core_ItemRendererClassFactory.prototype, { 'strand': { + /** @this {org_apache_flex_core_ItemRendererClassFactory} */ set: function(value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 85410fa..e184bdb 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js @@ -341,17 +341,20 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { * @param {Array.<Object>} value The list of beads from MXML. */ 'beads': { + /** @this {org_apache_flex_core_UIBase} */ set: function(value) { this.mxmlBeads_ = value; } }, 'numElements': { + /** @this {org_apache_flex_core_UIBase} */ get: function() { var children = this.internalChildren(); return children.length; } }, 'parent': { + /** @this {org_apache_flex_core_UIBase} */ get: function() { var p = this.positioner.parentNode; var wrapper = p.flexjs_wrapper; @@ -359,9 +362,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'alpha': { + /** @this {org_apache_flex_core_UIBase} */ set: function(alpha) { this.positioner.style.opacity = alpha; }, + /** @this {org_apache_flex_core_UIBase} */ get: function() { var stralpha = this.positioner.style.opacity; var alpha = parseFloat(stralpha); @@ -369,10 +374,12 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'x': { + /** @this {org_apache_flex_core_UIBase} */ set: function(pixels) { this.positioner.style.position = 'absolute'; this.positioner.style.left = pixels.toString() + 'px'; }, + /** @this {org_apache_flex_core_UIBase} */ get: function() { var strpixels = this.positioner.style.left; var pixels = parseFloat(strpixels); @@ -382,10 +389,12 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'y': { + /** @this {org_apache_flex_core_UIBase} */ set: function(pixels) { this.positioner.style.position = 'absolute'; this.positioner.style.top = pixels.toString() + 'px'; }, + /** @this {org_apache_flex_core_UIBase} */ get: function() { var strpixels = this.positioner.style.top; var pixels = parseFloat(strpixels); @@ -395,10 +404,12 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'width': { + /** @this {org_apache_flex_core_UIBase} */ set: function(pixels) { this.explicitWidth = pixels; this.setWidth(pixels); }, + /** @this {org_apache_flex_core_UIBase} */ get: function() { var pixels; var strpixels = this.positioner.style.width; @@ -417,31 +428,37 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'explicitWidth': { + /** @this {org_apache_flex_core_UIBase} */ set: function(pixels) { this.explicitWidth_ = pixels; if (!isNaN(pixels)) this.percentWidth_ = NaN; }, + /** @this {org_apache_flex_core_UIBase} */ get: function() { return this.explicitWidth_; } }, 'percentWidth': { + /** @this {org_apache_flex_core_UIBase} */ set: function(pixels) { this.percentWidth_ = pixels; this.positioner.style.width = pixels.toString() + '%'; if (!isNaN(pixels)) this.explicitWidth_ = NaN; }, + /** @this {org_apache_flex_core_UIBase} */ get: function() { return this.percentWidth_; } }, 'height': { + /** @this {org_apache_flex_core_UIBase} */ set: function(pixels) { this.explicitHeight = pixels; this.setHeight(pixels); }, + /** @this {org_apache_flex_core_UIBase} */ get: function() { var pixels; var strpixels = this.positioner.style.height; @@ -460,30 +477,36 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'explicitHeight': { + /** @this {org_apache_flex_core_UIBase} */ set: function(pixels) { this.explicitHeight_ = pixels; if (!isNaN(pixels)) this.percentHeight_ = NaN; }, + /** @this {org_apache_flex_core_UIBase} */ get: function() { return this.explicitHeight_; } }, 'percentHeight': { + /** @this {org_apache_flex_core_UIBase} */ set: function(pixels) { this.percentHeight_ = pixels; this.positioner.style.height = pixels.toString() + '%'; if (!isNaN(pixels)) this.explicitHeight_ = NaN; }, + /** @this {org_apache_flex_core_UIBase} */ get: function() { return this.percentHeight_; } }, 'id': { + /** @this {org_apache_flex_core_UIBase} */ get: function() { return this.id; }, + /** @this {org_apache_flex_core_UIBase} */ set: function(value) { if (this.id !== value) { this.element.id = value; @@ -493,9 +516,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'className': { + /** @this {org_apache_flex_core_UIBase} */ get: function() { return this.className; }, + /** @this {org_apache_flex_core_UIBase} */ set: function(value) { if (this.className !== value) { this.element.className = this.typeNames ? value + ' ' + this.typeNames : value; @@ -505,6 +530,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'model': { + /** @this {org_apache_flex_core_UIBase} */ get: function() { if (this.model == null) { // addbead will set _model @@ -520,6 +546,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } return this.model; }, + /** @this {org_apache_flex_core_UIBase} */ set: function(value) { if (this.model !== value) { this.addBead(value); @@ -528,9 +555,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'style': { + /** @this {org_apache_flex_core_UIBase} */ get: function() { return this.style_; }, + /** @this {org_apache_flex_core_UIBase} */ set: function(value) { if (this.style_ !== value) { if (typeof(value) == 'string') @@ -544,9 +573,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'visible': { + /** @this {org_apache_flex_core_UIBase} */ get: function() { return this.positioner.style.display !== 'none'; }, + /** @this {org_apache_flex_core_UIBase} */ set: function(value) { var oldValue = this.positioner.style.display !== 'none'; if (value !== oldValue) { @@ -566,6 +597,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, { } }, 'topMostEventDispatcher': { + /** @this {org_apache_flex_core_UIBase} */ get: function() { return document.body.flexjs_wrapper; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 92d2054..625696d 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js @@ -44,9 +44,11 @@ org_apache_flex_core_ValuesManager.prototype.valuesImpl = null; Object.defineProperties(org_apache_flex_core_ValuesManager.prototype, { 'valuesImpl': { + /** @this {org_apache_flex_core_ValuesManager} */ get: function() { return org_apache_flex_core_ValuesManager.valuesImpl; }, + /** @this {org_apache_flex_core_ValuesManager} */ set: function(value) { org_apache_flex_core_ValuesManager.valuesImpl = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 bb8cb96..2a53d59 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js @@ -160,6 +160,7 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, { * @return {Array} An array of descriptors. */ 'MXMLDescriptor': { + /** @this {org_apache_flex_core_ViewBase} */ get: function() { return this.MXMLDescriptor; } @@ -168,14 +169,17 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, { * @return {Object} The application model. */ 'applicationModel': { + /** @this {org_apache_flex_core_ViewBase} */ get: function() { return this.applicationModel; } }, 'states': { + /** @this {org_apache_flex_core_ViewBase} */ get: function() { return this.states_; }, + /** @this {org_apache_flex_core_ViewBase} */ set: function(value) { this.states_ = value; this.currentState_ = value[0].name; @@ -192,9 +196,11 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, { } }, 'currentState': { + /** @this {org_apache_flex_core_ViewBase} */ get: function() { return this.currentState_; }, + /** @this {org_apache_flex_core_ViewBase} */ set: function(value) { var event = new org_apache_flex_events_ValueChangeEvent( 'currentStateChange', false, false, this.currentState_, value); @@ -203,9 +209,11 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, { } }, 'transitions': { + /** @this {org_apache_flex_core_ViewBase} */ get: function() { return this.transitions_; }, + /** @this {org_apache_flex_core_ViewBase} */ set: function(value) { this.transitions_ = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 e1b0014..1ad11ea 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 @@ -48,9 +48,11 @@ org_apache_flex_core_graphics_Circle.prototype.FLEXJS_CLASS_INFO = Object.defineProperties(org_apache_flex_core_graphics_Circle.prototype, { 'radius': { + /** @this {org_apache_flex_core_graphics_Circle} */ set: function(v) { this.radius_ = v; }, + /** @this {org_apache_flex_core_graphics_Circle} */ get: function() { return this.radius_; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 fa4b249..d8f42b8 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 @@ -66,9 +66,11 @@ org_apache_flex_core_graphics_GradientBase.prototype._rotation = 0.0; Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, { 'entries': { + /** @this {org_apache_flex_core_graphics_GradientBase} */ get: function() { return this._entries; }, + /** @this {org_apache_flex_core_graphics_GradientBase} */ set: function(value) { this._entries = value; } @@ -82,30 +84,37 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, { * @return {number} */ 'rotation': { + /** @this {org_apache_flex_core_graphics_GradientBase} */ get: function() { return this._rotation; }, + /** @this {org_apache_flex_core_graphics_GradientBase} */ set: function(value) { this._rotation = value; } }, 'x': { + /** @this {org_apache_flex_core_graphics_GradientBase} */ get: function() { return this._x; }, + /** @this {org_apache_flex_core_graphics_GradientBase} */ set: function(value) { this._x = value; } }, 'y': { + /** @this {org_apache_flex_core_graphics_GradientBase} */ set: function(value) { this._y = value; }, + /** @this {org_apache_flex_core_graphics_GradientBase} */ get: function() { return this._y; } }, 'newId': { + /** @this {org_apache_flex_core_graphics_GradientBase} */ get: function() { return 'gradient' + String(Math.floor((Math.random() * 100000) + 1)); } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 318149d..126f718 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 @@ -57,9 +57,11 @@ org_apache_flex_core_graphics_GradientEntry.prototype._ratio = 0x000000; Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, { 'alpha': { + /** @this {org_apache_flex_core_graphics_GradientEntry} */ get: function() { return this._alpha; }, + /** @this {org_apache_flex_core_graphics_GradientEntry} */ set: function(value) { var /** @type {number} */ oldValue = this._alpha; if (value != oldValue) { @@ -68,9 +70,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, { } }, 'color': { + /** @this {org_apache_flex_core_graphics_GradientEntry} */ get: function() { return this._color; }, + /** @this {org_apache_flex_core_graphics_GradientEntry} */ set: function(value) { var /** @type {number} */ oldValue = this._color; if (value != oldValue) { @@ -79,9 +83,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, { } }, 'ratio': { + /** @this {org_apache_flex_core_graphics_GradientEntry} */ get: function() { return this._ratio; }, + /** @this {org_apache_flex_core_graphics_GradientEntry} */ set: function(value) { this._ratio = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 b442bc0..4bf01b3 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 @@ -88,14 +88,16 @@ org_apache_flex_core_graphics_GraphicShape.prototype.FLEXJS_CLASS_INFO = qName: 'org_apache_flex_core_graphics_GraphicShape' }] }; -Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, { +Object.defineProperties(org_apache_flex_core_graphics_GraphicShape.prototype, { /** * @type {org_apache_flex_core_graphics_IFill} */ 'fill': { + /** @this {org_apache_flex_core_graphics_GraphicShape} */ get: function() { return this.fill_; }, + /** @this {org_apache_flex_core_graphics_GraphicShape} */ set: function(value) { this.fill_ = value; } @@ -104,9 +106,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, { * @type {org_apache_flex_core_graphics_IStroke} The stroke object. */ 'stroke': { + /** @this {org_apache_flex_core_graphics_GraphicShape} */ get: function() { return this.stroke_; }, + /** @this {org_apache_flex_core_graphics_GraphicShape} */ set: function(value) { this.stroke_ = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 d3b2160..ead8551 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 @@ -51,11 +51,13 @@ org_apache_flex_core_graphics_GraphicsContainer.prototype.removeAllElements = fu Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototype, { 'numChildren': { + /** @this {org_apache_flex_core_graphics_GraphicsContainer} */ get: function() { return this.internalChildren().length; } }, 'width': { + /** @this {org_apache_flex_core_graphics_GraphicsContainer} */ set: function(value) { org_apache_flex_utils_Language.superSetter( org_apache_flex_core_graphics_GraphicsContainer, this, 'width', value); @@ -64,6 +66,7 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp } }, 'height': { + /** @this {org_apache_flex_core_graphics_GraphicsContainer} */ set: function(value) { org_apache_flex_utils_Language.superSetter( org_apache_flex_core_graphics_GraphicsContainer, this, 'height', value); @@ -72,6 +75,7 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp } }, 'x': { + /** @this {org_apache_flex_core_graphics_GraphicsContainer} */ set: function(value) { org_apache_flex_utils_Language.superSetter( org_apache_flex_core_graphics_GraphicsContainer, this, 'x', value); @@ -82,9 +86,10 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp } }, 'y': { + /** @this {org_apache_flex_core_graphics_GraphicsContainer} */ set: function(value) { org_apache_flex_utils_Language.superSetter( - org_apache_flex_core_graphics_GraphicsContainerthis, 'set_y', value); + org_apache_flex_core_graphics_GraphicsContainer, this, 'y', value); this.element.setAttribute('y', String(value) + 'px'); this.element.style.position = 'absolute'; this.element.style.top = String(value) + 'px'; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 8afd8fa..006321a 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 @@ -44,9 +44,11 @@ org_apache_flex_core_graphics_LinearGradient.prototype._scaleX = 1.0; Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, { 'scaleX': { + /** @this {org_apache_flex_core_graphics_LinearGradient} */ get: function() { return this._scaleX; }, + /** @this {org_apache_flex_core_graphics_LinearGradient} */ set: function(value) { this._scaleX = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 5477a8d..f55ac3b 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 @@ -45,11 +45,13 @@ org_apache_flex_core_graphics_Path.prototype.FLEXJS_CLASS_INFO = qName: 'org_apache_flex_core_graphics_Path' }] }; -Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, { +Object.defineProperties(org_apache_flex_core_graphics_Path.prototype, { 'data': { + /** @this {org_apache_flex_core_graphics_Path} */ set: function(v) { this.data_ = v; }, + /** @this {org_apache_flex_core_graphics_Path} */ get: function() { return this.data_; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 cf20ff4..2f34d10 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 @@ -51,17 +51,21 @@ org_apache_flex_core_graphics_SolidColor.prototype.FLEXJS_CLASS_INFO = Object.defineProperties(org_apache_flex_core_graphics_SolidColor.prototype, { 'color': { + /** @this {org_apache_flex_core_graphics_SolidColor} */ get: function() { return this.color_; }, + /** @this {org_apache_flex_core_graphics_SolidColor} */ set: function(value) { this.color_ = value; } }, 'alpha': { + /** @this {org_apache_flex_core_graphics_SolidColor} */ get: function() { return this.alpha_; }, + /** @this {org_apache_flex_core_graphics_SolidColor} */ set: function(value) { this.alpha_ = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 7f81326..dee2e7f 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 @@ -57,25 +57,31 @@ org_apache_flex_core_graphics_SolidColorStroke.prototype.FLEXJS_CLASS_INFO = Object.defineProperties(org_apache_flex_core_graphics_SolidColorStroke.prototype, { 'color': { + /** @this {org_apache_flex_core_graphics_SolidColorStroke} */ get: function() { return this.color_; }, + /** @this {org_apache_flex_core_graphics_SolidColorStroke} */ set: function(value) { this.color_ = value; } }, 'alpha': { + /** @this {org_apache_flex_core_graphics_SolidColorStroke} */ get: function() { return this.alpha_; }, + /** @this {org_apache_flex_core_graphics_SolidColorStroke} */ set: function(value) { this.alpha_ = value; } }, 'weight': { + /** @this {org_apache_flex_core_graphics_SolidColorStroke} */ get: function() { return this.weight_; }, + /** @this {org_apache_flex_core_graphics_SolidColorStroke} */ set: function(value) { this.weight_ = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 0e517de..d351865 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js @@ -49,9 +49,11 @@ org_apache_flex_createjs_Label.prototype.createElement = Object.defineProperties(org_apache_flex_createjs_Label.prototype, { 'text': { + /** @this {org_apache_flex_createjs_Label} */ get: function() { return this.element.text; }, + /** @this {org_apache_flex_createjs_Label} */ set: function(value) { this.element.text = value; this.element.getStage().update(); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 4113d9b..4d61e01 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 @@ -56,35 +56,41 @@ org_apache_flex_createjs_core_UIBase.prototype.createElement = }; -Object.defineProperties(org_apache_flex_createjs_Label.prototype, { +Object.defineProperties(org_apache_flex_createjs_core_UIBase.prototype, { 'x': { + /** @this {org_apache_flex_createjs_core_UIBase} */ set: function(pixels) { this.positioner.x = pixels; this.element.getStage().update(); } }, 'y': { + /** @this {org_apache_flex_createjs_core_UIBase} */ set: function(pixels) { this.positioner.y = pixels; this.element.getStage().update(); } }, 'width': { + /** @this {org_apache_flex_createjs_core_UIBase} */ set: function(pixels) { this.positioner.width = pixels; this.element.getStage().update(); } }, 'height': { + /** @this {org_apache_flex_createjs_core_UIBase} */ set: function(pixels) { this.positioner.height = pixels; this.element.getStage().update(); } }, 'id': { + /** @this {org_apache_flex_createjs_core_UIBase} */ get: function() { return this.name; }, + /** @this {org_apache_flex_createjs_core_UIBase} */ set: function(value) { if (this.name !== value) { this.element.name = value; @@ -94,9 +100,11 @@ Object.defineProperties(org_apache_flex_createjs_Label.prototype, { } }, 'model': { + /** @this {org_apache_flex_createjs_core_UIBase} */ get: function() { return this.model; }, + /** @this {org_apache_flex_createjs_core_UIBase} */ set: function(value) { if (this.model !== value) { this.addBead(value); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js index 74203c6..b9fe8e8 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js @@ -71,18 +71,21 @@ org_apache_flex_events_Event.prototype.init = function(type) { }; -Object.defineProperties(org_apache_flex_createjs_Label.prototype, { +Object.defineProperties(org_apache_flex_events_Event.prototype, { 'type': { + /** @this {org_apache_flex_events_Event} */ get: function() { return this.type; } }, 'target': { + /** @this {org_apache_flex_events_Event} */ get: function() { return this.target; } }, 'currentTarget': { + /** @this {org_apache_flex_events_Event} */ get: function() { return this.currentTarget; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js index 6c6499f..d36c65c 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js @@ -118,22 +118,27 @@ org_apache_flex_html_Alert.show = Object.defineProperties(org_apache_flex_html_Alert.prototype, { 'title': { + /** @this {org_apache_flex_html_Alert} */ get: function() { return this.titleBar.title; }, + /** @this {org_apache_flex_html_Alert} */ set: function(value) { this.titleBar.title = value; } }, 'text': { + /** @this {org_apache_flex_html_Alert} */ get: function() { return this.message.text; }, + /** @this {org_apache_flex_html_Alert} */ set: function(value) { this.message.text = value; } }, 'flags': { + /** @this {org_apache_flex_html_Alert} */ get: function() { return this.flags; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js index ca3fa21..c428808 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js @@ -63,17 +63,21 @@ org_apache_flex_html_CheckBox.prototype.createElement = Object.defineProperties(org_apache_flex_html_CheckBox.prototype, { 'text': { + /** @this {org_apache_flex_html_CheckBox} */ get: function() { return this.element.childNodes.item(1).nodeValue; }, + /** @this {org_apache_flex_html_CheckBox} */ set: function(value) { this.element.childNodes.item(1).nodeValue = value; } }, 'selected': { + /** @this {org_apache_flex_html_CheckBox} */ get: function() { return this.element.childNodes.item(0).checked; }, + /** @this {org_apache_flex_html_CheckBox} */ set: function(value) { this.element.childNodes.item(0).checked = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js index 231e80b..b45b973 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js @@ -180,22 +180,13 @@ org_apache_flex_html_ComboBox.prototype.buttonClicked = }; -/** - * @override - * @expose - * @param {Array.<Object>} value The collection of data. - */ -org_apache_flex_html_ComboBox.prototype.set_dataProvider = - function(value) { - this.dataProvider = value; -}; - - -Object.defineProperties(org_apache_flex_html_CheckBox.prototype, { +Object.defineProperties(org_apache_flex_html_ComboBox.prototype, { 'text': { + /** @this {org_apache_flex_html_ComboBox} */ get: function() { return this.element.childNodes.item(0).value; }, + /** @this {org_apache_flex_html_ComboBox} */ set: function(value) { this.element.childNodes.item(0).value = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js index e630a12..604dfd0 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js @@ -64,18 +64,22 @@ org_apache_flex_html_ImageAndTextButton.prototype.createElement = Object.defineProperties(org_apache_flex_html_ImageAndTextButton.prototype, { 'text': { + /** @this {org_apache_flex_html_ImageAndTextButton} */ get: function() { return this._text; }, + /** @this {org_apache_flex_html_ImageAndTextButton} */ set: function(value) { this._text = value; this.setInnerHTML(); } }, 'image': { + /** @this {org_apache_flex_html_ImageAndTextButton} */ get: function() { return this._src; }, + /** @this {org_apache_flex_html_ImageAndTextButton} */ set: function(value) { this._src = value; this.setInnerHTML(); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js index 7d8e049..2569272 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js @@ -45,17 +45,21 @@ org_apache_flex_html_Label.prototype.FLEXJS_CLASS_INFO = Object.defineProperties(org_apache_flex_html_Label.prototype, { 'text': { + /** @this {org_apache_flex_html_Label} */ get: function() { return this.element.innerHTML; }, + /** @this {org_apache_flex_html_Label} */ set: function(value) { this.element.innerHTML = value; } }, 'html': { + /** @this {org_apache_flex_html_Label} */ get: function() { return this.element.innerHTML; }, + /** @this {org_apache_flex_html_Label} */ set: function(value) { this.element.innerHTML = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js index 4df1078..ce51916 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js @@ -45,17 +45,21 @@ org_apache_flex_html_MultilineLabel.prototype.FLEXJS_CLASS_INFO = Object.defineProperties(org_apache_flex_html_MultilineLabel.prototype, { 'text': { + /** @this {org_apache_flex_html_MultilineLabel} */ get: function() { return this.element.innerHTML; }, + /** @this {org_apache_flex_html_MultilineLabel} */ set: function(value) { this.element.innerHTML = value; } }, 'html': { + /** @this {org_apache_flex_html_MultilineLabel} */ get: function() { return this.element.innerHTML; }, + /** @this {org_apache_flex_html_MultilineLabel} */ set: function(value) { this.element.innerHTML = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js index 0ee904c..8778def 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js @@ -140,25 +140,31 @@ org_apache_flex_html_Panel.prototype.addedToParent = Object.defineProperties(org_apache_flex_html_Panel.prototype, { 'showCloseButton': { + /** @this {org_apache_flex_html_Panel} */ get: function() { return this.model.showCloseButton; }, + /** @this {org_apache_flex_html_Panel} */ set: function(value) { this.model.showCloseButton = value; } }, 'title': { + /** @this {org_apache_flex_html_Panel} */ get: function() { return this.model.title; }, + /** @this {org_apache_flex_html_Panel} */ set: function(value) { this.model.title = value; } }, 'controlBar': { + /** @this {org_apache_flex_html_Panel} */ get: function() { return this.controlBarChildren; }, + /** @this {org_apache_flex_html_Panel} */ set: function(value) { this.controlBarChildren = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js index 25f3b50..8514420 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js @@ -89,6 +89,7 @@ org_apache_flex_html_RadioButton.prototype.initSkin = Object.defineProperties(org_apache_flex_html_RadioButton.prototype, { 'id': { + /** @this {org_apache_flex_html_RadioButton} */ set: function(value) { org_apache_flex_utils_Language.superSetter(org_apache_flex_html_RadioButton, this, 'id', value); this.labelFor.id = value; @@ -96,38 +97,47 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, { } }, 'groupName': { + /** @this {org_apache_flex_html_RadioButton} */ get: function() { return this.input.name; }, + /** @this {org_apache_flex_html_RadioButton} */ set: function(value) { this.input.name = value; } }, 'text': { + /** @this {org_apache_flex_html_RadioButton} */ get: function() { return this.textNode.nodeValue; }, + /** @this {org_apache_flex_html_RadioButton} */ set: function(value) { this.textNode.nodeValue = value; } }, 'selected': { + /** @this {org_apache_flex_html_RadioButton} */ get: function() { return this.input.checked; }, + /** @this {org_apache_flex_html_RadioButton} */ set: function(value) { this.input.checked = value; } }, 'value': { + /** @this {org_apache_flex_html_RadioButton} */ get: function() { return this.input.value; }, + /** @this {org_apache_flex_html_RadioButton} */ set: function(value) { this.input.value = value; } }, 'selectedValue': { + /** @this {org_apache_flex_html_RadioButton} */ get: function() { var buttons, groupName, i, n; @@ -142,6 +152,7 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, { } return null; }, + /** @this {org_apache_flex_html_RadioButton} */ set: function(value) { var buttons, groupName, i, n; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js index b5d3d59..40954c1 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js @@ -99,9 +99,11 @@ org_apache_flex_html_Spinner.prototype.set_value = Object.defineProperties(org_apache_flex_html_Spinner.prototype, { 'minimum': { + /** @this {org_apache_flex_html_Spinner} */ get: function() { return this.minimum_; }, + /** @this {org_apache_flex_html_Spinner} */ set: function(value) { if (value != this.minimum_) { this.minimum_ = value; @@ -110,9 +112,11 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, { } }, 'maximum': { + /** @this {org_apache_flex_html_Spinner} */ get: function() { return this.maximum_; }, + /** @this {org_apache_flex_html_Spinner} */ set: function(value) { if (value != this.maximum_) { this.maximum_ = value; @@ -121,9 +125,11 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, { } }, 'snapInterval': { + /** @this {org_apache_flex_html_Spinner} */ get: function() { return this.snapInterval_; }, + /** @this {org_apache_flex_html_Spinner} */ set: function(value) { if (value != this.snapInterval_) { this.snapInterval_ = value; @@ -132,9 +138,11 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, { } }, 'stepSize': { + /** @this {org_apache_flex_html_Spinner} */ get: function() { return this.stepSize_; }, + /** @this {org_apache_flex_html_Spinner} */ set: function(value) { if (value != this.stepSize_) { this.stepSize_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js index 8209a86..dd61f60 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js @@ -55,9 +55,11 @@ org_apache_flex_html_TextArea.prototype.createElement = Object.defineProperties(org_apache_flex_html_TextArea.prototype, { 'text': { + /** @this {org_apache_flex_html_TextArea} */ get: function() { return this.element.value; }, + /** @this {org_apache_flex_html_TextArea} */ set: function(value) { this.element.value = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js index 25d16a4..d84c9f7 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js @@ -41,9 +41,11 @@ org_apache_flex_html_TextButton.prototype.FLEXJS_CLASS_INFO = Object.defineProperties(org_apache_flex_html_TextButton.prototype, { 'text': { + /** @this {org_apache_flex_html_TextButton} */ get: function() { return this.element.innerHTML; }, + /** @this {org_apache_flex_html_TextButton} */ set: function(value) { this.element.innerHTML = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js index 7dde595..5e11d7e 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js @@ -57,11 +57,13 @@ org_apache_flex_html_TextInput.prototype.createElement = function() { }; -Object.defineProperties(org_apache_flex_html_TextButton.prototype, { +Object.defineProperties(org_apache_flex_html_TextInput.prototype, { 'text': { + /** @this {org_apache_flex_html_TextInput} */ get: function() { return this.element.value; }, + /** @this {org_apache_flex_html_TextInput} */ set: function(value) { this.element.value = value; this.dispatchEvent(new org_apache_flex_events_Event('textChange')); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js index 5fd5cb8..0ab348e 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js @@ -47,19 +47,23 @@ org_apache_flex_html_ToggleTextButton.prototype.FLEXJS_CLASS_INFO = qName: 'org_apache_flex_html_ToggleTextButton'}] }; -Object.defineProperties(org_apache_flex_html_TextButton.prototype, { +Object.defineProperties(org_apache_flex_html_ToggleTextButton.prototype, { 'text': { + /** @this {org_apache_flex_html_ToggleTextButton} */ get: function() { return this.element.innerHTML; }, + /** @this {org_apache_flex_html_ToggleTextButton} */ set: function(value) { this.element.innerHTML = value; } }, 'selected': { + /** @this {org_apache_flex_html_ToggleTextButton} */ get: function() { return this.selected_; }, + /** @this {org_apache_flex_html_ToggleTextButton} */ set: function(value) { if (this.selected_ != value) { this.selected_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js index 5efba76..c8e925c 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js @@ -40,12 +40,9 @@ org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype.FLEXJS_CLASS qName: 'org_apache_flex_html_accessories_NumericOnlyTextInputBead' }] }; -/** - * @expose - * @param {Object} value The new host. - */ Object.defineProperties(org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype, { 'strand': { + /** @this {org_apache_flex_html_accessories_NumericOnlyTextInputBead} */ set: function(value) { if (this.strand_ !== value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js index 62dc9ac..460aff9 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js @@ -42,6 +42,7 @@ org_apache_flex_html_accessories_PasswordInputBead.prototype.FLEXJS_CLASS_INFO = Object.defineProperties(org_apache_flex_html_accessories_PasswordInputBead.prototype, { 'strand': { + /** @this {org_apache_flex_html_accessories_PasswordInputBead} */ set: function(value) { if (this.strand_ !== value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js index f64fab4..451d209 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js @@ -60,6 +60,7 @@ org_apache_flex_html_beads_DataItemRendererFactoryForArrayData. Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_DataItemRendererFactoryForArrayData} */ set: function(value) { this.strand_ = value; @@ -87,6 +88,7 @@ Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArr } }, 'itemRendererClass': { + /** @this {org_apache_flex_html_beads_DataItemRendererFactoryForArrayData} */ get: function() { if (org_apache_flex_core_ValuesManager.valuesImpl.getValue && !this.itemRendererClass_) { var c = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iItemRenderer'); @@ -96,6 +98,7 @@ Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArr } return this.itemRendererClass_; }, + /** @this {org_apache_flex_html_beads_DataItemRendererFactoryForArrayData} */ set: function(value) { this.itemRendererClass_ = value; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js index 2dfc4d1..135a1ab 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js @@ -143,23 +143,28 @@ org_apache_flex_html_beads_ListView.prototype. Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, { 'contentView': { + /** @this {org_apache_flex_html_beads_ListView} */ get: function() { return this.dataGroup_; } }, 'border': { + /** @this {org_apache_flex_html_beads_ListView} */ get: function() { return null; } }, 'vScrollBar': { + /** @this {org_apache_flex_html_beads_ListView} */ get: function() { return null; }, + /** @this {org_apache_flex_html_beads_ListView} */ set: function(value) { } }, 'resizeableView': { + /** @this {org_apache_flex_html_beads_ListView} */ get: function() { return this; } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js index f021952..e88dedd 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js @@ -49,6 +49,7 @@ org_apache_flex_html_beads_TextItemRendererFactoryForArrayData. Object.defineProperties(org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_TextItemRendererFactoryForArrayData} */ set: function(value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js index b376715..739e553 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js @@ -39,6 +39,7 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.FLE Object.defineProperties(org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_controllers_ItemRendererMouseController} */ set: function(value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js index 81c8798..43b5452 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js @@ -41,6 +41,7 @@ org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.protot Object.defineProperties(org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController} */ set: function(value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js index 258c34d..6e671a7 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js @@ -39,6 +39,7 @@ org_apache_flex_html_beads_controllers_SliderMouseController.prototype.FLEXJS_CL Object.defineProperties(org_apache_flex_html_beads_controllers_SliderMouseController.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_controllers_SliderMouseController} */ set: function(value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js index 17c9607..ec14063 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js @@ -38,6 +38,7 @@ org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype.FLEXJS_C Object.defineProperties(org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_controllers_SpinnerMouseController} */ set: function(value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js index 3fc659b..b8dd72f 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js @@ -45,6 +45,7 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype.FLEXJS_CLASS_ Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_layouts_NonVirtualBasicLayout} */ set: function(value) { if (this.strand_ !== value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js index 4b0fe39..9d5ac8f 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js @@ -42,6 +42,7 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype.FLEX Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout} */ set: function(value) { if (this.strand_ !== value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js index d7ecf91..caf04cf 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js @@ -42,6 +42,7 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype.FLEXJS_CLA Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout} */ set: function(value) { if (this.strand_ !== value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js index 94a102c..a0f1a16 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js @@ -39,8 +39,9 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout.prototype.F interfaces: [org_apache_flex_core_IBeadLayout] }; -Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype, { +Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout.prototype, { 'strand': { + /** @this {org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout} */ set: function(value) { if (this.strand_ !== value) { this.strand_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js index b8c2be9..341972a 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js @@ -16,6 +16,7 @@ goog.provide('org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer'); goog.require('org_apache_flex_html_beads_controllers_ItemRendererMouseController'); goog.require('org_apache_flex_html_supportClasses_DataItemRenderer'); +goog.require('org_apache_flex_utils_Language'); @@ -72,17 +73,20 @@ org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer. Object.defineProperties(org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.prototype, { 'strand': { + /** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */ set: function(value) { this.strand_ = value; }, + /** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */ get: function() { return this.strand_; } }, 'data': { + /** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */ set: function(value) { - - org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.base(this, 'set_data', value); + org_apache_flex_utils_Language.superSetter( + org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer, this, 'data', value); if (value.hasOwnProperty('label')) { this.button.innerHTML = value.label; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js index e953520..4293cf2 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js @@ -71,27 +71,33 @@ org_apache_flex_html_supportClasses_DataItemRenderer. Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.prototype, { 'itemRendererParent': { + /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */ get: function() { return this.rendererParent_; }, + /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */ set: function(value) { this.rendererParent_ = value; } }, 'index': { + /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */ set: function(value) { this.index_ = value; } }, 'dataField': { + /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */ set: function(value) { this.dataField_ = value; }, + /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */ get: function() { return this.dataField_; } }, 'selected': { + /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */ set: function(value) { this.selected_ = value; @@ -103,6 +109,7 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.pro } }, 'hovered': { + /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */ set: function(value) { this.hovered_ = value; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js index 3194a72..0e68832 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js @@ -46,11 +46,13 @@ org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype.FLEXJS_CLASS_I Object.defineProperties(org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype, { 'strand': { + /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */ set: function(value) { this.strand_ = value; } }, 'numElements': { + /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */ get: function() { var n = this.element.childNodes.length; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js index 906a70d..f8217bb 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js @@ -18,6 +18,7 @@ goog.require('org_apache_flex_core_IItemRenderer'); goog.require('org_apache_flex_core_UIBase'); goog.require('org_apache_flex_html_beads_controllers_ItemRendererMouseController'); goog.require('org_apache_flex_html_supportClasses_DataItemRenderer'); +goog.require('org_apache_flex_utils_Language'); @@ -72,37 +73,46 @@ org_apache_flex_html_supportClasses_StringItemRenderer. Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.prototype, { 'strand': { + /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */ set: function(value) { this.strand_ = value; }, + /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */ get: function() { return this.strand_; } }, 'itemRendererParent': { + /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */ get: function() { return this.rendererParent_; }, + /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */ set: function(value) { this.rendererParent_ = value; } }, 'index': { + /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */ set: function(value) { this.index_ = value; } }, 'text': { + /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */ set: function(value) { this.element.innerHTML = value; }, + /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */ get: function() { return this.element.innerHTML; } }, 'data': { + /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */ set: function(value) { - org_apache_flex_html_supportClasses_StringItemRenderer.base(this, 'set_data', value); + org_apache_flex_utils_Language.superSetter( + org_apache_flex_html_supportClasses_StringItemRenderer, this, 'data', value); if (this.labelField) { this.element.innerHTML = String(value[this.labelField]); @@ -116,6 +126,7 @@ Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.p this.element.innerHTML = String(value); } }, + /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */ get: function() { return this.element.innerHTML; }
