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

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

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



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @constructor
 * @extends {org.apache.royale.core.supportClasses.StyledImageBase}
 */
org.apache.royale.jewel.Image = function() {
  org.apache.royale.jewel.Image.base(this, 'constructor');
  this.typeNames = "jewel image";
};
goog.inherits(org.apache.royale.jewel.Image, org.apache.royale.core.supportClasses.StyledImageBase);


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


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


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


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


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


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



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