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

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

goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.html.beads.models.ArraySelectionModel');



/**
 *  Constructor.
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.html.beads.models.ArraySelectionModel}
 */
org.apache.royale.html.beads.models.ButtonBarModel = function() {
  org.apache.royale.html.beads.models.ButtonBarModel.base(this, 'constructor');

this.org_apache_royale_html_beads_models_ButtonBarModel__widthType = org.apache.royale.html.beads.models.ButtonBarModel.PIXEL_WIDTHS;
};
goog.inherits(org.apache.royale.html.beads.models.ButtonBarModel, org.apache.royale.html.beads.models.ArraySelectionModel);


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


/**
 * @export
 * @const
 * @type {number}
 */
org.apache.royale.html.beads.models.ButtonBarModel.PIXEL_WIDTHS = 0;


/**
 * @export
 * @const
 * @type {number}
 */
org.apache.royale.html.beads.models.ButtonBarModel.PROPORTIONAL_WIDTHS = 1;


/**
 * @export
 * @const
 * @type {number}
 */
org.apache.royale.html.beads.models.ButtonBarModel.PERCENT_WIDTHS = 2;


/**
 * @export
 * @const
 * @type {number}
 */
org.apache.royale.html.beads.models.ButtonBarModel.NATURAL_WIDTHS = 3;


/**
 * @private
 * @type {Array}
 */
org.apache.royale.html.beads.models.ButtonBarModel.prototype.org_apache_royale_html_beads_models_ButtonBarModel__buttonWidths = null;


/**
 * @private
 * @type {number}
 */
org.apache.royale.html.beads.models.ButtonBarModel.prototype.org_apache_royale_html_beads_models_ButtonBarModel__widthType;


org.apache.royale.html.beads.models.ButtonBarModel.prototype.get__buttonWidths = function() {
  return this.org_apache_royale_html_beads_models_ButtonBarModel__buttonWidths;
};


org.apache.royale.html.beads.models.ButtonBarModel.prototype.set__buttonWidths = function(value) {
  this.org_apache_royale_html_beads_models_ButtonBarModel__buttonWidths = value;
  this.dispatchEvent(new org.apache.royale.events.Event("buttonWidthsChanged"));
};


org.apache.royale.html.beads.models.ButtonBarModel.prototype.get__widthType = function() {
  return this.org_apache_royale_html_beads_models_ButtonBarModel__widthType;
};


org.apache.royale.html.beads.models.ButtonBarModel.prototype.set__widthType = function(value) {
  this.org_apache_royale_html_beads_models_ButtonBarModel__widthType = value;
  this.dispatchEvent(new org.apache.royale.events.Event("widthTypeChanged"));
};


Object.defineProperties(org.apache.royale.html.beads.models.ButtonBarModel.prototype, /** @lends {org.apache.royale.html.beads.models.ButtonBarModel.prototype} */ {
/**
  * @export
  * @type {Array} */
buttonWidths: {
get: org.apache.royale.html.beads.models.ButtonBarModel.prototype.get__buttonWidths,
set: org.apache.royale.html.beads.models.ButtonBarModel.prototype.set__buttonWidths},
/**
  * @export
  * @type {number} */
widthType: {
get: org.apache.royale.html.beads.models.ButtonBarModel.prototype.get__widthType,
set: org.apache.royale.html.beads.models.ButtonBarModel.prototype.set__widthType}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.beads.models.ButtonBarModel.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'buttonWidths': { type: 'Array', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.ButtonBarModel'},
        'widthType': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.ButtonBarModel'}
      };
    },
    methods: function () {
      return {
        'ButtonBarModel': { type: '', declaredBy: 'org.apache.royale.html.beads.models.ButtonBarModel'}
      };
    }
  };
};