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

goog.provide('org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.events.IEventDispatcher');
goog.require('org.apache.royale.jewel.beads.controls.textinput.TextPrompt');
goog.require('org.apache.royale.jewel.beads.views.DropDownListView');
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.beads.controls.textinput.TextPrompt}
 */
org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt = function() {
  org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt.base(this, 'constructor');
};
goog.inherits(org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt, org.apache.royale.jewel.beads.controls.textinput.TextPrompt);


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


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt.prototype.org_apache_royale_jewel_beads_controls_dropdownlist_DropDownListTextPrompt__strand;


/**
 *  add prompt when beads are added and we can access the view to retrieve the textinput
 *   
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 *  @royaleignorecoercion org.apache.royale.events.IEventDispatcher
 *  @royaleignorecoercion org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListView
 * @private
 * @param {org.apache.royale.events.Event} event
 */
org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt.prototype.org_apache_royale_jewel_beads_controls_dropdownlist_DropDownListTextPrompt_addPrompt = function(event) {
  this.org_apache_royale_jewel_beads_controls_dropdownlist_DropDownListTextPrompt__strand.removeEventListener("beadsAdded", org.apache.royale.utils.Language.closure(this.org_apache_royale_jewel_beads_controls_dropdownlist_DropDownListTextPrompt_addPrompt, this, 'addPrompt'));
  var /** @type {org.apache.royale.jewel.beads.views.DropDownListView} */ viewBead = org.apache.royale.utils.Language.as(this.org_apache_royale_jewel_beads_controls_dropdownlist_DropDownListTextPrompt__strand.getBeadByType(org.apache.royale.jewel.beads.views.DropDownListView), org.apache.royale.jewel.beads.views.DropDownListView);
  viewBead.prompt = this.prompt;
};


org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt.prototype.set__strand = function(value) {
  this.org_apache_royale_jewel_beads_controls_dropdownlist_DropDownListTextPrompt__strand = value;
  this.org_apache_royale_jewel_beads_controls_dropdownlist_DropDownListTextPrompt__strand.addEventListener("beadsAdded", org.apache.royale.utils.Language.closure(this.org_apache_royale_jewel_beads_controls_dropdownlist_DropDownListTextPrompt_addPrompt, this, 'addPrompt'));
};


Object.defineProperties(org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt.prototype, /** @lends {org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt.prototype.set__strand}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt'}
      };
    },
    methods: function () {
      return {
        'DropDownListTextPrompt': { type: '', declaredBy: 'org.apache.royale.jewel.beads.controls.dropdownlist.DropDownListTextPrompt'}
      };
    }
  };
};