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

goog.provide('org.apache.royale.html.beads.AbsolutePositioningViewBeadBase');

goog.require('org.apache.royale.core.IChild');
goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.core.IUIBase');
goog.require('org.apache.royale.core.IBeadView');
goog.require('org.apache.royale.utils.Language');



/**
 * Constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.8
 * @constructor
 * @implements {org.apache.royale.core.IBeadView}
 */
org.apache.royale.html.beads.AbsolutePositioningViewBeadBase = function() {
  ;
};


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


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


/**
 * Sets the position of the child and, on the HTML platform, sets the child's position style
 * value to "absolute".
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.8
 * @export
 * @param {org.apache.royale.core.IChild} child
 * @param {number} x
 * @param {number} y
 */
org.apache.royale.html.beads.AbsolutePositioningViewBeadBase.prototype.setAbsolutePosition = function(child, x, y) {
  var /** @type {org.apache.royale.core.IUIBase} */ childHost = org.apache.royale.utils.Language.as(child, org.apache.royale.core.IUIBase, true);
  childHost.x = x;
  childHost.y = y;
  childHost.element.style.position = "absolute";
};


org.apache.royale.html.beads.AbsolutePositioningViewBeadBase.prototype.get__host = function() {
  return org.apache.royale.utils.Language.as(this._strand, org.apache.royale.core.IUIBase, true);
};


org.apache.royale.html.beads.AbsolutePositioningViewBeadBase.prototype.set__strand = function(value) {
  this._strand = value;
  if (this.host.element.style.position != "absolute" && this.host.element.style.position != "relative") {
    this.host.element.style.position = "relative";
  }
};


Object.defineProperties(org.apache.royale.html.beads.AbsolutePositioningViewBeadBase.prototype, /** @lends {org.apache.royale.html.beads.AbsolutePositioningViewBeadBase.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IUIBase} */
host: {
get: org.apache.royale.html.beads.AbsolutePositioningViewBeadBase.prototype.get__host},
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.beads.AbsolutePositioningViewBeadBase.prototype.set__strand}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.beads.AbsolutePositioningViewBeadBase.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'host': { type: 'org.apache.royale.core.IUIBase', access: 'readonly', declaredBy: 'org.apache.royale.html.beads.AbsolutePositioningViewBeadBase'},
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.html.beads.AbsolutePositioningViewBeadBase'}
      };
    },
    methods: function () {
      return {
        'AbsolutePositioningViewBeadBase': { type: '', declaredBy: 'org.apache.royale.html.beads.AbsolutePositioningViewBeadBase'},
        'setAbsolutePosition': { type: 'void', declaredBy: 'org.apache.royale.html.beads.AbsolutePositioningViewBeadBase', parameters: function () { return [  { index: 1, type: 'org.apache.royale.core.IChild', optional: false },{ index: 2, type: 'Number', optional: false },{ index: 3, type: 'Number', optional: false } ]; }}
      };
    }
  };
};