blob: 59a659a9a7c54d4c14e497dc76102c6ce4fbf2f6 [file] [log] [blame]
/**
* 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']
)
);
}
};