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

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

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


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


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


/**
 * @royaleignorecoercion HTMLImageElement
 * @export
 * @override
 */
org.apache.royale.html.Image.prototype.applyImageData = function(binaryDataAsString) {
  this.element.src = binaryDataAsString;
};


org.apache.royale.html.Image.prototype.get__imageElement = function() {
  return this.element;
};


Object.defineProperties(org.apache.royale.html.Image.prototype, /** @lends {org.apache.royale.html.Image.prototype} */ {
/**
  * @export
  * @type {Element} */
imageElement: {
get: org.apache.royale.html.Image.prototype.get__imageElement}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.Image.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'imageElement': { type: 'Element', access: 'readonly', declaredBy: 'org.apache.royale.html.Image'}
      };
    },
    methods: function () {
      return {
        'Image': { type: '', declaredBy: 'org.apache.royale.html.Image'},
        'applyImageData': { type: 'void', declaredBy: 'org.apache.royale.html.Image', parameters: function () { return [  { index: 1, type: 'String', optional: false } ]; }}
      };
    }
  };
};