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

goog.provide('org.apache.royale.jewel.IconTextInput');

goog.require('org.apache.royale.core.IIcon');
goog.require('org.apache.royale.core.IUIBase');
goog.require('org.apache.royale.jewel.TextInput');
goog.require('org.apache.royale.core.IIconSupport');
goog.require('org.apache.royale.utils.Language');



/**
 *  Constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @constructor
 * @extends {org.apache.royale.jewel.TextInput}
 * @implements {org.apache.royale.core.IIconSupport}
 */
org.apache.royale.jewel.IconTextInput = function() {
  org.apache.royale.jewel.IconTextInput.base(this, 'constructor');
};
goog.inherits(org.apache.royale.jewel.IconTextInput, org.apache.royale.jewel.TextInput);


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


/**
 * @private
 * @type {org.apache.royale.core.IIcon}
 */
org.apache.royale.jewel.IconTextInput.prototype.org_apache_royale_jewel_IconTextInput__icon;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.jewel.IconTextInput.prototype.org_apache_royale_jewel_IconTextInput__rightPosition;


org.apache.royale.jewel.IconTextInput.prototype.get__icon = function() {
  return this.org_apache_royale_jewel_IconTextInput__icon;
};


org.apache.royale.jewel.IconTextInput.prototype.set__icon = function(value) {
  this.org_apache_royale_jewel_IconTextInput__icon = value;
  this.toggleClass("icon", (this.org_apache_royale_jewel_IconTextInput__icon != null));
  if (this.rightPosition) {
    this.div.insertBefore(this.org_apache_royale_jewel_IconTextInput__icon.positioner, null);
  } else {
    this.div.insertBefore(this.org_apache_royale_jewel_IconTextInput__icon.positioner, this.element);
  }
  org.apache.royale.utils.Language.as(this.org_apache_royale_jewel_IconTextInput__icon, org.apache.royale.core.IUIBase).addedToParent();
};


org.apache.royale.jewel.IconTextInput.prototype.get__rightPosition = function() {
  return this.org_apache_royale_jewel_IconTextInput__rightPosition;
};


org.apache.royale.jewel.IconTextInput.prototype.set__rightPosition = function(value) {
  this.org_apache_royale_jewel_IconTextInput__rightPosition = value;
  this.toggleClass("right", this.org_apache_royale_jewel_IconTextInput__rightPosition);
};


Object.defineProperties(org.apache.royale.jewel.IconTextInput.prototype, /** @lends {org.apache.royale.jewel.IconTextInput.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IIcon} */
icon: {
get: org.apache.royale.jewel.IconTextInput.prototype.get__icon,
set: org.apache.royale.jewel.IconTextInput.prototype.set__icon},
/**
  * @export
  * @type {boolean} */
rightPosition: {
get: org.apache.royale.jewel.IconTextInput.prototype.get__rightPosition,
set: org.apache.royale.jewel.IconTextInput.prototype.set__rightPosition}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.IconTextInput.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'icon': { type: 'org.apache.royale.core.IIcon', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.IconTextInput'},
        'rightPosition': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.IconTextInput'}
      };
    },
    methods: function () {
      return {
        'IconTextInput': { type: '', declaredBy: 'org.apache.royale.jewel.IconTextInput'}
      };
    }
  };
};