incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject svn commit: r1417859 [2/2] - in /incubator/flex/asjs/branches/develop: examples/FlexJSTest_again/ examples/FlexJSTest_again/controllers/ examples/FlexJSTest_again/models/ frameworks/as/tests/ frameworks/js/ frameworks/js/src/ frameworks/js/src/flash/ f...
Date Thu, 06 Dec 2012 13:30:34 GMT
Added: incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MyModel.js
URL: http://svn.apache.org/viewvc/incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MyModel.js?rev=1417859&view=auto
==============================================================================
--- incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MyModel.js
(added)
+++ incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MyModel.js
Thu Dec  6 13:30:33 2012
@@ -0,0 +1,60 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+goog.provide('MyModel');
+
+goog.require('flash.events.EventDispatcher');
+
+goog.require('org.apache.flex.FlexGlobal');
+
+/**
+ * @constructor
+ * @extends {flash.events.EventDispatcher}
+ */
+MyModel = function() {
+    flash.events.EventDispatcher.call(this);
+
+    /**
+     * @private
+     * @type {string}
+     */
+    this.labelText_;
+};
+goog.inherits(MyModel, flash.events.EventDispatcher);
+
+/**
+ * @expose
+ * @this {MyModel}
+ * @return {string} The labelText getter.
+ */
+MyModel.prototype.get_labelText = function() {
+    return this.labelText_;
+};
+
+/**
+ * @expose
+ * @this {MyModel}
+ * @param {string} value The labelText setter.
+ */
+MyModel.prototype.set_labelText = function(value) {
+    if (value != this.labelText_) {
+        this.labelText_ = value;
+
+        this.dispatchEvent(
+            org.apache.flex.FlexGlobal.newObject(
+                flash.events.Event, ['labelTextChanged']
+            )
+        );
+    }
+};

Propchange: incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MyModel.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MySimpleValuesImpl.js
URL: http://svn.apache.org/viewvc/incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MySimpleValuesImpl.js?rev=1417859&view=auto
==============================================================================
--- incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MySimpleValuesImpl.js
(added)
+++ incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MySimpleValuesImpl.js
Thu Dec  6 13:30:33 2012
@@ -0,0 +1,41 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+goog.provide('MySimpleValuesImpl');
+
+goog.require('org.apache.flex.core.SimpleValuesImpl');
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.SimpleValuesImpl}
+ */
+MySimpleValuesImpl = function() {
+    org.apache.flex.core.SimpleValuesImpl.call(this);
+
+    /**
+     * @private
+     * @type {Object}
+     */
+    this.values_ = {
+        /*
+        ITextButtonBead :
+            org.apache.flex.html.staticControls.beads.TextButtonBead,
+        ITextBead :
+            org.apache.flex.html.staticControls.beads.TextFieldBead,
+        ITextModel :
+            org.apache.flex.html.staticControls.beads.models.TextModel
+        */
+    };
+};
+goog.inherits(MySimpleValuesImpl, org.apache.flex.core.SimpleValuesImpl);

Propchange: incubator/flex/asjs/branches/develop/publisher/intermediate/FlexJSTest_dummy/MySimpleValuesImpl.js
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message