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

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

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.VScrollViewport = function() {
  org.apache.royale.html.supportClasses.VScrollViewport.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.supportClasses.VScrollViewport, org.apache.royale.html.supportClasses.ScrollingViewport);


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


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


org.apache.royale.html.supportClasses.VScrollViewport.prototype.set__horizontalScrollPosition = function(value) {
};


org.apache.royale.html.supportClasses.VScrollViewport.prototype.set__strand = function(value) {
  org.apache.royale.html.supportClasses.VScrollViewport.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.overflowY = "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.overflowY = "auto";
  }
};


Object.defineProperties(org.apache.royale.html.supportClasses.VScrollViewport.prototype, /** @lends {org.apache.royale.html.supportClasses.VScrollViewport.prototype} */ {
/**
  * @export
  * @type {number} */
horizontalScrollPosition: {
get: org.apache.royale.html.supportClasses.VScrollViewport.prototype.get__horizontalScrollPosition,
set: org.apache.royale.html.supportClasses.VScrollViewport.prototype.set__horizontalScrollPosition},
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.supportClasses.VScrollViewport.prototype.set__strand}}
);


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



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