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

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

goog.require('org.apache.royale.core.IComboBoxModel');
goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.utils.Language');



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


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


org.apache.royale.html.ComboBox.prototype.get__dataProvider = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IComboBoxModel, true).dataProvider;
};


org.apache.royale.html.ComboBox.prototype.set__dataProvider = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IComboBoxModel, true).dataProvider = value;
};


org.apache.royale.html.ComboBox.prototype.get__selectedIndex = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IComboBoxModel, true).selectedIndex;
};


org.apache.royale.html.ComboBox.prototype.set__selectedIndex = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IComboBoxModel, true).selectedIndex = value;
};


org.apache.royale.html.ComboBox.prototype.get__selectedItem = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IComboBoxModel, true).selectedItem;
};


org.apache.royale.html.ComboBox.prototype.set__selectedItem = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IComboBoxModel, true).selectedItem = value;
};


Object.defineProperties(org.apache.royale.html.ComboBox.prototype, /** @lends {org.apache.royale.html.ComboBox.prototype} */ {
/**
  * @export
  * @type {Object} */
dataProvider: {
get: org.apache.royale.html.ComboBox.prototype.get__dataProvider,
set: org.apache.royale.html.ComboBox.prototype.set__dataProvider},
/**
  * @export
  * @type {number} */
selectedIndex: {
get: org.apache.royale.html.ComboBox.prototype.get__selectedIndex,
set: org.apache.royale.html.ComboBox.prototype.set__selectedIndex},
/**
  * @export
  * @type {Object} */
selectedItem: {
get: org.apache.royale.html.ComboBox.prototype.get__selectedItem,
set: org.apache.royale.html.ComboBox.prototype.set__selectedItem}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.ComboBox.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'dataProvider': { type: 'Object', access: 'readwrite', declaredBy: 'org.apache.royale.html.ComboBox'},
        'selectedIndex': { type: 'int', access: 'readwrite', declaredBy: 'org.apache.royale.html.ComboBox', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'change' } ] } ]; }},
        'selectedItem': { type: 'Object', access: 'readwrite', declaredBy: 'org.apache.royale.html.ComboBox', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'change' } ] } ]; }}
      };
    },
    methods: function () {
      return {
        'ComboBox': { type: '', declaredBy: 'org.apache.royale.html.ComboBox'}
      };
    },
    metadata: function () { return [  ]; }
  };
};