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

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

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.IAlertModel');
goog.require('org.apache.royale.core.IBead');



/**
 *  constructor.
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.events.EventDispatcher}
 * @implements {org.apache.royale.core.IAlertModel}
 * @implements {org.apache.royale.core.IBead}
 */
org.apache.royale.html.beads.models.AlertModel = function() {
  org.apache.royale.html.beads.models.AlertModel.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.beads.models.AlertModel, org.apache.royale.events.EventDispatcher);


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


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__strand;


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__title;


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__htmlTitle;


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__message;


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__htmlMessage;


/**
 * @private
 * @type {number}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__flags = 0;


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__okLabel = "OK";


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__cancelLabel = "Cancel";


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__yesLabel = "YES";


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.AlertModel.prototype.org_apache_royale_html_beads_models_AlertModel__noLabel = "NO";


org.apache.royale.html.beads.models.AlertModel.prototype.set__strand = function(value) {
  this.org_apache_royale_html_beads_models_AlertModel__strand = value;
};


org.apache.royale.html.beads.models.AlertModel.prototype.get__title = function() {
  return this.org_apache_royale_html_beads_models_AlertModel__title;
};


org.apache.royale.html.beads.models.AlertModel.prototype.set__title = function(value) {
  if (value != this.org_apache_royale_html_beads_models_AlertModel__title) {
    this.org_apache_royale_html_beads_models_AlertModel__title = value;
    this.dispatchEvent(new org.apache.royale.events.Event("titleChange"));
  }
};


org.apache.royale.html.beads.models.AlertModel.prototype.get__htmlTitle = function() {
  return this.org_apache_royale_html_beads_models_AlertModel__htmlTitle;
};


org.apache.royale.html.beads.models.AlertModel.prototype.set__htmlTitle = function(value) {
  if (value != this.org_apache_royale_html_beads_models_AlertModel__htmlTitle) {
    this.org_apache_royale_html_beads_models_AlertModel__htmlTitle = value;
    this.dispatchEvent(new org.apache.royale.events.Event("htmlTitleChange"));
  }
};


org.apache.royale.html.beads.models.AlertModel.prototype.get__message = function() {
  return this.org_apache_royale_html_beads_models_AlertModel__message;
};


org.apache.royale.html.beads.models.AlertModel.prototype.set__message = function(value) {
  if (value != this.org_apache_royale_html_beads_models_AlertModel__message) {
    this.org_apache_royale_html_beads_models_AlertModel__message = value;
    this.dispatchEvent(new org.apache.royale.events.Event("messageChange"));
  }
};


org.apache.royale.html.beads.models.AlertModel.prototype.get__htmlMessage = function() {
  return this.org_apache_royale_html_beads_models_AlertModel__htmlMessage;
};


org.apache.royale.html.beads.models.AlertModel.prototype.set__htmlMessage = function(value) {
  if (value != this.org_apache_royale_html_beads_models_AlertModel__htmlMessage) {
    this.org_apache_royale_html_beads_models_AlertModel__htmlMessage = value;
    this.dispatchEvent(new org.apache.royale.events.Event("htmlMessageChange"));
  }
};


org.apache.royale.html.beads.models.AlertModel.prototype.get__flags = function() {
  return this.org_apache_royale_html_beads_models_AlertModel__flags;
};


org.apache.royale.html.beads.models.AlertModel.prototype.set__flags = function(value) {
  if (value != this.org_apache_royale_html_beads_models_AlertModel__flags) {
    this.org_apache_royale_html_beads_models_AlertModel__flags = value;
    this.dispatchEvent(new org.apache.royale.events.Event("flagsChange"));
  }
};


org.apache.royale.html.beads.models.AlertModel.prototype.get__okLabel = function() {
  return this.org_apache_royale_html_beads_models_AlertModel__okLabel;
};


org.apache.royale.html.beads.models.AlertModel.prototype.set__okLabel = function(value) {
  if (value != this.org_apache_royale_html_beads_models_AlertModel__okLabel) {
    this.org_apache_royale_html_beads_models_AlertModel__okLabel = value;
    this.dispatchEvent(new org.apache.royale.events.Event("okLabelChange"));
  }
};


org.apache.royale.html.beads.models.AlertModel.prototype.get__cancelLabel = function() {
  return this.org_apache_royale_html_beads_models_AlertModel__cancelLabel;
};


org.apache.royale.html.beads.models.AlertModel.prototype.set__cancelLabel = function(value) {
  if (value != this.org_apache_royale_html_beads_models_AlertModel__cancelLabel) {
    this.org_apache_royale_html_beads_models_AlertModel__cancelLabel = value;
    this.dispatchEvent(new org.apache.royale.events.Event("cancelLabelChange"));
  }
};


org.apache.royale.html.beads.models.AlertModel.prototype.get__yesLabel = function() {
  return this.org_apache_royale_html_beads_models_AlertModel__yesLabel;
};


org.apache.royale.html.beads.models.AlertModel.prototype.set__yesLabel = function(value) {
  if (value != this.org_apache_royale_html_beads_models_AlertModel__yesLabel) {
    this.org_apache_royale_html_beads_models_AlertModel__yesLabel = value;
    this.dispatchEvent(new org.apache.royale.events.Event("yesLabelChange"));
  }
};


org.apache.royale.html.beads.models.AlertModel.prototype.get__noLabel = function() {
  return this.org_apache_royale_html_beads_models_AlertModel__noLabel;
};


org.apache.royale.html.beads.models.AlertModel.prototype.set__noLabel = function(value) {
  if (value != this.org_apache_royale_html_beads_models_AlertModel__noLabel) {
    this.org_apache_royale_html_beads_models_AlertModel__noLabel = value;
    this.dispatchEvent(new org.apache.royale.events.Event("noLabelChange"));
  }
};


Object.defineProperties(org.apache.royale.html.beads.models.AlertModel.prototype, /** @lends {org.apache.royale.html.beads.models.AlertModel.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__strand},
/**
  * @export
  * @type {string} */
