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

goog.provide('org.apache.royale.html.accessories.TextPromptBead');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.core.IBead');
goog.require('org.apache.royale.utils.Language');



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @implements {org.apache.royale.core.IBead}
 */
org.apache.royale.html.accessories.TextPromptBead = function() {
};


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


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.accessories.TextPromptBead.prototype.org_apache_royale_html_accessories_TextPromptBead__prompt;


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.html.accessories.TextPromptBead.prototype.org_apache_royale_html_accessories_TextPromptBead__strand;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.html.accessories.TextPromptBead.prototype.org_apache_royale_html_accessories_TextPromptBead_promptAdded;


org.apache.royale.html.accessories.TextPromptBead.prototype.get__prompt = function() {
  return this.org_apache_royale_html_accessories_TextPromptBead__prompt;
};


org.apache.royale.html.accessories.TextPromptBead.prototype.set__prompt = function(value) {
  this.org_apache_royale_html_accessories_TextPromptBead__prompt = value;
};


org.apache.royale.html.accessories.TextPromptBead.prototype.set__strand = function(value) {
  this.org_apache_royale_html_accessories_TextPromptBead__strand = value;
  
  var /** @type {org.apache.royale.core.UIBase} */ host = org.apache.royale.utils.Language.as(value, org.apache.royale.core.UIBase);
  var /** @type {HTMLInputElement} */ e = host.element;
  e.placeholder = this.prompt;
};


Object.defineProperties(org.apache.royale.html.accessories.TextPromptBead.prototype, /** @lends {org.apache.royale.html.accessories.TextPromptBead.prototype} */ {
/**
  * @export
  * @type {string} */
prompt: {
get: org.apache.royale.html.accessories.TextPromptBead.prototype.get__prompt,
set: org.apache.royale.html.accessories.TextPromptBead.prototype.set__prompt},
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.accessories.TextPromptBead.prototype.set__strand}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.accessories.TextPromptBead.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'prompt': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.accessories.TextPromptBead'},
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.html.accessories.TextPromptBead'}
      };
    },
    methods: function () {
      return {
        'TextPromptBead': { type: '', declaredBy: 'org.apache.royale.html.accessories.TextPromptBead'}
      };
    }
  };
};