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

goog.provide('org.apache.royale.routing.HashChangeNotifierBead');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.events.EventDispatcher');
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
 * @extends {org.apache.royale.events.EventDispatcher}
 * @implements {org.apache.royale.core.IBead}
 */
org.apache.royale.routing.HashChangeNotifierBead = function() {
  org.apache.royale.routing.HashChangeNotifierBead.base(this, 'constructor');
};
goog.inherits(org.apache.royale.routing.HashChangeNotifierBead, org.apache.royale.events.EventDispatcher);


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


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.routing.HashChangeNotifierBead.prototype.org_apache_royale_routing_HashChangeNotifierBead__strand;


/**
 * @private
 */
org.apache.royale.routing.HashChangeNotifierBead.prototype.org_apache_royale_routing_HashChangeNotifierBead_hashChangeHandler = function() {
  this.dispatchEvent(new org.apache.royale.events.Event("hashChange"));
};


org.apache.royale.routing.HashChangeNotifierBead.prototype.set__strand = function(value) {
  this.org_apache_royale_routing_HashChangeNotifierBead__strand = value;
  window.addEventListener("hashchange", org.apache.royale.utils.Language.closure(this.org_apache_royale_routing_HashChangeNotifierBead_hashChangeHandler, this, 'hashChangeHandler'));
};


org.apache.royale.routing.HashChangeNotifierBead.prototype.get__hash = function() {
  return location.hash;
  
};


Object.defineProperties(org.apache.royale.routing.HashChangeNotifierBead.prototype, /** @lends {org.apache.royale.routing.HashChangeNotifierBead.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.routing.HashChangeNotifierBead.prototype.set__strand},
/**
  * @export
  * @type {string} */
hash: {
get: org.apache.royale.routing.HashChangeNotifierBead.prototype.get__hash}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.routing.HashChangeNotifierBead.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.routing.HashChangeNotifierBead'},
        'hash': { type: 'String', access: 'readonly', declaredBy: 'org.apache.royale.routing.HashChangeNotifierBead'}
      };
    },
    methods: function () {
      return {
        'HashChangeNotifierBead': { type: '', declaredBy: 'org.apache.royale.routing.HashChangeNotifierBead'}
      };
    },
    metadata: function () { return [  ]; }
  };
};