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

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

goog.require('org.apache.royale.collections.HierarchicalData');
goog.require('org.apache.royale.collections.TreeData');
goog.require('org.apache.royale.html.DataGrid');
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.DataGrid}
 */
org.apache.royale.html.TreeGrid = function() {
  org.apache.royale.html.TreeGrid.base(this, 'constructor');
  this.typeNames = "TreeGrid";
};
goog.inherits(org.apache.royale.html.TreeGrid, org.apache.royale.html.DataGrid);


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


org.apache.royale.html.TreeGrid.prototype.set__dataProvider = function(value) {
  if (org.apache.royale.utils.Language.is(value, org.apache.royale.collections.HierarchicalData)) {
    var /** @type {org.apache.royale.collections.TreeData} */ treeData = new org.apache.royale.collections.TreeData(org.apache.royale.utils.Language.as(value, org.apache.royale.collections.HierarchicalData));
    org.apache.royale.html.TreeGrid.superClass_.set__dataProvider.apply(this, [ treeData] );
  } else {
    org.apache.royale.html.TreeGrid.superClass_.set__dataProvider.apply(this, [ value] );
  }
};


Object.defineProperties(org.apache.royale.html.TreeGrid.prototype, /** @lends {org.apache.royale.html.TreeGrid.prototype} */ {
/**
  * @export
  * @type {Object} */
dataProvider: {
get: org.apache.royale.html.DataGrid.prototype.get__dataProvider,
set: org.apache.royale.html.TreeGrid.prototype.set__dataProvider}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.TreeGrid.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'dataProvider': { type: 'Object', access: 'writeonly', declaredBy: 'org.apache.royale.html.TreeGrid'}
      };
    },
    methods: function () {
      return {
        'TreeGrid': { type: '', declaredBy: 'org.apache.royale.html.TreeGrid'}
      };
    }
  };
};