/**
 * Generated by Apache Royale Compiler from org\apache\royale\jewel\supportClasses\combobox\ComboBoxPopUp.as
 * org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp');

goog.require('org.apache.royale.core.IDataProviderModel');
goog.require('org.apache.royale.core.ISelectionModel');
goog.require('org.apache.royale.core.StyledUIBase');
goog.require('org.apache.royale.core.IPopUp');
goog.require('org.apache.royale.utils.Language');



/**
 *  Constructor.
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @constructor
 * @extends {org.apache.royale.core.StyledUIBase}
 * @implements {org.apache.royale.core.IPopUp}
 */
org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp = function() {
  org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp.base(this, 'constructor');
  this.typeNames = "combobox-popup";
};
goog.inherits(org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp, org.apache.royale.core.StyledUIBase);


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp', org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp);


org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp.prototype.get__dataProvider = function() {
  return this.model.dataProvider;
};


org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp.prototype.set__dataProvider = function(value) {
  this.model.dataProvider = value;
};


org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp.prototype.get__selectedIndex = function() {
  return this.model.selectedIndex;
};


org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp.prototype.set__selectedIndex = function(value) {
  this.model.selectedIndex = value;
};


org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp.prototype.get__selectedItem = function() {
  return this.model.selectedItem;
};


org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp.prototype.set__selectedItem = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.ISelectionModel, true).selectedItem = value;
};


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


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'ComboBoxPopUp', qName: 'org.apache.royale.jewel.supportClasses.combobox.ComboBoxPopUp', kind: 'class' }], interfaces: [org.apache.royale.core.IPopUp] };



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