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

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

goog.require('org.apache.royale.core.IBeadModel');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.html.beads.models.TreeModel');
goog.require('org.apache.royale.core.IDataGridModel');
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.html.beads.models.TreeModel}
 * @implements {org.apache.royale.core.IDataGridModel}
 */
org.apache.royale.html.beads.models.TreeGridModel = function() {
  org.apache.royale.html.beads.models.TreeGridModel.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.beads.models.TreeGridModel, org.apache.royale.html.beads.models.TreeModel);


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


/**
 * @private
 * @type {Array}
 */
org.apache.royale.html.beads.models.TreeGridModel.prototype.org_apache_royale_html_beads_models_TreeGridModel__columns;


/**
 * @private
 * @type {org.apache.royale.core.IBeadModel}
 */
org.apache.royale.html.beads.models.TreeGridModel.prototype.org_apache_royale_html_beads_models_TreeGridModel__headerModel;


/**
 * @private
 * @param {org.apache.royale.events.Event} event
 */
org.apache.royale.html.beads.models.TreeGridModel.prototype.org_apache_royale_html_beads_models_TreeGridModel_handleHeaderModelChange = function(event) {
  this.dispatchEvent(new org.apache.royale.events.Event("headerModelChanged"));
};


org.apache.royale.html.beads.models.TreeGridModel.prototype.get__columns = function() {
  return this.org_apache_royale_html_beads_models_TreeGridModel__columns;
};


org.apache.royale.html.beads.models.TreeGridModel.prototype.set__columns = function(value) {
  this.org_apache_royale_html_beads_models_TreeGridModel__columns = value;
};


org.apache.royale.html.beads.models.TreeGridModel.prototype.get__headerModel = function() {
  return this.org_apache_royale_html_beads_models_TreeGridModel__headerModel;
};


org.apache.royale.html.beads.models.TreeGridModel.prototype.set__headerModel = function(value) {
  if (this.org_apache_royale_html_beads_models_TreeGridModel__headerModel != value) {
    this.org_apache_royale_html_beads_models_TreeGridModel__headerModel = value;
    this.dispatchEvent(new org.apache.royale.events.Event("headerModelChanged"));
    this.org_apache_royale_html_beads_models_TreeGridModel__headerModel.addEventListener("dataProviderChanged", org.apache.royale.utils.Language.closure(this.org_apache_royale_html_beads_models_TreeGridModel_handleHeaderModelChange, this, 'handleHeaderModelChange'));
  }
};


Object.defineProperties(org.apache.royale.html.beads.models.TreeGridModel.prototype, /** @lends {org.apache.royale.html.beads.models.TreeGridModel.prototype} */ {
/**
  * @export
  * @type {Array} */
columns: {
get: org.apache.royale.html.beads.models.TreeGridModel.prototype.get__columns,
set: org.apache.royale.html.beads.models.TreeGridModel.prototype.set__columns},
/**
  * @export
  * @type {org.apache.royale.core.IBeadModel} */
headerModel: {
get: org.apache.royale.html.beads.models.TreeGridModel.prototype.get__headerModel,
set: org.apache.royale.html.beads.models.TreeGridModel.prototype.set__headerModel}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.beads.models.TreeGridModel.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'columns': { type: 'Array', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.TreeGridModel'},
        'headerModel': { type: 'org.apache.royale.core.IBeadModel', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.TreeGridModel'}
      };
    },
    methods: function () {
      return {
        'TreeGridModel': { type: '', declaredBy: 'org.apache.royale.html.beads.models.TreeGridModel'}
      };
    }
  };
};