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

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

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



/**
 *  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.IBead}
 * @implements {org.apache.royale.core.IPanelModel}
 */
org.apache.royale.html.beads.models.PanelModel = function() {
  org.apache.royale.html.beads.models.PanelModel.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.beads.models.PanelModel, org.apache.royale.events.EventDispatcher);


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


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


/**
 * @private
 * @type {Array}
 */
org.apache.royale.html.beads.models.PanelModel.prototype.org_apache_royale_html_beads_models_PanelModel__controlBar;


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


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


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.html.beads.models.PanelModel.prototype.org_apache_royale_html_beads_models_PanelModel__showCloseButton = false;


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


org.apache.royale.html.beads.models.PanelModel.prototype.get__controlBar = function() {
  return this.org_apache_royale_html_beads_models_PanelModel__controlBar;
};


org.apache.royale.html.beads.models.PanelModel.prototype.set__controlBar = function(value) {
  this.org_apache_royale_html_beads_models_PanelModel__controlBar = value;
};


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


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


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


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


org.apache.royale.html.beads.models.PanelModel.prototype.get__showCloseButton = function() {
  return this.org_apache_royale_html_beads_models_PanelModel__showCloseButton;
};


org.apache.royale.html.beads.models.PanelModel.prototype.set__showCloseButton = function(value) {
  if (value != this.org_apache_royale_html_beads_models_PanelModel__showCloseButton) {
    this.org_apache_royale_html_beads_models_PanelModel__showCloseButton = value;
    this.dispatchEvent(new org.apache.royale.events.Event('showCloseButtonChange'));
  }
};


Object.defineProperties(org.apache.royale.html.beads.models.PanelModel.prototype, /** @lends {org.apache.royale.html.beads.models.PanelModel.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.beads.models.PanelModel.prototype.set__strand},
/**
  * @export
  * @type {Array} */
controlBar: {
get: org.apache.royale.html.beads.models.PanelModel.prototype.get__controlBar,
set: org.apache.royale.html.beads.models.PanelModel.prototype.set__controlBar},
/**
  * @export
  * @type {string} */
title: {
get: org.apache.royale.html.beads.models.PanelModel.prototype.get__title,
set: org.apache.royale.html.beads.models.PanelModel.prototype.set__title},
/**
  * @export
  * @type {string} */
htmlTitle: {
get: org.apache.royale.html.beads.models.PanelModel.prototype.get__htmlTitle,
set: org.apache.royale.html.beads.models.PanelModel.prototype.set__htmlTitle},
/**
  * @export
  * @type {boolean} */
showCloseButton: {
get: org.apache.royale.html.beads.models.PanelModel.prototype.get__showCloseButton,
set: org.apache.royale.html.beads.models.PanelModel.prototype.set__showCloseButton}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.beads.models.PanelModel.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.PanelModel'},
        'controlBar': { type: 'Array', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.PanelModel'},
        'title': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.PanelModel'},
        'htmlTitle': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.PanelModel'},
        'showCloseButton': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.PanelModel'}
      };
    },
    methods: function () {
      return {
        'PanelModel': { type: '', declaredBy: 'org.apache.royale.html.beads.models.PanelModel'}
      };
    }
  };
};