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

goog.provide('org.apache.royale.html.beads.DispatchInputFinishedBead');

goog.require('goog.events');
goog.require('org.apache.royale.core.IRenderedObject');
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.events.KeyboardEvent');
goog.require('org.apache.royale.events.utils.WhitespaceKeys');
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.beads.DispatchInputFinishedBead = function() {
};


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


/**
 * @export
 * @const
 * @type {string}
 */
org.apache.royale.html.beads.DispatchInputFinishedBead.INPUT_FINISHED = "inputFinished";


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.html.beads.DispatchInputFinishedBead.prototype.org_apache_royale_html_beads_DispatchInputFinishedBead__strand;


/**
 * @asprivate
 * @private
 * @param {org.apache.royale.events.KeyboardEvent} event
 */
org.apache.royale.html.beads.DispatchInputFinishedBead.prototype.org_apache_royale_html_beads_DispatchInputFinishedBead_keydownHandler = function(event) {
  if (event.key == org.apache.royale.events.utils.WhitespaceKeys.ENTER) {
    org.apache.royale.utils.Language.as(this.org_apache_royale_html_beads_DispatchInputFinishedBead__strand, org.apache.royale.events.IEventDispatcher).dispatchEvent(new org.apache.royale.events.Event(org.apache.royale.html.beads.DispatchInputFinishedBead.INPUT_FINISHED));
  }
};


/**
 * @asprivate
 * @private
 * @param {Object} event
 */
org.apache.royale.html.beads.DispatchInputFinishedBead.prototype.org_apache_royale_html_beads_DispatchInputFinishedBead_focusoutHandler = function(event) {
  org.apache.royale.utils.Language.as(this.org_apache_royale_html_beads_DispatchInputFinishedBead__strand, org.apache.royale.events.IEventDispatcher).dispatchEvent(new org.apache.royale.events.Event(org.apache.royale.html.beads.DispatchInputFinishedBead.INPUT_FINISHED));
};


org.apache.royale.html.beads.DispatchInputFinishedBead.prototype.set__strand = function(value) {
  this.org_apache_royale_html_beads_DispatchInputFinishedBead__strand = value;
  
  goog.events.listen(org.apache.royale.utils.Language.as(this.org_apache_royale_html_beads_DispatchInputFinishedBead__strand, org.apache.royale.core.IRenderedObject).element, 'keydown', org.apache.royale.utils.Language.closure(this.org_apache_royale_html_beads_DispatchInputFinishedBead_keydownHandler, this, 'keydownHandler'));
  goog.events.listen(org.apache.royale.utils.Language.as(this.org_apache_royale_html_beads_DispatchInputFinishedBead__strand, org.apache.royale.core.IRenderedObject).element, 'focusout', org.apache.royale.utils.Language.closure(this.org_apache_royale_html_beads_DispatchInputFinishedBead_focusoutHandler, this, 'focusoutHandler'));
};


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


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.beads.DispatchInputFinishedBead.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.html.beads.DispatchInputFinishedBead'}
      };
    },
    methods: function () {
      return {
        'DispatchInputFinishedBead': { type: '', declaredBy: 'org.apache.royale.html.beads.DispatchInputFinishedBead'}
      };
    }
  };
};