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

goog.provide('org.apache.royale.html.supportClasses.HScrollViewport');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.html.supportClasses.ScrollingViewport');
goog.require('org.apache.royale.utils.Language');



/**
 * Constructor
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.2
 * @constructor
 * @extends {org.apache.royale.html.supportClasses.ScrollingViewport}
 */
org.apache.royale.html.supportClasses.HScrollViewport = function() {
  org.apache.royale.html.supportClasses.HScrollViewport.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.supportClasses.HScrollViewport, org.apache.royale.html.supportClasses.ScrollingViewport);


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


org.apache.royale.html.supportClasses.HScrollViewport.prototype.get__verticalScrollPosition = function() {
  return 0;
};


org.apache.royale.html.supportClasses.HScrollViewport.prototype.set__verticalScrollPosition = function(value) {
};


org.apache.royale.html.supportClasses.HScrollViewport.prototype.set__strand = function(value) {
  org.apache.royale.html.supportClasses.HScrollViewport.superClass_.set__strand.apply(this, [ value] );
  if (this.contentView == null) {
    org.apache.royale.utils.Language.as(value, org.apache.royale.core.UIBase).element.style.overflow = "hidden";
    org.apache.royale.utils.Language.as(value, org.apache.royale.core.UIBase).element.style.overflowX = "auto";
  } else {
    org.apache.royale.utils.Language.as(this.contentView, org.apache.royale.core.UIBase).element.style.overflow = "hidden";
    org.apache.royale.utils.Language.as(this.contentView, org.apache.royale.core.UIBase).element.style.overflowX = "auto";
  }
};


Object.defineProperties(org.apache.royale.html.supportClasses.HScrollViewport.prototype, /** @lends {org.apache.royale.html.supportClasses.HScrollViewport.prototype} */ {
/**
  * @export
  * @type {number} */
verticalScrollPosition: {
get: org.apache.royale.html.supportClasses.HScrollViewport.prototype.get__verticalScrollPosition,
set: org.apache.royale.html.supportClasses.HScrollViewport.prototype.set__verticalScrollPosition},
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.supportClasses.HScrollViewport.prototype.set__strand}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.supportClasses.HScrollViewport.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'verticalScrollPosition': { type: 'Number', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.HScrollViewport'},
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.html.supportClasses.HScrollViewport'}
      };
    },
    methods: function () {
      return {
        'HScrollViewport': { type: '', declaredBy: 'org.apache.royale.html.supportClasses.HScrollViewport'}
      };
    }
  };
};