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

goog.provide('org.apache.royale.core.ImageBase');

goog.require('org.apache.royale.core.IImageModel');
goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.core.IImage');



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


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


/**
 * @export
 * @param {string} binaryDataAsString
 */
org.apache.royale.core.ImageBase.prototype.applyImageData = function(binaryDataAsString) {
};


org.apache.royale.core.ImageBase.prototype.get__src = function() {
  return this.model.url;
};


org.apache.royale.core.ImageBase.prototype.set__src = function(value) {
  this.model.url = value;
};


org.apache.royale.core.ImageBase.prototype.get__imageElement = function() {
  return null;
};


Object.defineProperties(org.apache.royale.core.ImageBase.prototype, /** @lends {org.apache.royale.core.ImageBase.prototype} */ {
/**
  * @export
  * @type {string} */
src: {
get: org.apache.royale.core.ImageBase.prototype.get__src,
set: org.apache.royale.core.ImageBase.prototype.set__src},
/**
  * @export
  * @type {Element} */
imageElement: {
get: org.apache.royale.core.ImageBase.prototype.get__imageElement}}
);


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



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