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

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

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.events.ValueChangeEvent');
goog.require('org.apache.royale.core.IBead');
goog.require('org.apache.royale.core.IRangeModel');



/**
 *  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.IBead}
 * @implements {org.apache.royale.core.IRangeModel}
 */
org.apache.royale.jewel.beads.models.SliderRangeModel = function() {
  org.apache.royale.jewel.beads.models.SliderRangeModel.base(this, 'constructor');
};
goog.inherits(org.apache.royale.jewel.beads.models.SliderRangeModel, org.apache.royale.events.EventDispatcher);


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


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


/**
 * @private
 * @type {number}
 */
org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.org_apache_royale_jewel_beads_models_SliderRangeModel__maximum = 100;


/**
 * @private
 * @type {number}
 */
org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.org_apache_royale_jewel_beads_models_SliderRangeModel__minimum = 0;


/**
 * @private
 * @type {number}
 */
org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.org_apache_royale_jewel_beads_models_SliderRangeModel__snapInterval = 1;


/**
 * @private
 * @type {number}
 */
org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.org_apache_royale_jewel_beads_models_SliderRangeModel__stepSize = 1;


/**
 * @private
 * @type {number}
 */
org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.org_apache_royale_jewel_beads_models_SliderRangeModel__value = 0;


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


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__maximum = function() {
  return this.org_apache_royale_jewel_beads_models_SliderRangeModel__maximum;
};


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__maximum = function(value) {
  if (value != this.org_apache_royale_jewel_beads_models_SliderRangeModel__maximum) {
    this.org_apache_royale_jewel_beads_models_SliderRangeModel__maximum = value;
    this.dispatchEvent(new org.apache.royale.events.Event("maximumChange"));
  }
};


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__minimum = function() {
  return this.org_apache_royale_jewel_beads_models_SliderRangeModel__minimum;
};


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__minimum = function(value) {
  if (value != this.org_apache_royale_jewel_beads_models_SliderRangeModel__minimum) {
    this.org_apache_royale_jewel_beads_models_SliderRangeModel__minimum = value;
    this.dispatchEvent(new org.apache.royale.events.Event("minimumChange"));
  }
};


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__snapInterval = function() {
  return this.org_apache_royale_jewel_beads_models_SliderRangeModel__snapInterval;
};


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__snapInterval = function(value) {
  if (value != this.org_apache_royale_jewel_beads_models_SliderRangeModel__snapInterval) {
    this.org_apache_royale_jewel_beads_models_SliderRangeModel__snapInterval = value;
    this.dispatchEvent(new org.apache.royale.events.Event("snapIntervalChange"));
  }
};


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__stepSize = function() {
  return this.org_apache_royale_jewel_beads_models_SliderRangeModel__stepSize;
};


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__stepSize = function(value) {
  if (value != this.org_apache_royale_jewel_beads_models_SliderRangeModel__stepSize) {
    this.org_apache_royale_jewel_beads_models_SliderRangeModel__stepSize = value;
    this.dispatchEvent(new org.apache.royale.events.Event("stepSizeChange"));
  }
};


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__value = function() {
  return this.org_apache_royale_jewel_beads_models_SliderRangeModel__value;
};


org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__value = function(value) {
  if (value != this.org_apache_royale_jewel_beads_models_SliderRangeModel__value) {
    var /** @type {org.apache.royale.events.ValueChangeEvent} */ newEvent = org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this.org_apache_royale_jewel_beads_models_SliderRangeModel__strand, "value", this.org_apache_royale_jewel_beads_models_SliderRangeModel__value, value);
    this.org_apache_royale_jewel_beads_models_SliderRangeModel__value = value;
    this.dispatchEvent(newEvent);
  }
};


Object.defineProperties(org.apache.royale.jewel.beads.models.SliderRangeModel.prototype, /** @lends {org.apache.royale.jewel.beads.models.SliderRangeModel.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__strand},
/**
  * @export
  * @type {number} */
maximum: {
get: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__maximum,
set: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__maximum},
/**
  * @export
  * @type {number} */
minimum: {
get: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__minimum,
set: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__minimum},
/**
  * @export
  * @type {number} */
snapInterval: {
get: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__snapInterval,
set: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__snapInterval},
/**
  * @export
  * @type {number} */
stepSize: {
get: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__stepSize,
set: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__stepSize},
/**
  * @export
  * @type {number} */
value: {
get: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.get__value,
set: org.apache.royale.jewel.beads.models.SliderRangeModel.prototype.set__value}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.beads.models.SliderRangeModel.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.SliderRangeModel'},
        'maximum': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.SliderRangeModel'},
        'minimum': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.SliderRangeModel'},
        'snapInterval': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.SliderRangeModel'},
        'stepSize': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.SliderRangeModel'},
        'value': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.SliderRangeModel'}
      };
    },
    methods: function () {
      return {
        'SliderRangeModel': { type: '', declaredBy: 'org.apache.royale.jewel.beads.models.SliderRangeModel'}
      };
    }
  };
};