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

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

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.utils.Language');



/**
 *  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.Slider = function() {
  org.apache.royale.jewel.Slider.base(this, 'constructor');
  this.typeNames = "jewel slider";
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).value = 0;
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).minimum = 0;
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).maximum = 100;
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).stepSize = 1;
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).snapInterval = 1;
};
goog.inherits(org.apache.royale.jewel.Slider, org.apache.royale.core.StyledUIBase);


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


/**
 * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
 * @royaleignorecoercion HTMLInputElement
 * @royaleignorecoercion HTMLDivElement
 * @protected
 * @override
 */
org.apache.royale.jewel.Slider.prototype.createElement = function() {
  var /** @type {HTMLDivElement} */ div = document.createElement('div');
  var /** @type {HTMLInputElement} */ input = org.apache.royale.html.util.addElementToWrapper(this, 'input');
  input.setAttribute('type', 'range');
  div.appendChild(input);
  this.positioner = div;
  this.positioner.royale_wrapper = this;
  return this.element;
};


org.apache.royale.jewel.Slider.prototype.get__value = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).value;
};


org.apache.royale.jewel.Slider.prototype.set__value = function(newValue) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).value = newValue;
};


org.apache.royale.jewel.Slider.prototype.get__minimum = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).minimum;
};


org.apache.royale.jewel.Slider.prototype.set__minimum = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).minimum = value;
};


org.apache.royale.jewel.Slider.prototype.get__maximum = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).maximum;
};


org.apache.royale.jewel.Slider.prototype.set__maximum = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).maximum = value;
};


org.apache.royale.jewel.Slider.prototype.get__snapInterval = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).snapInterval;
};


org.apache.royale.jewel.Slider.prototype.set__snapInterval = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).snapInterval = value;
};


org.apache.royale.jewel.Slider.prototype.get__stepSize = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).stepSize;
};


org.apache.royale.jewel.Slider.prototype.set__stepSize = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IRangeModel, true).stepSize = value;
};


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


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



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