text: /**
   * Generated by Apache Royale Compiler from org/apache/royale/html/supportClasses/StringItemRenderer.as
   * org.apache.royale.html.supportClasses.StringItemRenderer
   *
   * @fileoverview
   *
   * @suppress {missingRequire|checkTypes|accessControls}
   */
  
  goog.provide('org.apache.royale.html.supportClasses.StringItemRenderer');
  /* Royale Dependency List: org.apache.royale.core.WrappedHTMLElement,org.apache.royale.html.util.addElementToWrapper,org.apache.royale.html.util.getLabelFromData*/
  
  goog.require('org.apache.royale.html.supportClasses.DataItemRenderer');
  goog.require('org.apache.royale.html.beads.ITextItemRenderer');
  
  
  
  /**
   *  constructor.
   *
   *  @langversion 3.0
   *  @playerversion Flash 10.2
   *  @playerversion AIR 2.6
   *  @productversion Royale 0.0
   * @constructor
   * @extends {org.apache.royale.html.supportClasses.DataItemRenderer}
   * @implements {org.apache.royale.html.beads.ITextItemRenderer}
   */
  org.apache.royale.html.supportClasses.StringItemRenderer = function() {
    org.apache.royale.html.supportClasses.StringItemRenderer.base(this, 'constructor');
    this.typeNames = 'StringItemRenderer';
    
  };
  goog.inherits(org.apache.royale.html.supportClasses.StringItemRenderer, org.apache.royale.html.supportClasses.DataItemRenderer);
  
  
  /**
   * Prevent renaming of class. Needed for reflection.
   */
  goog.exportSymbol('org.apache.royale.html.supportClasses.StringItemRenderer', org.apache.royale.html.supportClasses.StringItemRenderer);
  
  
  /**
   * @protected
   * @param {Object} value
   * @return {string}
   */
  org.apache.royale.html.supportClasses.StringItemRenderer.prototype.dataToString = function(value) {
    return org.apache.royale.html.util.getLabelFromData(this, value);
  };
  
  
  /**
   * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
   * @protected
   * @override
   */
  org.apache.royale.html.supportClasses.StringItemRenderer.prototype.createElement = function() {
    return org.apache.royale.html.util.addElementToWrapper(this, 'span');
  };
  
  
  org.apache.royale.html.supportClasses.StringItemRenderer.prototype.get__text = function() {
    
    return this.element.textContent;
  };
  
  
  org.apache.royale.html.supportClasses.StringItemRenderer.prototype.set__text = function(value) {
    
    this.element.textContent = value;
  };
  
  
  org.apache.royale.html.supportClasses.StringItemRenderer.prototype.set__data = function(value) {
    org.apache.royale.html.supportClasses.StringItemRenderer.superClass_.set__data.apply(this, [ value] );
    this.text = this.dataToString(value);
  };
  
  
  Object.defineProperties(org.apache.royale.html.supportClasses.StringItemRenderer.prototype, /** @lends {org.apache.royale.html.supportClasses.StringItemRenderer.prototype} */ {
  /**
    * @export
    * @type {string} */
  text: {
  get: org.apache.royale.html.supportClasses.StringItemRenderer.prototype.get__text,
  set: org.apache.royale.html.supportClasses.StringItemRenderer.prototype.set__text},
  /**
    * @export
    * @type {Object} */
  data: {
  get: org.apache.royale.html.supportClasses.UIItemRendererBase.prototype.get__data,
  set: org.apache.royale.html.supportClasses.StringItemRenderer.prototype.set__data}}
  );
  
  
  /**
   * Metadata
   *
   * @type {Object.<string, Array.<Object>>}
   */
  org.apache.royale.html.supportClasses.StringItemRenderer.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'StringItemRenderer', qName: 'org.apache.royale.html.supportClasses.StringItemRenderer', kind: 'class' }], interfaces: [org.apache.royale.html.beads.ITextItemRenderer] };
  
  
  
  /**
   * Reflection
   *
   * @return {Object.<string, Function>}
   */
  org.apache.royale.html.supportClasses.StringItemRenderer.prototype.ROYALE_REFLECTION_INFO = function () {
    return {
      variables: function () {return {};},
      accessors: function () {
        return {
          'text': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.StringItemRenderer'},
          'data': { type: 'Object', access: 'writeonly', declaredBy: 'org.apache.royale.html.supportClasses.StringItemRenderer'}
        };
      },
      methods: function () {
        return {
          'StringItemRenderer': { type: '', declaredBy: 'org.apache.royale.html.supportClasses.StringItemRenderer'}
        };
      }
    };
  };
  /**
   * @export
   * @const
   * @type {number}
   */
  org.apache.royale.html.supportClasses.StringItemRenderer.prototype.ROYALE_REFLECTION_INFO.compileFlags = 10;
  