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

goog.provide('org.apache.royale.html.beads.AccessibilityAltBead');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.events.IEventDispatcher');
goog.require('org.apache.royale.events.ValueEvent');
goog.require('org.apache.royale.core.IBead');
goog.require('org.apache.royale.utils.Language');



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9
 * @constructor
 * @implements {org.apache.royale.core.IBead}
 */
org.apache.royale.html.beads.AccessibilityAltBead = function() {
};


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


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.html.beads.AccessibilityAltBead.prototype.org_apache_royale_html_beads_AccessibilityAltBead__strand;


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.AccessibilityAltBead.prototype.org_apache_royale_html_beads_AccessibilityAltBead__alt;


/**
 * @private
 */
org.apache.royale.html.beads.AccessibilityAltBead.prototype.org_apache_royale_html_beads_AccessibilityAltBead_updateHost = function() {
  if (!this.org_apache_royale_html_beads_AccessibilityAltBead__strand)
    return;
  
  org.apache.royale.utils.Language.as(this.org_apache_royale_html_beads_AccessibilityAltBead__strand, Object).element.alt = this.org_apache_royale_html_beads_AccessibilityAltBead__alt;
  org.apache.royale.utils.Language.as(this.org_apache_royale_html_beads_AccessibilityAltBead__strand, org.apache.royale.events.IEventDispatcher, true).dispatchEvent(new org.apache.royale.events.ValueEvent("altChange", this.alt));
};


org.apache.royale.html.beads.AccessibilityAltBead.prototype.set__strand = function(value) {
  this.org_apache_royale_html_beads_AccessibilityAltBead__strand = value;
  this.org_apache_royale_html_beads_AccessibilityAltBead_updateHost();
};


org.apache.royale.html.beads.AccessibilityAltBead.prototype.get__alt = function() {
  return this.org_apache_royale_html_beads_AccessibilityAltBead__alt;
};


org.apache.royale.html.beads.AccessibilityAltBead.prototype.set__alt = function(value) {
  if (value != this.org_apache_royale_html_beads_AccessibilityAltBead__alt) {
    this.org_apache_royale_html_beads_AccessibilityAltBead__alt = value;
    this.org_apache_royale_html_beads_AccessibilityAltBead_updateHost();
  }
};


Object.defineProperties(org.apache.royale.html.beads.AccessibilityAltBead.prototype, /** @lends {org.apache.royale.html.beads.AccessibilityAltBead.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.beads.AccessibilityAltBead.prototype.set__strand},
/**
  * @export
  * @type {string} */
alt: {
get: org.apache.royale.html.beads.AccessibilityAltBead.prototype.get__alt,
set: org.apache.royale.html.beads.AccessibilityAltBead.prototype.set__alt}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.beads.AccessibilityAltBead.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.html.beads.AccessibilityAltBead'},
        'alt': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.AccessibilityAltBead'}
      };
    },
    methods: function () {
      return {
        'AccessibilityAltBead': { type: '', declaredBy: 'org.apache.royale.html.beads.AccessibilityAltBead'}
      };
    }
  };
};