/**
 * Generated by Apache Royale Compiler from org\apache\royale\html\beads\models\NonNullTextModel.as
 * org.apache.royale.html.beads.models.NonNullTextModel
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.royale.html.beads.models.NonNullTextModel');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.events.EventDispatcher');
goog.require('org.apache.royale.core.IBead');
goog.require('org.apache.royale.core.ITextModel');



/**
 *  Constructor.
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.events.EventDispatcher}
 * @implements {org.apache.royale.core.IBead}
 * @implements {org.apache.royale.core.ITextModel}
 */
org.apache.royale.html.beads.models.NonNullTextModel = function() {
  org.apache.royale.html.beads.models.NonNullTextModel.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.beads.models.NonNullTextModel, org.apache.royale.events.EventDispatcher);


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.html.beads.models.NonNullTextModel', org.apache.royale.html.beads.models.NonNullTextModel);


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.html.beads.models.NonNullTextModel.prototype.org_apache_royale_html_beads_models_NonNullTextModel__strand;


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.NonNullTextModel.prototype.org_apache_royale_html_beads_models_NonNullTextModel__text = "";


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.NonNullTextModel.prototype.org_apache_royale_html_beads_models_NonNullTextModel__html;


org.apache.royale.html.beads.models.NonNullTextModel.prototype.set__strand = function(value) {
  this.org_apache_royale_html_beads_models_NonNullTextModel__strand = value;
};


org.apache.royale.html.beads.models.NonNullTextModel.prototype.get__text = function() {
  return this.org_apache_royale_html_beads_models_NonNullTextModel__text;
};


org.apache.royale.html.beads.models.NonNullTextModel.prototype.set__text = function(value) {
  if (value == null)
    value = "";
  if (value != this.org_apache_royale_html_beads_models_NonNullTextModel__text) {
    this.org_apache_royale_html_beads_models_NonNullTextModel__text = value;
    this.dispatchEvent(new org.apache.royale.events.Event("textChange"));
  }
};


org.apache.royale.html.beads.models.NonNullTextModel.prototype.get__html = function() {
  return this.org_apache_royale_html_beads_models_NonNullTextModel__html;
};


org.apache.royale.html.beads.models.NonNullTextModel.prototype.set__html = function(value) {
  if (value != this.org_apache_royale_html_beads_models_NonNullTextModel__html) {
    this.org_apache_royale_html_beads_models_NonNullTextModel__html = value;
    this.dispatchEvent(new org.apache.royale.events.Event("htmlChange"));
  }
};


Object.defineProperties(org.apache.royale.html.beads.models.NonNullTextModel.prototype, /** @lends {org.apache.royale.html.beads.models.NonNullTextModel.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.beads.models.NonNullTextModel.prototype.set__strand},
/**
  * @export
  * @type {string} */
text: {
get: org.apache.royale.html.beads.models.NonNullTextModel.prototype.get__text,
set: org.apache.royale.html.beads.models.NonNullTextModel.prototype.set__text},
/**
  * @export
  * @type {string} */
html: {
get: org.apache.royale.html.beads.models.NonNullTextModel.prototype.get__html,
set: org.apache.royale.html.beads.models.NonNullTextModel.prototype.set__html}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.html.beads.models.NonNullTextModel.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'NonNullTextModel', qName: 'org.apache.royale.html.beads.models.NonNullTextModel', kind: 'class' }], interfaces: [org.apache.royale.core.IBead, org.apache.royale.core.ITextModel] };



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.beads.models.NonNullTextModel.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.html.beads.models.NonNullTextModel'},
        'text': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.NonNullTextModel'},
        'html': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.NonNullTextModel'}
      };
    },
    methods: function () {
      return {
        'NonNullTextModel': { type: '', declaredBy: 'org.apache.royale.html.beads.models.NonNullTextModel'}
      };
    }
  };
};