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

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

goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.utils.UIModuleUtils');



/**
 *  Constructor.
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.core.UIBase}
 */
org.apache.royale.html.UIModuleLoader = function() {
  
  this.org_apache_royale_html_UIModuleLoader_utils = new org.apache.royale.utils.UIModuleUtils();
  org.apache.royale.html.UIModuleLoader.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.UIModuleLoader, org.apache.royale.core.UIBase);


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


/**
 * @export
 * @override
 */
org.apache.royale.html.UIModuleLoader.prototype.addedToParent = function() {
  org.apache.royale.html.UIModuleLoader.superClass_.addedToParent.apply(this);
  if (this.org_apache_royale_html_UIModuleLoader_utils.moduleName)
    this.loadModule();
};


/**
 * @private
 * @type {org.apache.royale.utils.UIModuleUtils}
 */
org.apache.royale.html.UIModuleLoader.prototype.org_apache_royale_html_UIModuleLoader_utils;


/**
 *  Load the module.  Will be called automatically if modulePath
 *  is set as the UIModuleLoader is added to the display list.
 * 
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @export
 */
org.apache.royale.html.UIModuleLoader.prototype.loadModule = function() {
  this.org_apache_royale_html_UIModuleLoader_utils.loadModule(this);
};


org.apache.royale.html.UIModuleLoader.prototype.get__modulePath = function() {
  return this.org_apache_royale_html_UIModuleLoader_utils.modulePath;
};


org.apache.royale.html.UIModuleLoader.prototype.set__modulePath = function(value) {
  this.org_apache_royale_html_UIModuleLoader_utils.modulePath = value;
};


org.apache.royale.html.UIModuleLoader.prototype.get__moduleName = function() {
  return this.org_apache_royale_html_UIModuleLoader_utils.moduleName;
};


org.apache.royale.html.UIModuleLoader.prototype.set__moduleName = function(value) {
  this.org_apache_royale_html_UIModuleLoader_utils.moduleName = value;
};


Object.defineProperties(org.apache.royale.html.UIModuleLoader.prototype, /** @lends {org.apache.royale.html.UIModuleLoader.prototype} */ {
/**
  * @export
  * @type {string} */
modulePath: {
get: org.apache.royale.html.UIModuleLoader.prototype.get__modulePath,
set: org.apache.royale.html.UIModuleLoader.prototype.set__modulePath},
/**
  * @export
  * @type {string} */
moduleName: {
get: org.apache.royale.html.UIModuleLoader.prototype.get__moduleName,
set: org.apache.royale.html.UIModuleLoader.prototype.set__moduleName}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.UIModuleLoader.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'modulePath': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.UIModuleLoader'},
        'moduleName': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.UIModuleLoader'}
      };
    },
    methods: function () {
      return {
        'UIModuleLoader': { type: '', declaredBy: 'org.apache.royale.html.UIModuleLoader'},
        'addedToParent': { type: 'void', declaredBy: 'org.apache.royale.html.UIModuleLoader'},
        'loadModule': { type: 'void', declaredBy: 'org.apache.royale.html.UIModuleLoader'}
      };
    }
  };
};