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

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

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.Spinner');
goog.require('org.apache.royale.html.TextInput');
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.NumericStepper = function() {
  org.apache.royale.html.NumericStepper.base(this, 'constructor');
  this.typeNames = 'NumericStepper';
};
goog.inherits(org.apache.royale.html.NumericStepper, org.apache.royale.core.UIBase);


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


/**
 * @private
 * @type {org.apache.royale.html.TextInput}
 */
org.apache.royale.html.NumericStepper.prototype.org_apache_royale_html_NumericStepper_input;


/**
 * @private
 * @type {org.apache.royale.html.Spinner}
 */
org.apache.royale.html.NumericStepper.prototype.org_apache_royale_html_NumericStepper_spinner;


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


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


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


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


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


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


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


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


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


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


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


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


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



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