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

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

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');
goog.require('org.apache.royale.jewel.Spinner');
goog.require('org.apache.royale.jewel.TextInput');



/**
 *  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.NumericStepper = function() {
  org.apache.royale.jewel.NumericStepper.base(this, 'constructor');
  this.typeNames = 'jewel numericstepper';
};
goog.inherits(org.apache.royale.jewel.NumericStepper, org.apache.royale.core.StyledUIBase);


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


/**
 * @private
 * @type {org.apache.royale.jewel.TextInput}
 */
org.apache.royale.jewel.NumericStepper.prototype.org_apache_royale_jewel_NumericStepper_input;


/**
 * @private
 * @type {org.apache.royale.jewel.Spinner}
 */
org.apache.royale.jewel.NumericStepper.prototype.org_apache_royale_jewel_NumericStepper_spinner;


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


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


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


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


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


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


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


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


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


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


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


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


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



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