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

goog.provide('org.apache.royale.html.HTMLText');

goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.core.WrappedHTMLElement');
goog.require('org.apache.royale.html.util.addElementToWrapper');



/**
 *  Constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.core.UIBase}
 */
org.apache.royale.html.HTMLText = function() {
  org.apache.royale.html.HTMLText.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.HTMLText, org.apache.royale.core.UIBase);


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


/**
 * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
 * @protected
 * @override
 */
org.apache.royale.html.HTMLText.prototype.createElement = function() {
  org.apache.royale.html.util.addElementToWrapper(this, 'span');
  this.typeNames = "HTMLText";
  return this.element;
};


org.apache.royale.html.HTMLText.prototype.get__html = function() {
  
  return this.element.innerHTML;
};


org.apache.royale.html.HTMLText.prototype.set__html = function(value) {
  
  this.element.innerHTML = value;
  this.dispatchEvent('textChange');
};


Object.defineProperties(org.apache.royale.html.HTMLText.prototype, /** @lends {org.apache.royale.html.HTMLText.prototype} */ {
/**
  * @export
  * @type {string} */
html: {
get: org.apache.royale.html.HTMLText.prototype.get__html,
set: org.apache.royale.html.HTMLText.prototype.set__html}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.html.HTMLText.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'HTMLText', qName: 'org.apache.royale.html.HTMLText', kind: 'class' }] };



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.HTMLText.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'html': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.HTMLText', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'htmlChange' } ] } ]; }}
      };
    },
    methods: function () {
      return {
        'HTMLText': { type: '', declaredBy: 'org.apache.royale.html.HTMLText'}
      };
    }
  };
};