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

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

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.core.IUIBase');
goog.require('org.apache.royale.geom.Size');
goog.require('org.apache.royale.core.IBead');
goog.require('org.apache.royale.core.IViewport');



/**
 * Constructor
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @implements {org.apache.royale.core.IBead}
 * @implements {org.apache.royale.core.IViewport}
 */
org.apache.royale.html.supportClasses.OverflowViewport = function() {
};


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


/**
 * @protected
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.html.supportClasses.OverflowViewport.prototype._strand;


/**
 * @copy org.apache.royale.core.IViewport#setPosition()
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @export
 * @param {number} x
 * @param {number} y
 */
org.apache.royale.html.supportClasses.OverflowViewport.prototype.setPosition = function(x, y) {
};


/**
 * @copy org.apache.royale.core.IViewport#layoutViewportBeforeContentLayout()
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @export
 * @param {number} width
 * @param {number} height
 */
org.apache.royale.html.supportClasses.OverflowViewport.prototype.layoutViewportBeforeContentLayout = function(width, height) {
};


/**
 * @copy org.apache.royale.core.IViewport#layoutViewportAfterContentLayout()
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @export
 * @param {org.apache.royale.geom.Size} contentSize
 */
org.apache.royale.html.supportClasses.OverflowViewport.prototype.layoutViewportAfterContentLayout = function(contentSize) {
};


org.apache.royale.html.supportClasses.OverflowViewport.prototype.get__contentView = function() {
  return this._strand;
};


org.apache.royale.html.supportClasses.OverflowViewport.prototype.set__strand = function(value) {
  this._strand = value;
  this._strand.element.style.overflow = "visible";
};


Object.defineProperties(org.apache.royale.html.supportClasses.OverflowViewport.prototype, /** @lends {org.apache.royale.html.supportClasses.OverflowViewport.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IUIBase} */
contentView: {
get: org.apache.royale.html.supportClasses.OverflowViewport.prototype.get__contentView},
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.supportClasses.OverflowViewport.prototype.set__strand}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.supportClasses.OverflowViewport.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'contentView': { type: 'org.apache.royale.core.IUIBase', access: 'readonly', declaredBy: 'org.apache.royale.html.supportClasses.OverflowViewport'},
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.html.supportClasses.OverflowViewport'}
      };
    },
    methods: function () {
      return {
        'OverflowViewport': { type: '', declaredBy: 'org.apache.royale.html.supportClasses.OverflowViewport'},
        'setPosition': { type: 'void', declaredBy: 'org.apache.royale.html.supportClasses.OverflowViewport', parameters: function () { return [  { index: 1, type: 'Number', optional: false },{ index: 2, type: 'Number', optional: false } ]; }},
        'layoutViewportBeforeContentLayout': { type: 'void', declaredBy: 'org.apache.royale.html.supportClasses.OverflowViewport', parameters: function () { return [  { index: 1, type: 'Number', optional: false },{ index: 2, type: 'Number', optional: false } ]; }},
        'layoutViewportAfterContentLayout': { type: 'void', declaredBy: 'org.apache.royale.html.supportClasses.OverflowViewport', parameters: function () { return [  { index: 1, type: 'org.apache.royale.geom.Size', optional: false } ]; }}
      };
    }
  };
};