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

goog.provide('org.apache.royale.html.DividedContainer');

goog.require('org.apache.royale.core.IBeadLayout');
goog.require('org.apache.royale.core.ILayoutHost');
goog.require('org.apache.royale.core.ILayoutView');
goog.require('org.apache.royale.core.IParent');
goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.core.ValuesManager');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.html.beads.layouts.HDividedContainerLayout');
goog.require('org.apache.royale.utils.MXMLDataInterpreter');
goog.require('org.apache.royale.utils.loadBeadFromValuesManager');
goog.require('org.apache.royale.core.IContainer');
goog.require('org.apache.royale.core.ILayoutParent');
goog.require('org.apache.royale.core.IMXMLDocument');
goog.require('org.apache.royale.utils.Language');



/**
 * Constructor
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9
 * @constructor
 * @extends {org.apache.royale.core.UIBase}
 * @implements {org.apache.royale.core.IContainer}
 * @implements {org.apache.royale.core.ILayoutParent}
 * @implements {org.apache.royale.core.ILayoutHost}
 * @implements {org.apache.royale.core.ILayoutView}
 * @implements {org.apache.royale.core.IMXMLDocument}
 */
org.apache.royale.html.DividedContainer = function() {
  
  this.org_apache_royale_html_DividedContainer__mxmlDocument = this;
  org.apache.royale.html.DividedContainer.base(this, 'constructor');
  this.typeNames = "DividedContainer";
};
goog.inherits(org.apache.royale.html.DividedContainer, org.apache.royale.core.UIBase);


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


/**
 * @asprivate
 * @export
 * @override
 */
org.apache.royale.html.DividedContainer.prototype.addedToParent = function() {
  if (!this.org_apache_royale_html_DividedContainer__initialized) {
    org.apache.royale.core.ValuesManager["valuesImpl"].init(this);
  }
  org.apache.royale.html.DividedContainer.superClass_.addedToParent.apply(this);
  var /** @type {org.apache.royale.core.IBeadLayout} */ layoutBead = org.apache.royale.utils.Language.as(org.apache.royale.utils.loadBeadFromValuesManager(org.apache.royale.html.beads.layouts.HDividedContainerLayout, "iBeadLayout", this), org.apache.royale.core.IBeadLayout);
  if (!this.org_apache_royale_html_DividedContainer__initialized) {
    org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances(this.org_apache_royale_html_DividedContainer__mxmlDocument, this, this.MXMLDescriptor);
    this.dispatchEvent(new org.apache.royale.events.Event("initBindings"));
    this.dispatchEvent(new org.apache.royale.events.Event("initComplete"));
    this.org_apache_royale_html_DividedContainer__initialized = true;
  }
};


/**
 * @private
 * @type {Array}
 */
org.apache.royale.html.DividedContainer.prototype.org_apache_royale_html_DividedContainer__mxmlDescriptor;


/**
 * @private
 * @type {Object}
 */
org.apache.royale.html.DividedContainer.prototype.org_apache_royale_html_DividedContainer__mxmlDocument;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.html.DividedContainer.prototype.org_apache_royale_html_DividedContainer__initialized = false;


/**
 *  @asprivate
 * @export
 * @param {Object} document
 * @param {Array} value
 */
org.apache.royale.html.DividedContainer.prototype.setMXMLDescriptor = function(document, value) {
  this.org_apache_royale_html_DividedContainer__mxmlDocument = document;
  this.org_apache_royale_html_DividedContainer__mxmlDescriptor = value;
};


/**
 *  @copy org.apache.royale.core.Application#generateMXMLAttributes()
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9
 * @export
 * @param {Array} data
 */
org.apache.royale.html.DividedContainer.prototype.generateMXMLAttributes = function(data) {
  org.apache.royale.utils.MXMLDataInterpreter.generateMXMLProperties(this, data);
};


/**
 * @export
 * @type {Array}
 */
