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

goog.provide('org.apache.royale.html.ButtonBar');

goog.require('org.apache.royale.core.WrappedHTMLElement');
goog.require('org.apache.royale.html.List');
goog.require('org.apache.royale.html.beads.models.ButtonBarModel');
goog.require('org.apache.royale.html.util.addElementToWrapper');



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.html.List}
 */
org.apache.royale.html.ButtonBar = function() {
  org.apache.royale.html.ButtonBar.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.ButtonBar, org.apache.royale.html.List);


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


/**
 * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
 * @protected
 * @override
 */
org.apache.royale.html.ButtonBar.prototype.createElement = function() {
  return org.apache.royale.html.util.addElementToWrapper(this, 'div');
};


org.apache.royale.html.ButtonBar.prototype.get__buttonWidths = function() {
  return this.model.buttonWidths;
};


org.apache.royale.html.ButtonBar.prototype.set__buttonWidths = function(value) {
  this.model.buttonWidths = value;
};


org.apache.royale.html.ButtonBar.prototype.get__widthType = function() {
  return this.model.widthType;
};


org.apache.royale.html.ButtonBar.prototype.set__widthType = function(value) {
  this.model.widthType = value;
};


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


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



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