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

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

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.events.CloseEvent');
goog.require('org.apache.royale.events.IEventDispatcher');
goog.require('org.apache.royale.core.IBeadController');
goog.require('org.apache.royale.utils.Language');



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


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


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.html.beads.controllers.AlertController.prototype.org_apache_royale_html_beads_controllers_AlertController__strand;


/**
 * @asprivate
 * @private
 * @param {org.apache.royale.events.CloseEvent} event
 */
org.apache.royale.html.beads.controllers.AlertController.prototype.org_apache_royale_html_beads_controllers_AlertController_alertCloseHandler = function(event) {
  
  var /** @type {org.apache.royale.core.UIBase} */ host = org.apache.royale.utils.Language.as(this.strand, org.apache.royale.core.UIBase);
  var /** @type {HTMLElement} */ htmlElement = org.apache.royale.utils.Language.as(host.element, HTMLElement);
  htmlElement.parentElement.removeChild(host.element);
};


org.apache.royale.html.beads.controllers.AlertController.prototype.get__strand = function() {
  return this.org_apache_royale_html_beads_controllers_AlertController__strand;
};


org.apache.royale.html.beads.controllers.AlertController.prototype.set__strand = function(value) {
  this.org_apache_royale_html_beads_controllers_AlertController__strand = value;
  org.apache.royale.utils.Language.as(value, org.apache.royale.events.IEventDispatcher, true).addEventListener("close", org.apache.royale.utils.Language.closure(this.org_apache_royale_html_beads_controllers_AlertController_alertCloseHandler, this, 'alertCloseHandler'));
};


Object.defineProperties(org.apache.royale.html.beads.controllers.AlertController.prototype, /** @lends {org.apache.royale.html.beads.controllers.AlertController.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
get: org.apache.royale.html.beads.controllers.AlertController.prototype.get__strand,
set: org.apache.royale.html.beads.controllers.AlertController.prototype.set__strand}}
);


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



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