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

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

goog.require('org.apache.royale.core.IRangeModel');
goog.require('org.apache.royale.core.UIBase');
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.0
 * @constructor
 * @extends {org.apache.royale.core.UIBase}
 */
org.apache.royale.html.Spinner = function() {
  org.apache.royale.html.Spinner.base(this, 'constructor');
  this.typeNames = "Spinner";
};
goog.inherits(org.apache.royale.html.Spinner, org.apache.royale.core.UIBase);


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


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


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


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


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


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


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


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


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


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


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


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


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


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



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