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

goog.provide('org.apache.royale.jewel.beads.models.DataProviderModel');

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



/**
 *  Constructor.
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @constructor
 * @extends {org.apache.royale.events.EventDispatcher}
 * @implements {org.apache.royale.core.IDataProviderModel}
 */
org.apache.royale.jewel.beads.models.DataProviderModel = function() {
  org.apache.royale.jewel.beads.models.DataProviderModel.base(this, 'constructor');
};
goog.inherits(org.apache.royale.jewel.beads.models.DataProviderModel, org.apache.royale.events.EventDispatcher);


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


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.jewel.beads.models.DataProviderModel.prototype.org_apache_royale_jewel_beads_models_DataProviderModel__strand;


/**
 * @private
 * @type {Object}
 */
org.apache.royale.jewel.beads.models.DataProviderModel.prototype.org_apache_royale_jewel_beads_models_DataProviderModel__dataProvider;


/**
 * @private
 * @type {string}
 */
org.apache.royale.jewel.beads.models.DataProviderModel.prototype.org_apache_royale_jewel_beads_models_DataProviderModel__labelField = null;


org.apache.royale.jewel.beads.models.DataProviderModel.prototype.set__strand = function(value) {
  this.org_apache_royale_jewel_beads_models_DataProviderModel__strand = value;
};


org.apache.royale.jewel.beads.models.DataProviderModel.prototype.get__dataProvider = function() {
  return this.org_apache_royale_jewel_beads_models_DataProviderModel__dataProvider;
};


org.apache.royale.jewel.beads.models.DataProviderModel.prototype.set__dataProvider = function(value) {
  if (value === this.org_apache_royale_jewel_beads_models_DataProviderModel__dataProvider)
    return;
  this.org_apache_royale_jewel_beads_models_DataProviderModel__dataProvider = value;
  this.dispatchEvent(new org.apache.royale.events.Event("dataProviderChanged"));
};


org.apache.royale.jewel.beads.models.DataProviderModel.prototype.get__labelField = function() {
  return this.org_apache_royale_jewel_beads_models_DataProviderModel__labelField;
};


org.apache.royale.jewel.beads.models.DataProviderModel.prototype.set__labelField = function(value) {
  if (value != this.org_apache_royale_jewel_beads_models_DataProviderModel__labelField) {
    this.org_apache_royale_jewel_beads_models_DataProviderModel__labelField = value;
    this.dispatchEvent(new org.apache.royale.events.Event("labelFieldChanged"));
  }
};


Object.defineProperties(org.apache.royale.jewel.beads.models.DataProviderModel.prototype, /** @lends {org.apache.royale.jewel.beads.models.DataProviderModel.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.jewel.beads.models.DataProviderModel.prototype.set__strand},
/**
  * @export
  * @type {Object} */
dataProvider: {
get: org.apache.royale.jewel.beads.models.DataProviderModel.prototype.get__dataProvider,
set: org.apache.royale.jewel.beads.models.DataProviderModel.prototype.set__dataProvider},
/**
  * @export
  * @type {string} */
labelField: {
get: org.apache.royale.jewel.beads.models.DataProviderModel.prototype.get__labelField,
set: org.apache.royale.jewel.beads.models.DataProviderModel.prototype.set__labelField}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.beads.models.DataProviderModel.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.jewel.beads.models.DataProviderModel'},
        'dataProvider': { type: 'Object', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.DataProviderModel'},
        'labelField': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.DataProviderModel'}
      };
    },
    methods: function () {
      return {
        'DataProviderModel': { type: '', declaredBy: 'org.apache.royale.jewel.beads.models.DataProviderModel'}
      };
    }
  };
};