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

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

goog.require('org.apache.royale.core.WrappedHTMLElement');
goog.require('org.apache.royale.html.Button');
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.html.Button}
 */
org.apache.royale.html.CloseButton = function() {
  org.apache.royale.html.CloseButton.base(this, 'constructor');
  this.typeNames = "Button CloseButton";
};
goog.inherits(org.apache.royale.html.CloseButton, org.apache.royale.html.Button);


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


/**
 * @protected
 * @override
 */
org.apache.royale.html.CloseButton.prototype.createElement = function() {
  org.apache.royale.html.util.addElementToWrapper(this, 'button');
  this.element.setAttribute('type', 'button');
  this.element.style.lineHeight = "0";
  this.element.style.padding = "0";
  var /** @type {string} */ data = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCA2MCI+PHBvbHlnb24gcG9pbnRzPSI2MCA2LjIyIDUzLjc4IDAgMzAgMjMuNzcgNi4yMiAwIDAgNi4yMiAyMy43OCAzMCAwIDUzLjc4IDYuMjIgNjAgMzAgMzYuMjMgNTMuNzggNjAgNjAgNTMuNzggMzYuMjIgMzAgNjAgNi4yMiIvPjwvc3ZnPg==';
  this.element.innerHTML = "<img style='height:60%;width:60%' src='" + data + "'/>";
  return this.element;
};


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.CloseButton.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {return {};},
    methods: function () {
      return {
        'CloseButton': { type: '', declaredBy: 'org.apache.royale.html.CloseButton'}
      };
    }
  };
};