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

goog.provide('org.apache.royale.jewel.Spinner');

goog.require('org.apache.royale.core.IRangeModel');
goog.require('org.apache.royale.core.StyledUIBase');
goog.require('org.apache.royale.core.WrappedHTMLElement');
goog.require('org.apache.royale.html.util.addElementToWrapper');



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @constructor
 * @extends {org.apache.royale.core.StyledUIBase}
 */
org.apache.royale.jewel.Spinner = function() {
  org.apache.royale.jewel.Spinner.base(this, 'constructor');
  this.typeNames = "jewel spinner";
};
goog.inherits(org.apache.royale.jewel.Spinner, org.apache.royale.core.StyledUIBase);


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


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


org.apache.royale.jewel.Spinner.prototype.get__value = function() {
  return this.model.value;
};


org.apache.royale.jewel.Spinner.prototype.set__value = function(newValue) {
  this.model.value = newValue;
};


org.apache.royale.jewel.Spinner.prototype.get__minimum = function() {
  return this.model.minimum;
};


org.apache.royale.jewel.Spinner.prototype.set__minimum = function(value) {
  this.model.minimum = value;
};


org.apache.royale.jewel.Spinner.prototype.get__maximum = function() {
  return this.model.maximum;
};


org.apache.royale.jewel.Spinner.prototype.set__maximum = function(value) {
  this.model.maximum = value;
};


org.apache.royale.jewel.Spinner.prototype.get__snapInterval = function() {
  return this.model.snapInterval;
};


org.apache.royale.jewel.Spinner.prototype.set__snapInterval = function(value) {
  this.model.snapInterval = value;
};


org.apache.royale.jewel.Spinner.prototype.get__stepSize = function() {
  return this.model.stepSize;
};


org.apache.royale.jewel.Spinner.prototype.set__stepSize = function(value) {
  this.model.stepSize = value;
};


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


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.Spinner.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'value': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.Spinner'},
        'minimum': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.Spinner'},
        'maximum': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.Spinner'},
        'snapInterval': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.Spinner'},
        'stepSize': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.Spinner'}
      };
    },
    methods: function () {
      return {
        'Spinner': { type: '', declaredBy: 'org.apache.royale.jewel.Spinner'}
      };
    },
    metadata: function () { return [  ]; }
  };
};