org.apache.royale.html.DividedContainer.prototype.mxmlContent;


/**
 * @asprivate
 * @export
 * @return {org.apache.royale.core.ILayoutHost}
 */
org.apache.royale.html.DividedContainer.prototype.getLayoutHost = function() {
  return this;
};


/**
 * @asprivate
 * @export
 */
org.apache.royale.html.DividedContainer.prototype.beforeLayout = function() {
};


/**
 * @asprivate
 * @export
 */
org.apache.royale.html.DividedContainer.prototype.afterLayout = function() {
};


/**
 * @asprivate
 * @export
 */
org.apache.royale.html.DividedContainer.prototype.childrenAdded = function() {
  this.dispatchEvent(new org.apache.royale.events.Event("childrenAdded"));
};


org.apache.royale.html.DividedContainer.prototype.get__MXMLDescriptor = function() {
  return this.org_apache_royale_html_DividedContainer__mxmlDescriptor;
};


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


org.apache.royale.html.DividedContainer.prototype.get__strandChildren = function() {
  return this;
};


Object.defineProperties(org.apache.royale.html.DividedContainer.prototype, /** @lends {org.apache.royale.html.DividedContainer.prototype} */ {
/**
  * @export
  * @type {Array} */
MXMLDescriptor: {
get: org.apache.royale.html.DividedContainer.prototype.get__MXMLDescriptor},
/**
  * @export
  * @type {org.apache.royale.core.ILayoutView} */
contentView: {
get: org.apache.royale.html.DividedContainer.prototype.get__contentView},
/**
  * @export
  * @type {org.apache.royale.core.IParent} */
strandChildren: {
get: org.apache.royale.html.DividedContainer.prototype.get__strandChildren}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.html.DividedContainer.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'DividedContainer', qName: 'org.apache.royale.html.DividedContainer', kind: 'class' }], interfaces: [org.apache.royale.core.IContainer, org.apache.royale.core.ILayoutParent, org.apache.royale.core.ILayoutHost, org.apache.royale.core.ILayoutView, org.apache.royale.core.IMXMLDocument] };



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.DividedContainer.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {
      return {
        'mxmlContent': { type: 'Array'}
      };
    },
    accessors: function () {
      return {
        'MXMLDescriptor': { type: 'Array', access: 'readonly', declaredBy: 'org.apache.royale.html.DividedContainer'},
        'contentView': { type: 'org.apache.royale.core.ILayoutView', access: 'readonly', declaredBy: 'org.apache.royale.html.DividedContainer'},
        'strandChildren': { type: 'org.apache.royale.core.IParent', access: 'readonly', declaredBy: 'org.apache.royale.html.DividedContainer'}
      };
    },
    methods: function () {
      return {
        'DividedContainer': { type: '', declaredBy: 'org.apache.royale.html.DividedContainer'},
        'addedToParent': { type: 'void', declaredBy: 'org.apache.royale.html.DividedContainer'},
        'setMXMLDescriptor': { type: 'void', declaredBy: 'org.apache.royale.html.DividedContainer', parameters: function () { return [  { index: 1, type: 'Object', optional: false },{ index: 2, type: 'Array', optional: false } ]; }},
        'generateMXMLAttributes': { type: 'void', declaredBy: 'org.apache.royale.html.DividedContainer', parameters: function () { return [  { index: 1, type: 'Array', optional: false } ]; }},
        'getLayoutHost': { type: 'org.apache.royale.core.ILayoutHost', declaredBy: 'org.apache.royale.html.DividedContainer'},
        'beforeLayout': { type: 'void', declaredBy: 'org.apache.royale.html.DividedContainer'},
        'afterLayout': { type: 'void', declaredBy: 'org.apache.royale.html.DividedContainer'},
        'childrenAdded': { type: 'void', declaredBy: 'org.apache.royale.html.DividedContainer'}
      };
    },
    metadata: function () { return [  ]; }
  };
};