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

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

goog.require('org.apache.royale.core.WrappedHTMLElement');
goog.require('org.apache.royale.html.Button');



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


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


/**
 * @asprivate
 * @protected
 * @override
 */
org.apache.royale.html.TextButton.prototype.createElement = function() {
  org.apache.royale.html.TextButton.superClass_.createElement.apply(this);
  this.typeNames = "TextButton";
  return this.element;
};


org.apache.royale.html.TextButton.prototype.get__text = function() {
  
  return this.element.textContent;
};


org.apache.royale.html.TextButton.prototype.set__text = function(value) {
  
  this.element.textContent = value;
  this.dispatchEvent('textChange');
};


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


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


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


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



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