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

goog.provide('org.apache.royale.html.supportClasses.TreeXMLItemRenderer');

goog.require('org.apache.royale.html.supportClasses.TreeItemRenderer');



/**
 * Constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.html.supportClasses.TreeItemRenderer}
 */
org.apache.royale.html.supportClasses.TreeXMLItemRenderer = function() {
  org.apache.royale.html.supportClasses.TreeXMLItemRenderer.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.supportClasses.TreeXMLItemRenderer, org.apache.royale.html.supportClasses.TreeItemRenderer);


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


org.apache.royale.html.supportClasses.TreeXMLItemRenderer.prototype.set__text = function(value) {
  if (value == "undefined") {
    if (this.labelField.charAt(0) == '@')
      value = org.apache.royale.utils.Language.string(this.data["attribute"](this.labelField));
    else
      value = this.data["child"](this.labelField).toString();
  }
  org.apache.royale.html.supportClasses.TreeXMLItemRenderer.superClass_.set__text.apply(this, [ value] );
};


Object.defineProperties(org.apache.royale.html.supportClasses.TreeXMLItemRenderer.prototype, /** @lends {org.apache.royale.html.supportClasses.TreeXMLItemRenderer.prototype} */ {
/**
  * @export
  * @type {string} */
text: {
get: org.apache.royale.html.supportClasses.StringItemRenderer.prototype.get__text,
set: org.apache.royale.html.supportClasses.TreeXMLItemRenderer.prototype.set__text}}
);


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



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