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

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

goog.require('org.apache.royale.core.IBinaryImageLoader');
goog.require('org.apache.royale.core.IBinaryImageModel');
goog.require('org.apache.royale.core.ValuesManager');
goog.require('org.apache.royale.html.Image');
goog.require('org.apache.royale.utils.BinaryData');
goog.require('org.apache.royale.core.IBinaryImage');
goog.require('org.apache.royale.utils.Language');



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


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


/**
 * @export
 * @override
 */
org.apache.royale.html.BinaryImage.prototype.addedToParent = function() {
  var /** @type {Object} */ c = org.apache.royale.utils.Language.as(org.apache.royale.core.ValuesManager["valuesImpl"].getValue(this, "iBinaryImageLoader"), Object);
  if (c) {
    if (c) {
      var /** @type {org.apache.royale.core.IBinaryImageLoader} */ loader = org.apache.royale.utils.Language.as(new c(), org.apache.royale.core.IBinaryImageLoader);
      this.addBead(loader);
    }
  }
  org.apache.royale.html.BinaryImage.superClass_.addedToParent.apply(this);
};


org.apache.royale.html.BinaryImage.prototype.get__binary = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IBinaryImageModel).binary;
};


org.apache.royale.html.BinaryImage.prototype.set__binary = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IBinaryImageModel).binary = value;
};


Object.defineProperties(org.apache.royale.html.BinaryImage.prototype, /** @lends {org.apache.royale.html.BinaryImage.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.utils.BinaryData} */
binary: {
get: org.apache.royale.html.BinaryImage.prototype.get__binary,
set: org.apache.royale.html.BinaryImage.prototype.set__binary}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.BinaryImage.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'binary': { type: 'org.apache.royale.utils.BinaryData', access: 'readwrite', declaredBy: 'org.apache.royale.html.BinaryImage'}
      };
    },
    methods: function () {
      return {
        'BinaryImage': { type: '', declaredBy: 'org.apache.royale.html.BinaryImage'},
        'addedToParent': { type: 'void', declaredBy: 'org.apache.royale.html.BinaryImage'}
      };
    }
  };
};