title: {
get: org.apache.royale.html.beads.models.AlertModel.prototype.get__title,
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__title},
/**
  * @export
  * @type {string} */
htmlTitle: {
get: org.apache.royale.html.beads.models.AlertModel.prototype.get__htmlTitle,
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__htmlTitle},
/**
  * @export
  * @type {string} */
message: {
get: org.apache.royale.html.beads.models.AlertModel.prototype.get__message,
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__message},
/**
  * @export
  * @type {string} */
htmlMessage: {
get: org.apache.royale.html.beads.models.AlertModel.prototype.get__htmlMessage,
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__htmlMessage},
/**
  * @export
  * @type {number} */
flags: {
get: org.apache.royale.html.beads.models.AlertModel.prototype.get__flags,
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__flags},
/**
  * @export
  * @type {string} */
okLabel: {
get: org.apache.royale.html.beads.models.AlertModel.prototype.get__okLabel,
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__okLabel},
/**
  * @export
  * @type {string} */
cancelLabel: {
get: org.apache.royale.html.beads.models.AlertModel.prototype.get__cancelLabel,
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__cancelLabel},
/**
  * @export
  * @type {string} */
yesLabel: {
get: org.apache.royale.html.beads.models.AlertModel.prototype.get__yesLabel,
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__yesLabel},
/**
  * @export
  * @type {string} */
noLabel: {
get: org.apache.royale.html.beads.models.AlertModel.prototype.get__noLabel,
set: org.apache.royale.html.beads.models.AlertModel.prototype.set__noLabel}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.beads.models.AlertModel.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.models.AlertModel'},
        'title': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'},
        'htmlTitle': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'},
        'message': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'},
        'htmlMessage': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'},
        'flags': { type: 'uint', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'},
        'okLabel': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'},
        'cancelLabel': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'},
        'yesLabel': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'},
        'noLabel': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'}
      };
    },
    methods: function () {
      return {
        'AlertModel': { type: '', declaredBy: 'org.apache.royale.html.beads.models.AlertModel'}
      };
    }
  };
};