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

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

goog.require('org.apache.royale.core.WrappedHTMLElement');
goog.require('org.apache.royale.html.Label');
goog.require('org.apache.royale.html.util.addElementToWrapper');



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


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


/**
 * @royaleignorecoercion Text
 * @protected
 * @override
 */
org.apache.royale.html.MultilineLabel.prototype.createElement = function() {
  org.apache.royale.html.util.addElementToWrapper(this, 'div');
  this.textNode = document.createTextNode(this.text);
  this.element.appendChild(this.textNode);
  this.element.style.whiteSpace = 'pre-wrap';
  return this.element;
};


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



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