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

goog.provide('org.apache.royale.jewel.beads.models.SnackbarModel');

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.core.IBeadModel');



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


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


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.jewel.beads.models.SnackbarModel.prototype.org_apache_royale_jewel_beads_models_SnackbarModel__strand;


/**
 * @private
 * @type {string}
 */
org.apache.royale.jewel.beads.models.SnackbarModel.prototype.org_apache_royale_jewel_beads_models_SnackbarModel__message;


/**
 * @private
 * @type {string}
 */
org.apache.royale.jewel.beads.models.SnackbarModel.prototype.org_apache_royale_jewel_beads_models_SnackbarModel__action;


/**
 * @private
 * @type {number}
 */
org.apache.royale.jewel.beads.models.SnackbarModel.prototype.org_apache_royale_jewel_beads_models_SnackbarModel__duration = 4000;


org.apache.royale.jewel.beads.models.SnackbarModel.prototype.set__strand = function(value) {
  this.org_apache_royale_jewel_beads_models_SnackbarModel__strand = value;
};


org.apache.royale.jewel.beads.models.SnackbarModel.prototype.get__message = function() {
  return this.org_apache_royale_jewel_beads_models_SnackbarModel__message;
};


org.apache.royale.jewel.beads.models.SnackbarModel.prototype.set__message = function(value) {
  if (value == null)
    value = "";
  if (value != this.org_apache_royale_jewel_beads_models_SnackbarModel__message) {
    this.org_apache_royale_jewel_beads_models_SnackbarModel__message = value;
    this.dispatchEvent(new org.apache.royale.events.Event("messageChange"));
  }
};


org.apache.royale.jewel.beads.models.SnackbarModel.prototype.get__action = function() {
  return this.org_apache_royale_jewel_beads_models_SnackbarModel__action;
};


org.apache.royale.jewel.beads.models.SnackbarModel.prototype.set__action = function(value) {
  if (value != this.org_apache_royale_jewel_beads_models_SnackbarModel__action) {
    this.org_apache_royale_jewel_beads_models_SnackbarModel__action = value;
    this.dispatchEvent(new org.apache.royale.events.Event("actionChange"));
  }
};


org.apache.royale.jewel.beads.models.SnackbarModel.prototype.get__duration = function() {
  return this.org_apache_royale_jewel_beads_models_SnackbarModel__duration;
};


org.apache.royale.jewel.beads.models.SnackbarModel.prototype.set__duration = function(value) {
  if (value != this.org_apache_royale_jewel_beads_models_SnackbarModel__duration) {
    this.org_apache_royale_jewel_beads_models_SnackbarModel__duration = value;
    this.dispatchEvent(new org.apache.royale.events.Event("durationChange"));
  }
};


Object.defineProperties(org.apache.royale.jewel.beads.models.SnackbarModel.prototype, /** @lends {org.apache.royale.jewel.beads.models.SnackbarModel.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.jewel.beads.models.SnackbarModel.prototype.set__strand},
/**
  * @export
  * @type {string} */
message: {
get: org.apache.royale.jewel.beads.models.SnackbarModel.prototype.get__message,
set: org.apache.royale.jewel.beads.models.SnackbarModel.prototype.set__message},
/**
  * @export
  * @type {string} */
action: {
get: org.apache.royale.jewel.beads.models.SnackbarModel.prototype.get__action,
set: org.apache.royale.jewel.beads.models.SnackbarModel.prototype.set__action},
/**
  * @export
  * @type {number} */
duration: {
get: org.apache.royale.jewel.beads.models.SnackbarModel.prototype.get__duration,
set: org.apache.royale.jewel.beads.models.SnackbarModel.prototype.set__duration}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.beads.models.SnackbarModel.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.jewel.beads.models.SnackbarModel'},
        'message': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.SnackbarModel', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'messageChange' } ] } ]; }},
        'action': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.SnackbarModel', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'actionChange' } ] } ]; }},
        'duration': { type: 'int', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.SnackbarModel', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'durationChange' } ] } ]; }}
      };
    },
    methods: function () {
      return {
        'SnackbarModel': { type: '', declaredBy: 'org.apache.royale.jewel.beads.models.SnackbarModel'}
      };
    }
  };
};